diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 3f5faef..9e164ff 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -3,24 +3,26 @@ id: 01a51eb2-5d90-4a24-b154-68e491d02c36 management: docChecksum: e73920abd3a55e8d249592f2e3090574 docVersion: 0.0.3 - speakeasyVersion: 1.323.0 - generationVersion: 2.356.0 - releaseVersion: 0.6.2 - configChecksum: 65aaac81367ae49e68e24e596795b815 + speakeasyVersion: 1.362.0 + generationVersion: 2.393.4 + releaseVersion: 0.7.0 + configChecksum: 239d479930546495013090103b36829e repoURL: https://github.com/LukeHagar/plexphp.git repoSubDirectory: . installationURL: https://github.com/LukeHagar/plexphp features: php: - core: 3.3.6 + core: 3.3.10 flattening: 2.81.1 - globalSecurity: 2.81.6 + globalSecurity: 2.81.7 globalSecurityFlattening: 0.1.0 globalServerURLs: 2.82.1 globals: 2.82.1 methodServerURLs: 2.82.1 nameOverrides: 2.81.2 + responseFormat: 0.1.0 typeOverrides: 2.81.1 + unions: 0.1.0 generatedFiles: - src/SDKConfiguration.php - src/Server.php @@ -44,8 +46,13 @@ generatedFiles: - src/PlexAPIBuilder.php - composer.json - phpstan.neon + - phpunit.xml - pint.json - rector.php + - src/Utils/DateHandler.php + - src/Utils/DateTimeHandler.php + - src/Utils/DefaultResponse.php + - src/Utils/DefaultStream.php - src/Utils/EnumHandler.php - src/Utils/FormMetadata.php - src/Utils/Headers.php @@ -54,6 +61,7 @@ generatedFiles: - src/Utils/MultipartMetadata.php - src/Utils/ParamsMetadata.php - src/Utils/PathParameters.php + - src/Utils/PhpDocTypeParser.php - src/Utils/QueryParameters.php - src/Utils/RequestBodies.php - src/Utils/RequestMetadata.php @@ -61,127 +69,81 @@ generatedFiles: - src/Utils/SecurityClient.php - src/Utils/SecurityMetadata.php - src/Utils/SpeakeasyMetadata.php + - src/Utils/UnionHandler.php - src/Utils/Utils.php - - src/Models/Operations/Errors.php - - src/Models/Operations/GetServerCapabilitiesServerResponseBody.php + - src/Models/Errors/SDKException.php - src/Models/Operations/Directory.php - src/Models/Operations/MediaContainer.php - src/Models/Operations/GetServerCapabilitiesResponseBody.php - src/Models/Operations/GetServerCapabilitiesResponse.php - - src/Models/Operations/GetServerPreferencesErrors.php - - src/Models/Operations/GetServerPreferencesServerResponseBody.php - src/Models/Operations/Setting.php - src/Models/Operations/GetServerPreferencesMediaContainer.php - src/Models/Operations/GetServerPreferencesResponseBody.php - src/Models/Operations/GetServerPreferencesResponse.php - - src/Models/Operations/GetAvailableClientsErrors.php - - src/Models/Operations/GetAvailableClientsServerResponseBody.php - src/Models/Operations/Server.php - src/Models/Operations/GetAvailableClientsMediaContainer.php - src/Models/Operations/GetAvailableClientsResponseBody.php - src/Models/Operations/GetAvailableClientsResponse.php - - src/Models/Operations/GetDevicesErrors.php - - src/Models/Operations/GetDevicesServerResponseBody.php - src/Models/Operations/Device.php - src/Models/Operations/GetDevicesMediaContainer.php - src/Models/Operations/GetDevicesResponseBody.php - src/Models/Operations/GetDevicesResponse.php - - src/Models/Operations/GetServerIdentityErrors.php - - src/Models/Operations/GetServerIdentityServerResponseBody.php - src/Models/Operations/GetServerIdentityMediaContainer.php - src/Models/Operations/GetServerIdentityResponseBody.php - src/Models/Operations/GetServerIdentityResponse.php - - src/Models/Operations/GetMyPlexAccountErrors.php - - src/Models/Operations/GetMyPlexAccountServerResponseBody.php - src/Models/Operations/MyPlex.php - src/Models/Operations/GetMyPlexAccountResponseBody.php - src/Models/Operations/GetMyPlexAccountResponse.php - src/Models/Operations/MinSize.php - src/Models/Operations/Upscale.php - src/Models/Operations/GetResizedPhotoRequest.php - - src/Models/Operations/GetResizedPhotoErrors.php - - src/Models/Operations/GetResizedPhotoResponseBody.php - src/Models/Operations/GetResizedPhotoResponse.php - - src/Models/Operations/GetServerListErrors.php - - src/Models/Operations/GetServerListServerResponseBody.php - src/Models/Operations/GetServerListServer.php - src/Models/Operations/GetServerListMediaContainer.php - src/Models/Operations/GetServerListResponseBody.php - src/Models/Operations/GetServerListResponse.php - src/Models/Operations/MarkPlayedRequest.php - - src/Models/Operations/MarkPlayedErrors.php - - src/Models/Operations/MarkPlayedResponseBody.php - src/Models/Operations/MarkPlayedResponse.php - src/Models/Operations/MarkUnplayedRequest.php - - src/Models/Operations/MarkUnplayedErrors.php - - src/Models/Operations/MarkUnplayedResponseBody.php - src/Models/Operations/MarkUnplayedResponse.php - src/Models/Operations/UpdatePlayProgressRequest.php - - src/Models/Operations/UpdatePlayProgressErrors.php - - src/Models/Operations/UpdatePlayProgressResponseBody.php - src/Models/Operations/UpdatePlayProgressResponse.php - src/Models/Operations/State.php - src/Models/Operations/GetTimelineRequest.php - - src/Models/Operations/GetTimelineErrors.php - - src/Models/Operations/GetTimelineResponseBody.php - src/Models/Operations/GetTimelineResponse.php - src/Models/Operations/StartUniversalTranscodeRequest.php - - src/Models/Operations/StartUniversalTranscodeErrors.php - - src/Models/Operations/StartUniversalTranscodeResponseBody.php - src/Models/Operations/StartUniversalTranscodeResponse.php - - src/Models/Operations/GetServerActivitiesErrors.php - - src/Models/Operations/GetServerActivitiesActivitiesResponseBody.php - src/Models/Operations/Context.php - src/Models/Operations/Activity.php - src/Models/Operations/GetServerActivitiesMediaContainer.php - src/Models/Operations/GetServerActivitiesResponseBody.php - src/Models/Operations/GetServerActivitiesResponse.php - src/Models/Operations/CancelServerActivitiesRequest.php - - src/Models/Operations/CancelServerActivitiesErrors.php - - src/Models/Operations/CancelServerActivitiesResponseBody.php - src/Models/Operations/CancelServerActivitiesResponse.php - - src/Models/Operations/GetButlerTasksErrors.php - - src/Models/Operations/GetButlerTasksButlerResponseBody.php - src/Models/Operations/ButlerTask.php - src/Models/Operations/ButlerTasks.php - src/Models/Operations/GetButlerTasksResponseBody.php - src/Models/Operations/GetButlerTasksResponse.php - - src/Models/Operations/StartAllTasksErrors.php - - src/Models/Operations/StartAllTasksResponseBody.php - src/Models/Operations/StartAllTasksResponse.php - - src/Models/Operations/StopAllTasksErrors.php - - src/Models/Operations/StopAllTasksResponseBody.php - src/Models/Operations/StopAllTasksResponse.php - src/Models/Operations/TaskName.php - src/Models/Operations/StartTaskRequest.php - - src/Models/Operations/StartTaskErrors.php - - src/Models/Operations/StartTaskResponseBody.php - src/Models/Operations/StartTaskResponse.php - src/Models/Operations/PathParamTaskName.php - src/Models/Operations/StopTaskRequest.php - - src/Models/Operations/StopTaskErrors.php - - src/Models/Operations/StopTaskResponseBody.php - src/Models/Operations/StopTaskResponse.php - - src/Models/Operations/GetHomeDataErrors.php - - src/Models/Operations/GetHomeDataPlexResponseBody.php - src/Models/Operations/GetHomeDataResponseBody.php - src/Models/Operations/GetHomeDataResponse.php - src/Models/Operations/GetPinRequest.php - - src/Models/Operations/GetPinErrors.php - - src/Models/Operations/GetPinPlexResponseBody.php - src/Models/Operations/Location.php - src/Models/Operations/GetPinResponseBody.php - src/Models/Operations/GetPinResponse.php - src/Models/Operations/GetTokenRequest.php - - src/Models/Operations/GetTokenErrors.php - - src/Models/Operations/GetTokenPlexResponseBody.php - src/Models/Operations/GetTokenLocation.php - src/Models/Operations/GetTokenResponseBody.php - src/Models/Operations/GetTokenResponse.php - src/Models/Operations/OnlyTransient.php - src/Models/Operations/GetGlobalHubsRequest.php - - src/Models/Operations/GetGlobalHubsErrors.php - - src/Models/Operations/GetGlobalHubsHubsResponseBody.php - src/Models/Operations/GetGlobalHubsMetadata.php - src/Models/Operations/Hub.php - src/Models/Operations/GetGlobalHubsMediaContainer.php @@ -189,8 +151,6 @@ generatedFiles: - src/Models/Operations/GetGlobalHubsResponse.php - src/Models/Operations/QueryParamOnlyTransient.php - src/Models/Operations/GetLibraryHubsRequest.php - - src/Models/Operations/GetLibraryHubsErrors.php - - src/Models/Operations/GetLibraryHubsHubsResponseBody.php - src/Models/Operations/GetLibraryHubsPart.php - src/Models/Operations/GetLibraryHubsMedia.php - src/Models/Operations/GetLibraryHubsGenre.php @@ -204,16 +164,10 @@ generatedFiles: - src/Models/Operations/GetLibraryHubsResponseBody.php - src/Models/Operations/GetLibraryHubsResponse.php - src/Models/Operations/PerformSearchRequest.php - - src/Models/Operations/PerformSearchErrors.php - - src/Models/Operations/PerformSearchResponseBody.php - src/Models/Operations/PerformSearchResponse.php - src/Models/Operations/PerformVoiceSearchRequest.php - - src/Models/Operations/PerformVoiceSearchErrors.php - - src/Models/Operations/PerformVoiceSearchResponseBody.php - src/Models/Operations/PerformVoiceSearchResponse.php - src/Models/Operations/GetSearchResultsRequest.php - - src/Models/Operations/GetSearchResultsErrors.php - - src/Models/Operations/GetSearchResultsSearchResponseBody.php - src/Models/Operations/GetSearchResultsPart.php - src/Models/Operations/GetSearchResultsMedia.php - src/Models/Operations/GetSearchResultsGenre.php @@ -227,11 +181,7 @@ generatedFiles: - src/Models/Operations/GetSearchResultsResponseBody.php - src/Models/Operations/GetSearchResultsResponse.php - src/Models/Operations/GetFileHashRequest.php - - src/Models/Operations/GetFileHashErrors.php - - src/Models/Operations/GetFileHashResponseBody.php - src/Models/Operations/GetFileHashResponse.php - - src/Models/Operations/GetRecentlyAddedErrors.php - - src/Models/Operations/GetRecentlyAddedLibraryResponseBody.php - src/Models/Operations/Part.php - src/Models/Operations/Media.php - src/Models/Operations/Genre.php @@ -243,8 +193,6 @@ generatedFiles: - src/Models/Operations/GetRecentlyAddedMediaContainer.php - src/Models/Operations/GetRecentlyAddedResponseBody.php - src/Models/Operations/GetRecentlyAddedResponse.php - - src/Models/Operations/GetLibrariesErrors.php - - src/Models/Operations/GetLibrariesLibraryResponseBody.php - src/Models/Operations/GetLibrariesLocation.php - src/Models/Operations/GetLibrariesDirectory.php - src/Models/Operations/GetLibrariesMediaContainer.php @@ -252,8 +200,6 @@ generatedFiles: - src/Models/Operations/GetLibrariesResponse.php - src/Models/Operations/IncludeDetails.php - src/Models/Operations/GetLibraryRequest.php - - src/Models/Operations/GetLibraryErrors.php - - src/Models/Operations/GetLibraryLibraryResponseBody.php - src/Models/Operations/GetLibraryDirectory.php - src/Models/Operations/GetLibraryFilter.php - src/Models/Operations/Sort.php @@ -265,13 +211,9 @@ generatedFiles: - src/Models/Operations/GetLibraryResponseBody.php - src/Models/Operations/GetLibraryResponse.php - src/Models/Operations/DeleteLibraryRequest.php - - src/Models/Operations/DeleteLibraryErrors.php - - src/Models/Operations/DeleteLibraryResponseBody.php - src/Models/Operations/DeleteLibraryResponse.php - src/Models/Operations/Tag.php - src/Models/Operations/GetLibraryItemsRequest.php - - src/Models/Operations/GetLibraryItemsErrors.php - - src/Models/Operations/GetLibraryItemsLibraryResponseBody.php - src/Models/Operations/GetLibraryItemsPart.php - src/Models/Operations/GetLibraryItemsMedia.php - src/Models/Operations/GetLibraryItemsGenre.php @@ -284,20 +226,14 @@ generatedFiles: - src/Models/Operations/GetLibraryItemsResponseBody.php - src/Models/Operations/GetLibraryItemsResponse.php - src/Models/Operations/RefreshLibraryRequest.php - - src/Models/Operations/RefreshLibraryErrors.php - - src/Models/Operations/RefreshLibraryResponseBody.php - src/Models/Operations/RefreshLibraryResponse.php - src/Models/Operations/Type.php - src/Models/Operations/SearchLibraryRequest.php - - src/Models/Operations/SearchLibraryErrors.php - - src/Models/Operations/SearchLibraryLibraryResponseBody.php - src/Models/Operations/SearchLibraryMetadata.php - src/Models/Operations/SearchLibraryMediaContainer.php - src/Models/Operations/SearchLibraryResponseBody.php - src/Models/Operations/SearchLibraryResponse.php - src/Models/Operations/GetMetadataRequest.php - - src/Models/Operations/GetMetadataErrors.php - - src/Models/Operations/GetMetadataLibraryResponseBody.php - src/Models/Operations/Stream.php - src/Models/Operations/GetMetadataPart.php - src/Models/Operations/GetMetadataMedia.php @@ -314,8 +250,6 @@ generatedFiles: - src/Models/Operations/GetMetadataResponseBody.php - src/Models/Operations/GetMetadataResponse.php - src/Models/Operations/GetMetadataChildrenRequest.php - - src/Models/Operations/GetMetadataChildrenErrors.php - - src/Models/Operations/GetMetadataChildrenLibraryResponseBody.php - src/Models/Operations/GetMetadataChildrenDirectory.php - src/Models/Operations/GetMetadataChildrenMetadata.php - src/Models/Operations/GetMetadataChildrenMediaContainer.php @@ -331,8 +265,6 @@ generatedFiles: - src/Models/Operations/GetTopWatchedContentMediaContainer.php - src/Models/Operations/GetTopWatchedContentResponseBody.php - src/Models/Operations/GetTopWatchedContentResponse.php - - src/Models/Operations/GetOnDeckErrors.php - - src/Models/Operations/GetOnDeckLibraryResponseBody.php - src/Models/Operations/GetOnDeckStream.php - src/Models/Operations/GetOnDeckPart.php - src/Models/Operations/GetOnDeckMedia.php @@ -343,20 +275,12 @@ generatedFiles: - src/Models/Operations/GetOnDeckResponse.php - src/Models/Operations/Level.php - src/Models/Operations/LogLineRequest.php - - src/Models/Operations/LogLineErrors.php - - src/Models/Operations/LogLineResponseBody.php - src/Models/Operations/LogLineResponse.php - - src/Models/Operations/LogMultiLineErrors.php - - src/Models/Operations/LogMultiLineResponseBody.php - src/Models/Operations/LogMultiLineResponse.php - - src/Models/Operations/EnablePaperTrailErrors.php - - src/Models/Operations/EnablePaperTrailResponseBody.php - src/Models/Operations/EnablePaperTrailResponse.php - src/Models/Operations/QueryParamType.php - src/Models/Operations/Smart.php - src/Models/Operations/CreatePlaylistRequest.php - - src/Models/Operations/CreatePlaylistErrors.php - - src/Models/Operations/CreatePlaylistPlaylistsResponseBody.php - src/Models/Operations/CreatePlaylistMetadata.php - src/Models/Operations/CreatePlaylistMediaContainer.php - src/Models/Operations/CreatePlaylistResponseBody.php @@ -364,30 +288,20 @@ generatedFiles: - src/Models/Operations/PlaylistType.php - src/Models/Operations/QueryParamSmart.php - src/Models/Operations/GetPlaylistsRequest.php - - src/Models/Operations/GetPlaylistsErrors.php - - src/Models/Operations/GetPlaylistsPlaylistsResponseBody.php - src/Models/Operations/GetPlaylistsMetadata.php - src/Models/Operations/GetPlaylistsMediaContainer.php - src/Models/Operations/GetPlaylistsResponseBody.php - src/Models/Operations/GetPlaylistsResponse.php - src/Models/Operations/GetPlaylistRequest.php - - src/Models/Operations/GetPlaylistErrors.php - - src/Models/Operations/GetPlaylistPlaylistsResponseBody.php - src/Models/Operations/GetPlaylistMetadata.php - src/Models/Operations/GetPlaylistMediaContainer.php - src/Models/Operations/GetPlaylistResponseBody.php - src/Models/Operations/GetPlaylistResponse.php - src/Models/Operations/DeletePlaylistRequest.php - - src/Models/Operations/DeletePlaylistErrors.php - - src/Models/Operations/DeletePlaylistResponseBody.php - src/Models/Operations/DeletePlaylistResponse.php - src/Models/Operations/UpdatePlaylistRequest.php - - src/Models/Operations/UpdatePlaylistErrors.php - - src/Models/Operations/UpdatePlaylistResponseBody.php - src/Models/Operations/UpdatePlaylistResponse.php - src/Models/Operations/GetPlaylistContentsRequest.php - - src/Models/Operations/GetPlaylistContentsErrors.php - - src/Models/Operations/GetPlaylistContentsPlaylistsResponseBody.php - src/Models/Operations/GetPlaylistContentsPart.php - src/Models/Operations/GetPlaylistContentsMedia.php - src/Models/Operations/GetPlaylistContentsGenre.php @@ -400,34 +314,22 @@ generatedFiles: - src/Models/Operations/GetPlaylistContentsResponseBody.php - src/Models/Operations/GetPlaylistContentsResponse.php - src/Models/Operations/ClearPlaylistContentsRequest.php - - src/Models/Operations/ClearPlaylistContentsErrors.php - - src/Models/Operations/ClearPlaylistContentsResponseBody.php - src/Models/Operations/ClearPlaylistContentsResponse.php - src/Models/Operations/AddPlaylistContentsRequest.php - - src/Models/Operations/AddPlaylistContentsErrors.php - - src/Models/Operations/AddPlaylistContentsPlaylistsResponseBody.php - src/Models/Operations/AddPlaylistContentsMetadata.php - src/Models/Operations/AddPlaylistContentsMediaContainer.php - src/Models/Operations/AddPlaylistContentsResponseBody.php - src/Models/Operations/AddPlaylistContentsResponse.php - src/Models/Operations/Force.php - src/Models/Operations/UploadPlaylistRequest.php - - src/Models/Operations/UploadPlaylistErrors.php - - src/Models/Operations/UploadPlaylistResponseBody.php - src/Models/Operations/UploadPlaylistResponse.php - src/Models/Operations/GetTransientTokenQueryParamType.php - src/Models/Operations/Scope.php - src/Models/Operations/GetTransientTokenRequest.php - - src/Models/Operations/GetTransientTokenErrors.php - - src/Models/Operations/GetTransientTokenResponseBody.php - src/Models/Operations/GetTransientTokenResponse.php - src/Models/Operations/GetSourceConnectionInformationRequest.php - - src/Models/Operations/GetSourceConnectionInformationErrors.php - - src/Models/Operations/GetSourceConnectionInformationResponseBody.php - src/Models/Operations/GetSourceConnectionInformationResponse.php - src/Models/Operations/GetStatisticsRequest.php - - src/Models/Operations/GetStatisticsErrors.php - - src/Models/Operations/GetStatisticsStatisticsResponseBody.php - src/Models/Operations/GetStatisticsDevice.php - src/Models/Operations/Account.php - src/Models/Operations/StatisticsMedia.php @@ -435,23 +337,17 @@ generatedFiles: - src/Models/Operations/GetStatisticsResponseBody.php - src/Models/Operations/GetStatisticsResponse.php - src/Models/Operations/GetResourcesStatisticsRequest.php - - src/Models/Operations/GetResourcesStatisticsErrors.php - - src/Models/Operations/GetResourcesStatisticsStatisticsResponseBody.php - src/Models/Operations/StatisticsResources.php - src/Models/Operations/GetResourcesStatisticsMediaContainer.php - src/Models/Operations/GetResourcesStatisticsResponseBody.php - src/Models/Operations/GetResourcesStatisticsResponse.php - src/Models/Operations/GetBandwidthStatisticsRequest.php - - src/Models/Operations/GetBandwidthStatisticsErrors.php - - src/Models/Operations/GetBandwidthStatisticsStatisticsResponseBody.php - src/Models/Operations/GetBandwidthStatisticsDevice.php - src/Models/Operations/GetBandwidthStatisticsAccount.php - src/Models/Operations/StatisticsBandwidth.php - src/Models/Operations/GetBandwidthStatisticsMediaContainer.php - src/Models/Operations/GetBandwidthStatisticsResponseBody.php - src/Models/Operations/GetBandwidthStatisticsResponse.php - - src/Models/Operations/GetSessionsErrors.php - - src/Models/Operations/GetSessionsSessionsResponseBody.php - src/Models/Operations/GetSessionsStream.php - src/Models/Operations/GetSessionsPart.php - src/Models/Operations/GetSessionsMedia.php @@ -464,171 +360,237 @@ generatedFiles: - src/Models/Operations/GetSessionsResponse.php - src/Models/Operations/Filter.php - src/Models/Operations/GetSessionHistoryRequest.php - - src/Models/Operations/GetSessionHistoryErrors.php - - src/Models/Operations/GetSessionHistorySessionsResponseBody.php - src/Models/Operations/GetSessionHistoryMetadata.php - src/Models/Operations/GetSessionHistoryMediaContainer.php - src/Models/Operations/GetSessionHistoryResponseBody.php - src/Models/Operations/GetSessionHistoryResponse.php - - src/Models/Operations/GetTranscodeSessionsErrors.php - - src/Models/Operations/GetTranscodeSessionsSessionsResponseBody.php - src/Models/Operations/TranscodeSession.php - src/Models/Operations/GetTranscodeSessionsMediaContainer.php - src/Models/Operations/GetTranscodeSessionsResponseBody.php - src/Models/Operations/GetTranscodeSessionsResponse.php - src/Models/Operations/StopTranscodeSessionRequest.php - - src/Models/Operations/StopTranscodeSessionErrors.php - - src/Models/Operations/StopTranscodeSessionResponseBody.php - src/Models/Operations/StopTranscodeSessionResponse.php - - src/Models/Operations/GetUpdateStatusErrors.php - - src/Models/Operations/GetUpdateStatusUpdaterResponseBody.php - src/Models/Operations/Release.php - src/Models/Operations/GetUpdateStatusMediaContainer.php - src/Models/Operations/GetUpdateStatusResponseBody.php - src/Models/Operations/GetUpdateStatusResponse.php - src/Models/Operations/Download.php - src/Models/Operations/CheckForUpdatesRequest.php - - src/Models/Operations/CheckForUpdatesErrors.php - - src/Models/Operations/CheckForUpdatesResponseBody.php - src/Models/Operations/CheckForUpdatesResponse.php - src/Models/Operations/Tonight.php - src/Models/Operations/Skip.php - src/Models/Operations/ApplyUpdatesRequest.php - - src/Models/Operations/ApplyUpdatesErrors.php - - src/Models/Operations/ApplyUpdatesResponseBody.php - src/Models/Operations/ApplyUpdatesResponse.php - src/Models/Operations/PathParamFilter.php - src/Models/Operations/Libtype.php - src/Models/Operations/IncludeCollections.php - src/Models/Operations/IncludeExternalMedia.php - src/Models/Operations/GetWatchlistRequest.php - - src/Models/Operations/GetWatchlistErrors.php - - src/Models/Operations/GetWatchlistWatchlistResponseBody.php - src/Models/Operations/Image.php - src/Models/Operations/Metadata.php - src/Models/Operations/GetWatchlistResponseBody.php - src/Models/Operations/GetWatchlistResponse.php + - src/Models/Errors/Errors.php + - src/Models/Errors/GetServerCapabilitiesResponseBody.php + - src/Models/Errors/GetServerPreferencesErrors.php + - src/Models/Errors/GetServerPreferencesResponseBody.php + - src/Models/Errors/GetAvailableClientsErrors.php + - src/Models/Errors/GetAvailableClientsResponseBody.php + - src/Models/Errors/GetDevicesErrors.php + - src/Models/Errors/GetDevicesResponseBody.php + - src/Models/Errors/GetServerIdentityErrors.php + - src/Models/Errors/GetServerIdentityResponseBody.php + - src/Models/Errors/GetMyPlexAccountErrors.php + - src/Models/Errors/GetMyPlexAccountResponseBody.php + - src/Models/Errors/GetResizedPhotoErrors.php + - src/Models/Errors/GetResizedPhotoResponseBody.php + - src/Models/Errors/GetServerListErrors.php + - src/Models/Errors/GetServerListResponseBody.php + - src/Models/Errors/MarkPlayedErrors.php + - src/Models/Errors/MarkPlayedResponseBody.php + - src/Models/Errors/MarkUnplayedErrors.php + - src/Models/Errors/MarkUnplayedResponseBody.php + - src/Models/Errors/UpdatePlayProgressErrors.php + - src/Models/Errors/UpdatePlayProgressResponseBody.php + - src/Models/Errors/GetTimelineErrors.php + - src/Models/Errors/GetTimelineResponseBody.php + - src/Models/Errors/StartUniversalTranscodeErrors.php + - src/Models/Errors/StartUniversalTranscodeResponseBody.php + - src/Models/Errors/GetServerActivitiesErrors.php + - src/Models/Errors/GetServerActivitiesResponseBody.php + - src/Models/Errors/CancelServerActivitiesErrors.php + - src/Models/Errors/CancelServerActivitiesResponseBody.php + - src/Models/Errors/GetButlerTasksErrors.php + - src/Models/Errors/GetButlerTasksResponseBody.php + - src/Models/Errors/StartAllTasksErrors.php + - src/Models/Errors/StartAllTasksResponseBody.php + - src/Models/Errors/StopAllTasksErrors.php + - src/Models/Errors/StopAllTasksResponseBody.php + - src/Models/Errors/StartTaskErrors.php + - src/Models/Errors/StartTaskResponseBody.php + - src/Models/Errors/StopTaskErrors.php + - src/Models/Errors/StopTaskResponseBody.php + - src/Models/Errors/GetHomeDataErrors.php + - src/Models/Errors/GetHomeDataResponseBody.php + - src/Models/Errors/GetPinErrors.php + - src/Models/Errors/GetPinResponseBody.php + - src/Models/Errors/GetTokenErrors.php + - src/Models/Errors/GetTokenResponseBody.php + - src/Models/Errors/GetGlobalHubsErrors.php + - src/Models/Errors/GetGlobalHubsResponseBody.php + - src/Models/Errors/GetLibraryHubsErrors.php + - src/Models/Errors/GetLibraryHubsResponseBody.php + - src/Models/Errors/PerformSearchErrors.php + - src/Models/Errors/PerformSearchResponseBody.php + - src/Models/Errors/PerformVoiceSearchErrors.php + - src/Models/Errors/PerformVoiceSearchResponseBody.php + - src/Models/Errors/GetSearchResultsErrors.php + - src/Models/Errors/GetSearchResultsResponseBody.php + - src/Models/Errors/GetFileHashErrors.php + - src/Models/Errors/GetFileHashResponseBody.php + - src/Models/Errors/GetRecentlyAddedErrors.php + - src/Models/Errors/GetRecentlyAddedResponseBody.php + - src/Models/Errors/GetLibrariesErrors.php + - src/Models/Errors/GetLibrariesResponseBody.php + - src/Models/Errors/GetLibraryErrors.php + - src/Models/Errors/GetLibraryResponseBody.php + - src/Models/Errors/DeleteLibraryErrors.php + - src/Models/Errors/DeleteLibraryResponseBody.php + - src/Models/Errors/GetLibraryItemsErrors.php + - src/Models/Errors/GetLibraryItemsResponseBody.php + - src/Models/Errors/RefreshLibraryErrors.php + - src/Models/Errors/RefreshLibraryResponseBody.php + - src/Models/Errors/SearchLibraryErrors.php + - src/Models/Errors/SearchLibraryResponseBody.php + - src/Models/Errors/GetMetadataErrors.php + - src/Models/Errors/GetMetadataResponseBody.php + - src/Models/Errors/GetMetadataChildrenErrors.php + - src/Models/Errors/GetMetadataChildrenResponseBody.php + - src/Models/Errors/GetOnDeckErrors.php + - src/Models/Errors/GetOnDeckResponseBody.php + - src/Models/Errors/LogLineErrors.php + - src/Models/Errors/LogLineResponseBody.php + - src/Models/Errors/LogMultiLineErrors.php + - src/Models/Errors/LogMultiLineResponseBody.php + - src/Models/Errors/EnablePaperTrailErrors.php + - src/Models/Errors/EnablePaperTrailResponseBody.php + - src/Models/Errors/CreatePlaylistErrors.php + - src/Models/Errors/CreatePlaylistResponseBody.php + - src/Models/Errors/GetPlaylistsErrors.php + - src/Models/Errors/GetPlaylistsResponseBody.php + - src/Models/Errors/GetPlaylistErrors.php + - src/Models/Errors/GetPlaylistResponseBody.php + - src/Models/Errors/DeletePlaylistErrors.php + - src/Models/Errors/DeletePlaylistResponseBody.php + - src/Models/Errors/UpdatePlaylistErrors.php + - src/Models/Errors/UpdatePlaylistResponseBody.php + - src/Models/Errors/GetPlaylistContentsErrors.php + - src/Models/Errors/GetPlaylistContentsResponseBody.php + - src/Models/Errors/ClearPlaylistContentsErrors.php + - src/Models/Errors/ClearPlaylistContentsResponseBody.php + - src/Models/Errors/AddPlaylistContentsErrors.php + - src/Models/Errors/AddPlaylistContentsResponseBody.php + - src/Models/Errors/UploadPlaylistErrors.php + - src/Models/Errors/UploadPlaylistResponseBody.php + - src/Models/Errors/GetTransientTokenErrors.php + - src/Models/Errors/GetTransientTokenResponseBody.php + - src/Models/Errors/GetSourceConnectionInformationErrors.php + - src/Models/Errors/GetSourceConnectionInformationResponseBody.php + - src/Models/Errors/GetStatisticsErrors.php + - src/Models/Errors/GetStatisticsResponseBody.php + - src/Models/Errors/GetResourcesStatisticsErrors.php + - src/Models/Errors/GetResourcesStatisticsResponseBody.php + - src/Models/Errors/GetBandwidthStatisticsErrors.php + - src/Models/Errors/GetBandwidthStatisticsResponseBody.php + - src/Models/Errors/GetSessionsErrors.php + - src/Models/Errors/GetSessionsResponseBody.php + - src/Models/Errors/GetSessionHistoryErrors.php + - src/Models/Errors/GetSessionHistoryResponseBody.php + - src/Models/Errors/GetTranscodeSessionsErrors.php + - src/Models/Errors/GetTranscodeSessionsResponseBody.php + - src/Models/Errors/StopTranscodeSessionErrors.php + - src/Models/Errors/StopTranscodeSessionResponseBody.php + - src/Models/Errors/GetUpdateStatusErrors.php + - src/Models/Errors/GetUpdateStatusResponseBody.php + - src/Models/Errors/CheckForUpdatesErrors.php + - src/Models/Errors/CheckForUpdatesResponseBody.php + - src/Models/Errors/ApplyUpdatesErrors.php + - src/Models/Errors/ApplyUpdatesResponseBody.php + - src/Models/Errors/GetWatchlistErrors.php + - src/Models/Errors/GetWatchlistResponseBody.php - src/Models/Components/Security.php - - docs/Models/Operations/Errors.md - - docs/Models/Operations/GetServerCapabilitiesServerResponseBody.md - docs/Models/Operations/Directory.md - docs/Models/Operations/MediaContainer.md - docs/Models/Operations/GetServerCapabilitiesResponseBody.md - docs/Models/Operations/GetServerCapabilitiesResponse.md - - docs/Models/Operations/GetServerPreferencesErrors.md - - docs/Models/Operations/GetServerPreferencesServerResponseBody.md - docs/Models/Operations/Setting.md - docs/Models/Operations/GetServerPreferencesMediaContainer.md - docs/Models/Operations/GetServerPreferencesResponseBody.md - docs/Models/Operations/GetServerPreferencesResponse.md - - docs/Models/Operations/GetAvailableClientsErrors.md - - docs/Models/Operations/GetAvailableClientsServerResponseBody.md - docs/Models/Operations/Server.md - docs/Models/Operations/GetAvailableClientsMediaContainer.md - docs/Models/Operations/GetAvailableClientsResponseBody.md - docs/Models/Operations/GetAvailableClientsResponse.md - - docs/Models/Operations/GetDevicesErrors.md - - docs/Models/Operations/GetDevicesServerResponseBody.md - docs/Models/Operations/Device.md - docs/Models/Operations/GetDevicesMediaContainer.md - docs/Models/Operations/GetDevicesResponseBody.md - docs/Models/Operations/GetDevicesResponse.md - - docs/Models/Operations/GetServerIdentityErrors.md - - docs/Models/Operations/GetServerIdentityServerResponseBody.md - docs/Models/Operations/GetServerIdentityMediaContainer.md - docs/Models/Operations/GetServerIdentityResponseBody.md - docs/Models/Operations/GetServerIdentityResponse.md - - docs/Models/Operations/GetMyPlexAccountErrors.md - - docs/Models/Operations/GetMyPlexAccountServerResponseBody.md - docs/Models/Operations/MyPlex.md - docs/Models/Operations/GetMyPlexAccountResponseBody.md - docs/Models/Operations/GetMyPlexAccountResponse.md - docs/Models/Operations/MinSize.md - docs/Models/Operations/Upscale.md - docs/Models/Operations/GetResizedPhotoRequest.md - - docs/Models/Operations/GetResizedPhotoErrors.md - - docs/Models/Operations/GetResizedPhotoResponseBody.md - docs/Models/Operations/GetResizedPhotoResponse.md - - docs/Models/Operations/GetServerListErrors.md - - docs/Models/Operations/GetServerListServerResponseBody.md - docs/Models/Operations/GetServerListServer.md - docs/Models/Operations/GetServerListMediaContainer.md - docs/Models/Operations/GetServerListResponseBody.md - docs/Models/Operations/GetServerListResponse.md - docs/Models/Operations/MarkPlayedRequest.md - - docs/Models/Operations/MarkPlayedErrors.md - - docs/Models/Operations/MarkPlayedResponseBody.md - docs/Models/Operations/MarkPlayedResponse.md - docs/Models/Operations/MarkUnplayedRequest.md - - docs/Models/Operations/MarkUnplayedErrors.md - - docs/Models/Operations/MarkUnplayedResponseBody.md - docs/Models/Operations/MarkUnplayedResponse.md - docs/Models/Operations/UpdatePlayProgressRequest.md - - docs/Models/Operations/UpdatePlayProgressErrors.md - - docs/Models/Operations/UpdatePlayProgressResponseBody.md - docs/Models/Operations/UpdatePlayProgressResponse.md - docs/Models/Operations/State.md - docs/Models/Operations/GetTimelineRequest.md - - docs/Models/Operations/GetTimelineErrors.md - - docs/Models/Operations/GetTimelineResponseBody.md - docs/Models/Operations/GetTimelineResponse.md - docs/Models/Operations/StartUniversalTranscodeRequest.md - - docs/Models/Operations/StartUniversalTranscodeErrors.md - - docs/Models/Operations/StartUniversalTranscodeResponseBody.md - docs/Models/Operations/StartUniversalTranscodeResponse.md - - docs/Models/Operations/GetServerActivitiesErrors.md - - docs/Models/Operations/GetServerActivitiesActivitiesResponseBody.md - docs/Models/Operations/Context.md - docs/Models/Operations/Activity.md - docs/Models/Operations/GetServerActivitiesMediaContainer.md - docs/Models/Operations/GetServerActivitiesResponseBody.md - docs/Models/Operations/GetServerActivitiesResponse.md - docs/Models/Operations/CancelServerActivitiesRequest.md - - docs/Models/Operations/CancelServerActivitiesErrors.md - - docs/Models/Operations/CancelServerActivitiesResponseBody.md - docs/Models/Operations/CancelServerActivitiesResponse.md - - docs/Models/Operations/GetButlerTasksErrors.md - - docs/Models/Operations/GetButlerTasksButlerResponseBody.md - docs/Models/Operations/ButlerTask.md - docs/Models/Operations/ButlerTasks.md - docs/Models/Operations/GetButlerTasksResponseBody.md - docs/Models/Operations/GetButlerTasksResponse.md - - docs/Models/Operations/StartAllTasksErrors.md - - docs/Models/Operations/StartAllTasksResponseBody.md - docs/Models/Operations/StartAllTasksResponse.md - - docs/Models/Operations/StopAllTasksErrors.md - - docs/Models/Operations/StopAllTasksResponseBody.md - docs/Models/Operations/StopAllTasksResponse.md - docs/Models/Operations/TaskName.md - docs/Models/Operations/StartTaskRequest.md - - docs/Models/Operations/StartTaskErrors.md - - docs/Models/Operations/StartTaskResponseBody.md - docs/Models/Operations/StartTaskResponse.md - docs/Models/Operations/PathParamTaskName.md - docs/Models/Operations/StopTaskRequest.md - - docs/Models/Operations/StopTaskErrors.md - - docs/Models/Operations/StopTaskResponseBody.md - docs/Models/Operations/StopTaskResponse.md - - docs/Models/Operations/GetHomeDataErrors.md - - docs/Models/Operations/GetHomeDataPlexResponseBody.md - docs/Models/Operations/GetHomeDataResponseBody.md - docs/Models/Operations/GetHomeDataResponse.md - docs/Models/Operations/GetPinRequest.md - - docs/Models/Operations/GetPinErrors.md - - docs/Models/Operations/GetPinPlexResponseBody.md - docs/Models/Operations/Location.md - docs/Models/Operations/GetPinResponseBody.md - docs/Models/Operations/GetPinResponse.md - docs/Models/Operations/GetTokenRequest.md - - docs/Models/Operations/GetTokenErrors.md - - docs/Models/Operations/GetTokenPlexResponseBody.md - docs/Models/Operations/GetTokenLocation.md - docs/Models/Operations/GetTokenResponseBody.md - docs/Models/Operations/GetTokenResponse.md - docs/Models/Operations/OnlyTransient.md - docs/Models/Operations/GetGlobalHubsRequest.md - - docs/Models/Operations/GetGlobalHubsErrors.md - - docs/Models/Operations/GetGlobalHubsHubsResponseBody.md - docs/Models/Operations/GetGlobalHubsMetadata.md - docs/Models/Operations/Hub.md - docs/Models/Operations/GetGlobalHubsMediaContainer.md @@ -636,8 +598,6 @@ generatedFiles: - docs/Models/Operations/GetGlobalHubsResponse.md - docs/Models/Operations/QueryParamOnlyTransient.md - docs/Models/Operations/GetLibraryHubsRequest.md - - docs/Models/Operations/GetLibraryHubsErrors.md - - docs/Models/Operations/GetLibraryHubsHubsResponseBody.md - docs/Models/Operations/GetLibraryHubsPart.md - docs/Models/Operations/GetLibraryHubsMedia.md - docs/Models/Operations/GetLibraryHubsGenre.md @@ -651,16 +611,10 @@ generatedFiles: - docs/Models/Operations/GetLibraryHubsResponseBody.md - docs/Models/Operations/GetLibraryHubsResponse.md - docs/Models/Operations/PerformSearchRequest.md - - docs/Models/Operations/PerformSearchErrors.md - - docs/Models/Operations/PerformSearchResponseBody.md - docs/Models/Operations/PerformSearchResponse.md - docs/Models/Operations/PerformVoiceSearchRequest.md - - docs/Models/Operations/PerformVoiceSearchErrors.md - - docs/Models/Operations/PerformVoiceSearchResponseBody.md - docs/Models/Operations/PerformVoiceSearchResponse.md - docs/Models/Operations/GetSearchResultsRequest.md - - docs/Models/Operations/GetSearchResultsErrors.md - - docs/Models/Operations/GetSearchResultsSearchResponseBody.md - docs/Models/Operations/GetSearchResultsPart.md - docs/Models/Operations/GetSearchResultsMedia.md - docs/Models/Operations/GetSearchResultsGenre.md @@ -674,11 +628,7 @@ generatedFiles: - docs/Models/Operations/GetSearchResultsResponseBody.md - docs/Models/Operations/GetSearchResultsResponse.md - docs/Models/Operations/GetFileHashRequest.md - - docs/Models/Operations/GetFileHashErrors.md - - docs/Models/Operations/GetFileHashResponseBody.md - docs/Models/Operations/GetFileHashResponse.md - - docs/Models/Operations/GetRecentlyAddedErrors.md - - docs/Models/Operations/GetRecentlyAddedLibraryResponseBody.md - docs/Models/Operations/Part.md - docs/Models/Operations/Media.md - docs/Models/Operations/Genre.md @@ -690,8 +640,6 @@ generatedFiles: - docs/Models/Operations/GetRecentlyAddedMediaContainer.md - docs/Models/Operations/GetRecentlyAddedResponseBody.md - docs/Models/Operations/GetRecentlyAddedResponse.md - - docs/Models/Operations/GetLibrariesErrors.md - - docs/Models/Operations/GetLibrariesLibraryResponseBody.md - docs/Models/Operations/GetLibrariesLocation.md - docs/Models/Operations/GetLibrariesDirectory.md - docs/Models/Operations/GetLibrariesMediaContainer.md @@ -699,8 +647,6 @@ generatedFiles: - docs/Models/Operations/GetLibrariesResponse.md - docs/Models/Operations/IncludeDetails.md - docs/Models/Operations/GetLibraryRequest.md - - docs/Models/Operations/GetLibraryErrors.md - - docs/Models/Operations/GetLibraryLibraryResponseBody.md - docs/Models/Operations/GetLibraryDirectory.md - docs/Models/Operations/GetLibraryFilter.md - docs/Models/Operations/Sort.md @@ -712,13 +658,10 @@ generatedFiles: - docs/Models/Operations/GetLibraryResponseBody.md - docs/Models/Operations/GetLibraryResponse.md - docs/Models/Operations/DeleteLibraryRequest.md - - docs/Models/Operations/DeleteLibraryErrors.md - - docs/Models/Operations/DeleteLibraryResponseBody.md - docs/Models/Operations/DeleteLibraryResponse.md - docs/Models/Operations/Tag.md - docs/Models/Operations/GetLibraryItemsRequest.md - - docs/Models/Operations/GetLibraryItemsErrors.md - - docs/Models/Operations/GetLibraryItemsLibraryResponseBody.md + - docs/Models/Operations/LibrarySectionID.md - docs/Models/Operations/GetLibraryItemsPart.md - docs/Models/Operations/GetLibraryItemsMedia.md - docs/Models/Operations/GetLibraryItemsGenre.md @@ -731,20 +674,14 @@ generatedFiles: - docs/Models/Operations/GetLibraryItemsResponseBody.md - docs/Models/Operations/GetLibraryItemsResponse.md - docs/Models/Operations/RefreshLibraryRequest.md - - docs/Models/Operations/RefreshLibraryErrors.md - - docs/Models/Operations/RefreshLibraryResponseBody.md - docs/Models/Operations/RefreshLibraryResponse.md - docs/Models/Operations/Type.md - docs/Models/Operations/SearchLibraryRequest.md - - docs/Models/Operations/SearchLibraryErrors.md - - docs/Models/Operations/SearchLibraryLibraryResponseBody.md - docs/Models/Operations/SearchLibraryMetadata.md - docs/Models/Operations/SearchLibraryMediaContainer.md - docs/Models/Operations/SearchLibraryResponseBody.md - docs/Models/Operations/SearchLibraryResponse.md - docs/Models/Operations/GetMetadataRequest.md - - docs/Models/Operations/GetMetadataErrors.md - - docs/Models/Operations/GetMetadataLibraryResponseBody.md - docs/Models/Operations/Stream.md - docs/Models/Operations/GetMetadataPart.md - docs/Models/Operations/GetMetadataMedia.md @@ -761,8 +698,6 @@ generatedFiles: - docs/Models/Operations/GetMetadataResponseBody.md - docs/Models/Operations/GetMetadataResponse.md - docs/Models/Operations/GetMetadataChildrenRequest.md - - docs/Models/Operations/GetMetadataChildrenErrors.md - - docs/Models/Operations/GetMetadataChildrenLibraryResponseBody.md - docs/Models/Operations/GetMetadataChildrenDirectory.md - docs/Models/Operations/GetMetadataChildrenMetadata.md - docs/Models/Operations/GetMetadataChildrenMediaContainer.md @@ -778,8 +713,6 @@ generatedFiles: - docs/Models/Operations/GetTopWatchedContentMediaContainer.md - docs/Models/Operations/GetTopWatchedContentResponseBody.md - docs/Models/Operations/GetTopWatchedContentResponse.md - - docs/Models/Operations/GetOnDeckErrors.md - - docs/Models/Operations/GetOnDeckLibraryResponseBody.md - docs/Models/Operations/GetOnDeckStream.md - docs/Models/Operations/GetOnDeckPart.md - docs/Models/Operations/GetOnDeckMedia.md @@ -790,20 +723,12 @@ generatedFiles: - docs/Models/Operations/GetOnDeckResponse.md - docs/Models/Operations/Level.md - docs/Models/Operations/LogLineRequest.md - - docs/Models/Operations/LogLineErrors.md - - docs/Models/Operations/LogLineResponseBody.md - docs/Models/Operations/LogLineResponse.md - - docs/Models/Operations/LogMultiLineErrors.md - - docs/Models/Operations/LogMultiLineResponseBody.md - docs/Models/Operations/LogMultiLineResponse.md - - docs/Models/Operations/EnablePaperTrailErrors.md - - docs/Models/Operations/EnablePaperTrailResponseBody.md - docs/Models/Operations/EnablePaperTrailResponse.md - docs/Models/Operations/QueryParamType.md - docs/Models/Operations/Smart.md - docs/Models/Operations/CreatePlaylistRequest.md - - docs/Models/Operations/CreatePlaylistErrors.md - - docs/Models/Operations/CreatePlaylistPlaylistsResponseBody.md - docs/Models/Operations/CreatePlaylistMetadata.md - docs/Models/Operations/CreatePlaylistMediaContainer.md - docs/Models/Operations/CreatePlaylistResponseBody.md @@ -811,30 +736,20 @@ generatedFiles: - docs/Models/Operations/PlaylistType.md - docs/Models/Operations/QueryParamSmart.md - docs/Models/Operations/GetPlaylistsRequest.md - - docs/Models/Operations/GetPlaylistsErrors.md - - docs/Models/Operations/GetPlaylistsPlaylistsResponseBody.md - docs/Models/Operations/GetPlaylistsMetadata.md - docs/Models/Operations/GetPlaylistsMediaContainer.md - docs/Models/Operations/GetPlaylistsResponseBody.md - docs/Models/Operations/GetPlaylistsResponse.md - docs/Models/Operations/GetPlaylistRequest.md - - docs/Models/Operations/GetPlaylistErrors.md - - docs/Models/Operations/GetPlaylistPlaylistsResponseBody.md - docs/Models/Operations/GetPlaylistMetadata.md - docs/Models/Operations/GetPlaylistMediaContainer.md - docs/Models/Operations/GetPlaylistResponseBody.md - docs/Models/Operations/GetPlaylistResponse.md - docs/Models/Operations/DeletePlaylistRequest.md - - docs/Models/Operations/DeletePlaylistErrors.md - - docs/Models/Operations/DeletePlaylistResponseBody.md - docs/Models/Operations/DeletePlaylistResponse.md - docs/Models/Operations/UpdatePlaylistRequest.md - - docs/Models/Operations/UpdatePlaylistErrors.md - - docs/Models/Operations/UpdatePlaylistResponseBody.md - docs/Models/Operations/UpdatePlaylistResponse.md - docs/Models/Operations/GetPlaylistContentsRequest.md - - docs/Models/Operations/GetPlaylistContentsErrors.md - - docs/Models/Operations/GetPlaylistContentsPlaylistsResponseBody.md - docs/Models/Operations/GetPlaylistContentsPart.md - docs/Models/Operations/GetPlaylistContentsMedia.md - docs/Models/Operations/GetPlaylistContentsGenre.md @@ -847,34 +762,22 @@ generatedFiles: - docs/Models/Operations/GetPlaylistContentsResponseBody.md - docs/Models/Operations/GetPlaylistContentsResponse.md - docs/Models/Operations/ClearPlaylistContentsRequest.md - - docs/Models/Operations/ClearPlaylistContentsErrors.md - - docs/Models/Operations/ClearPlaylistContentsResponseBody.md - docs/Models/Operations/ClearPlaylistContentsResponse.md - docs/Models/Operations/AddPlaylistContentsRequest.md - - docs/Models/Operations/AddPlaylistContentsErrors.md - - docs/Models/Operations/AddPlaylistContentsPlaylistsResponseBody.md - docs/Models/Operations/AddPlaylistContentsMetadata.md - docs/Models/Operations/AddPlaylistContentsMediaContainer.md - docs/Models/Operations/AddPlaylistContentsResponseBody.md - docs/Models/Operations/AddPlaylistContentsResponse.md - docs/Models/Operations/Force.md - docs/Models/Operations/UploadPlaylistRequest.md - - docs/Models/Operations/UploadPlaylistErrors.md - - docs/Models/Operations/UploadPlaylistResponseBody.md - docs/Models/Operations/UploadPlaylistResponse.md - docs/Models/Operations/GetTransientTokenQueryParamType.md - docs/Models/Operations/Scope.md - docs/Models/Operations/GetTransientTokenRequest.md - - docs/Models/Operations/GetTransientTokenErrors.md - - docs/Models/Operations/GetTransientTokenResponseBody.md - docs/Models/Operations/GetTransientTokenResponse.md - docs/Models/Operations/GetSourceConnectionInformationRequest.md - - docs/Models/Operations/GetSourceConnectionInformationErrors.md - - docs/Models/Operations/GetSourceConnectionInformationResponseBody.md - docs/Models/Operations/GetSourceConnectionInformationResponse.md - docs/Models/Operations/GetStatisticsRequest.md - - docs/Models/Operations/GetStatisticsErrors.md - - docs/Models/Operations/GetStatisticsStatisticsResponseBody.md - docs/Models/Operations/GetStatisticsDevice.md - docs/Models/Operations/Account.md - docs/Models/Operations/StatisticsMedia.md @@ -882,23 +785,17 @@ generatedFiles: - docs/Models/Operations/GetStatisticsResponseBody.md - docs/Models/Operations/GetStatisticsResponse.md - docs/Models/Operations/GetResourcesStatisticsRequest.md - - docs/Models/Operations/GetResourcesStatisticsErrors.md - - docs/Models/Operations/GetResourcesStatisticsStatisticsResponseBody.md - docs/Models/Operations/StatisticsResources.md - docs/Models/Operations/GetResourcesStatisticsMediaContainer.md - docs/Models/Operations/GetResourcesStatisticsResponseBody.md - docs/Models/Operations/GetResourcesStatisticsResponse.md - docs/Models/Operations/GetBandwidthStatisticsRequest.md - - docs/Models/Operations/GetBandwidthStatisticsErrors.md - - docs/Models/Operations/GetBandwidthStatisticsStatisticsResponseBody.md - docs/Models/Operations/GetBandwidthStatisticsDevice.md - docs/Models/Operations/GetBandwidthStatisticsAccount.md - docs/Models/Operations/StatisticsBandwidth.md - docs/Models/Operations/GetBandwidthStatisticsMediaContainer.md - docs/Models/Operations/GetBandwidthStatisticsResponseBody.md - docs/Models/Operations/GetBandwidthStatisticsResponse.md - - docs/Models/Operations/GetSessionsErrors.md - - docs/Models/Operations/GetSessionsSessionsResponseBody.md - docs/Models/Operations/GetSessionsStream.md - docs/Models/Operations/GetSessionsPart.md - docs/Models/Operations/GetSessionsMedia.md @@ -911,50 +808,164 @@ generatedFiles: - docs/Models/Operations/GetSessionsResponse.md - docs/Models/Operations/Filter.md - docs/Models/Operations/GetSessionHistoryRequest.md - - docs/Models/Operations/GetSessionHistoryErrors.md - - docs/Models/Operations/GetSessionHistorySessionsResponseBody.md - docs/Models/Operations/GetSessionHistoryMetadata.md - docs/Models/Operations/GetSessionHistoryMediaContainer.md - docs/Models/Operations/GetSessionHistoryResponseBody.md - docs/Models/Operations/GetSessionHistoryResponse.md - - docs/Models/Operations/GetTranscodeSessionsErrors.md - - docs/Models/Operations/GetTranscodeSessionsSessionsResponseBody.md - docs/Models/Operations/TranscodeSession.md - docs/Models/Operations/GetTranscodeSessionsMediaContainer.md - docs/Models/Operations/GetTranscodeSessionsResponseBody.md - docs/Models/Operations/GetTranscodeSessionsResponse.md - docs/Models/Operations/StopTranscodeSessionRequest.md - - docs/Models/Operations/StopTranscodeSessionErrors.md - - docs/Models/Operations/StopTranscodeSessionResponseBody.md - docs/Models/Operations/StopTranscodeSessionResponse.md - - docs/Models/Operations/GetUpdateStatusErrors.md - - docs/Models/Operations/GetUpdateStatusUpdaterResponseBody.md - docs/Models/Operations/Release.md - docs/Models/Operations/GetUpdateStatusMediaContainer.md - docs/Models/Operations/GetUpdateStatusResponseBody.md - docs/Models/Operations/GetUpdateStatusResponse.md - docs/Models/Operations/Download.md - docs/Models/Operations/CheckForUpdatesRequest.md - - docs/Models/Operations/CheckForUpdatesErrors.md - - docs/Models/Operations/CheckForUpdatesResponseBody.md - docs/Models/Operations/CheckForUpdatesResponse.md - docs/Models/Operations/Tonight.md - docs/Models/Operations/Skip.md - docs/Models/Operations/ApplyUpdatesRequest.md - - docs/Models/Operations/ApplyUpdatesErrors.md - - docs/Models/Operations/ApplyUpdatesResponseBody.md - docs/Models/Operations/ApplyUpdatesResponse.md - docs/Models/Operations/PathParamFilter.md - docs/Models/Operations/Libtype.md - docs/Models/Operations/IncludeCollections.md - docs/Models/Operations/IncludeExternalMedia.md - docs/Models/Operations/GetWatchlistRequest.md - - docs/Models/Operations/GetWatchlistErrors.md - - docs/Models/Operations/GetWatchlistWatchlistResponseBody.md - docs/Models/Operations/Image.md - docs/Models/Operations/Metadata.md - docs/Models/Operations/GetWatchlistResponseBody.md - docs/Models/Operations/GetWatchlistResponse.md + - docs/Models/Errors/Errors.md + - docs/Models/Errors/GetServerCapabilitiesResponseBody.md + - docs/Models/Errors/GetServerPreferencesErrors.md + - docs/Models/Errors/GetServerPreferencesResponseBody.md + - docs/Models/Errors/GetAvailableClientsErrors.md + - docs/Models/Errors/GetAvailableClientsResponseBody.md + - docs/Models/Errors/GetDevicesErrors.md + - docs/Models/Errors/GetDevicesResponseBody.md + - docs/Models/Errors/GetServerIdentityErrors.md + - docs/Models/Errors/GetServerIdentityResponseBody.md + - docs/Models/Errors/GetMyPlexAccountErrors.md + - docs/Models/Errors/GetMyPlexAccountResponseBody.md + - docs/Models/Errors/GetResizedPhotoErrors.md + - docs/Models/Errors/GetResizedPhotoResponseBody.md + - docs/Models/Errors/GetServerListErrors.md + - docs/Models/Errors/GetServerListResponseBody.md + - docs/Models/Errors/MarkPlayedErrors.md + - docs/Models/Errors/MarkPlayedResponseBody.md + - docs/Models/Errors/MarkUnplayedErrors.md + - docs/Models/Errors/MarkUnplayedResponseBody.md + - docs/Models/Errors/UpdatePlayProgressErrors.md + - docs/Models/Errors/UpdatePlayProgressResponseBody.md + - docs/Models/Errors/GetTimelineErrors.md + - docs/Models/Errors/GetTimelineResponseBody.md + - docs/Models/Errors/StartUniversalTranscodeErrors.md + - docs/Models/Errors/StartUniversalTranscodeResponseBody.md + - docs/Models/Errors/GetServerActivitiesErrors.md + - docs/Models/Errors/GetServerActivitiesResponseBody.md + - docs/Models/Errors/CancelServerActivitiesErrors.md + - docs/Models/Errors/CancelServerActivitiesResponseBody.md + - docs/Models/Errors/GetButlerTasksErrors.md + - docs/Models/Errors/GetButlerTasksResponseBody.md + - docs/Models/Errors/StartAllTasksErrors.md + - docs/Models/Errors/StartAllTasksResponseBody.md + - docs/Models/Errors/StopAllTasksErrors.md + - docs/Models/Errors/StopAllTasksResponseBody.md + - docs/Models/Errors/StartTaskErrors.md + - docs/Models/Errors/StartTaskResponseBody.md + - docs/Models/Errors/StopTaskErrors.md + - docs/Models/Errors/StopTaskResponseBody.md + - docs/Models/Errors/GetHomeDataErrors.md + - docs/Models/Errors/GetHomeDataResponseBody.md + - docs/Models/Errors/GetPinErrors.md + - docs/Models/Errors/GetPinResponseBody.md + - docs/Models/Errors/GetTokenErrors.md + - docs/Models/Errors/GetTokenResponseBody.md + - docs/Models/Errors/GetGlobalHubsErrors.md + - docs/Models/Errors/GetGlobalHubsResponseBody.md + - docs/Models/Errors/GetLibraryHubsErrors.md + - docs/Models/Errors/GetLibraryHubsResponseBody.md + - docs/Models/Errors/PerformSearchErrors.md + - docs/Models/Errors/PerformSearchResponseBody.md + - docs/Models/Errors/PerformVoiceSearchErrors.md + - docs/Models/Errors/PerformVoiceSearchResponseBody.md + - docs/Models/Errors/GetSearchResultsErrors.md + - docs/Models/Errors/GetSearchResultsResponseBody.md + - docs/Models/Errors/GetFileHashErrors.md + - docs/Models/Errors/GetFileHashResponseBody.md + - docs/Models/Errors/GetRecentlyAddedErrors.md + - docs/Models/Errors/GetRecentlyAddedResponseBody.md + - docs/Models/Errors/GetLibrariesErrors.md + - docs/Models/Errors/GetLibrariesResponseBody.md + - docs/Models/Errors/GetLibraryErrors.md + - docs/Models/Errors/GetLibraryResponseBody.md + - docs/Models/Errors/DeleteLibraryErrors.md + - docs/Models/Errors/DeleteLibraryResponseBody.md + - docs/Models/Errors/GetLibraryItemsErrors.md + - docs/Models/Errors/GetLibraryItemsResponseBody.md + - docs/Models/Errors/RefreshLibraryErrors.md + - docs/Models/Errors/RefreshLibraryResponseBody.md + - docs/Models/Errors/SearchLibraryErrors.md + - docs/Models/Errors/SearchLibraryResponseBody.md + - docs/Models/Errors/GetMetadataErrors.md + - docs/Models/Errors/GetMetadataResponseBody.md + - docs/Models/Errors/GetMetadataChildrenErrors.md + - docs/Models/Errors/GetMetadataChildrenResponseBody.md + - docs/Models/Errors/GetOnDeckErrors.md + - docs/Models/Errors/GetOnDeckResponseBody.md + - docs/Models/Errors/LogLineErrors.md + - docs/Models/Errors/LogLineResponseBody.md + - docs/Models/Errors/LogMultiLineErrors.md + - docs/Models/Errors/LogMultiLineResponseBody.md + - docs/Models/Errors/EnablePaperTrailErrors.md + - docs/Models/Errors/EnablePaperTrailResponseBody.md + - docs/Models/Errors/CreatePlaylistErrors.md + - docs/Models/Errors/CreatePlaylistResponseBody.md + - docs/Models/Errors/GetPlaylistsErrors.md + - docs/Models/Errors/GetPlaylistsResponseBody.md + - docs/Models/Errors/GetPlaylistErrors.md + - docs/Models/Errors/GetPlaylistResponseBody.md + - docs/Models/Errors/DeletePlaylistErrors.md + - docs/Models/Errors/DeletePlaylistResponseBody.md + - docs/Models/Errors/UpdatePlaylistErrors.md + - docs/Models/Errors/UpdatePlaylistResponseBody.md + - docs/Models/Errors/GetPlaylistContentsErrors.md + - docs/Models/Errors/GetPlaylistContentsResponseBody.md + - docs/Models/Errors/ClearPlaylistContentsErrors.md + - docs/Models/Errors/ClearPlaylistContentsResponseBody.md + - docs/Models/Errors/AddPlaylistContentsErrors.md + - docs/Models/Errors/AddPlaylistContentsResponseBody.md + - docs/Models/Errors/UploadPlaylistErrors.md + - docs/Models/Errors/UploadPlaylistResponseBody.md + - docs/Models/Errors/GetTransientTokenErrors.md + - docs/Models/Errors/GetTransientTokenResponseBody.md + - docs/Models/Errors/GetSourceConnectionInformationErrors.md + - docs/Models/Errors/GetSourceConnectionInformationResponseBody.md + - docs/Models/Errors/GetStatisticsErrors.md + - docs/Models/Errors/GetStatisticsResponseBody.md + - docs/Models/Errors/GetResourcesStatisticsErrors.md + - docs/Models/Errors/GetResourcesStatisticsResponseBody.md + - docs/Models/Errors/GetBandwidthStatisticsErrors.md + - docs/Models/Errors/GetBandwidthStatisticsResponseBody.md + - docs/Models/Errors/GetSessionsErrors.md + - docs/Models/Errors/GetSessionsResponseBody.md + - docs/Models/Errors/GetSessionHistoryErrors.md + - docs/Models/Errors/GetSessionHistoryResponseBody.md + - docs/Models/Errors/GetTranscodeSessionsErrors.md + - docs/Models/Errors/GetTranscodeSessionsResponseBody.md + - docs/Models/Errors/StopTranscodeSessionErrors.md + - docs/Models/Errors/StopTranscodeSessionResponseBody.md + - docs/Models/Errors/GetUpdateStatusErrors.md + - docs/Models/Errors/GetUpdateStatusResponseBody.md + - docs/Models/Errors/CheckForUpdatesErrors.md + - docs/Models/Errors/CheckForUpdatesResponseBody.md + - docs/Models/Errors/ApplyUpdatesErrors.md + - docs/Models/Errors/ApplyUpdatesResponseBody.md + - docs/Models/Errors/GetWatchlistErrors.md + - docs/Models/Errors/GetWatchlistResponseBody.md - docs/Models/Components/Security.md - docs/sdks/plexapi/README.md - docs/sdks/server/README.md @@ -975,3 +986,4 @@ generatedFiles: - docs/sdks/watchlist/README.md - USAGE.md - .gitattributes + - CONTRIBUTING.md diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 6104971..d669c4c 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,8 @@ generation: auth: oAuth2ClientCredentialsEnabled: false php: - version: 0.6.2 + version: 0.7.0 + clientServerStatusCodesAsErrors: true flattenGlobalSecurity: true imports: option: openapi diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 6e59fff..3d44f16 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.323.0 +speakeasyVersion: 1.362.0 sources: my-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:3ff45b002ead8da26edb32de7bfe420b28c3899c98f898b546730c90e3841614 - sourceBlobDigest: sha256:27174918b80c37f841d105b5120f6beb8fed03400753018c65d312626f1de4c0 + sourceRevisionDigest: sha256:c655e586ae918fdfeb2a0e48f44dd0d83a60834c56b12cda70cc1b6e41a30680 + sourceBlobDigest: sha256:e7c91bb1aed0f6cc3284fef94ec096c89c1c88c5a256ca9d0d032de67180fdd8 tags: - latest - main @@ -11,10 +11,10 @@ targets: plexphp: source: my-source sourceNamespace: my-source - sourceRevisionDigest: sha256:3ff45b002ead8da26edb32de7bfe420b28c3899c98f898b546730c90e3841614 - sourceBlobDigest: sha256:27174918b80c37f841d105b5120f6beb8fed03400753018c65d312626f1de4c0 + sourceRevisionDigest: sha256:c655e586ae918fdfeb2a0e48f44dd0d83a60834c56b12cda70cc1b6e41a30680 + sourceBlobDigest: sha256:e7c91bb1aed0f6cc3284fef94ec096c89c1c88c5a256ca9d0d032de67180fdd8 codeSamplesNamespace: code-samples-php-plexphp - codeSamplesRevisionDigest: sha256:ffafae78abf92ae1a1f47fa4c8cc68a4da89a8ff80d128e9e6a9f48e3dd75e94 + codeSamplesRevisionDigest: sha256:b7885c14977a7f51b434eba5a7fa83a28455dfa4bfd20a8ab04319dfbace7417 outLocation: /github/workspace/repo workflow: workflowVersion: 1.0.0 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..d585717 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,26 @@ +# Contributing to This Repository + +Thank you for your interest in contributing to this repository. Please note that this repository contains generated code. As such, we do not accept direct changes or pull requests. Instead, we encourage you to follow the guidelines below to report issues and suggest improvements. + +## How to Report Issues + +If you encounter any bugs or have suggestions for improvements, please open an issue on GitHub. When reporting an issue, please provide as much detail as possible to help us reproduce the problem. This includes: + +- A clear and descriptive title +- Steps to reproduce the issue +- Expected and actual behavior +- Any relevant logs, screenshots, or error messages +- Information about your environment (e.g., operating system, software versions) + - For example can be collected using the `npx envinfo` command from your terminal if you have Node.js installed + +## Issue Triage and Upstream Fixes + +We will review and triage issues as quickly as possible. Our goal is to address bugs and incorporate improvements in the upstream source code. Fixes will be included in the next generation of the generated code. + +## Contact + +If you have any questions or need further assistance, please feel free to reach out by opening an issue. + +Thank you for your understanding and cooperation! + +The Maintainers diff --git a/README.md b/README.md index 3a06c44..52f0a78 100644 --- a/README.md +++ b/README.md @@ -41,8 +41,6 @@ composer update ### Example ```php -accessToken = ''; $sdk = Plex_API\PlexAPI::builder() ->setXPlexClientIdentifier('Postman') - ->setSecurity($security) - ->build(); + ->setSecurity($security)->build(); try { $response = $sdk->server->getServerCapabilities(); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { // handle exception } - ``` @@ -219,83 +215,29 @@ The default server can also be overridden globally by passing a URL to the `serv The server URL can also be overridden on a per-operation basis, provided a server list was specified for the operation. For example: ```php -setXPlexClientIdentifier('Postman') ->build(); try { - $response = $sdk->plex->getPin('https://plex.tv/api/v2', 'Postman', false, 'Postman'); - if ($response->twoHundredAndOneApplicationJsonObject !== null) { + $response = $sdk->plex->getPin("https://plex.tv/api/v2", 'Postman', false, 'Postman'); + + if ($response->object !== null) { // handle response } } catch (Throwable $e) { // handle exception } - ``` - -## Global Parameters - -A parameter is configured globally. This parameter may be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, This global value will be used as the default on the operations that use it. When such operations are called, there is a place in each to override the global value, if needed. - -For example, you can set `X-Plex-Client-Identifier` to `'Postman'` at SDK initialization and then you do not have to pass the same value on calls to operations like `getPin`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration. - - -### Available Globals - -The following global parameter is available. - -| Name | Type | Required | Description | -| ---- | ---- |:--------:| ----------- | -| xPlexClientIdentifier | string | | The unique identifier for the client application -This is used to track the client application and its usage -(UUID, serial number, or other number unique per device) - | - - -### Example - -```php -setXPlexClientIdentifier('Postman') - ->build(); - -try { - $response = $sdk->plex->getPin('Postman', false, 'Postman'); - - if ($response->twoHundredAndOneApplicationJsonObject !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception -} - -``` - - # Development diff --git a/RELEASES.md b/RELEASES.md index cd092a5..b37a8cf 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -574,4 +574,12 @@ Based on: - OpenAPI Doc - Speakeasy CLI 1.323.0 (2.356.0) https://github.com/speakeasy-api/speakeasy ### Generated -- [php v0.6.2] . \ No newline at end of file +- [php v0.6.2] . + +## 2024-08-12 17:57:30 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.362.0 (2.393.4) https://github.com/speakeasy-api/speakeasy +### Generated +- [php v0.7.0] . \ No newline at end of file diff --git a/USAGE.md b/USAGE.md index 0771838..281614f 100644 --- a/USAGE.md +++ b/USAGE.md @@ -1,7 +1,5 @@ ```php -accessToken = ''; $sdk = Plex_API\PlexAPI::builder() ->setXPlexClientIdentifier('Postman') - ->setSecurity($security) - ->build(); + ->setSecurity($security)->build(); try { $response = $sdk->server->getServerCapabilities(); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { // handle exception } - ``` \ No newline at end of file diff --git a/codeSamples.yaml b/codeSamples.yaml index a5fe6d4..1f0e866 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -3,21 +3,18 @@ info: title: CodeSamples overlay for php target version: 0.0.0 actions: - - target: $["paths"]["/video/:/transcode/universal/start.mpd"]["get"] + - target: $["paths"]["/:/progress"]["post"] update: x-codeSamples: - lang: php - label: startUniversalTranscode + label: updatePlayProgress source: |- - accessToken = ''; @@ -27,25 +24,8 @@ actions: ->setSecurity($security)->build(); try { - $request = new Operations\StartUniversalTranscodeRequest(); - $request->hasMDE = 1; - $request->path = '/library/metadata/23409'; - $request->mediaIndex = 0; - $request->partIndex = 0; - $request->protocol = 'hls'; - $request->fastSeek = 0; - $request->directPlay = 0; - $request->directStream = 0; - $request->subtitleSize = 100; - $request->subtites = 'burn'; - $request->audioBoost = 100; - $request->location = 'lan'; - $request->mediaBufferSize = 102400; - $request->session = 'zvcage8b7rkioqcm8f4uns4c'; - $request->addDebugOverlay = 0; - $request->autoAdjustQuality = 0;; - $response = $sdk->video->startUniversalTranscode($request); + $response = $sdk->media->updatePlayProgress('', 90000, 'played'); if ($response->statusCode === 200) { // handle response @@ -58,27 +38,45 @@ actions: x-codeSamples: - lang: php label: stopTask - source: "accessToken = '';\n\n$sdk = Plex_API\\PlexAPI::builder()\n ->setXPlexClientIdentifier('Postman')\n ->setSecurity($security)->build();\n\ntry {\n \n\n $response = $sdk->butler->stopTask(Operations\\PathParamTaskName::BackupDatabase);\n\n if ($response->statusCode === 200) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + use LukeHagar\Plex_API\Models\Operations; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + + $response = $sdk->butler->stopTask(Operations\PathParamTaskName::BackupDatabase); + + if ($response->statusCode === 200) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } - target: $["paths"]["/hubs"]["get"] update: x-codeSamples: - lang: php label: getGlobalHubs - source: "accessToken = '';\n\n$sdk = Plex_API\\PlexAPI::builder()\n ->setXPlexClientIdentifier('Postman')\n ->setSecurity($security)->build();\n\ntry {\n \n\n $response = $sdk->hubs->getGlobalHubs(1262.49, Operations\\OnlyTransient::One);\n\n if ($response->twoHundredApplicationJsonObject !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/library/onDeck"]["get"] - update: - x-codeSamples: - - lang: php - label: getOnDeck source: |- - accessToken = ''; @@ -88,294 +86,178 @@ actions: ->setSecurity($security)->build(); try { - $response = $sdk->library->getOnDeck(); - if ($response->twoHundredApplicationJsonObject !== null) { + $response = $sdk->hubs->getGlobalHubs(1262.49, Operations\OnlyTransient::One); + + if ($response->object !== null) { // handle response } } catch (Throwable $e) { // handle exception } - - target: $["paths"]["/playlists/upload"]["post"] - update: - x-codeSamples: - - lang: php - label: uploadPlaylist - source: "accessToken = '';\n\n$sdk = Plex_API\\PlexAPI::builder()\n ->setXPlexClientIdentifier('Postman')\n ->setSecurity($security)->build();\n\ntry {\n \n\n $response = $sdk->playlists->uploadPlaylist('/home/barkley/playlist.m3u', Operations\\Force::Zero);\n\n if ($response->statusCode === 200) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/library/recentlyAdded"]["get"] - update: - x-codeSamples: - - lang: php - label: getRecentlyAdded - source: |- - accessToken = ''; - - $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('Postman') - ->setSecurity($security)->build(); - - try { - $response = $sdk->library->getRecentlyAdded(); - - if ($response->twoHundredApplicationJsonObject !== null) { - // handle response - } - } catch (Throwable $e) { - // handle exception - } - - target: $["paths"]["/library/sections/{sectionId}"]["get"] - update: - x-codeSamples: - - lang: php - label: getLibrary - source: "accessToken = '';\n\n$sdk = Plex_API\\PlexAPI::builder()\n ->setXPlexClientIdentifier('Postman')\n ->setSecurity($security)->build();\n\ntry {\n \n\n $response = $sdk->library->getLibrary(1000, Operations\\IncludeDetails::Zero);\n\n if ($response->twoHundredApplicationJsonObject !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/playlists"]["get"] - update: - x-codeSamples: - - lang: php - label: getPlaylists - source: "accessToken = '';\n\n$sdk = Plex_API\\PlexAPI::builder()\n ->setXPlexClientIdentifier('Postman')\n ->setSecurity($security)->build();\n\ntry {\n \n\n $response = $sdk->playlists->getPlaylists(Operations\\PlaylistType::Audio, Operations\\QueryParamSmart::Zero);\n\n if ($response->twoHundredApplicationJsonObject !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/myplex/account"]["get"] - update: - x-codeSamples: - - lang: php - label: getMyPlexAccount - source: |- - accessToken = ''; - - $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('Postman') - ->setSecurity($security)->build(); - - try { - $response = $sdk->server->getMyPlexAccount(); - - if ($response->twoHundredApplicationJsonObject !== null) { - // handle response - } - } catch (Throwable $e) { - // handle exception - } - - target: $["paths"]["/pins/{pinID}"]["get"] - update: - x-codeSamples: - - lang: php - label: getToken - source: "setXPlexClientIdentifier('Postman')\n ->build();\n\ntry {\n \n\n $response = $sdk->plex->getToken('', 'Postman');\n\n if ($response->twoHundredApplicationJsonObject !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/activities/{activityUUID}"]["delete"] - update: - x-codeSamples: - - lang: php - label: cancelServerActivities - source: "accessToken = '';\n\n$sdk = Plex_API\\PlexAPI::builder()\n ->setXPlexClientIdentifier('Postman')\n ->setSecurity($security)->build();\n\ntry {\n \n\n $response = $sdk->activities->cancelServerActivities('25b71ed5-0f9d-461c-baa7-d404e9e10d3e');\n\n if ($response->statusCode === 200) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/library/hashes"]["get"] - update: - x-codeSamples: - - lang: php - label: getFileHash - source: "accessToken = '';\n\n$sdk = Plex_API\\PlexAPI::builder()\n ->setXPlexClientIdentifier('Postman')\n ->setSecurity($security)->build();\n\ntry {\n \n\n $response = $sdk->library->getFileHash('file://C:\\Image.png&type=13', 4462.17);\n\n if ($response->statusCode === 200) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/security/token"]["get"] - update: - x-codeSamples: - - lang: php - label: getTransientToken - source: "accessToken = '';\n\n$sdk = Plex_API\\PlexAPI::builder()\n ->setXPlexClientIdentifier('Postman')\n ->setSecurity($security)->build();\n\ntry {\n \n\n $response = $sdk->authentication->getTransientToken(Operations\\GetTransientTokenQueryParamType::Delegation, Operations\\Scope::All);\n\n if ($response->statusCode === 200) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/status/sessions/history/all"]["get"] - update: - x-codeSamples: - - lang: php - label: getSessionHistory - source: |- - accessToken = ''; - - $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('Postman') - ->setSecurity($security)->build(); - - try { - $filter = new Operations\Filter(); - - $response = $sdk->sessions->getSessionHistory('', 1, $filter, 12); - - if ($response->twoHundredApplicationJsonObject !== null) { - // handle response - } - } catch (Throwable $e) { - // handle exception - } - - target: $["paths"]["/clients"]["get"] - update: - x-codeSamples: - - lang: php - label: getAvailableClients - source: |- - accessToken = ''; - - $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('Postman') - ->setSecurity($security)->build(); - - try { - $response = $sdk->server->getAvailableClients(); - - if ($response->twoHundredApplicationJsonObject !== null) { - // handle response - } - } catch (Throwable $e) { - // handle exception - } - - target: $["paths"]["/photo/:/transcode"]["get"] - update: - x-codeSamples: - - lang: php - label: getResizedPhoto - source: |- - accessToken = ''; - - $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('Postman') - ->setSecurity($security)->build(); - - try { - $request = new Operations\GetResizedPhotoRequest(); - $request->width = 110; - $request->height = 165; - $request->opacity = 643869; - $request->blur = 4000; - $request->minSize = Operations\MinSize::Zero; - $request->upscale = Operations\Upscale::Zero; - $request->url = '/library/metadata/49564/thumb/1654258204';; - - $response = $sdk->server->getResizedPhoto($request); - - if ($response->statusCode === 200) { - // handle response - } - } catch (Throwable $e) { - // handle exception - } - - target: $["paths"]["/:/timeline"]["get"] - update: - x-codeSamples: - - lang: php - label: getTimeline - source: |- - accessToken = ''; - - $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('Postman') - ->setSecurity($security)->build(); - - try { - $request = new Operations\GetTimelineRequest(); - $request->ratingKey = 23409; - $request->key = '/library/metadata/23409'; - $request->state = Operations\State::Playing; - $request->hasMDE = 1; - $request->time = 2000; - $request->duration = 10000; - $request->context = 'home:hub.continueWatching'; - $request->playQueueItemID = 1; - $request->playBackTime = 2000; - $request->row = 1;; - - $response = $sdk->video->getTimeline($request); - - if ($response->statusCode === 200) { - // handle response - } - } catch (Throwable $e) { - // handle exception - } - - target: $["paths"]["/library/sections/{sectionId}/refresh"]["get"] - update: - x-codeSamples: - - lang: php - label: refreshLibrary - source: "accessToken = '';\n\n$sdk = Plex_API\\PlexAPI::builder()\n ->setXPlexClientIdentifier('Postman')\n ->setSecurity($security)->build();\n\ntry {\n \n\n $response = $sdk->library->refreshLibrary(934.16);\n\n if ($response->statusCode === 200) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - target: $["paths"]["/library/sections/{sectionId}/search"]["get"] update: x-codeSamples: - lang: php label: searchLibrary - source: "accessToken = '';\n\n$sdk = Plex_API\\PlexAPI::builder()\n ->setXPlexClientIdentifier('Postman')\n ->setSecurity($security)->build();\n\ntry {\n \n\n $response = $sdk->library->searchLibrary(933505, Operations\\Type::Four);\n\n if ($response->twoHundredApplicationJsonObject !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + use LukeHagar\Plex_API\Models\Operations; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + + $response = $sdk->library->searchLibrary(933505, Operations\Type::Four); + + if ($response->object !== null) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/servers"]["get"] + update: + x-codeSamples: + - lang: php + label: getServerList + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + $response = $sdk->server->getServerList(); + + if ($response->object !== null) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/hubs/sections/{sectionId}"]["get"] + update: + x-codeSamples: + - lang: php + label: getLibraryHubs + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + use LukeHagar\Plex_API\Models\Operations; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + + $response = $sdk->hubs->getLibraryHubs(6728.76, 9010.22, Operations\QueryParamOnlyTransient::Zero); + + if ($response->object !== null) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/hubs/search"]["get"] + update: + x-codeSamples: + - lang: php + label: performSearch + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + + $response = $sdk->search->performSearch('dylan', 1516.53, 5); + + if ($response->statusCode === 200) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/playlists/{playlistID}"]["put"] + update: + x-codeSamples: + - lang: php + label: updatePlaylist + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + + $response = $sdk->playlists->updatePlaylist(3915, '', ''); + + if ($response->statusCode === 200) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } - target: $["paths"]["/:/prefs"]["get"] update: x-codeSamples: - lang: php label: getServerPreferences source: |- - accessToken = ''; @@ -387,32 +269,50 @@ actions: try { $response = $sdk->server->getServerPreferences(); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { // handle exception } - - target: $["paths"]["/hubs/search/voice"]["get"] + - target: $["paths"]["/pins/{pinID}"]["get"] update: x-codeSamples: - lang: php - label: performVoiceSearch - source: "accessToken = '';\n\n$sdk = Plex_API\\PlexAPI::builder()\n ->setXPlexClientIdentifier('Postman')\n ->setSecurity($security)->build();\n\ntry {\n \n\n $response = $sdk->search->performVoiceSearch('dead+poop', 4094.8, 5);\n\n if ($response->statusCode === 200) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/log/networked"]["get"] - update: - x-codeSamples: - - lang: php - label: enablePaperTrail + label: getToken source: |- - setXPlexClientIdentifier('Postman') + ->build(); + + try { + + $response = $sdk->plex->getToken('', 'Postman'); + + if ($response->object !== null) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/transcode/sessions/{sessionKey}"]["delete"] + update: + x-codeSamples: + - lang: php + label: stopTranscodeSession + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; $security = new Components\Security(); $security->accessToken = ''; @@ -422,7 +322,8 @@ actions: ->setSecurity($security)->build(); try { - $response = $sdk->log->enablePaperTrail(); + + $response = $sdk->sessions->stopTranscodeSession('zz7llzqlx8w9vnrsbnwhbmep'); if ($response->statusCode === 200) { // handle response @@ -430,26 +331,19 @@ actions: } catch (Throwable $e) { // handle exception } - - target: $["paths"]["/updater/apply"]["put"] + - target: $["paths"]["/library/sections/watchlist/{filter}"]["get"] update: x-codeSamples: - lang: php - label: applyUpdates - source: "accessToken = '';\n\n$sdk = Plex_API\\PlexAPI::builder()\n ->setXPlexClientIdentifier('Postman')\n ->setSecurity($security)->build();\n\ntry {\n \n\n $response = $sdk->updater->applyUpdates(Operations\\Tonight::One, Operations\\Skip::Zero);\n\n if ($response->statusCode === 200) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/activities"]["get"] - update: - x-codeSamples: - - lang: php - label: getServerActivities + label: getWatchlist source: |- - accessToken = ''; @@ -459,329 +353,20 @@ actions: ->setSecurity($security)->build(); try { - $response = $sdk->activities->getServerActivities(); + $request = new Operations\GetWatchlistRequest( + filter: Operations\PathParamFilter::Released, + sort: '', + libtype: Operations\Libtype::Movie, + maxresults: 303056, + includeCollections: Operations\IncludeCollections::Zero, + includeExternalMedia: Operations\IncludeExternalMedia::One, + xPlexToken: '', + xPlexContainerStart: 406911, + xPlexContainerSize: 958629, + ); + $response = $sdk->watchlist->getWatchlist($request); - if ($response->twoHundredApplicationJsonObject !== null) { - // handle response - } - } catch (Throwable $e) { - // handle exception - } - - target: $["paths"]["/home"]["get"] - update: - x-codeSamples: - - lang: php - label: getHomeData - source: |- - accessToken = ''; - - $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('Postman') - ->setSecurity($security)->build(); - - try { - $response = $sdk->plex->getHomeData(); - - if ($response->twoHundredApplicationJsonObject !== null) { - // handle response - } - } catch (Throwable $e) { - // handle exception - } - - target: $["paths"]["/library/sections/{sectionId}"]["delete"] - update: - x-codeSamples: - - lang: php - label: deleteLibrary - source: "accessToken = '';\n\n$sdk = Plex_API\\PlexAPI::builder()\n ->setXPlexClientIdentifier('Postman')\n ->setSecurity($security)->build();\n\ntry {\n \n\n $response = $sdk->library->deleteLibrary(1000);\n\n if ($response->statusCode === 200) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/log"]["post"] - update: - x-codeSamples: - - lang: php - label: logMultiLine - source: |- - accessToken = ''; - - $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('Postman') - ->setSecurity($security)->build(); - - try { - 'level=4&message=Test%20message%201&source=postman - level=3&message=Test%20message%202&source=postman - level=1&message=Test%20message%203&source=postman'; - - $response = $sdk->log->logMultiLine($request); - - if ($response->statusCode === 200) { - // handle response - } - } catch (Throwable $e) { - // handle exception - } - - target: $["paths"]["/butler"]["get"] - update: - x-codeSamples: - - lang: php - label: getButlerTasks - source: |- - accessToken = ''; - - $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('Postman') - ->setSecurity($security)->build(); - - try { - $response = $sdk->butler->getButlerTasks(); - - if ($response->twoHundredApplicationJsonObject !== null) { - // handle response - } - } catch (Throwable $e) { - // handle exception - } - - target: $["paths"]["/hubs/sections/{sectionId}"]["get"] - update: - x-codeSamples: - - lang: php - label: getLibraryHubs - source: "accessToken = '';\n\n$sdk = Plex_API\\PlexAPI::builder()\n ->setXPlexClientIdentifier('Postman')\n ->setSecurity($security)->build();\n\ntry {\n \n\n $response = $sdk->hubs->getLibraryHubs(6728.76, 9010.22, Operations\\QueryParamOnlyTransient::Zero);\n\n if ($response->twoHundredApplicationJsonObject !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/library/sections"]["get"] - update: - x-codeSamples: - - lang: php - label: getLibraries - source: |- - accessToken = ''; - - $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('Postman') - ->setSecurity($security)->build(); - - try { - $response = $sdk->library->getLibraries(); - - if ($response->twoHundredApplicationJsonObject !== null) { - // handle response - } - } catch (Throwable $e) { - // handle exception - } - - target: $["paths"]["/playlists/{playlistID}"]["put"] - update: - x-codeSamples: - - lang: php - label: updatePlaylist - source: "accessToken = '';\n\n$sdk = Plex_API\\PlexAPI::builder()\n ->setXPlexClientIdentifier('Postman')\n ->setSecurity($security)->build();\n\ntry {\n \n\n $response = $sdk->playlists->updatePlaylist(3915, '', '');\n\n if ($response->statusCode === 200) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/statistics/bandwidth"]["get"] - update: - x-codeSamples: - - lang: php - label: getBandwidthStatistics - source: "accessToken = '';\n\n$sdk = Plex_API\\PlexAPI::builder()\n ->setXPlexClientIdentifier('Postman')\n ->setSecurity($security)->build();\n\ntry {\n \n\n $response = $sdk->statistics->getBandwidthStatistics(4);\n\n if ($response->twoHundredApplicationJsonObject !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/:/progress"]["post"] - update: - x-codeSamples: - - lang: php - label: updatePlayProgress - source: "accessToken = '';\n\n$sdk = Plex_API\\PlexAPI::builder()\n ->setXPlexClientIdentifier('Postman')\n ->setSecurity($security)->build();\n\ntry {\n \n\n $response = $sdk->media->updatePlayProgress('', 90000, 'played');\n\n if ($response->statusCode === 200) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/butler"]["post"] - update: - x-codeSamples: - - lang: php - label: startAllTasks - source: |- - accessToken = ''; - - $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('Postman') - ->setSecurity($security)->build(); - - try { - $response = $sdk->butler->startAllTasks(); - - if ($response->statusCode === 200) { - // handle response - } - } catch (Throwable $e) { - // handle exception - } - - target: $["paths"]["/hubs/search"]["get"] - update: - x-codeSamples: - - lang: php - label: performSearch - source: "accessToken = '';\n\n$sdk = Plex_API\\PlexAPI::builder()\n ->setXPlexClientIdentifier('Postman')\n ->setSecurity($security)->build();\n\ntry {\n \n\n $response = $sdk->search->performSearch('dylan', 1516.53, 5);\n\n if ($response->statusCode === 200) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/transcode/sessions"]["get"] - update: - x-codeSamples: - - lang: php - label: getTranscodeSessions - source: |- - accessToken = ''; - - $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('Postman') - ->setSecurity($security)->build(); - - try { - $response = $sdk->sessions->getTranscodeSessions(); - - if ($response->twoHundredApplicationJsonObject !== null) { - // handle response - } - } catch (Throwable $e) { - // handle exception - } - - target: $["paths"]["/library/metadata/{ratingKey}"]["get"] - update: - x-codeSamples: - - lang: php - label: getMetadata - source: "accessToken = '';\n\n$sdk = Plex_API\\PlexAPI::builder()\n ->setXPlexClientIdentifier('Postman')\n ->setSecurity($security)->build();\n\ntry {\n \n\n $response = $sdk->library->getMetadata(8382.31);\n\n if ($response->twoHundredApplicationJsonObject !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/playlists"]["post"] - update: - x-codeSamples: - - lang: php - label: createPlaylist - source: |- - accessToken = ''; - - $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('Postman') - ->setSecurity($security)->build(); - - try { - $request = new Operations\CreatePlaylistRequest(); - $request->title = ''; - $request->type = Operations\QueryParamType::Photo; - $request->smart = Operations\Smart::One; - $request->uri = 'https://inborn-brochure.biz'; - $request->playQueueID = 3686.33;; - - $response = $sdk->playlists->createPlaylist($request); - - if ($response->twoHundredApplicationJsonObject !== null) { - // handle response - } - } catch (Throwable $e) { - // handle exception - } - - target: $["paths"]["/playlists/{playlistID}/items"]["get"] - update: - x-codeSamples: - - lang: php - label: getPlaylistContents - source: "accessToken = '';\n\n$sdk = Plex_API\\PlexAPI::builder()\n ->setXPlexClientIdentifier('Postman')\n ->setSecurity($security)->build();\n\ntry {\n \n\n $response = $sdk->playlists->getPlaylistContents(5004.46, 9403.59);\n\n if ($response->twoHundredApplicationJsonObject !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/library/all/top"]["get"] - update: - x-codeSamples: - - lang: php - label: getTopWatchedContent - source: "accessToken = '';\n\n$sdk = Plex_API\\PlexAPI::builder()\n ->setXPlexClientIdentifier('Postman')\n ->setSecurity($security)->build();\n\ntry {\n \n\n $response = $sdk->library->getTopWatchedContent(505531, 1);\n\n if ($response->object !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/playlists/{playlistID}/items"]["put"] - update: - x-codeSamples: - - lang: php - label: addPlaylistContents - source: "accessToken = '';\n\n$sdk = Plex_API\\PlexAPI::builder()\n ->setXPlexClientIdentifier('Postman')\n ->setSecurity($security)->build();\n\ntry {\n \n\n $response = $sdk->playlists->addPlaylistContents(8502.01, 'server://12345/com.plexapp.plugins.library/library/metadata/1', 123);\n\n if ($response->twoHundredApplicationJsonObject !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/status/sessions"]["get"] - update: - x-codeSamples: - - lang: php - label: getSessions - source: |- - accessToken = ''; - - $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('Postman') - ->setSecurity($security)->build(); - - try { - $response = $sdk->sessions->getSessions(); - - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -793,14 +378,12 @@ actions: - lang: php label: getServerCapabilities source: |- - accessToken = ''; @@ -812,7 +395,7 @@ actions: try { $response = $sdk->server->getServerCapabilities(); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -824,14 +407,12 @@ actions: - lang: php label: getServerIdentity source: |- - accessToken = ''; @@ -843,7 +424,227 @@ actions: try { $response = $sdk->server->getServerIdentity(); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/pins"]["post"] + update: + x-codeSamples: + - lang: php + label: getPin + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->build(); + + try { + + $response = $sdk->plex->getPin('Postman', false, 'Postman'); + + if ($response->object !== null) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/library/hashes"]["get"] + update: + x-codeSamples: + - lang: php + label: getFileHash + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + + $response = $sdk->library->getFileHash('file://C:\Image.png&type=13', 4462.17); + + if ($response->statusCode === 200) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/playlists"]["post"] + update: + x-codeSamples: + - lang: php + label: createPlaylist + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + use LukeHagar\Plex_API\Models\Operations; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + $request = new Operations\CreatePlaylistRequest( + title: '', + type: Operations\QueryParamType::Photo, + smart: Operations\Smart::One, + uri: 'https://inborn-brochure.biz', + playQueueID: 3686.33, + ); + $response = $sdk->playlists->createPlaylist($request); + + if ($response->object !== null) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/myplex/account"]["get"] + update: + x-codeSamples: + - lang: php + label: getMyPlexAccount + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + $response = $sdk->server->getMyPlexAccount(); + + if ($response->object !== null) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/photo/:/transcode"]["get"] + update: + x-codeSamples: + - lang: php + label: getResizedPhoto + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + use LukeHagar\Plex_API\Models\Operations; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + $request = new Operations\GetResizedPhotoRequest( + width: 110, + height: 165, + opacity: 643869, + blur: 4000, + minSize: Operations\MinSize::Zero, + upscale: Operations\Upscale::Zero, + url: '/library/metadata/49564/thumb/1654258204', + ); + $response = $sdk->server->getResizedPhoto($request); + + if ($response->statusCode === 200) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/library/onDeck"]["get"] + update: + x-codeSamples: + - lang: php + label: getOnDeck + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + $response = $sdk->library->getOnDeck(); + + if ($response->object !== null) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/playlists/{playlistID}/items"]["delete"] + update: + x-codeSamples: + - lang: php + label: clearPlaylistContents + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + + $response = $sdk->playlists->clearPlaylistContents(1893.18); + + if ($response->statusCode === 200) { // handle response } } catch (Throwable $e) { @@ -855,14 +656,12 @@ actions: - lang: php label: stopAllTasks source: |- - accessToken = ''; @@ -874,6 +673,419 @@ actions: try { $response = $sdk->butler->stopAllTasks(); + if ($response->statusCode === 200) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/search"]["get"] + update: + x-codeSamples: + - lang: php + label: getSearchResults + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + + $response = $sdk->search->getSearchResults('110'); + + if ($response->object !== null) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/library/recentlyAdded"]["get"] + update: + x-codeSamples: + - lang: php + label: getRecentlyAdded + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + $response = $sdk->library->getRecentlyAdded(); + + if ($response->object !== null) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/library/sections/{sectionId}"]["get"] + update: + x-codeSamples: + - lang: php + label: getLibrary + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + use LukeHagar\Plex_API\Models\Operations; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + + $response = $sdk->library->getLibrary(1000, Operations\IncludeDetails::Zero); + + if ($response->object !== null) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/transcode/sessions"]["get"] + update: + x-codeSamples: + - lang: php + label: getTranscodeSessions + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + $response = $sdk->sessions->getTranscodeSessions(); + + if ($response->object !== null) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/statistics/media"]["get"] + update: + x-codeSamples: + - lang: php + label: getStatistics + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + + $response = $sdk->statistics->getStatistics(4); + + if ($response->object !== null) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/:/scrobble"]["get"] + update: + x-codeSamples: + - lang: php + label: markPlayed + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + + $response = $sdk->media->markPlayed(59398); + + if ($response->statusCode === 200) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/:/timeline"]["get"] + update: + x-codeSamples: + - lang: php + label: getTimeline + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + use LukeHagar\Plex_API\Models\Operations; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + $request = new Operations\GetTimelineRequest( + ratingKey: 23409, + key: '/library/metadata/23409', + state: Operations\State::Playing, + hasMDE: 1, + time: 2000, + duration: 10000, + context: 'home:hub.continueWatching', + playQueueItemID: 1, + playBackTime: 2000, + row: 1, + ); + $response = $sdk->video->getTimeline($request); + + if ($response->statusCode === 200) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/log"]["post"] + update: + x-codeSamples: + - lang: php + label: logMultiLine + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + $request = 'level=4&message=Test%20message%201&source=postman + level=3&message=Test%20message%202&source=postman + level=1&message=Test%20message%203&source=postman'; + $response = $sdk->log->logMultiLine($request); + + if ($response->statusCode === 200) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/playlists/{playlistID}"]["get"] + update: + x-codeSamples: + - lang: php + label: getPlaylist + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + + $response = $sdk->playlists->getPlaylist(4109.48); + + if ($response->object !== null) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/security/resources"]["get"] + update: + x-codeSamples: + - lang: php + label: getSourceConnectionInformation + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + + $response = $sdk->authentication->getSourceConnectionInformation('server://client-identifier'); + + if ($response->statusCode === 200) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/activities"]["get"] + update: + x-codeSamples: + - lang: php + label: getServerActivities + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + $response = $sdk->activities->getServerActivities(); + + if ($response->object !== null) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/playlists/{playlistID}"]["delete"] + update: + x-codeSamples: + - lang: php + label: deletePlaylist + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + + $response = $sdk->playlists->deletePlaylist(216.22); + + if ($response->statusCode === 200) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/video/:/transcode/universal/start.mpd"]["get"] + update: + x-codeSamples: + - lang: php + label: startUniversalTranscode + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + use LukeHagar\Plex_API\Models\Operations; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + $request = new Operations\StartUniversalTranscodeRequest( + hasMDE: 1, + path: '/library/metadata/23409', + protocol: 'hls', + subtitleSize: 100, + subtites: 'burn', + audioBoost: 100, + location: 'lan', + mediaBufferSize: 102400, + session: 'zvcage8b7rkioqcm8f4uns4c', + ); + $response = $sdk->video->startUniversalTranscode($request); + if ($response->statusCode === 200) { // handle response } @@ -885,27 +1097,286 @@ actions: x-codeSamples: - lang: php label: startTask - source: "accessToken = '';\n\n$sdk = Plex_API\\PlexAPI::builder()\n ->setXPlexClientIdentifier('Postman')\n ->setSecurity($security)->build();\n\ntry {\n \n\n $response = $sdk->butler->startTask(Operations\\TaskName::CleanOldBundles);\n\n if ($response->statusCode === 200) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/pins"]["post"] + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + use LukeHagar\Plex_API\Models\Operations; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + + $response = $sdk->butler->startTask(Operations\TaskName::CleanOldBundles); + + if ($response->statusCode === 200) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/library/sections/{sectionId}"]["delete"] update: x-codeSamples: - lang: php - label: getPin - source: "setXPlexClientIdentifier('Postman')\n ->build();\n\ntry {\n \n\n $response = $sdk->plex->getPin('Postman', false, 'Postman');\n\n if ($response->twoHundredAndOneApplicationJsonObject !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" + label: deleteLibrary + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + + $response = $sdk->library->deleteLibrary(1000); + + if ($response->statusCode === 200) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/library/metadata/{ratingKey}/children"]["get"] + update: + x-codeSamples: + - lang: php + label: getMetadataChildren + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + + $response = $sdk->library->getMetadataChildren(1539.14, ''); + + if ($response->object !== null) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/log"]["get"] + update: + x-codeSamples: + - lang: php + label: logLine + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + use LukeHagar\Plex_API\Models\Operations; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + + $response = $sdk->log->logLine(Operations\Level::Three, 'Test log message', 'Postman'); + + if ($response->statusCode === 200) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/updater/apply"]["put"] + update: + x-codeSamples: + - lang: php + label: applyUpdates + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + use LukeHagar\Plex_API\Models\Operations; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + + $response = $sdk->updater->applyUpdates(Operations\Tonight::One, Operations\Skip::Zero); + + if ($response->statusCode === 200) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/playlists"]["get"] + update: + x-codeSamples: + - lang: php + label: getPlaylists + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + use LukeHagar\Plex_API\Models\Operations; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + + $response = $sdk->playlists->getPlaylists(Operations\PlaylistType::Audio, Operations\QueryParamSmart::Zero); + + if ($response->object !== null) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/statistics/resources"]["get"] + update: + x-codeSamples: + - lang: php + label: getResourcesStatistics + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + + $response = $sdk->statistics->getResourcesStatistics(4); + + if ($response->object !== null) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/statistics/bandwidth"]["get"] + update: + x-codeSamples: + - lang: php + label: getBandwidthStatistics + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + + $response = $sdk->statistics->getBandwidthStatistics(4); + + if ($response->object !== null) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/status/sessions"]["get"] + update: + x-codeSamples: + - lang: php + label: getSessions + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + $response = $sdk->sessions->getSessions(); + + if ($response->object !== null) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } - target: $["paths"]["/updater/status"]["get"] update: x-codeSamples: - lang: php label: getUpdateStatus source: |- - accessToken = ''; @@ -917,32 +1388,24 @@ actions: try { $response = $sdk->updater->getUpdateStatus(); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { // handle exception } - - target: $["paths"]["/updater/check"]["put"] + - target: $["paths"]["/library/metadata/{ratingKey}"]["get"] update: x-codeSamples: - lang: php - label: checkForUpdates - source: "accessToken = '';\n\n$sdk = Plex_API\\PlexAPI::builder()\n ->setXPlexClientIdentifier('Postman')\n ->setSecurity($security)->build();\n\ntry {\n \n\n $response = $sdk->updater->checkForUpdates(Operations\\Download::One);\n\n if ($response->statusCode === 200) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/servers"]["get"] - update: - x-codeSamples: - - lang: php - label: getServerList + label: getMetadata source: |- - accessToken = ''; @@ -952,64 +1415,120 @@ actions: ->setSecurity($security)->build(); try { - $response = $sdk->server->getServerList(); - if ($response->twoHundredApplicationJsonObject !== null) { + $response = $sdk->library->getMetadata(8382.31); + + if ($response->object !== null) { // handle response } } catch (Throwable $e) { // handle exception } - - target: $["paths"]["/:/unscrobble"]["get"] + - target: $["paths"]["/library/all/top"]["get"] update: x-codeSamples: - lang: php - label: markUnplayed - source: "accessToken = '';\n\n$sdk = Plex_API\\PlexAPI::builder()\n ->setXPlexClientIdentifier('Postman')\n ->setSecurity($security)->build();\n\ntry {\n \n\n $response = $sdk->media->markUnplayed(59398);\n\n if ($response->statusCode === 200) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/log"]["get"] + label: getTopWatchedContent + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + + $response = $sdk->library->getTopWatchedContent(505531, 1); + + if ($response->object !== null) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/playlists/{playlistID}/items"]["put"] update: x-codeSamples: - lang: php - label: logLine - source: "accessToken = '';\n\n$sdk = Plex_API\\PlexAPI::builder()\n ->setXPlexClientIdentifier('Postman')\n ->setSecurity($security)->build();\n\ntry {\n \n\n $response = $sdk->log->logLine(Operations\\Level::Three, 'Test log message', 'Postman');\n\n if ($response->statusCode === 200) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/playlists/{playlistID}"]["delete"] + label: addPlaylistContents + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + + $response = $sdk->playlists->addPlaylistContents(8502.01, 'server://12345/com.plexapp.plugins.library/library/metadata/1', 123); + + if ($response->object !== null) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/status/sessions/history/all"]["get"] update: x-codeSamples: - lang: php - label: deletePlaylist - source: "accessToken = '';\n\n$sdk = Plex_API\\PlexAPI::builder()\n ->setXPlexClientIdentifier('Postman')\n ->setSecurity($security)->build();\n\ntry {\n \n\n $response = $sdk->playlists->deletePlaylist(216.22);\n\n if ($response->statusCode === 200) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/statistics/media"]["get"] - update: - x-codeSamples: - - lang: php - label: getStatistics - source: "accessToken = '';\n\n$sdk = Plex_API\\PlexAPI::builder()\n ->setXPlexClientIdentifier('Postman')\n ->setSecurity($security)->build();\n\ntry {\n \n\n $response = $sdk->statistics->getStatistics(4);\n\n if ($response->twoHundredApplicationJsonObject !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/search"]["get"] - update: - x-codeSamples: - - lang: php - label: getSearchResults - source: "accessToken = '';\n\n$sdk = Plex_API\\PlexAPI::builder()\n ->setXPlexClientIdentifier('Postman')\n ->setSecurity($security)->build();\n\ntry {\n \n\n $response = $sdk->search->getSearchResults('110');\n\n if ($response->twoHundredApplicationJsonObject !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/playlists/{playlistID}/items"]["delete"] - update: - x-codeSamples: - - lang: php - label: clearPlaylistContents - source: "accessToken = '';\n\n$sdk = Plex_API\\PlexAPI::builder()\n ->setXPlexClientIdentifier('Postman')\n ->setSecurity($security)->build();\n\ntry {\n \n\n $response = $sdk->playlists->clearPlaylistContents(1893.18);\n\n if ($response->statusCode === 200) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" + label: getSessionHistory + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + use LukeHagar\Plex_API\Models\Operations; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + $filter = new Operations\Filter( + + ); + $response = $sdk->sessions->getSessionHistory('', 1, $filter, 12); + + if ($response->object !== null) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } - target: $["paths"]["/devices"]["get"] update: x-codeSamples: - lang: php label: getDevices source: |- - accessToken = ''; @@ -1021,51 +1540,24 @@ actions: try { $response = $sdk->server->getDevices(); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { // handle exception } - - target: $["paths"]["/library/metadata/{ratingKey}/children"]["get"] + - target: $["paths"]["/library/sections"]["get"] update: x-codeSamples: - lang: php - label: getMetadataChildren - source: "accessToken = '';\n\n$sdk = Plex_API\\PlexAPI::builder()\n ->setXPlexClientIdentifier('Postman')\n ->setSecurity($security)->build();\n\ntry {\n \n\n $response = $sdk->library->getMetadataChildren(1539.14, '');\n\n if ($response->twoHundredApplicationJsonObject !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/playlists/{playlistID}"]["get"] - update: - x-codeSamples: - - lang: php - label: getPlaylist - source: "accessToken = '';\n\n$sdk = Plex_API\\PlexAPI::builder()\n ->setXPlexClientIdentifier('Postman')\n ->setSecurity($security)->build();\n\ntry {\n \n\n $response = $sdk->playlists->getPlaylist(4109.48);\n\n if ($response->twoHundredApplicationJsonObject !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/statistics/resources"]["get"] - update: - x-codeSamples: - - lang: php - label: getResourcesStatistics - source: "accessToken = '';\n\n$sdk = Plex_API\\PlexAPI::builder()\n ->setXPlexClientIdentifier('Postman')\n ->setSecurity($security)->build();\n\ntry {\n \n\n $response = $sdk->statistics->getResourcesStatistics(4);\n\n if ($response->twoHundredApplicationJsonObject !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/library/sections/{sectionId}/{tag}"]["get"] - update: - x-codeSamples: - - lang: php - label: getLibraryItems - source: "accessToken = '';\n\n$sdk = Plex_API\\PlexAPI::builder()\n ->setXPlexClientIdentifier('Postman')\n ->setSecurity($security)->build();\n\ntry {\n \n\n $response = $sdk->library->getLibraryItems('', Operations\\Tag::Genre, 1);\n\n if ($response->twoHundredApplicationJsonObject !== null) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/library/sections/watchlist/{filter}"]["get"] - update: - x-codeSamples: - - lang: php - label: getWatchlist + label: getLibraries source: |- - accessToken = ''; @@ -1075,40 +1567,430 @@ actions: ->setSecurity($security)->build(); try { - $request = new Operations\GetWatchlistRequest(); - $request->filter = Operations\PathParamFilter::Released; - $request->sort = ''; - $request->libtype = Operations\Libtype::Movie; - $request->maxresults = 303056; - $request->includeCollections = Operations\IncludeCollections::Zero; - $request->includeExternalMedia = Operations\IncludeExternalMedia::One; - $request->xPlexToken = ''; - $request->xPlexContainerStart = 406911; - $request->xPlexContainerSize = 958629;; + $response = $sdk->library->getLibraries(); - $response = $sdk->watchlist->getWatchlist($request); - - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { // handle exception } - - target: $["paths"]["/:/scrobble"]["get"] + - target: $["paths"]["/security/token"]["get"] update: x-codeSamples: - lang: php - label: markPlayed - source: "accessToken = '';\n\n$sdk = Plex_API\\PlexAPI::builder()\n ->setXPlexClientIdentifier('Postman')\n ->setSecurity($security)->build();\n\ntry {\n \n\n $response = $sdk->media->markPlayed(59398);\n\n if ($response->statusCode === 200) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/security/resources"]["get"] + label: getTransientToken + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + use LukeHagar\Plex_API\Models\Operations; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + + $response = $sdk->authentication->getTransientToken(Operations\GetTransientTokenQueryParamType::Delegation, Operations\Scope::All); + + if ($response->statusCode === 200) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/activities/{activityUUID}"]["delete"] update: x-codeSamples: - lang: php - label: getSourceConnectionInformation - source: "accessToken = '';\n\n$sdk = Plex_API\\PlexAPI::builder()\n ->setXPlexClientIdentifier('Postman')\n ->setSecurity($security)->build();\n\ntry {\n \n\n $response = $sdk->authentication->getSourceConnectionInformation('server://client-identifier');\n\n if ($response->statusCode === 200) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" - - target: $["paths"]["/transcode/sessions/{sessionKey}"]["delete"] + label: cancelServerActivities + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + + $response = $sdk->activities->cancelServerActivities('25b71ed5-0f9d-461c-baa7-d404e9e10d3e'); + + if ($response->statusCode === 200) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/butler"]["post"] update: x-codeSamples: - lang: php - label: stopTranscodeSession - source: "accessToken = '';\n\n$sdk = Plex_API\\PlexAPI::builder()\n ->setXPlexClientIdentifier('Postman')\n ->setSecurity($security)->build();\n\ntry {\n \n\n $response = $sdk->sessions->stopTranscodeSession('zz7llzqlx8w9vnrsbnwhbmep');\n\n if ($response->statusCode === 200) {\n // handle response\n }\n} catch (Throwable $e) {\n // handle exception\n}" + label: startAllTasks + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + $response = $sdk->butler->startAllTasks(); + + if ($response->statusCode === 200) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/home"]["get"] + update: + x-codeSamples: + - lang: php + label: getHomeData + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + $response = $sdk->plex->getHomeData(); + + if ($response->object !== null) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/library/sections/{sectionId}/{tag}"]["get"] + update: + x-codeSamples: + - lang: php + label: getLibraryItems + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + use LukeHagar\Plex_API\Models\Operations; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + + $response = $sdk->library->getLibraryItems('', Operations\Tag::Genre, 1); + + if ($response->object !== null) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/library/sections/{sectionId}/refresh"]["get"] + update: + x-codeSamples: + - lang: php + label: refreshLibrary + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + + $response = $sdk->library->refreshLibrary(934.16); + + if ($response->statusCode === 200) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/log/networked"]["get"] + update: + x-codeSamples: + - lang: php + label: enablePaperTrail + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + $response = $sdk->log->enablePaperTrail(); + + if ($response->statusCode === 200) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/playlists/{playlistID}/items"]["get"] + update: + x-codeSamples: + - lang: php + label: getPlaylistContents + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + + $response = $sdk->playlists->getPlaylistContents(5004.46, 9403.59); + + if ($response->object !== null) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/playlists/upload"]["post"] + update: + x-codeSamples: + - lang: php + label: uploadPlaylist + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + use LukeHagar\Plex_API\Models\Operations; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + + $response = $sdk->playlists->uploadPlaylist('/home/barkley/playlist.m3u', Operations\Force::Zero); + + if ($response->statusCode === 200) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/hubs/search/voice"]["get"] + update: + x-codeSamples: + - lang: php + label: performVoiceSearch + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + + $response = $sdk->search->performVoiceSearch('dead+poop', 4094.8, 5); + + if ($response->statusCode === 200) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/updater/check"]["put"] + update: + x-codeSamples: + - lang: php + label: checkForUpdates + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + use LukeHagar\Plex_API\Models\Operations; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + + $response = $sdk->updater->checkForUpdates(Operations\Download::One); + + if ($response->statusCode === 200) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/clients"]["get"] + update: + x-codeSamples: + - lang: php + label: getAvailableClients + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + $response = $sdk->server->getAvailableClients(); + + if ($response->object !== null) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/:/unscrobble"]["get"] + update: + x-codeSamples: + - lang: php + label: markUnplayed + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + + $response = $sdk->media->markUnplayed(59398); + + if ($response->statusCode === 200) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } + - target: $["paths"]["/butler"]["get"] + update: + x-codeSamples: + - lang: php + label: getButlerTasks + source: |- + declare(strict_types=1); + + require 'vendor/autoload.php'; + + use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Components; + + $security = new Components\Security(); + $security->accessToken = ''; + + $sdk = Plex_API\PlexAPI::builder() + ->setXPlexClientIdentifier('Postman') + ->setSecurity($security)->build(); + + try { + $response = $sdk->butler->getButlerTasks(); + + if ($response->object !== null) { + // handle response + } + } catch (Throwable $e) { + // handle exception + } diff --git a/composer.json b/composer.json index 56ccc2f..2465784 100644 --- a/composer.json +++ b/composer.json @@ -7,10 +7,18 @@ } }, "license": "MIT", + "repositories": [ + { + "type": "git", + "url": "https://github.com/idbentley/serializer" + } + ], "require": { "php": "^8.1", "guzzlehttp/guzzle": "^7.0", - "jms/serializer": "^3.22" + "jms/serializer": "dev-deserialize-unions", + "brick/date-time": "^0.7.0", + "phpdocumentor/type-resolver": "^1.8" }, "require-dev": { "laravel/pint": "^1.15", @@ -28,7 +36,7 @@ }, "scripts": { "test": [ - "./vendor/bin/phpunit --testdox" + "./vendor/bin/phpunit --testdox --display-warnings --colors=always" ], "stan": [ "./vendor/bin/phpstan analyse --memory-limit=2g" diff --git a/docs/Models/Components/Security.md b/docs/Models/Components/Security.md index 72dd541..9a58063 100644 --- a/docs/Models/Components/Security.md +++ b/docs/Models/Components/Security.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `accessToken` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| `accessToken` | *?string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/AddPlaylistContentsErrors.md b/docs/Models/Errors/AddPlaylistContentsErrors.md similarity index 100% rename from docs/Models/Operations/AddPlaylistContentsErrors.md rename to docs/Models/Errors/AddPlaylistContentsErrors.md diff --git a/docs/Models/Errors/AddPlaylistContentsResponseBody.md b/docs/Models/Errors/AddPlaylistContentsResponseBody.md new file mode 100644 index 0000000..db1b473 --- /dev/null +++ b/docs/Models/Errors/AddPlaylistContentsResponseBody.md @@ -0,0 +1,11 @@ +# AddPlaylistContentsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\AddPlaylistContentsErrors](../../Models/Errors/AddPlaylistContentsErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/ApplyUpdatesErrors.md b/docs/Models/Errors/ApplyUpdatesErrors.md similarity index 100% rename from docs/Models/Operations/ApplyUpdatesErrors.md rename to docs/Models/Errors/ApplyUpdatesErrors.md diff --git a/docs/Models/Errors/ApplyUpdatesResponseBody.md b/docs/Models/Errors/ApplyUpdatesResponseBody.md new file mode 100644 index 0000000..c5feaa7 --- /dev/null +++ b/docs/Models/Errors/ApplyUpdatesResponseBody.md @@ -0,0 +1,11 @@ +# ApplyUpdatesResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\ApplyUpdatesErrors](../../Models/Errors/ApplyUpdatesErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/CancelServerActivitiesErrors.md b/docs/Models/Errors/CancelServerActivitiesErrors.md similarity index 100% rename from docs/Models/Operations/CancelServerActivitiesErrors.md rename to docs/Models/Errors/CancelServerActivitiesErrors.md diff --git a/docs/Models/Errors/CancelServerActivitiesResponseBody.md b/docs/Models/Errors/CancelServerActivitiesResponseBody.md new file mode 100644 index 0000000..60f64f7 --- /dev/null +++ b/docs/Models/Errors/CancelServerActivitiesResponseBody.md @@ -0,0 +1,11 @@ +# CancelServerActivitiesResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\CancelServerActivitiesErrors](../../Models/Errors/CancelServerActivitiesErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/CheckForUpdatesErrors.md b/docs/Models/Errors/CheckForUpdatesErrors.md similarity index 100% rename from docs/Models/Operations/CheckForUpdatesErrors.md rename to docs/Models/Errors/CheckForUpdatesErrors.md diff --git a/docs/Models/Errors/CheckForUpdatesResponseBody.md b/docs/Models/Errors/CheckForUpdatesResponseBody.md new file mode 100644 index 0000000..637bbc3 --- /dev/null +++ b/docs/Models/Errors/CheckForUpdatesResponseBody.md @@ -0,0 +1,11 @@ +# CheckForUpdatesResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\CheckForUpdatesErrors](../../Models/Errors/CheckForUpdatesErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/ClearPlaylistContentsErrors.md b/docs/Models/Errors/ClearPlaylistContentsErrors.md similarity index 100% rename from docs/Models/Operations/ClearPlaylistContentsErrors.md rename to docs/Models/Errors/ClearPlaylistContentsErrors.md diff --git a/docs/Models/Errors/ClearPlaylistContentsResponseBody.md b/docs/Models/Errors/ClearPlaylistContentsResponseBody.md new file mode 100644 index 0000000..7705949 --- /dev/null +++ b/docs/Models/Errors/ClearPlaylistContentsResponseBody.md @@ -0,0 +1,11 @@ +# ClearPlaylistContentsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\ClearPlaylistContentsErrors](../../Models/Errors/ClearPlaylistContentsErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/CreatePlaylistErrors.md b/docs/Models/Errors/CreatePlaylistErrors.md similarity index 100% rename from docs/Models/Operations/CreatePlaylistErrors.md rename to docs/Models/Errors/CreatePlaylistErrors.md diff --git a/docs/Models/Errors/CreatePlaylistResponseBody.md b/docs/Models/Errors/CreatePlaylistResponseBody.md new file mode 100644 index 0000000..aff6f05 --- /dev/null +++ b/docs/Models/Errors/CreatePlaylistResponseBody.md @@ -0,0 +1,11 @@ +# CreatePlaylistResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\CreatePlaylistErrors](../../Models/Errors/CreatePlaylistErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/DeleteLibraryErrors.md b/docs/Models/Errors/DeleteLibraryErrors.md similarity index 100% rename from docs/Models/Operations/DeleteLibraryErrors.md rename to docs/Models/Errors/DeleteLibraryErrors.md diff --git a/docs/Models/Errors/DeleteLibraryResponseBody.md b/docs/Models/Errors/DeleteLibraryResponseBody.md new file mode 100644 index 0000000..4116b61 --- /dev/null +++ b/docs/Models/Errors/DeleteLibraryResponseBody.md @@ -0,0 +1,11 @@ +# DeleteLibraryResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\DeleteLibraryErrors](../../Models/Errors/DeleteLibraryErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/DeletePlaylistErrors.md b/docs/Models/Errors/DeletePlaylistErrors.md similarity index 100% rename from docs/Models/Operations/DeletePlaylistErrors.md rename to docs/Models/Errors/DeletePlaylistErrors.md diff --git a/docs/Models/Errors/DeletePlaylistResponseBody.md b/docs/Models/Errors/DeletePlaylistResponseBody.md new file mode 100644 index 0000000..9ee4afb --- /dev/null +++ b/docs/Models/Errors/DeletePlaylistResponseBody.md @@ -0,0 +1,11 @@ +# DeletePlaylistResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\DeletePlaylistErrors](../../Models/Errors/DeletePlaylistErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/EnablePaperTrailErrors.md b/docs/Models/Errors/EnablePaperTrailErrors.md similarity index 100% rename from docs/Models/Operations/EnablePaperTrailErrors.md rename to docs/Models/Errors/EnablePaperTrailErrors.md diff --git a/docs/Models/Errors/EnablePaperTrailResponseBody.md b/docs/Models/Errors/EnablePaperTrailResponseBody.md new file mode 100644 index 0000000..04fcc92 --- /dev/null +++ b/docs/Models/Errors/EnablePaperTrailResponseBody.md @@ -0,0 +1,11 @@ +# EnablePaperTrailResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\EnablePaperTrailErrors](../../Models/Errors/EnablePaperTrailErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/Errors.md b/docs/Models/Errors/Errors.md similarity index 100% rename from docs/Models/Operations/Errors.md rename to docs/Models/Errors/Errors.md diff --git a/docs/Models/Operations/GetAvailableClientsErrors.md b/docs/Models/Errors/GetAvailableClientsErrors.md similarity index 100% rename from docs/Models/Operations/GetAvailableClientsErrors.md rename to docs/Models/Errors/GetAvailableClientsErrors.md diff --git a/docs/Models/Errors/GetAvailableClientsResponseBody.md b/docs/Models/Errors/GetAvailableClientsResponseBody.md new file mode 100644 index 0000000..dd85505 --- /dev/null +++ b/docs/Models/Errors/GetAvailableClientsResponseBody.md @@ -0,0 +1,11 @@ +# GetAvailableClientsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\GetAvailableClientsErrors](../../Models/Errors/GetAvailableClientsErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetBandwidthStatisticsErrors.md b/docs/Models/Errors/GetBandwidthStatisticsErrors.md similarity index 100% rename from docs/Models/Operations/GetBandwidthStatisticsErrors.md rename to docs/Models/Errors/GetBandwidthStatisticsErrors.md diff --git a/docs/Models/Errors/GetBandwidthStatisticsResponseBody.md b/docs/Models/Errors/GetBandwidthStatisticsResponseBody.md new file mode 100644 index 0000000..80dcf9f --- /dev/null +++ b/docs/Models/Errors/GetBandwidthStatisticsResponseBody.md @@ -0,0 +1,11 @@ +# GetBandwidthStatisticsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\GetBandwidthStatisticsErrors](../../Models/Errors/GetBandwidthStatisticsErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetButlerTasksErrors.md b/docs/Models/Errors/GetButlerTasksErrors.md similarity index 100% rename from docs/Models/Operations/GetButlerTasksErrors.md rename to docs/Models/Errors/GetButlerTasksErrors.md diff --git a/docs/Models/Errors/GetButlerTasksResponseBody.md b/docs/Models/Errors/GetButlerTasksResponseBody.md new file mode 100644 index 0000000..858eaaf --- /dev/null +++ b/docs/Models/Errors/GetButlerTasksResponseBody.md @@ -0,0 +1,11 @@ +# GetButlerTasksResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\GetButlerTasksErrors](../../Models/Errors/GetButlerTasksErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetDevicesErrors.md b/docs/Models/Errors/GetDevicesErrors.md similarity index 100% rename from docs/Models/Operations/GetDevicesErrors.md rename to docs/Models/Errors/GetDevicesErrors.md diff --git a/docs/Models/Errors/GetDevicesResponseBody.md b/docs/Models/Errors/GetDevicesResponseBody.md new file mode 100644 index 0000000..a637e0b --- /dev/null +++ b/docs/Models/Errors/GetDevicesResponseBody.md @@ -0,0 +1,11 @@ +# GetDevicesResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\GetDevicesErrors](../../Models/Errors/GetDevicesErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetFileHashErrors.md b/docs/Models/Errors/GetFileHashErrors.md similarity index 100% rename from docs/Models/Operations/GetFileHashErrors.md rename to docs/Models/Errors/GetFileHashErrors.md diff --git a/docs/Models/Errors/GetFileHashResponseBody.md b/docs/Models/Errors/GetFileHashResponseBody.md new file mode 100644 index 0000000..403ae96 --- /dev/null +++ b/docs/Models/Errors/GetFileHashResponseBody.md @@ -0,0 +1,11 @@ +# GetFileHashResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\GetFileHashErrors](../../Models/Errors/GetFileHashErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetGlobalHubsErrors.md b/docs/Models/Errors/GetGlobalHubsErrors.md similarity index 100% rename from docs/Models/Operations/GetGlobalHubsErrors.md rename to docs/Models/Errors/GetGlobalHubsErrors.md diff --git a/docs/Models/Errors/GetGlobalHubsResponseBody.md b/docs/Models/Errors/GetGlobalHubsResponseBody.md new file mode 100644 index 0000000..6cfa43c --- /dev/null +++ b/docs/Models/Errors/GetGlobalHubsResponseBody.md @@ -0,0 +1,11 @@ +# GetGlobalHubsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\GetGlobalHubsErrors](../../Models/Errors/GetGlobalHubsErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetHomeDataErrors.md b/docs/Models/Errors/GetHomeDataErrors.md similarity index 100% rename from docs/Models/Operations/GetHomeDataErrors.md rename to docs/Models/Errors/GetHomeDataErrors.md diff --git a/docs/Models/Errors/GetHomeDataResponseBody.md b/docs/Models/Errors/GetHomeDataResponseBody.md new file mode 100644 index 0000000..d3d0801 --- /dev/null +++ b/docs/Models/Errors/GetHomeDataResponseBody.md @@ -0,0 +1,11 @@ +# GetHomeDataResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\GetHomeDataErrors](../../Models/Errors/GetHomeDataErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetLibrariesErrors.md b/docs/Models/Errors/GetLibrariesErrors.md similarity index 100% rename from docs/Models/Operations/GetLibrariesErrors.md rename to docs/Models/Errors/GetLibrariesErrors.md diff --git a/docs/Models/Errors/GetLibrariesResponseBody.md b/docs/Models/Errors/GetLibrariesResponseBody.md new file mode 100644 index 0000000..ac7d650 --- /dev/null +++ b/docs/Models/Errors/GetLibrariesResponseBody.md @@ -0,0 +1,11 @@ +# GetLibrariesResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\GetLibrariesErrors](../../Models/Errors/GetLibrariesErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetLibraryErrors.md b/docs/Models/Errors/GetLibraryErrors.md similarity index 100% rename from docs/Models/Operations/GetLibraryErrors.md rename to docs/Models/Errors/GetLibraryErrors.md diff --git a/docs/Models/Operations/GetLibraryHubsErrors.md b/docs/Models/Errors/GetLibraryHubsErrors.md similarity index 100% rename from docs/Models/Operations/GetLibraryHubsErrors.md rename to docs/Models/Errors/GetLibraryHubsErrors.md diff --git a/docs/Models/Errors/GetLibraryHubsResponseBody.md b/docs/Models/Errors/GetLibraryHubsResponseBody.md new file mode 100644 index 0000000..5497c82 --- /dev/null +++ b/docs/Models/Errors/GetLibraryHubsResponseBody.md @@ -0,0 +1,11 @@ +# GetLibraryHubsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\GetLibraryHubsErrors](../../Models/Errors/GetLibraryHubsErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetLibraryItemsErrors.md b/docs/Models/Errors/GetLibraryItemsErrors.md similarity index 100% rename from docs/Models/Operations/GetLibraryItemsErrors.md rename to docs/Models/Errors/GetLibraryItemsErrors.md diff --git a/docs/Models/Errors/GetLibraryItemsResponseBody.md b/docs/Models/Errors/GetLibraryItemsResponseBody.md new file mode 100644 index 0000000..52051d9 --- /dev/null +++ b/docs/Models/Errors/GetLibraryItemsResponseBody.md @@ -0,0 +1,11 @@ +# GetLibraryItemsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\GetLibraryItemsErrors](../../Models/Errors/GetLibraryItemsErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Errors/GetLibraryResponseBody.md b/docs/Models/Errors/GetLibraryResponseBody.md new file mode 100644 index 0000000..5e08741 --- /dev/null +++ b/docs/Models/Errors/GetLibraryResponseBody.md @@ -0,0 +1,11 @@ +# GetLibraryResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\GetLibraryErrors](../../Models/Errors/GetLibraryErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetMetadataChildrenErrors.md b/docs/Models/Errors/GetMetadataChildrenErrors.md similarity index 100% rename from docs/Models/Operations/GetMetadataChildrenErrors.md rename to docs/Models/Errors/GetMetadataChildrenErrors.md diff --git a/docs/Models/Errors/GetMetadataChildrenResponseBody.md b/docs/Models/Errors/GetMetadataChildrenResponseBody.md new file mode 100644 index 0000000..5b242e9 --- /dev/null +++ b/docs/Models/Errors/GetMetadataChildrenResponseBody.md @@ -0,0 +1,11 @@ +# GetMetadataChildrenResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\GetMetadataChildrenErrors](../../Models/Errors/GetMetadataChildrenErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetMetadataErrors.md b/docs/Models/Errors/GetMetadataErrors.md similarity index 100% rename from docs/Models/Operations/GetMetadataErrors.md rename to docs/Models/Errors/GetMetadataErrors.md diff --git a/docs/Models/Errors/GetMetadataResponseBody.md b/docs/Models/Errors/GetMetadataResponseBody.md new file mode 100644 index 0000000..dcd2dd6 --- /dev/null +++ b/docs/Models/Errors/GetMetadataResponseBody.md @@ -0,0 +1,11 @@ +# GetMetadataResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\GetMetadataErrors](../../Models/Errors/GetMetadataErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetMyPlexAccountErrors.md b/docs/Models/Errors/GetMyPlexAccountErrors.md similarity index 100% rename from docs/Models/Operations/GetMyPlexAccountErrors.md rename to docs/Models/Errors/GetMyPlexAccountErrors.md diff --git a/docs/Models/Errors/GetMyPlexAccountResponseBody.md b/docs/Models/Errors/GetMyPlexAccountResponseBody.md new file mode 100644 index 0000000..fab5aff --- /dev/null +++ b/docs/Models/Errors/GetMyPlexAccountResponseBody.md @@ -0,0 +1,11 @@ +# GetMyPlexAccountResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\GetMyPlexAccountErrors](../../Models/Errors/GetMyPlexAccountErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetOnDeckErrors.md b/docs/Models/Errors/GetOnDeckErrors.md similarity index 100% rename from docs/Models/Operations/GetOnDeckErrors.md rename to docs/Models/Errors/GetOnDeckErrors.md diff --git a/docs/Models/Errors/GetOnDeckResponseBody.md b/docs/Models/Errors/GetOnDeckResponseBody.md new file mode 100644 index 0000000..455b700 --- /dev/null +++ b/docs/Models/Errors/GetOnDeckResponseBody.md @@ -0,0 +1,11 @@ +# GetOnDeckResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\GetOnDeckErrors](../../Models/Errors/GetOnDeckErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetPinErrors.md b/docs/Models/Errors/GetPinErrors.md similarity index 100% rename from docs/Models/Operations/GetPinErrors.md rename to docs/Models/Errors/GetPinErrors.md diff --git a/docs/Models/Errors/GetPinResponseBody.md b/docs/Models/Errors/GetPinResponseBody.md new file mode 100644 index 0000000..81ae150 --- /dev/null +++ b/docs/Models/Errors/GetPinResponseBody.md @@ -0,0 +1,11 @@ +# GetPinResponseBody + +X-Plex-Client-Identifier is missing + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\GetPinErrors](../../Models/Errors/GetPinErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetPlaylistContentsErrors.md b/docs/Models/Errors/GetPlaylistContentsErrors.md similarity index 100% rename from docs/Models/Operations/GetPlaylistContentsErrors.md rename to docs/Models/Errors/GetPlaylistContentsErrors.md diff --git a/docs/Models/Errors/GetPlaylistContentsResponseBody.md b/docs/Models/Errors/GetPlaylistContentsResponseBody.md new file mode 100644 index 0000000..9474e73 --- /dev/null +++ b/docs/Models/Errors/GetPlaylistContentsResponseBody.md @@ -0,0 +1,11 @@ +# GetPlaylistContentsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\GetPlaylistContentsErrors](../../Models/Errors/GetPlaylistContentsErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetPlaylistErrors.md b/docs/Models/Errors/GetPlaylistErrors.md similarity index 100% rename from docs/Models/Operations/GetPlaylistErrors.md rename to docs/Models/Errors/GetPlaylistErrors.md diff --git a/docs/Models/Errors/GetPlaylistResponseBody.md b/docs/Models/Errors/GetPlaylistResponseBody.md new file mode 100644 index 0000000..3d2da3c --- /dev/null +++ b/docs/Models/Errors/GetPlaylistResponseBody.md @@ -0,0 +1,11 @@ +# GetPlaylistResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\GetPlaylistErrors](../../Models/Errors/GetPlaylistErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetPlaylistsErrors.md b/docs/Models/Errors/GetPlaylistsErrors.md similarity index 100% rename from docs/Models/Operations/GetPlaylistsErrors.md rename to docs/Models/Errors/GetPlaylistsErrors.md diff --git a/docs/Models/Errors/GetPlaylistsResponseBody.md b/docs/Models/Errors/GetPlaylistsResponseBody.md new file mode 100644 index 0000000..db7d513 --- /dev/null +++ b/docs/Models/Errors/GetPlaylistsResponseBody.md @@ -0,0 +1,11 @@ +# GetPlaylistsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\GetPlaylistsErrors](../../Models/Errors/GetPlaylistsErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetRecentlyAddedErrors.md b/docs/Models/Errors/GetRecentlyAddedErrors.md similarity index 100% rename from docs/Models/Operations/GetRecentlyAddedErrors.md rename to docs/Models/Errors/GetRecentlyAddedErrors.md diff --git a/docs/Models/Errors/GetRecentlyAddedResponseBody.md b/docs/Models/Errors/GetRecentlyAddedResponseBody.md new file mode 100644 index 0000000..ad8af69 --- /dev/null +++ b/docs/Models/Errors/GetRecentlyAddedResponseBody.md @@ -0,0 +1,11 @@ +# GetRecentlyAddedResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\GetRecentlyAddedErrors](../../Models/Errors/GetRecentlyAddedErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetResizedPhotoErrors.md b/docs/Models/Errors/GetResizedPhotoErrors.md similarity index 100% rename from docs/Models/Operations/GetResizedPhotoErrors.md rename to docs/Models/Errors/GetResizedPhotoErrors.md diff --git a/docs/Models/Errors/GetResizedPhotoResponseBody.md b/docs/Models/Errors/GetResizedPhotoResponseBody.md new file mode 100644 index 0000000..213f4f7 --- /dev/null +++ b/docs/Models/Errors/GetResizedPhotoResponseBody.md @@ -0,0 +1,11 @@ +# GetResizedPhotoResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\GetResizedPhotoErrors](../../Models/Errors/GetResizedPhotoErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetResourcesStatisticsErrors.md b/docs/Models/Errors/GetResourcesStatisticsErrors.md similarity index 100% rename from docs/Models/Operations/GetResourcesStatisticsErrors.md rename to docs/Models/Errors/GetResourcesStatisticsErrors.md diff --git a/docs/Models/Errors/GetResourcesStatisticsResponseBody.md b/docs/Models/Errors/GetResourcesStatisticsResponseBody.md new file mode 100644 index 0000000..167e198 --- /dev/null +++ b/docs/Models/Errors/GetResourcesStatisticsResponseBody.md @@ -0,0 +1,11 @@ +# GetResourcesStatisticsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\GetResourcesStatisticsErrors](../../Models/Errors/GetResourcesStatisticsErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetSearchResultsErrors.md b/docs/Models/Errors/GetSearchResultsErrors.md similarity index 100% rename from docs/Models/Operations/GetSearchResultsErrors.md rename to docs/Models/Errors/GetSearchResultsErrors.md diff --git a/docs/Models/Errors/GetSearchResultsResponseBody.md b/docs/Models/Errors/GetSearchResultsResponseBody.md new file mode 100644 index 0000000..f3e5bb7 --- /dev/null +++ b/docs/Models/Errors/GetSearchResultsResponseBody.md @@ -0,0 +1,11 @@ +# GetSearchResultsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\GetSearchResultsErrors](../../Models/Errors/GetSearchResultsErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetServerActivitiesErrors.md b/docs/Models/Errors/GetServerActivitiesErrors.md similarity index 100% rename from docs/Models/Operations/GetServerActivitiesErrors.md rename to docs/Models/Errors/GetServerActivitiesErrors.md diff --git a/docs/Models/Errors/GetServerActivitiesResponseBody.md b/docs/Models/Errors/GetServerActivitiesResponseBody.md new file mode 100644 index 0000000..9e70d5a --- /dev/null +++ b/docs/Models/Errors/GetServerActivitiesResponseBody.md @@ -0,0 +1,11 @@ +# GetServerActivitiesResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\GetServerActivitiesErrors](../../Models/Errors/GetServerActivitiesErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Errors/GetServerCapabilitiesResponseBody.md b/docs/Models/Errors/GetServerCapabilitiesResponseBody.md new file mode 100644 index 0000000..920c9d4 --- /dev/null +++ b/docs/Models/Errors/GetServerCapabilitiesResponseBody.md @@ -0,0 +1,11 @@ +# GetServerCapabilitiesResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\Errors](../../Models/Errors/Errors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetServerIdentityErrors.md b/docs/Models/Errors/GetServerIdentityErrors.md similarity index 100% rename from docs/Models/Operations/GetServerIdentityErrors.md rename to docs/Models/Errors/GetServerIdentityErrors.md diff --git a/docs/Models/Errors/GetServerIdentityResponseBody.md b/docs/Models/Errors/GetServerIdentityResponseBody.md new file mode 100644 index 0000000..a05df07 --- /dev/null +++ b/docs/Models/Errors/GetServerIdentityResponseBody.md @@ -0,0 +1,11 @@ +# GetServerIdentityResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\GetServerIdentityErrors](../../Models/Errors/GetServerIdentityErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetServerListErrors.md b/docs/Models/Errors/GetServerListErrors.md similarity index 100% rename from docs/Models/Operations/GetServerListErrors.md rename to docs/Models/Errors/GetServerListErrors.md diff --git a/docs/Models/Errors/GetServerListResponseBody.md b/docs/Models/Errors/GetServerListResponseBody.md new file mode 100644 index 0000000..42ad152 --- /dev/null +++ b/docs/Models/Errors/GetServerListResponseBody.md @@ -0,0 +1,11 @@ +# GetServerListResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\GetServerListErrors](../../Models/Errors/GetServerListErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetServerPreferencesErrors.md b/docs/Models/Errors/GetServerPreferencesErrors.md similarity index 100% rename from docs/Models/Operations/GetServerPreferencesErrors.md rename to docs/Models/Errors/GetServerPreferencesErrors.md diff --git a/docs/Models/Errors/GetServerPreferencesResponseBody.md b/docs/Models/Errors/GetServerPreferencesResponseBody.md new file mode 100644 index 0000000..469c31d --- /dev/null +++ b/docs/Models/Errors/GetServerPreferencesResponseBody.md @@ -0,0 +1,11 @@ +# GetServerPreferencesResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\GetServerPreferencesErrors](../../Models/Errors/GetServerPreferencesErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetSessionHistoryErrors.md b/docs/Models/Errors/GetSessionHistoryErrors.md similarity index 100% rename from docs/Models/Operations/GetSessionHistoryErrors.md rename to docs/Models/Errors/GetSessionHistoryErrors.md diff --git a/docs/Models/Errors/GetSessionHistoryResponseBody.md b/docs/Models/Errors/GetSessionHistoryResponseBody.md new file mode 100644 index 0000000..837ada9 --- /dev/null +++ b/docs/Models/Errors/GetSessionHistoryResponseBody.md @@ -0,0 +1,11 @@ +# GetSessionHistoryResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\GetSessionHistoryErrors](../../Models/Errors/GetSessionHistoryErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetSessionsErrors.md b/docs/Models/Errors/GetSessionsErrors.md similarity index 100% rename from docs/Models/Operations/GetSessionsErrors.md rename to docs/Models/Errors/GetSessionsErrors.md diff --git a/docs/Models/Errors/GetSessionsResponseBody.md b/docs/Models/Errors/GetSessionsResponseBody.md new file mode 100644 index 0000000..20e18f1 --- /dev/null +++ b/docs/Models/Errors/GetSessionsResponseBody.md @@ -0,0 +1,11 @@ +# GetSessionsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\GetSessionsErrors](../../Models/Errors/GetSessionsErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetSourceConnectionInformationErrors.md b/docs/Models/Errors/GetSourceConnectionInformationErrors.md similarity index 100% rename from docs/Models/Operations/GetSourceConnectionInformationErrors.md rename to docs/Models/Errors/GetSourceConnectionInformationErrors.md diff --git a/docs/Models/Errors/GetSourceConnectionInformationResponseBody.md b/docs/Models/Errors/GetSourceConnectionInformationResponseBody.md new file mode 100644 index 0000000..b0cf77a --- /dev/null +++ b/docs/Models/Errors/GetSourceConnectionInformationResponseBody.md @@ -0,0 +1,11 @@ +# GetSourceConnectionInformationResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | +| `errors` | array<[Errors\GetSourceConnectionInformationErrors](../../Models/Errors/GetSourceConnectionInformationErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetStatisticsErrors.md b/docs/Models/Errors/GetStatisticsErrors.md similarity index 100% rename from docs/Models/Operations/GetStatisticsErrors.md rename to docs/Models/Errors/GetStatisticsErrors.md diff --git a/docs/Models/Errors/GetStatisticsResponseBody.md b/docs/Models/Errors/GetStatisticsResponseBody.md new file mode 100644 index 0000000..b0c0218 --- /dev/null +++ b/docs/Models/Errors/GetStatisticsResponseBody.md @@ -0,0 +1,11 @@ +# GetStatisticsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\GetStatisticsErrors](../../Models/Errors/GetStatisticsErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetTimelineErrors.md b/docs/Models/Errors/GetTimelineErrors.md similarity index 100% rename from docs/Models/Operations/GetTimelineErrors.md rename to docs/Models/Errors/GetTimelineErrors.md diff --git a/docs/Models/Errors/GetTimelineResponseBody.md b/docs/Models/Errors/GetTimelineResponseBody.md new file mode 100644 index 0000000..8263758 --- /dev/null +++ b/docs/Models/Errors/GetTimelineResponseBody.md @@ -0,0 +1,11 @@ +# GetTimelineResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\GetTimelineErrors](../../Models/Errors/GetTimelineErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetTokenErrors.md b/docs/Models/Errors/GetTokenErrors.md similarity index 100% rename from docs/Models/Operations/GetTokenErrors.md rename to docs/Models/Errors/GetTokenErrors.md diff --git a/docs/Models/Errors/GetTokenResponseBody.md b/docs/Models/Errors/GetTokenResponseBody.md new file mode 100644 index 0000000..29bbed8 --- /dev/null +++ b/docs/Models/Errors/GetTokenResponseBody.md @@ -0,0 +1,11 @@ +# GetTokenResponseBody + +X-Plex-Client-Identifier is missing + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\GetTokenErrors](../../Models/Errors/GetTokenErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetTranscodeSessionsErrors.md b/docs/Models/Errors/GetTranscodeSessionsErrors.md similarity index 100% rename from docs/Models/Operations/GetTranscodeSessionsErrors.md rename to docs/Models/Errors/GetTranscodeSessionsErrors.md diff --git a/docs/Models/Errors/GetTranscodeSessionsResponseBody.md b/docs/Models/Errors/GetTranscodeSessionsResponseBody.md new file mode 100644 index 0000000..b64e181 --- /dev/null +++ b/docs/Models/Errors/GetTranscodeSessionsResponseBody.md @@ -0,0 +1,11 @@ +# GetTranscodeSessionsResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\GetTranscodeSessionsErrors](../../Models/Errors/GetTranscodeSessionsErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetTransientTokenErrors.md b/docs/Models/Errors/GetTransientTokenErrors.md similarity index 100% rename from docs/Models/Operations/GetTransientTokenErrors.md rename to docs/Models/Errors/GetTransientTokenErrors.md diff --git a/docs/Models/Errors/GetTransientTokenResponseBody.md b/docs/Models/Errors/GetTransientTokenResponseBody.md new file mode 100644 index 0000000..1d68d55 --- /dev/null +++ b/docs/Models/Errors/GetTransientTokenResponseBody.md @@ -0,0 +1,11 @@ +# GetTransientTokenResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\GetTransientTokenErrors](../../Models/Errors/GetTransientTokenErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetUpdateStatusErrors.md b/docs/Models/Errors/GetUpdateStatusErrors.md similarity index 100% rename from docs/Models/Operations/GetUpdateStatusErrors.md rename to docs/Models/Errors/GetUpdateStatusErrors.md diff --git a/docs/Models/Errors/GetUpdateStatusResponseBody.md b/docs/Models/Errors/GetUpdateStatusResponseBody.md new file mode 100644 index 0000000..4955dd0 --- /dev/null +++ b/docs/Models/Errors/GetUpdateStatusResponseBody.md @@ -0,0 +1,11 @@ +# GetUpdateStatusResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\GetUpdateStatusErrors](../../Models/Errors/GetUpdateStatusErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetWatchlistErrors.md b/docs/Models/Errors/GetWatchlistErrors.md similarity index 100% rename from docs/Models/Operations/GetWatchlistErrors.md rename to docs/Models/Errors/GetWatchlistErrors.md diff --git a/docs/Models/Errors/GetWatchlistResponseBody.md b/docs/Models/Errors/GetWatchlistResponseBody.md new file mode 100644 index 0000000..5ce7b46 --- /dev/null +++ b/docs/Models/Errors/GetWatchlistResponseBody.md @@ -0,0 +1,11 @@ +# GetWatchlistResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\GetWatchlistErrors](../../Models/Errors/GetWatchlistErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/LogLineErrors.md b/docs/Models/Errors/LogLineErrors.md similarity index 100% rename from docs/Models/Operations/LogLineErrors.md rename to docs/Models/Errors/LogLineErrors.md diff --git a/docs/Models/Operations/GetDevicesServerResponseBody.md b/docs/Models/Errors/LogLineResponseBody.md similarity index 62% rename from docs/Models/Operations/GetDevicesServerResponseBody.md rename to docs/Models/Errors/LogLineResponseBody.md index ce359c1..780be7f 100644 --- a/docs/Models/Operations/GetDevicesServerResponseBody.md +++ b/docs/Models/Errors/LogLineResponseBody.md @@ -1,4 +1,4 @@ -# GetDevicesServerResponseBody +# LogLineResponseBody Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -7,4 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetDevicesErrors](../../Models/Operations/GetDevicesErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file +| `errors` | array<[Errors\LogLineErrors](../../Models/Errors/LogLineErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/LogMultiLineErrors.md b/docs/Models/Errors/LogMultiLineErrors.md similarity index 100% rename from docs/Models/Operations/LogMultiLineErrors.md rename to docs/Models/Errors/LogMultiLineErrors.md diff --git a/docs/Models/Errors/LogMultiLineResponseBody.md b/docs/Models/Errors/LogMultiLineResponseBody.md new file mode 100644 index 0000000..737ff07 --- /dev/null +++ b/docs/Models/Errors/LogMultiLineResponseBody.md @@ -0,0 +1,11 @@ +# LogMultiLineResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\LogMultiLineErrors](../../Models/Errors/LogMultiLineErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/MarkPlayedErrors.md b/docs/Models/Errors/MarkPlayedErrors.md similarity index 100% rename from docs/Models/Operations/MarkPlayedErrors.md rename to docs/Models/Errors/MarkPlayedErrors.md diff --git a/docs/Models/Operations/MarkPlayedResponseBody.md b/docs/Models/Errors/MarkPlayedResponseBody.md similarity index 63% rename from docs/Models/Operations/MarkPlayedResponseBody.md rename to docs/Models/Errors/MarkPlayedResponseBody.md index 5618f3e..8483a87 100644 --- a/docs/Models/Operations/MarkPlayedResponseBody.md +++ b/docs/Models/Errors/MarkPlayedResponseBody.md @@ -7,4 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\MarkPlayedErrors](../../Models/Operations/MarkPlayedErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file +| `errors` | array<[Errors\MarkPlayedErrors](../../Models/Errors/MarkPlayedErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/MarkUnplayedErrors.md b/docs/Models/Errors/MarkUnplayedErrors.md similarity index 100% rename from docs/Models/Operations/MarkUnplayedErrors.md rename to docs/Models/Errors/MarkUnplayedErrors.md diff --git a/docs/Models/Errors/MarkUnplayedResponseBody.md b/docs/Models/Errors/MarkUnplayedResponseBody.md new file mode 100644 index 0000000..2863134 --- /dev/null +++ b/docs/Models/Errors/MarkUnplayedResponseBody.md @@ -0,0 +1,11 @@ +# MarkUnplayedResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\MarkUnplayedErrors](../../Models/Errors/MarkUnplayedErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/PerformSearchErrors.md b/docs/Models/Errors/PerformSearchErrors.md similarity index 100% rename from docs/Models/Operations/PerformSearchErrors.md rename to docs/Models/Errors/PerformSearchErrors.md diff --git a/docs/Models/Errors/PerformSearchResponseBody.md b/docs/Models/Errors/PerformSearchResponseBody.md new file mode 100644 index 0000000..48f623a --- /dev/null +++ b/docs/Models/Errors/PerformSearchResponseBody.md @@ -0,0 +1,11 @@ +# PerformSearchResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\PerformSearchErrors](../../Models/Errors/PerformSearchErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/PerformVoiceSearchErrors.md b/docs/Models/Errors/PerformVoiceSearchErrors.md similarity index 100% rename from docs/Models/Operations/PerformVoiceSearchErrors.md rename to docs/Models/Errors/PerformVoiceSearchErrors.md diff --git a/docs/Models/Errors/PerformVoiceSearchResponseBody.md b/docs/Models/Errors/PerformVoiceSearchResponseBody.md new file mode 100644 index 0000000..da04414 --- /dev/null +++ b/docs/Models/Errors/PerformVoiceSearchResponseBody.md @@ -0,0 +1,11 @@ +# PerformVoiceSearchResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\PerformVoiceSearchErrors](../../Models/Errors/PerformVoiceSearchErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/RefreshLibraryErrors.md b/docs/Models/Errors/RefreshLibraryErrors.md similarity index 100% rename from docs/Models/Operations/RefreshLibraryErrors.md rename to docs/Models/Errors/RefreshLibraryErrors.md diff --git a/docs/Models/Errors/RefreshLibraryResponseBody.md b/docs/Models/Errors/RefreshLibraryResponseBody.md new file mode 100644 index 0000000..c8edec8 --- /dev/null +++ b/docs/Models/Errors/RefreshLibraryResponseBody.md @@ -0,0 +1,11 @@ +# RefreshLibraryResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\RefreshLibraryErrors](../../Models/Errors/RefreshLibraryErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/SearchLibraryErrors.md b/docs/Models/Errors/SearchLibraryErrors.md similarity index 100% rename from docs/Models/Operations/SearchLibraryErrors.md rename to docs/Models/Errors/SearchLibraryErrors.md diff --git a/docs/Models/Errors/SearchLibraryResponseBody.md b/docs/Models/Errors/SearchLibraryResponseBody.md new file mode 100644 index 0000000..10ac738 --- /dev/null +++ b/docs/Models/Errors/SearchLibraryResponseBody.md @@ -0,0 +1,11 @@ +# SearchLibraryResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\SearchLibraryErrors](../../Models/Errors/SearchLibraryErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/StartAllTasksErrors.md b/docs/Models/Errors/StartAllTasksErrors.md similarity index 100% rename from docs/Models/Operations/StartAllTasksErrors.md rename to docs/Models/Errors/StartAllTasksErrors.md diff --git a/docs/Models/Errors/StartAllTasksResponseBody.md b/docs/Models/Errors/StartAllTasksResponseBody.md new file mode 100644 index 0000000..9ed79a9 --- /dev/null +++ b/docs/Models/Errors/StartAllTasksResponseBody.md @@ -0,0 +1,11 @@ +# StartAllTasksResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\StartAllTasksErrors](../../Models/Errors/StartAllTasksErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/StartTaskErrors.md b/docs/Models/Errors/StartTaskErrors.md similarity index 100% rename from docs/Models/Operations/StartTaskErrors.md rename to docs/Models/Errors/StartTaskErrors.md diff --git a/docs/Models/Errors/StartTaskResponseBody.md b/docs/Models/Errors/StartTaskResponseBody.md new file mode 100644 index 0000000..0dda63f --- /dev/null +++ b/docs/Models/Errors/StartTaskResponseBody.md @@ -0,0 +1,11 @@ +# StartTaskResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\StartTaskErrors](../../Models/Errors/StartTaskErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/StartUniversalTranscodeErrors.md b/docs/Models/Errors/StartUniversalTranscodeErrors.md similarity index 100% rename from docs/Models/Operations/StartUniversalTranscodeErrors.md rename to docs/Models/Errors/StartUniversalTranscodeErrors.md diff --git a/docs/Models/Errors/StartUniversalTranscodeResponseBody.md b/docs/Models/Errors/StartUniversalTranscodeResponseBody.md new file mode 100644 index 0000000..95d89c6 --- /dev/null +++ b/docs/Models/Errors/StartUniversalTranscodeResponseBody.md @@ -0,0 +1,11 @@ +# StartUniversalTranscodeResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\StartUniversalTranscodeErrors](../../Models/Errors/StartUniversalTranscodeErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/StopAllTasksErrors.md b/docs/Models/Errors/StopAllTasksErrors.md similarity index 100% rename from docs/Models/Operations/StopAllTasksErrors.md rename to docs/Models/Errors/StopAllTasksErrors.md diff --git a/docs/Models/Errors/StopAllTasksResponseBody.md b/docs/Models/Errors/StopAllTasksResponseBody.md new file mode 100644 index 0000000..00316fb --- /dev/null +++ b/docs/Models/Errors/StopAllTasksResponseBody.md @@ -0,0 +1,11 @@ +# StopAllTasksResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\StopAllTasksErrors](../../Models/Errors/StopAllTasksErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/StopTaskErrors.md b/docs/Models/Errors/StopTaskErrors.md similarity index 100% rename from docs/Models/Operations/StopTaskErrors.md rename to docs/Models/Errors/StopTaskErrors.md diff --git a/docs/Models/Operations/GetLibraryLibraryResponseBody.md b/docs/Models/Errors/StopTaskResponseBody.md similarity index 62% rename from docs/Models/Operations/GetLibraryLibraryResponseBody.md rename to docs/Models/Errors/StopTaskResponseBody.md index d47e37a..6fe88df 100644 --- a/docs/Models/Operations/GetLibraryLibraryResponseBody.md +++ b/docs/Models/Errors/StopTaskResponseBody.md @@ -1,4 +1,4 @@ -# GetLibraryLibraryResponseBody +# StopTaskResponseBody Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -7,4 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetLibraryErrors](../../Models/Operations/GetLibraryErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file +| `errors` | array<[Errors\StopTaskErrors](../../Models/Errors/StopTaskErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/StopTranscodeSessionErrors.md b/docs/Models/Errors/StopTranscodeSessionErrors.md similarity index 100% rename from docs/Models/Operations/StopTranscodeSessionErrors.md rename to docs/Models/Errors/StopTranscodeSessionErrors.md diff --git a/docs/Models/Errors/StopTranscodeSessionResponseBody.md b/docs/Models/Errors/StopTranscodeSessionResponseBody.md new file mode 100644 index 0000000..ebe9ad0 --- /dev/null +++ b/docs/Models/Errors/StopTranscodeSessionResponseBody.md @@ -0,0 +1,11 @@ +# StopTranscodeSessionResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\StopTranscodeSessionErrors](../../Models/Errors/StopTranscodeSessionErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/UpdatePlayProgressErrors.md b/docs/Models/Errors/UpdatePlayProgressErrors.md similarity index 100% rename from docs/Models/Operations/UpdatePlayProgressErrors.md rename to docs/Models/Errors/UpdatePlayProgressErrors.md diff --git a/docs/Models/Errors/UpdatePlayProgressResponseBody.md b/docs/Models/Errors/UpdatePlayProgressResponseBody.md new file mode 100644 index 0000000..ef6268f --- /dev/null +++ b/docs/Models/Errors/UpdatePlayProgressResponseBody.md @@ -0,0 +1,11 @@ +# UpdatePlayProgressResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\UpdatePlayProgressErrors](../../Models/Errors/UpdatePlayProgressErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/UpdatePlaylistErrors.md b/docs/Models/Errors/UpdatePlaylistErrors.md similarity index 100% rename from docs/Models/Operations/UpdatePlaylistErrors.md rename to docs/Models/Errors/UpdatePlaylistErrors.md diff --git a/docs/Models/Errors/UpdatePlaylistResponseBody.md b/docs/Models/Errors/UpdatePlaylistResponseBody.md new file mode 100644 index 0000000..33ef372 --- /dev/null +++ b/docs/Models/Errors/UpdatePlaylistResponseBody.md @@ -0,0 +1,11 @@ +# UpdatePlaylistResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\UpdatePlaylistErrors](../../Models/Errors/UpdatePlaylistErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/UploadPlaylistErrors.md b/docs/Models/Errors/UploadPlaylistErrors.md similarity index 100% rename from docs/Models/Operations/UploadPlaylistErrors.md rename to docs/Models/Errors/UploadPlaylistErrors.md diff --git a/docs/Models/Errors/UploadPlaylistResponseBody.md b/docs/Models/Errors/UploadPlaylistResponseBody.md new file mode 100644 index 0000000..81e9213 --- /dev/null +++ b/docs/Models/Errors/UploadPlaylistResponseBody.md @@ -0,0 +1,11 @@ +# UploadPlaylistResponseBody + +Unauthorized - Returned if the X-Plex-Token is missing from the header or query. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `errors` | array<[Errors\UploadPlaylistErrors](../../Models/Errors/UploadPlaylistErrors.md)> | :heavy_minus_sign: | N/A | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/Activity.md b/docs/Models/Operations/Activity.md index 2fd2459..af21d98 100644 --- a/docs/Models/Operations/Activity.md +++ b/docs/Models/Operations/Activity.md @@ -3,13 +3,13 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `uuid` | *?string* | :heavy_minus_sign: | N/A | -| `type` | *?string* | :heavy_minus_sign: | N/A | -| `cancellable` | *?bool* | :heavy_minus_sign: | N/A | -| `userID` | *?float* | :heavy_minus_sign: | N/A | -| `title` | *?string* | :heavy_minus_sign: | N/A | -| `subtitle` | *?string* | :heavy_minus_sign: | N/A | -| `progress` | *?float* | :heavy_minus_sign: | N/A | -| `context` | [?\LukeHagar\Plex_API\Models\Operations\Context](../../Models/Operations/Context.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `uuid` | *?string* | :heavy_minus_sign: | N/A | +| `type` | *?string* | :heavy_minus_sign: | N/A | +| `cancellable` | *?bool* | :heavy_minus_sign: | N/A | +| `userID` | *?float* | :heavy_minus_sign: | N/A | +| `title` | *?string* | :heavy_minus_sign: | N/A | +| `subtitle` | *?string* | :heavy_minus_sign: | N/A | +| `progress` | *?float* | :heavy_minus_sign: | N/A | +| `context` | [?Operations\Context](../../Models/Operations/Context.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/AddPlaylistContentsMediaContainer.md b/docs/Models/Operations/AddPlaylistContentsMediaContainer.md index f51fac6..d758510 100644 --- a/docs/Models/Operations/AddPlaylistContentsMediaContainer.md +++ b/docs/Models/Operations/AddPlaylistContentsMediaContainer.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `size` | *?int* | :heavy_minus_sign: | N/A | 1 | -| `leafCountAdded` | *?int* | :heavy_minus_sign: | N/A | 1 | -| `leafCountRequested` | *?int* | :heavy_minus_sign: | N/A | 1 | -| `metadata` | array<[\LukeHagar\Plex_API\Models\Operations\AddPlaylistContentsMetadata](../../Models/Operations/AddPlaylistContentsMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `size` | *?int* | :heavy_minus_sign: | N/A | 1 | +| `leafCountAdded` | *?int* | :heavy_minus_sign: | N/A | 1 | +| `leafCountRequested` | *?int* | :heavy_minus_sign: | N/A | 1 | +| `metadata` | array<[Operations\AddPlaylistContentsMetadata](../../Models/Operations/AddPlaylistContentsMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/AddPlaylistContentsPlaylistsResponseBody.md b/docs/Models/Operations/AddPlaylistContentsPlaylistsResponseBody.md deleted file mode 100644 index cf0619a..0000000 --- a/docs/Models/Operations/AddPlaylistContentsPlaylistsResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# AddPlaylistContentsPlaylistsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\AddPlaylistContentsErrors](../../Models/Operations/AddPlaylistContentsErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/AddPlaylistContentsResponse.md b/docs/Models/Operations/AddPlaylistContentsResponse.md index af22417..afff745 100644 --- a/docs/Models/Operations/AddPlaylistContentsResponse.md +++ b/docs/Models/Operations/AddPlaylistContentsResponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\AddPlaylistContentsResponseBody](../../Models/Operations/AddPlaylistContentsResponseBody.md) | :heavy_minus_sign: | Playlist Updated | -| `fourHundredAndOneApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\AddPlaylistContentsPlaylistsResponseBody](../../Models/Operations/AddPlaylistContentsPlaylistsResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\AddPlaylistContentsResponseBody](../../Models/Operations/AddPlaylistContentsResponseBody.md) | :heavy_minus_sign: | Playlist Updated | \ No newline at end of file diff --git a/docs/Models/Operations/AddPlaylistContentsResponseBody.md b/docs/Models/Operations/AddPlaylistContentsResponseBody.md index d29301e..7b39f78 100644 --- a/docs/Models/Operations/AddPlaylistContentsResponseBody.md +++ b/docs/Models/Operations/AddPlaylistContentsResponseBody.md @@ -5,6 +5,6 @@ Playlist Updated ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [?\LukeHagar\Plex_API\Models\Operations\AddPlaylistContentsMediaContainer](../../Models/Operations/AddPlaylistContentsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [?Operations\AddPlaylistContentsMediaContainer](../../Models/Operations/AddPlaylistContentsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/ApplyUpdatesRequest.md b/docs/Models/Operations/ApplyUpdatesRequest.md index e7bd18b..68aafaa 100644 --- a/docs/Models/Operations/ApplyUpdatesRequest.md +++ b/docs/Models/Operations/ApplyUpdatesRequest.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `tonight` | [?\LukeHagar\Plex_API\Models\Operations\Tonight](../../Models/Operations/Tonight.md) | :heavy_minus_sign: | Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install | 1 | -| `skip` | [?\LukeHagar\Plex_API\Models\Operations\Skip](../../Models/Operations/Skip.md) | :heavy_minus_sign: | Indicate that the latest version should be marked as skipped. The entry for this version will have the `state` set to `skipped`. | 1 | \ No newline at end of file +| `tonight` | [?Operations\Tonight](../../Models/Operations/Tonight.md) | :heavy_minus_sign: | Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install | 1 | +| `skip` | [?Operations\Skip](../../Models/Operations/Skip.md) | :heavy_minus_sign: | Indicate that the latest version should be marked as skipped. The entry for this version will have the `state` set to `skipped`. | 1 | \ No newline at end of file diff --git a/docs/Models/Operations/ApplyUpdatesResponse.md b/docs/Models/Operations/ApplyUpdatesResponse.md index cad2205..f863ab2 100644 --- a/docs/Models/Operations/ApplyUpdatesResponse.md +++ b/docs/Models/Operations/ApplyUpdatesResponse.md @@ -3,9 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [?\LukeHagar\Plex_API\Models\Operations\ApplyUpdatesResponseBody](../../Models/Operations/ApplyUpdatesResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/ApplyUpdatesResponseBody.md b/docs/Models/Operations/ApplyUpdatesResponseBody.md deleted file mode 100644 index 3380b0d..0000000 --- a/docs/Models/Operations/ApplyUpdatesResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApplyUpdatesResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\ApplyUpdatesErrors](../../Models/Operations/ApplyUpdatesErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/ButlerTasks.md b/docs/Models/Operations/ButlerTasks.md index 1d07099..7a1101a 100644 --- a/docs/Models/Operations/ButlerTasks.md +++ b/docs/Models/Operations/ButlerTasks.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `butlerTask` | array<[\LukeHagar\Plex_API\Models\Operations\ButlerTask](../../Models/Operations/ButlerTask.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `butlerTask` | array<[Operations\ButlerTask](../../Models/Operations/ButlerTask.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/CancelServerActivitiesResponse.md b/docs/Models/Operations/CancelServerActivitiesResponse.md index 14b3102..8bb5c71 100644 --- a/docs/Models/Operations/CancelServerActivitiesResponse.md +++ b/docs/Models/Operations/CancelServerActivitiesResponse.md @@ -3,9 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [?\LukeHagar\Plex_API\Models\Operations\CancelServerActivitiesResponseBody](../../Models/Operations/CancelServerActivitiesResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/CancelServerActivitiesResponseBody.md b/docs/Models/Operations/CancelServerActivitiesResponseBody.md deleted file mode 100644 index 41df54e..0000000 --- a/docs/Models/Operations/CancelServerActivitiesResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# CancelServerActivitiesResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\CancelServerActivitiesErrors](../../Models/Operations/CancelServerActivitiesErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/CheckForUpdatesRequest.md b/docs/Models/Operations/CheckForUpdatesRequest.md index 5dcf6a3..b8c3c96 100644 --- a/docs/Models/Operations/CheckForUpdatesRequest.md +++ b/docs/Models/Operations/CheckForUpdatesRequest.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `download` | [?\LukeHagar\Plex_API\Models\Operations\Download](../../Models/Operations/Download.md) | :heavy_minus_sign: | Indicate that you want to start download any updates found. | 1 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | +| `download` | [?Operations\Download](../../Models/Operations/Download.md) | :heavy_minus_sign: | Indicate that you want to start download any updates found. | 1 | \ No newline at end of file diff --git a/docs/Models/Operations/CheckForUpdatesResponse.md b/docs/Models/Operations/CheckForUpdatesResponse.md index 34c895b..162e73e 100644 --- a/docs/Models/Operations/CheckForUpdatesResponse.md +++ b/docs/Models/Operations/CheckForUpdatesResponse.md @@ -3,9 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [?\LukeHagar\Plex_API\Models\Operations\CheckForUpdatesResponseBody](../../Models/Operations/CheckForUpdatesResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/CheckForUpdatesResponseBody.md b/docs/Models/Operations/CheckForUpdatesResponseBody.md deleted file mode 100644 index fbd90aa..0000000 --- a/docs/Models/Operations/CheckForUpdatesResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# CheckForUpdatesResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\CheckForUpdatesErrors](../../Models/Operations/CheckForUpdatesErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/ClearPlaylistContentsResponse.md b/docs/Models/Operations/ClearPlaylistContentsResponse.md index 9204f33..fec2c80 100644 --- a/docs/Models/Operations/ClearPlaylistContentsResponse.md +++ b/docs/Models/Operations/ClearPlaylistContentsResponse.md @@ -3,9 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [?\LukeHagar\Plex_API\Models\Operations\ClearPlaylistContentsResponseBody](../../Models/Operations/ClearPlaylistContentsResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/ClearPlaylistContentsResponseBody.md b/docs/Models/Operations/ClearPlaylistContentsResponseBody.md deleted file mode 100644 index 4ede52b..0000000 --- a/docs/Models/Operations/ClearPlaylistContentsResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# ClearPlaylistContentsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\ClearPlaylistContentsErrors](../../Models/Operations/ClearPlaylistContentsErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/CreatePlaylistMediaContainer.md b/docs/Models/Operations/CreatePlaylistMediaContainer.md index 94e941d..2cb2768 100644 --- a/docs/Models/Operations/CreatePlaylistMediaContainer.md +++ b/docs/Models/Operations/CreatePlaylistMediaContainer.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `size` | *?int* | :heavy_minus_sign: | N/A | 7 | -| `metadata` | array<[\LukeHagar\Plex_API\Models\Operations\CreatePlaylistMetadata](../../Models/Operations/CreatePlaylistMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `size` | *?int* | :heavy_minus_sign: | N/A | 7 | +| `metadata` | array<[Operations\CreatePlaylistMetadata](../../Models/Operations/CreatePlaylistMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/CreatePlaylistPlaylistsResponseBody.md b/docs/Models/Operations/CreatePlaylistPlaylistsResponseBody.md deleted file mode 100644 index a5f9f96..0000000 --- a/docs/Models/Operations/CreatePlaylistPlaylistsResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# CreatePlaylistPlaylistsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\CreatePlaylistErrors](../../Models/Operations/CreatePlaylistErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/CreatePlaylistRequest.md b/docs/Models/Operations/CreatePlaylistRequest.md index 10875dd..eb36a84 100644 --- a/docs/Models/Operations/CreatePlaylistRequest.md +++ b/docs/Models/Operations/CreatePlaylistRequest.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `title` | *string* | :heavy_check_mark: | name of the playlist | -| `type` | [\LukeHagar\Plex_API\Models\Operations\QueryParamType](../../Models/Operations/QueryParamType.md) | :heavy_check_mark: | type of playlist to create | -| `smart` | [\LukeHagar\Plex_API\Models\Operations\Smart](../../Models/Operations/Smart.md) | :heavy_check_mark: | whether the playlist is smart or not | -| `uri` | *string* | :heavy_check_mark: | the content URI for the playlist | -| `playQueueID` | *?float* | :heavy_minus_sign: | the play queue to copy to a playlist | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `title` | *string* | :heavy_check_mark: | name of the playlist | +| `type` | [Operations\QueryParamType](../../Models/Operations/QueryParamType.md) | :heavy_check_mark: | type of playlist to create | +| `smart` | [Operations\Smart](../../Models/Operations/Smart.md) | :heavy_check_mark: | whether the playlist is smart or not | +| `uri` | *string* | :heavy_check_mark: | the content URI for the playlist | +| `playQueueID` | *?float* | :heavy_minus_sign: | the play queue to copy to a playlist | \ No newline at end of file diff --git a/docs/Models/Operations/CreatePlaylistResponse.md b/docs/Models/Operations/CreatePlaylistResponse.md index 4a25dd4..a416307 100644 --- a/docs/Models/Operations/CreatePlaylistResponse.md +++ b/docs/Models/Operations/CreatePlaylistResponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\CreatePlaylistResponseBody](../../Models/Operations/CreatePlaylistResponseBody.md) | :heavy_minus_sign: | returns all playlists | -| `fourHundredAndOneApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\CreatePlaylistPlaylistsResponseBody](../../Models/Operations/CreatePlaylistPlaylistsResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\CreatePlaylistResponseBody](../../Models/Operations/CreatePlaylistResponseBody.md) | :heavy_minus_sign: | returns all playlists | \ No newline at end of file diff --git a/docs/Models/Operations/CreatePlaylistResponseBody.md b/docs/Models/Operations/CreatePlaylistResponseBody.md index 94acdd5..5e77194 100644 --- a/docs/Models/Operations/CreatePlaylistResponseBody.md +++ b/docs/Models/Operations/CreatePlaylistResponseBody.md @@ -5,6 +5,6 @@ returns all playlists ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `mediaContainer` | [?\LukeHagar\Plex_API\Models\Operations\CreatePlaylistMediaContainer](../../Models/Operations/CreatePlaylistMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [?Operations\CreatePlaylistMediaContainer](../../Models/Operations/CreatePlaylistMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/DeleteLibraryResponse.md b/docs/Models/Operations/DeleteLibraryResponse.md index c5b4bbb..711de26 100644 --- a/docs/Models/Operations/DeleteLibraryResponse.md +++ b/docs/Models/Operations/DeleteLibraryResponse.md @@ -3,9 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [?\LukeHagar\Plex_API\Models\Operations\DeleteLibraryResponseBody](../../Models/Operations/DeleteLibraryResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/DeleteLibraryResponseBody.md b/docs/Models/Operations/DeleteLibraryResponseBody.md deleted file mode 100644 index 1aa3c36..0000000 --- a/docs/Models/Operations/DeleteLibraryResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# DeleteLibraryResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\DeleteLibraryErrors](../../Models/Operations/DeleteLibraryErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/DeletePlaylistResponse.md b/docs/Models/Operations/DeletePlaylistResponse.md index a783e04..1bbb608 100644 --- a/docs/Models/Operations/DeletePlaylistResponse.md +++ b/docs/Models/Operations/DeletePlaylistResponse.md @@ -3,9 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [?\LukeHagar\Plex_API\Models\Operations\DeletePlaylistResponseBody](../../Models/Operations/DeletePlaylistResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/DeletePlaylistResponseBody.md b/docs/Models/Operations/DeletePlaylistResponseBody.md deleted file mode 100644 index af7340b..0000000 --- a/docs/Models/Operations/DeletePlaylistResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# DeletePlaylistResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\DeletePlaylistErrors](../../Models/Operations/DeletePlaylistErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/EnablePaperTrailResponse.md b/docs/Models/Operations/EnablePaperTrailResponse.md index 6522b1d..4484a35 100644 --- a/docs/Models/Operations/EnablePaperTrailResponse.md +++ b/docs/Models/Operations/EnablePaperTrailResponse.md @@ -3,9 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [?\LukeHagar\Plex_API\Models\Operations\EnablePaperTrailResponseBody](../../Models/Operations/EnablePaperTrailResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/EnablePaperTrailResponseBody.md b/docs/Models/Operations/EnablePaperTrailResponseBody.md deleted file mode 100644 index eb989ab..0000000 --- a/docs/Models/Operations/EnablePaperTrailResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# EnablePaperTrailResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\EnablePaperTrailErrors](../../Models/Operations/EnablePaperTrailErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/FieldType.md b/docs/Models/Operations/FieldType.md index 93793f0..e3e9349 100644 --- a/docs/Models/Operations/FieldType.md +++ b/docs/Models/Operations/FieldType.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `type` | *?string* | :heavy_minus_sign: | N/A | resolution | -| `operator` | array<[\LukeHagar\Plex_API\Models\Operations\Operator](../../Models/Operations/Operator.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | +| `type` | *?string* | :heavy_minus_sign: | N/A | resolution | +| `operator` | array<[Operations\Operator](../../Models/Operations/Operator.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetAvailableClientsMediaContainer.md b/docs/Models/Operations/GetAvailableClientsMediaContainer.md index 286989a..a11202d 100644 --- a/docs/Models/Operations/GetAvailableClientsMediaContainer.md +++ b/docs/Models/Operations/GetAvailableClientsMediaContainer.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `size` | *?float* | :heavy_minus_sign: | N/A | 1 | -| `server` | array<[\LukeHagar\Plex_API\Models\Operations\Server](../../Models/Operations/Server.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | +| `size` | *?float* | :heavy_minus_sign: | N/A | 1 | +| `server` | array<[Operations\Server](../../Models/Operations/Server.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetAvailableClientsResponse.md b/docs/Models/Operations/GetAvailableClientsResponse.md index 19348bc..d23becf 100644 --- a/docs/Models/Operations/GetAvailableClientsResponse.md +++ b/docs/Models/Operations/GetAvailableClientsResponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetAvailableClientsResponseBody](../../Models/Operations/GetAvailableClientsResponseBody.md) | :heavy_minus_sign: | Available Clients | -| `fourHundredAndOneApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetAvailableClientsServerResponseBody](../../Models/Operations/GetAvailableClientsServerResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\GetAvailableClientsResponseBody](../../Models/Operations/GetAvailableClientsResponseBody.md) | :heavy_minus_sign: | Available Clients | \ No newline at end of file diff --git a/docs/Models/Operations/GetAvailableClientsResponseBody.md b/docs/Models/Operations/GetAvailableClientsResponseBody.md index c857938..220ac4b 100644 --- a/docs/Models/Operations/GetAvailableClientsResponseBody.md +++ b/docs/Models/Operations/GetAvailableClientsResponseBody.md @@ -5,6 +5,6 @@ Available Clients ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [?\LukeHagar\Plex_API\Models\Operations\GetAvailableClientsMediaContainer](../../Models/Operations/GetAvailableClientsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [?Operations\GetAvailableClientsMediaContainer](../../Models/Operations/GetAvailableClientsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetAvailableClientsServerResponseBody.md b/docs/Models/Operations/GetAvailableClientsServerResponseBody.md deleted file mode 100644 index 71a6b10..0000000 --- a/docs/Models/Operations/GetAvailableClientsServerResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetAvailableClientsServerResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetAvailableClientsErrors](../../Models/Operations/GetAvailableClientsErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetBandwidthStatisticsMediaContainer.md b/docs/Models/Operations/GetBandwidthStatisticsMediaContainer.md index 6f4d6c0..c665916 100644 --- a/docs/Models/Operations/GetBandwidthStatisticsMediaContainer.md +++ b/docs/Models/Operations/GetBandwidthStatisticsMediaContainer.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `size` | *?int* | :heavy_minus_sign: | N/A | 5497 | -| `device` | array<[\LukeHagar\Plex_API\Models\Operations\GetBandwidthStatisticsDevice](../../Models/Operations/GetBandwidthStatisticsDevice.md)> | :heavy_minus_sign: | N/A | | -| `account` | array<[\LukeHagar\Plex_API\Models\Operations\GetBandwidthStatisticsAccount](../../Models/Operations/GetBandwidthStatisticsAccount.md)> | :heavy_minus_sign: | N/A | | -| `statisticsBandwidth` | array<[\LukeHagar\Plex_API\Models\Operations\StatisticsBandwidth](../../Models/Operations/StatisticsBandwidth.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | +| `size` | *?int* | :heavy_minus_sign: | N/A | 5497 | +| `device` | array<[Operations\GetBandwidthStatisticsDevice](../../Models/Operations/GetBandwidthStatisticsDevice.md)> | :heavy_minus_sign: | N/A | | +| `account` | array<[Operations\GetBandwidthStatisticsAccount](../../Models/Operations/GetBandwidthStatisticsAccount.md)> | :heavy_minus_sign: | N/A | | +| `statisticsBandwidth` | array<[Operations\StatisticsBandwidth](../../Models/Operations/StatisticsBandwidth.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetBandwidthStatisticsResponse.md b/docs/Models/Operations/GetBandwidthStatisticsResponse.md index 0c8d5c6..ed8b16a 100644 --- a/docs/Models/Operations/GetBandwidthStatisticsResponse.md +++ b/docs/Models/Operations/GetBandwidthStatisticsResponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetBandwidthStatisticsResponseBody](../../Models/Operations/GetBandwidthStatisticsResponseBody.md) | :heavy_minus_sign: | Bandwidth Statistics | -| `fourHundredAndOneApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetBandwidthStatisticsStatisticsResponseBody](../../Models/Operations/GetBandwidthStatisticsStatisticsResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\GetBandwidthStatisticsResponseBody](../../Models/Operations/GetBandwidthStatisticsResponseBody.md) | :heavy_minus_sign: | Bandwidth Statistics | \ No newline at end of file diff --git a/docs/Models/Operations/GetBandwidthStatisticsResponseBody.md b/docs/Models/Operations/GetBandwidthStatisticsResponseBody.md index b5ae39a..480aa43 100644 --- a/docs/Models/Operations/GetBandwidthStatisticsResponseBody.md +++ b/docs/Models/Operations/GetBandwidthStatisticsResponseBody.md @@ -5,6 +5,6 @@ Bandwidth Statistics ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [?\LukeHagar\Plex_API\Models\Operations\GetBandwidthStatisticsMediaContainer](../../Models/Operations/GetBandwidthStatisticsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [?Operations\GetBandwidthStatisticsMediaContainer](../../Models/Operations/GetBandwidthStatisticsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetBandwidthStatisticsStatisticsResponseBody.md b/docs/Models/Operations/GetBandwidthStatisticsStatisticsResponseBody.md deleted file mode 100644 index 4392172..0000000 --- a/docs/Models/Operations/GetBandwidthStatisticsStatisticsResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetBandwidthStatisticsStatisticsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetBandwidthStatisticsErrors](../../Models/Operations/GetBandwidthStatisticsErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetButlerTasksButlerResponseBody.md b/docs/Models/Operations/GetButlerTasksButlerResponseBody.md deleted file mode 100644 index b5577b9..0000000 --- a/docs/Models/Operations/GetButlerTasksButlerResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetButlerTasksButlerResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetButlerTasksErrors](../../Models/Operations/GetButlerTasksErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetButlerTasksResponse.md b/docs/Models/Operations/GetButlerTasksResponse.md index e620b1e..efa2742 100644 --- a/docs/Models/Operations/GetButlerTasksResponse.md +++ b/docs/Models/Operations/GetButlerTasksResponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetButlerTasksResponseBody](../../Models/Operations/GetButlerTasksResponseBody.md) | :heavy_minus_sign: | All butler tasks | -| `fourHundredAndOneApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetButlerTasksButlerResponseBody](../../Models/Operations/GetButlerTasksButlerResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\GetButlerTasksResponseBody](../../Models/Operations/GetButlerTasksResponseBody.md) | :heavy_minus_sign: | All butler tasks | \ No newline at end of file diff --git a/docs/Models/Operations/GetButlerTasksResponseBody.md b/docs/Models/Operations/GetButlerTasksResponseBody.md index 7202636..0d263b2 100644 --- a/docs/Models/Operations/GetButlerTasksResponseBody.md +++ b/docs/Models/Operations/GetButlerTasksResponseBody.md @@ -5,6 +5,6 @@ All butler tasks ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `butlerTasks` | [?\LukeHagar\Plex_API\Models\Operations\ButlerTasks](../../Models/Operations/ButlerTasks.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | +| `butlerTasks` | [?Operations\ButlerTasks](../../Models/Operations/ButlerTasks.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetDevicesMediaContainer.md b/docs/Models/Operations/GetDevicesMediaContainer.md index 0236248..0efbbac 100644 --- a/docs/Models/Operations/GetDevicesMediaContainer.md +++ b/docs/Models/Operations/GetDevicesMediaContainer.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `size` | *?float* | :heavy_minus_sign: | N/A | 151 | -| `identifier` | *?string* | :heavy_minus_sign: | N/A | com.plexapp.system.devices | -| `device` | array<[\LukeHagar\Plex_API\Models\Operations\Device](../../Models/Operations/Device.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | +| `size` | *?float* | :heavy_minus_sign: | N/A | 151 | +| `identifier` | *?string* | :heavy_minus_sign: | N/A | com.plexapp.system.devices | +| `device` | array<[Operations\Device](../../Models/Operations/Device.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetDevicesResponse.md b/docs/Models/Operations/GetDevicesResponse.md index f0ba4e9..81dbe0b 100644 --- a/docs/Models/Operations/GetDevicesResponse.md +++ b/docs/Models/Operations/GetDevicesResponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetDevicesResponseBody](../../Models/Operations/GetDevicesResponseBody.md) | :heavy_minus_sign: | Devices | -| `fourHundredAndOneApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetDevicesServerResponseBody](../../Models/Operations/GetDevicesServerResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\GetDevicesResponseBody](../../Models/Operations/GetDevicesResponseBody.md) | :heavy_minus_sign: | Devices | \ No newline at end of file diff --git a/docs/Models/Operations/GetDevicesResponseBody.md b/docs/Models/Operations/GetDevicesResponseBody.md index d9f3973..22e38b9 100644 --- a/docs/Models/Operations/GetDevicesResponseBody.md +++ b/docs/Models/Operations/GetDevicesResponseBody.md @@ -5,6 +5,6 @@ Devices ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [?\LukeHagar\Plex_API\Models\Operations\GetDevicesMediaContainer](../../Models/Operations/GetDevicesMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `mediaContainer` | [?Operations\GetDevicesMediaContainer](../../Models/Operations/GetDevicesMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetFileHashResponse.md b/docs/Models/Operations/GetFileHashResponse.md index 624b8e6..a7abba9 100644 --- a/docs/Models/Operations/GetFileHashResponse.md +++ b/docs/Models/Operations/GetFileHashResponse.md @@ -3,9 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [?\LukeHagar\Plex_API\Models\Operations\GetFileHashResponseBody](../../Models/Operations/GetFileHashResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetFileHashResponseBody.md b/docs/Models/Operations/GetFileHashResponseBody.md deleted file mode 100644 index f393d2d..0000000 --- a/docs/Models/Operations/GetFileHashResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetFileHashResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetFileHashErrors](../../Models/Operations/GetFileHashErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetGlobalHubsHubsResponseBody.md b/docs/Models/Operations/GetGlobalHubsHubsResponseBody.md deleted file mode 100644 index 9d7e29e..0000000 --- a/docs/Models/Operations/GetGlobalHubsHubsResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetGlobalHubsHubsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetGlobalHubsErrors](../../Models/Operations/GetGlobalHubsErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetGlobalHubsMediaContainer.md b/docs/Models/Operations/GetGlobalHubsMediaContainer.md index 649cc63..cd563bd 100644 --- a/docs/Models/Operations/GetGlobalHubsMediaContainer.md +++ b/docs/Models/Operations/GetGlobalHubsMediaContainer.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `size` | *?int* | :heavy_minus_sign: | N/A | 8 | -| `allowSync` | *?bool* | :heavy_minus_sign: | N/A | true | -| `identifier` | *?string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `hub` | array<[\LukeHagar\Plex_API\Models\Operations\Hub](../../Models/Operations/Hub.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `size` | *?int* | :heavy_minus_sign: | N/A | 8 | +| `allowSync` | *?bool* | :heavy_minus_sign: | N/A | true | +| `identifier` | *?string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | +| `hub` | array<[Operations\Hub](../../Models/Operations/Hub.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetGlobalHubsRequest.md b/docs/Models/Operations/GetGlobalHubsRequest.md index 35c80f9..4eab3dd 100644 --- a/docs/Models/Operations/GetGlobalHubsRequest.md +++ b/docs/Models/Operations/GetGlobalHubsRequest.md @@ -6,4 +6,4 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | | `count` | *?float* | :heavy_minus_sign: | The number of items to return with each hub. | -| `onlyTransient` | [?\LukeHagar\Plex_API\Models\Operations\OnlyTransient](../../Models/Operations/OnlyTransient.md) | :heavy_minus_sign: | Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). | \ No newline at end of file +| `onlyTransient` | [?Operations\OnlyTransient](../../Models/Operations/OnlyTransient.md) | :heavy_minus_sign: | Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). | \ No newline at end of file diff --git a/docs/Models/Operations/GetGlobalHubsResponse.md b/docs/Models/Operations/GetGlobalHubsResponse.md index 03c05d3..5606008 100644 --- a/docs/Models/Operations/GetGlobalHubsResponse.md +++ b/docs/Models/Operations/GetGlobalHubsResponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetGlobalHubsResponseBody](../../Models/Operations/GetGlobalHubsResponseBody.md) | :heavy_minus_sign: | returns global hubs | -| `fourHundredAndOneApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetGlobalHubsHubsResponseBody](../../Models/Operations/GetGlobalHubsHubsResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\GetGlobalHubsResponseBody](../../Models/Operations/GetGlobalHubsResponseBody.md) | :heavy_minus_sign: | returns global hubs | \ No newline at end of file diff --git a/docs/Models/Operations/GetGlobalHubsResponseBody.md b/docs/Models/Operations/GetGlobalHubsResponseBody.md index 957bbf9..41f0802 100644 --- a/docs/Models/Operations/GetGlobalHubsResponseBody.md +++ b/docs/Models/Operations/GetGlobalHubsResponseBody.md @@ -5,6 +5,6 @@ returns global hubs ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [?\LukeHagar\Plex_API\Models\Operations\GetGlobalHubsMediaContainer](../../Models/Operations/GetGlobalHubsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [?Operations\GetGlobalHubsMediaContainer](../../Models/Operations/GetGlobalHubsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetHomeDataPlexResponseBody.md b/docs/Models/Operations/GetHomeDataPlexResponseBody.md deleted file mode 100644 index 33d62e0..0000000 --- a/docs/Models/Operations/GetHomeDataPlexResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetHomeDataPlexResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetHomeDataErrors](../../Models/Operations/GetHomeDataErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetHomeDataResponse.md b/docs/Models/Operations/GetHomeDataResponse.md index d987619..832e140 100644 --- a/docs/Models/Operations/GetHomeDataResponse.md +++ b/docs/Models/Operations/GetHomeDataResponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetHomeDataResponseBody](../../Models/Operations/GetHomeDataResponseBody.md) | :heavy_minus_sign: | Home Data | -| `fourHundredAndOneApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetHomeDataPlexResponseBody](../../Models/Operations/GetHomeDataPlexResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\GetHomeDataResponseBody](../../Models/Operations/GetHomeDataResponseBody.md) | :heavy_minus_sign: | Home Data | \ No newline at end of file diff --git a/docs/Models/Operations/GetLibrariesDirectory.md b/docs/Models/Operations/GetLibrariesDirectory.md index 28f9079..d3e1079 100644 --- a/docs/Models/Operations/GetLibrariesDirectory.md +++ b/docs/Models/Operations/GetLibrariesDirectory.md @@ -3,26 +3,26 @@ ## 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` | array<[\LukeHagar\Plex_API\Models\Operations\GetLibrariesLocation](../../Models/Operations/GetLibrariesLocation.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| 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` | array<[Operations\GetLibrariesLocation](../../Models/Operations/GetLibrariesLocation.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetLibrariesLibraryResponseBody.md b/docs/Models/Operations/GetLibrariesLibraryResponseBody.md deleted file mode 100644 index a6bcd56..0000000 --- a/docs/Models/Operations/GetLibrariesLibraryResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetLibrariesLibraryResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetLibrariesErrors](../../Models/Operations/GetLibrariesErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetLibrariesMediaContainer.md b/docs/Models/Operations/GetLibrariesMediaContainer.md index 7a21487..5c368e2 100644 --- a/docs/Models/Operations/GetLibrariesMediaContainer.md +++ b/docs/Models/Operations/GetLibrariesMediaContainer.md @@ -3,9 +3,9 @@ ## 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` | array<[\LukeHagar\Plex_API\Models\Operations\GetLibrariesDirectory](../../Models/Operations/GetLibrariesDirectory.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| 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` | array<[Operations\GetLibrariesDirectory](../../Models/Operations/GetLibrariesDirectory.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetLibrariesResponse.md b/docs/Models/Operations/GetLibrariesResponse.md index ca9fed1..9749e5e 100644 --- a/docs/Models/Operations/GetLibrariesResponse.md +++ b/docs/Models/Operations/GetLibrariesResponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetLibrariesResponseBody](../../Models/Operations/GetLibrariesResponseBody.md) | :heavy_minus_sign: | The libraries available on the Server | -| `fourHundredAndOneApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetLibrariesLibraryResponseBody](../../Models/Operations/GetLibrariesLibraryResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\GetLibrariesResponseBody](../../Models/Operations/GetLibrariesResponseBody.md) | :heavy_minus_sign: | The libraries available on the Server | \ No newline at end of file diff --git a/docs/Models/Operations/GetLibrariesResponseBody.md b/docs/Models/Operations/GetLibrariesResponseBody.md index c346db3..2adf5e7 100644 --- a/docs/Models/Operations/GetLibrariesResponseBody.md +++ b/docs/Models/Operations/GetLibrariesResponseBody.md @@ -5,6 +5,6 @@ The libraries available on the Server ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [?\LukeHagar\Plex_API\Models\Operations\GetLibrariesMediaContainer](../../Models/Operations/GetLibrariesMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `mediaContainer` | [?Operations\GetLibrariesMediaContainer](../../Models/Operations/GetLibrariesMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetLibraryHubsHub.md b/docs/Models/Operations/GetLibraryHubsHub.md index c8a980a..f12c66a 100644 --- a/docs/Models/Operations/GetLibraryHubsHub.md +++ b/docs/Models/Operations/GetLibraryHubsHub.md @@ -3,17 +3,17 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `key` | *?string* | :heavy_minus_sign: | N/A | /library/sections/1/all?sort=lastViewedAt:desc&unwatched=0&viewOffset=0 | -| `title` | *?string* | :heavy_minus_sign: | N/A | Recently Played Movies | -| `type` | *?string* | :heavy_minus_sign: | N/A | movie | -| `hubIdentifier` | *?string* | :heavy_minus_sign: | N/A | movie.recentlyviewed.1 | -| `context` | *?string* | :heavy_minus_sign: | N/A | hub.movie.recentlyviewed | -| `size` | *?int* | :heavy_minus_sign: | N/A | 6 | -| `more` | *?bool* | :heavy_minus_sign: | N/A | true | -| `style` | *?string* | :heavy_minus_sign: | N/A | shelf | -| `hubKey` | *?string* | :heavy_minus_sign: | N/A | /library/metadata/66485,66098,57249,11449,5858,14944 | -| `metadata` | array<[\LukeHagar\Plex_API\Models\Operations\GetLibraryHubsMetadata](../../Models/Operations/GetLibraryHubsMetadata.md)> | :heavy_minus_sign: | N/A | | -| `promoted` | *?bool* | :heavy_minus_sign: | N/A | true | -| `random` | *?bool* | :heavy_minus_sign: | N/A | true | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `key` | *?string* | :heavy_minus_sign: | N/A | /library/sections/1/all?sort=lastViewedAt:desc&unwatched=0&viewOffset=0 | +| `title` | *?string* | :heavy_minus_sign: | N/A | Recently Played Movies | +| `type` | *?string* | :heavy_minus_sign: | N/A | movie | +| `hubIdentifier` | *?string* | :heavy_minus_sign: | N/A | movie.recentlyviewed.1 | +| `context` | *?string* | :heavy_minus_sign: | N/A | hub.movie.recentlyviewed | +| `size` | *?int* | :heavy_minus_sign: | N/A | 6 | +| `more` | *?bool* | :heavy_minus_sign: | N/A | true | +| `style` | *?string* | :heavy_minus_sign: | N/A | shelf | +| `hubKey` | *?string* | :heavy_minus_sign: | N/A | /library/metadata/66485,66098,57249,11449,5858,14944 | +| `metadata` | array<[Operations\GetLibraryHubsMetadata](../../Models/Operations/GetLibraryHubsMetadata.md)> | :heavy_minus_sign: | N/A | | +| `promoted` | *?bool* | :heavy_minus_sign: | N/A | true | +| `random` | *?bool* | :heavy_minus_sign: | N/A | true | \ No newline at end of file diff --git a/docs/Models/Operations/GetLibraryHubsHubsResponseBody.md b/docs/Models/Operations/GetLibraryHubsHubsResponseBody.md deleted file mode 100644 index 07eb843..0000000 --- a/docs/Models/Operations/GetLibraryHubsHubsResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetLibraryHubsHubsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetLibraryHubsErrors](../../Models/Operations/GetLibraryHubsErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetLibraryHubsMedia.md b/docs/Models/Operations/GetLibraryHubsMedia.md index 4da2ae1..60a2932 100644 --- a/docs/Models/Operations/GetLibraryHubsMedia.md +++ b/docs/Models/Operations/GetLibraryHubsMedia.md @@ -3,22 +3,22 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | -| `id` | *?int* | :heavy_minus_sign: | N/A | 38247 | -| `duration` | *?int* | :heavy_minus_sign: | N/A | 6017237 | -| `bitrate` | *?int* | :heavy_minus_sign: | N/A | 2051 | -| `width` | *?int* | :heavy_minus_sign: | N/A | 1920 | -| `height` | *?int* | :heavy_minus_sign: | N/A | 1080 | -| `aspectRatio` | *?float* | :heavy_minus_sign: | N/A | 1.78 | -| `audioChannels` | *?int* | :heavy_minus_sign: | N/A | 2 | -| `audioCodec` | *?string* | :heavy_minus_sign: | N/A | aac | -| `videoCodec` | *?string* | :heavy_minus_sign: | N/A | h264 | -| `videoResolution` | *?string* | :heavy_minus_sign: | N/A | 1080 | -| `container` | *?string* | :heavy_minus_sign: | N/A | mp4 | -| `videoFrameRate` | *?string* | :heavy_minus_sign: | N/A | 24p | -| `optimizedForStreaming` | *?int* | :heavy_minus_sign: | N/A | 1 | -| `audioProfile` | *?string* | :heavy_minus_sign: | N/A | lc | -| `has64bitOffsets` | *?bool* | :heavy_minus_sign: | N/A | false | -| `videoProfile` | *?string* | :heavy_minus_sign: | N/A | high | -| `part` | array<[\LukeHagar\Plex_API\Models\Operations\GetLibraryHubsPart](../../Models/Operations/GetLibraryHubsPart.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `id` | *?int* | :heavy_minus_sign: | N/A | 38247 | +| `duration` | *?int* | :heavy_minus_sign: | N/A | 6017237 | +| `bitrate` | *?int* | :heavy_minus_sign: | N/A | 2051 | +| `width` | *?int* | :heavy_minus_sign: | N/A | 1920 | +| `height` | *?int* | :heavy_minus_sign: | N/A | 1080 | +| `aspectRatio` | *?float* | :heavy_minus_sign: | N/A | 1.78 | +| `audioChannels` | *?int* | :heavy_minus_sign: | N/A | 2 | +| `audioCodec` | *?string* | :heavy_minus_sign: | N/A | aac | +| `videoCodec` | *?string* | :heavy_minus_sign: | N/A | h264 | +| `videoResolution` | *?string* | :heavy_minus_sign: | N/A | 1080 | +| `container` | *?string* | :heavy_minus_sign: | N/A | mp4 | +| `videoFrameRate` | *?string* | :heavy_minus_sign: | N/A | 24p | +| `optimizedForStreaming` | *?int* | :heavy_minus_sign: | N/A | 1 | +| `audioProfile` | *?string* | :heavy_minus_sign: | N/A | lc | +| `has64bitOffsets` | *?bool* | :heavy_minus_sign: | N/A | false | +| `videoProfile` | *?string* | :heavy_minus_sign: | N/A | high | +| `part` | array<[Operations\GetLibraryHubsPart](../../Models/Operations/GetLibraryHubsPart.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetLibraryHubsMediaContainer.md b/docs/Models/Operations/GetLibraryHubsMediaContainer.md index 87d067e..fce3896 100644 --- a/docs/Models/Operations/GetLibraryHubsMediaContainer.md +++ b/docs/Models/Operations/GetLibraryHubsMediaContainer.md @@ -3,12 +3,12 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -| `size` | *?int* | :heavy_minus_sign: | N/A | 7 | -| `allowSync` | *?bool* | :heavy_minus_sign: | N/A | true | -| `identifier` | *?string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `librarySectionID` | *?int* | :heavy_minus_sign: | N/A | 1 | -| `librarySectionTitle` | *?string* | :heavy_minus_sign: | N/A | Movies | -| `librarySectionUUID` | *?string* | :heavy_minus_sign: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 | -| `hub` | array<[\LukeHagar\Plex_API\Models\Operations\GetLibraryHubsHub](../../Models/Operations/GetLibraryHubsHub.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | +| `size` | *?int* | :heavy_minus_sign: | N/A | 7 | +| `allowSync` | *?bool* | :heavy_minus_sign: | N/A | true | +| `identifier` | *?string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | +| `librarySectionID` | *?int* | :heavy_minus_sign: | N/A | 1 | +| `librarySectionTitle` | *?string* | :heavy_minus_sign: | N/A | Movies | +| `librarySectionUUID` | *?string* | :heavy_minus_sign: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 | +| `hub` | array<[Operations\GetLibraryHubsHub](../../Models/Operations/GetLibraryHubsHub.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetLibraryHubsMetadata.md b/docs/Models/Operations/GetLibraryHubsMetadata.md index 71a6a52..b31ced7 100644 --- a/docs/Models/Operations/GetLibraryHubsMetadata.md +++ b/docs/Models/Operations/GetLibraryHubsMetadata.md @@ -31,11 +31,11 @@ | `audienceRatingImage` | *?string* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.upright | | `primaryExtraKey` | *?string* | :heavy_minus_sign: | N/A | /library/metadata/14952 | | `ratingImage` | *?string* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.ripe | -| `media` | array<[\LukeHagar\Plex_API\Models\Operations\GetLibraryHubsMedia](../../Models/Operations/GetLibraryHubsMedia.md)> | :heavy_minus_sign: | N/A | | -| `genre` | array<[\LukeHagar\Plex_API\Models\Operations\GetLibraryHubsGenre](../../Models/Operations/GetLibraryHubsGenre.md)> | :heavy_minus_sign: | N/A | | -| `country` | array<[\LukeHagar\Plex_API\Models\Operations\GetLibraryHubsCountry](../../Models/Operations/GetLibraryHubsCountry.md)> | :heavy_minus_sign: | N/A | | -| `director` | array<[\LukeHagar\Plex_API\Models\Operations\GetLibraryHubsDirector](../../Models/Operations/GetLibraryHubsDirector.md)> | :heavy_minus_sign: | N/A | | -| `role` | array<[\LukeHagar\Plex_API\Models\Operations\GetLibraryHubsRole](../../Models/Operations/GetLibraryHubsRole.md)> | :heavy_minus_sign: | N/A | | -| `writer` | array<[\LukeHagar\Plex_API\Models\Operations\GetLibraryHubsWriter](../../Models/Operations/GetLibraryHubsWriter.md)> | :heavy_minus_sign: | N/A | | +| `media` | array<[Operations\GetLibraryHubsMedia](../../Models/Operations/GetLibraryHubsMedia.md)> | :heavy_minus_sign: | N/A | | +| `genre` | array<[Operations\GetLibraryHubsGenre](../../Models/Operations/GetLibraryHubsGenre.md)> | :heavy_minus_sign: | N/A | | +| `country` | array<[Operations\GetLibraryHubsCountry](../../Models/Operations/GetLibraryHubsCountry.md)> | :heavy_minus_sign: | N/A | | +| `director` | array<[Operations\GetLibraryHubsDirector](../../Models/Operations/GetLibraryHubsDirector.md)> | :heavy_minus_sign: | N/A | | +| `role` | array<[Operations\GetLibraryHubsRole](../../Models/Operations/GetLibraryHubsRole.md)> | :heavy_minus_sign: | N/A | | +| `writer` | array<[Operations\GetLibraryHubsWriter](../../Models/Operations/GetLibraryHubsWriter.md)> | :heavy_minus_sign: | N/A | | | `skipCount` | *?int* | :heavy_minus_sign: | N/A | 1 | | `chapterSource` | *?string* | :heavy_minus_sign: | N/A | media | \ No newline at end of file diff --git a/docs/Models/Operations/GetLibraryHubsRequest.md b/docs/Models/Operations/GetLibraryHubsRequest.md index 6e682d5..d9f978c 100644 --- a/docs/Models/Operations/GetLibraryHubsRequest.md +++ b/docs/Models/Operations/GetLibraryHubsRequest.md @@ -7,4 +7,4 @@ | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | | `sectionId` | *float* | :heavy_check_mark: | the Id of the library to query | | `count` | *?float* | :heavy_minus_sign: | The number of items to return with each hub. | -| `onlyTransient` | [?\LukeHagar\Plex_API\Models\Operations\QueryParamOnlyTransient](../../Models/Operations/QueryParamOnlyTransient.md) | :heavy_minus_sign: | Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). | \ No newline at end of file +| `onlyTransient` | [?Operations\QueryParamOnlyTransient](../../Models/Operations/QueryParamOnlyTransient.md) | :heavy_minus_sign: | Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). | \ No newline at end of file diff --git a/docs/Models/Operations/GetLibraryHubsResponse.md b/docs/Models/Operations/GetLibraryHubsResponse.md index 36fd43e..820d66d 100644 --- a/docs/Models/Operations/GetLibraryHubsResponse.md +++ b/docs/Models/Operations/GetLibraryHubsResponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetLibraryHubsResponseBody](../../Models/Operations/GetLibraryHubsResponseBody.md) | :heavy_minus_sign: | The hubs specific to the library | -| `fourHundredAndOneApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetLibraryHubsHubsResponseBody](../../Models/Operations/GetLibraryHubsHubsResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\GetLibraryHubsResponseBody](../../Models/Operations/GetLibraryHubsResponseBody.md) | :heavy_minus_sign: | The hubs specific to the library | \ No newline at end of file diff --git a/docs/Models/Operations/GetLibraryHubsResponseBody.md b/docs/Models/Operations/GetLibraryHubsResponseBody.md index 55c8b00..9f72481 100644 --- a/docs/Models/Operations/GetLibraryHubsResponseBody.md +++ b/docs/Models/Operations/GetLibraryHubsResponseBody.md @@ -5,6 +5,6 @@ The hubs specific to the library ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `mediaContainer` | [?\LukeHagar\Plex_API\Models\Operations\GetLibraryHubsMediaContainer](../../Models/Operations/GetLibraryHubsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [?Operations\GetLibraryHubsMediaContainer](../../Models/Operations/GetLibraryHubsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetLibraryItemsLibraryResponseBody.md b/docs/Models/Operations/GetLibraryItemsLibraryResponseBody.md deleted file mode 100644 index 96e3e39..0000000 --- a/docs/Models/Operations/GetLibraryItemsLibraryResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetLibraryItemsLibraryResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetLibraryItemsErrors](../../Models/Operations/GetLibraryItemsErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetLibraryItemsMedia.md b/docs/Models/Operations/GetLibraryItemsMedia.md index 57e818d..0a207b8 100644 --- a/docs/Models/Operations/GetLibraryItemsMedia.md +++ b/docs/Models/Operations/GetLibraryItemsMedia.md @@ -3,19 +3,19 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `id` | *?int* | :heavy_minus_sign: | N/A | 119534 | -| `duration` | *?int* | :heavy_minus_sign: | N/A | 11558112 | -| `bitrate` | *?int* | :heavy_minus_sign: | N/A | 25025 | -| `width` | *?int* | :heavy_minus_sign: | N/A | 3840 | -| `height` | *?int* | :heavy_minus_sign: | N/A | 2072 | -| `aspectRatio` | *?float* | :heavy_minus_sign: | N/A | 1.85 | -| `audioChannels` | *?int* | :heavy_minus_sign: | N/A | 6 | -| `audioCodec` | *?string* | :heavy_minus_sign: | N/A | eac3 | -| `videoCodec` | *?string* | :heavy_minus_sign: | N/A | hevc | -| `videoResolution` | *?string* | :heavy_minus_sign: | N/A | 4k | -| `container` | *?string* | :heavy_minus_sign: | N/A | mkv | -| `videoFrameRate` | *?string* | :heavy_minus_sign: | N/A | 24p | -| `videoProfile` | *?string* | :heavy_minus_sign: | N/A | main 10 | -| `part` | array<[\LukeHagar\Plex_API\Models\Operations\GetLibraryItemsPart](../../Models/Operations/GetLibraryItemsPart.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `id` | *?int* | :heavy_minus_sign: | N/A | 119534 | +| `duration` | *?int* | :heavy_minus_sign: | N/A | 11558112 | +| `bitrate` | *?int* | :heavy_minus_sign: | N/A | 25025 | +| `width` | *?int* | :heavy_minus_sign: | N/A | 3840 | +| `height` | *?int* | :heavy_minus_sign: | N/A | 2072 | +| `aspectRatio` | *?float* | :heavy_minus_sign: | N/A | 1.85 | +| `audioChannels` | *?int* | :heavy_minus_sign: | N/A | 6 | +| `audioCodec` | *?string* | :heavy_minus_sign: | N/A | eac3 | +| `videoCodec` | *?string* | :heavy_minus_sign: | N/A | hevc | +| `videoResolution` | *?string* | :heavy_minus_sign: | N/A | 4k | +| `container` | *?string* | :heavy_minus_sign: | N/A | mkv | +| `videoFrameRate` | *?string* | :heavy_minus_sign: | N/A | 24p | +| `videoProfile` | *?string* | :heavy_minus_sign: | N/A | main 10 | +| `part` | array<[Operations\GetLibraryItemsPart](../../Models/Operations/GetLibraryItemsPart.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetLibraryItemsMediaContainer.md b/docs/Models/Operations/GetLibraryItemsMediaContainer.md index 2da270f..02fef13 100644 --- a/docs/Models/Operations/GetLibraryItemsMediaContainer.md +++ b/docs/Models/Operations/GetLibraryItemsMediaContainer.md @@ -3,21 +3,21 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -| `size` | *?int* | :heavy_minus_sign: | N/A | 70 | -| `allowSync` | *?bool* | :heavy_minus_sign: | N/A | true | -| `art` | *?string* | :heavy_minus_sign: | N/A | /:/resources/movie-fanart.jpg | -| `identifier` | *?string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `librarySectionID` | *mixed* | :heavy_minus_sign: | N/A | | -| `librarySectionTitle` | *?string* | :heavy_minus_sign: | N/A | Movies | -| `librarySectionUUID` | *?string* | :heavy_minus_sign: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 | -| `mediaTagPrefix` | *?string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | -| `mediaTagVersion` | *?int* | :heavy_minus_sign: | N/A | 1701731894 | -| `thumb` | *?string* | :heavy_minus_sign: | N/A | /:/resources/movie.png | -| `title1` | *?string* | :heavy_minus_sign: | N/A | Movies | -| `title2` | *?string* | :heavy_minus_sign: | N/A | Recently Released | -| `viewGroup` | *?string* | :heavy_minus_sign: | N/A | movie | -| `viewMode` | *?int* | :heavy_minus_sign: | N/A | 65592 | -| `mixedParents` | *?bool* | :heavy_minus_sign: | N/A | true | -| `metadata` | array<[\LukeHagar\Plex_API\Models\Operations\GetLibraryItemsMetadata](../../Models/Operations/GetLibraryItemsMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `size` | *?int* | :heavy_minus_sign: | N/A | 70 | +| `allowSync` | *?bool* | :heavy_minus_sign: | N/A | true | +| `art` | *?string* | :heavy_minus_sign: | N/A | /:/resources/movie-fanart.jpg | +| `identifier` | *?string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | +| `librarySectionID` | [int\|string\|null](../../Models/Operations/LibrarySectionID.md) | :heavy_minus_sign: | N/A | | +| `librarySectionTitle` | *?string* | :heavy_minus_sign: | N/A | Movies | +| `librarySectionUUID` | *?string* | :heavy_minus_sign: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 | +| `mediaTagPrefix` | *?string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | +| `mediaTagVersion` | *?int* | :heavy_minus_sign: | N/A | 1701731894 | +| `thumb` | *?string* | :heavy_minus_sign: | N/A | /:/resources/movie.png | +| `title1` | *?string* | :heavy_minus_sign: | N/A | Movies | +| `title2` | *?string* | :heavy_minus_sign: | N/A | Recently Released | +| `viewGroup` | *?string* | :heavy_minus_sign: | N/A | movie | +| `viewMode` | *?int* | :heavy_minus_sign: | N/A | 65592 | +| `mixedParents` | *?bool* | :heavy_minus_sign: | N/A | true | +| `metadata` | array<[Operations\GetLibraryItemsMetadata](../../Models/Operations/GetLibraryItemsMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetLibraryItemsMetadata.md b/docs/Models/Operations/GetLibraryItemsMetadata.md index 5936717..a35fd85 100644 --- a/docs/Models/Operations/GetLibraryItemsMetadata.md +++ b/docs/Models/Operations/GetLibraryItemsMetadata.md @@ -34,12 +34,12 @@ | `grandparentThumb` | *?string* | :heavy_minus_sign: | N/A | /library/metadata/66/thumb/1705716261 | | `grandparentArt` | *?string* | :heavy_minus_sign: | N/A | /library/metadata/66/art/1705716261 | | `grandparentTheme` | *?string* | :heavy_minus_sign: | N/A | /library/metadata/66/theme/1705716261 | -| `media` | array<[\LukeHagar\Plex_API\Models\Operations\GetLibraryItemsMedia](../../Models/Operations/GetLibraryItemsMedia.md)> | :heavy_minus_sign: | N/A | | -| `genre` | array<[\LukeHagar\Plex_API\Models\Operations\GetLibraryItemsGenre](../../Models/Operations/GetLibraryItemsGenre.md)> | :heavy_minus_sign: | N/A | | -| `country` | array<[\LukeHagar\Plex_API\Models\Operations\GetLibraryItemsCountry](../../Models/Operations/GetLibraryItemsCountry.md)> | :heavy_minus_sign: | N/A | | -| `director` | array<[\LukeHagar\Plex_API\Models\Operations\GetLibraryItemsDirector](../../Models/Operations/GetLibraryItemsDirector.md)> | :heavy_minus_sign: | N/A | | -| `writer` | array<[\LukeHagar\Plex_API\Models\Operations\GetLibraryItemsWriter](../../Models/Operations/GetLibraryItemsWriter.md)> | :heavy_minus_sign: | N/A | | -| `role` | array<[\LukeHagar\Plex_API\Models\Operations\GetLibraryItemsRole](../../Models/Operations/GetLibraryItemsRole.md)> | :heavy_minus_sign: | N/A | | +| `media` | array<[Operations\GetLibraryItemsMedia](../../Models/Operations/GetLibraryItemsMedia.md)> | :heavy_minus_sign: | N/A | | +| `genre` | array<[Operations\GetLibraryItemsGenre](../../Models/Operations/GetLibraryItemsGenre.md)> | :heavy_minus_sign: | N/A | | +| `country` | array<[Operations\GetLibraryItemsCountry](../../Models/Operations/GetLibraryItemsCountry.md)> | :heavy_minus_sign: | N/A | | +| `director` | array<[Operations\GetLibraryItemsDirector](../../Models/Operations/GetLibraryItemsDirector.md)> | :heavy_minus_sign: | N/A | | +| `writer` | array<[Operations\GetLibraryItemsWriter](../../Models/Operations/GetLibraryItemsWriter.md)> | :heavy_minus_sign: | N/A | | +| `role` | array<[Operations\GetLibraryItemsRole](../../Models/Operations/GetLibraryItemsRole.md)> | :heavy_minus_sign: | N/A | | | `titleSort` | *?string* | :heavy_minus_sign: | N/A | Whale | | `viewCount` | *?int* | :heavy_minus_sign: | N/A | 1 | | `lastViewedAt` | *?int* | :heavy_minus_sign: | N/A | 1682752242 | diff --git a/docs/Models/Operations/GetLibraryItemsRequest.md b/docs/Models/Operations/GetLibraryItemsRequest.md index 68620f7..e6d0b65 100644 --- a/docs/Models/Operations/GetLibraryItemsRequest.md +++ b/docs/Models/Operations/GetLibraryItemsRequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `sectionId` | *mixed* | :heavy_check_mark: | the Id of the library to query | | -| `tag` | [\LukeHagar\Plex_API\Models\Operations\Tag](../../Models/Operations/Tag.md) | :heavy_check_mark: | A key representing a specific tag within the section. | | -| `includeGuids` | *?int* | :heavy_minus_sign: | Adds the Guids object to the response
| 1 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `sectionId` | *mixed* | :heavy_check_mark: | the Id of the library to query | | +| `tag` | [Operations\Tag](../../Models/Operations/Tag.md) | :heavy_check_mark: | A key representing a specific tag within the section. | | +| `includeGuids` | *?int* | :heavy_minus_sign: | Adds the Guids object to the response
| 1 | \ No newline at end of file diff --git a/docs/Models/Operations/GetLibraryItemsResponse.md b/docs/Models/Operations/GetLibraryItemsResponse.md index 1cc74cd..0011593 100644 --- a/docs/Models/Operations/GetLibraryItemsResponse.md +++ b/docs/Models/Operations/GetLibraryItemsResponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetLibraryItemsResponseBody](../../Models/Operations/GetLibraryItemsResponseBody.md) | :heavy_minus_sign: | The contents of the library by section and tag | -| `fourHundredAndOneApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetLibraryItemsLibraryResponseBody](../../Models/Operations/GetLibraryItemsLibraryResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\GetLibraryItemsResponseBody](../../Models/Operations/GetLibraryItemsResponseBody.md) | :heavy_minus_sign: | The contents of the library by section and tag | \ No newline at end of file diff --git a/docs/Models/Operations/GetLibraryItemsResponseBody.md b/docs/Models/Operations/GetLibraryItemsResponseBody.md index 96a69b6..cd6662d 100644 --- a/docs/Models/Operations/GetLibraryItemsResponseBody.md +++ b/docs/Models/Operations/GetLibraryItemsResponseBody.md @@ -5,6 +5,6 @@ The contents of the library by section and tag ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [?\LukeHagar\Plex_API\Models\Operations\GetLibraryItemsMediaContainer](../../Models/Operations/GetLibraryItemsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [?Operations\GetLibraryItemsMediaContainer](../../Models/Operations/GetLibraryItemsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetLibraryMediaContainer.md b/docs/Models/Operations/GetLibraryMediaContainer.md index 596e055..82bedf3 100644 --- a/docs/Models/Operations/GetLibraryMediaContainer.md +++ b/docs/Models/Operations/GetLibraryMediaContainer.md @@ -3,20 +3,20 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `size` | *?int* | :heavy_minus_sign: | N/A | 29 | -| `allowSync` | *?bool* | :heavy_minus_sign: | N/A | false | -| `art` | *?string* | :heavy_minus_sign: | N/A | /:/resources/movie-fanart.jpg | -| `content` | *?string* | :heavy_minus_sign: | N/A | secondary | -| `identifier` | *?string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `librarySectionID` | *?int* | :heavy_minus_sign: | N/A | 1 | -| `mediaTagPrefix` | *?string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | -| `mediaTagVersion` | *?int* | :heavy_minus_sign: | N/A | 1701731894 | -| `thumb` | *?string* | :heavy_minus_sign: | N/A | /:/resources/movie.png | -| `title1` | *?string* | :heavy_minus_sign: | N/A | Movies | -| `viewGroup` | *?string* | :heavy_minus_sign: | N/A | secondary | -| `viewMode` | *?int* | :heavy_minus_sign: | N/A | 65592 | -| `directory` | array<[\LukeHagar\Plex_API\Models\Operations\GetLibraryDirectory](../../Models/Operations/GetLibraryDirectory.md)> | :heavy_minus_sign: | N/A | | -| `type` | array<[\LukeHagar\Plex_API\Models\Operations\GetLibraryType](../../Models/Operations/GetLibraryType.md)> | :heavy_minus_sign: | N/A | | -| `fieldType` | array<[\LukeHagar\Plex_API\Models\Operations\FieldType](../../Models/Operations/FieldType.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `size` | *?int* | :heavy_minus_sign: | N/A | 29 | +| `allowSync` | *?bool* | :heavy_minus_sign: | N/A | false | +| `art` | *?string* | :heavy_minus_sign: | N/A | /:/resources/movie-fanart.jpg | +| `content` | *?string* | :heavy_minus_sign: | N/A | secondary | +| `identifier` | *?string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | +| `librarySectionID` | *?int* | :heavy_minus_sign: | N/A | 1 | +| `mediaTagPrefix` | *?string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | +| `mediaTagVersion` | *?int* | :heavy_minus_sign: | N/A | 1701731894 | +| `thumb` | *?string* | :heavy_minus_sign: | N/A | /:/resources/movie.png | +| `title1` | *?string* | :heavy_minus_sign: | N/A | Movies | +| `viewGroup` | *?string* | :heavy_minus_sign: | N/A | secondary | +| `viewMode` | *?int* | :heavy_minus_sign: | N/A | 65592 | +| `directory` | array<[Operations\GetLibraryDirectory](../../Models/Operations/GetLibraryDirectory.md)> | :heavy_minus_sign: | N/A | | +| `type` | array<[Operations\GetLibraryType](../../Models/Operations/GetLibraryType.md)> | :heavy_minus_sign: | N/A | | +| `fieldType` | array<[Operations\FieldType](../../Models/Operations/FieldType.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetLibraryRequest.md b/docs/Models/Operations/GetLibraryRequest.md index f055e28..7d63224 100644 --- a/docs/Models/Operations/GetLibraryRequest.md +++ b/docs/Models/Operations/GetLibraryRequest.md @@ -6,4 +6,4 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `sectionId` | *float* | :heavy_check_mark: | the Id of the library to query | 1000 | -| `includeDetails` | [?\LukeHagar\Plex_API\Models\Operations\IncludeDetails](../../Models/Operations/IncludeDetails.md) | :heavy_minus_sign: | Whether or not to include details for a section (types, filters, and sorts).
Only exists for backwards compatibility, media providers other than the server libraries have it on always.
| | \ No newline at end of file +| `includeDetails` | [?Operations\IncludeDetails](../../Models/Operations/IncludeDetails.md) | :heavy_minus_sign: | Whether or not to include details for a section (types, filters, and sorts).
Only exists for backwards compatibility, media providers other than the server libraries have it on always.
| | \ No newline at end of file diff --git a/docs/Models/Operations/GetLibraryResponse.md b/docs/Models/Operations/GetLibraryResponse.md index 5e9ad7e..53201a8 100644 --- a/docs/Models/Operations/GetLibraryResponse.md +++ b/docs/Models/Operations/GetLibraryResponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetLibraryResponseBody](../../Models/Operations/GetLibraryResponseBody.md) | :heavy_minus_sign: | The details of the library | -| `fourHundredAndOneApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetLibraryLibraryResponseBody](../../Models/Operations/GetLibraryLibraryResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\GetLibraryResponseBody](../../Models/Operations/GetLibraryResponseBody.md) | :heavy_minus_sign: | The details of the library | \ No newline at end of file diff --git a/docs/Models/Operations/GetLibraryResponseBody.md b/docs/Models/Operations/GetLibraryResponseBody.md index 07e90a4..c6e50fc 100644 --- a/docs/Models/Operations/GetLibraryResponseBody.md +++ b/docs/Models/Operations/GetLibraryResponseBody.md @@ -5,6 +5,6 @@ The details of the library ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [?\LukeHagar\Plex_API\Models\Operations\GetLibraryMediaContainer](../../Models/Operations/GetLibraryMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `mediaContainer` | [?Operations\GetLibraryMediaContainer](../../Models/Operations/GetLibraryMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetLibraryType.md b/docs/Models/Operations/GetLibraryType.md index 4191cc8..f79477c 100644 --- a/docs/Models/Operations/GetLibraryType.md +++ b/docs/Models/Operations/GetLibraryType.md @@ -3,12 +3,12 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| `key` | *?string* | :heavy_minus_sign: | N/A | /library/sections/1/all?type=1 | -| `type` | *?string* | :heavy_minus_sign: | N/A | movie | -| `title` | *?string* | :heavy_minus_sign: | N/A | Movies | -| `active` | *?bool* | :heavy_minus_sign: | N/A | false | -| `filter` | array<[\LukeHagar\Plex_API\Models\Operations\GetLibraryFilter](../../Models/Operations/GetLibraryFilter.md)> | :heavy_minus_sign: | N/A | | -| `sort` | array<[\LukeHagar\Plex_API\Models\Operations\Sort](../../Models/Operations/Sort.md)> | :heavy_minus_sign: | N/A | | -| `field` | array<[\LukeHagar\Plex_API\Models\Operations\Field](../../Models/Operations/Field.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `key` | *?string* | :heavy_minus_sign: | N/A | /library/sections/1/all?type=1 | +| `type` | *?string* | :heavy_minus_sign: | N/A | movie | +| `title` | *?string* | :heavy_minus_sign: | N/A | Movies | +| `active` | *?bool* | :heavy_minus_sign: | N/A | false | +| `filter` | array<[Operations\GetLibraryFilter](../../Models/Operations/GetLibraryFilter.md)> | :heavy_minus_sign: | N/A | | +| `sort` | array<[Operations\Sort](../../Models/Operations/Sort.md)> | :heavy_minus_sign: | N/A | | +| `field` | array<[Operations\Field](../../Models/Operations/Field.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetMetadataChildrenLibraryResponseBody.md b/docs/Models/Operations/GetMetadataChildrenLibraryResponseBody.md deleted file mode 100644 index d9fcf6a..0000000 --- a/docs/Models/Operations/GetMetadataChildrenLibraryResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetMetadataChildrenLibraryResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetMetadataChildrenErrors](../../Models/Operations/GetMetadataChildrenErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetMetadataChildrenMediaContainer.md b/docs/Models/Operations/GetMetadataChildrenMediaContainer.md index b3d4614..8c1848c 100644 --- a/docs/Models/Operations/GetMetadataChildrenMediaContainer.md +++ b/docs/Models/Operations/GetMetadataChildrenMediaContainer.md @@ -26,5 +26,5 @@ | `title2` | *?string* | :heavy_minus_sign: | N/A | Reacher | | `viewGroup` | *?string* | :heavy_minus_sign: | N/A | season | | `viewMode` | *?int* | :heavy_minus_sign: | N/A | 65593 | -| `directory` | array<[\LukeHagar\Plex_API\Models\Operations\GetMetadataChildrenDirectory](../../Models/Operations/GetMetadataChildrenDirectory.md)> | :heavy_minus_sign: | N/A | [
{
"leafCount": 16,
"thumb": "/library/metadata/30072/thumb/1705739923",
"viewedLeafCount": 16,
"key": "/library/metadata/30072/allLeaves",
"title": "All episodes"
}
] | -| `metadata` | array<[\LukeHagar\Plex_API\Models\Operations\GetMetadataChildrenMetadata](../../Models/Operations/GetMetadataChildrenMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `directory` | array<[Operations\GetMetadataChildrenDirectory](../../Models/Operations/GetMetadataChildrenDirectory.md)> | :heavy_minus_sign: | N/A | [
{
"leafCount": 16,
"thumb": "/library/metadata/30072/thumb/1705739923",
"viewedLeafCount": 16,
"key": "/library/metadata/30072/allLeaves",
"title": "All episodes"
}
] | +| `metadata` | array<[Operations\GetMetadataChildrenMetadata](../../Models/Operations/GetMetadataChildrenMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetMetadataChildrenResponse.md b/docs/Models/Operations/GetMetadataChildrenResponse.md index 5be97b0..f81a630 100644 --- a/docs/Models/Operations/GetMetadataChildrenResponse.md +++ b/docs/Models/Operations/GetMetadataChildrenResponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetMetadataChildrenResponseBody](../../Models/Operations/GetMetadataChildrenResponseBody.md) | :heavy_minus_sign: | The children of the library item. | -| `fourHundredAndOneApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetMetadataChildrenLibraryResponseBody](../../Models/Operations/GetMetadataChildrenLibraryResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\GetMetadataChildrenResponseBody](../../Models/Operations/GetMetadataChildrenResponseBody.md) | :heavy_minus_sign: | The children of the library item. | \ No newline at end of file diff --git a/docs/Models/Operations/GetMetadataChildrenResponseBody.md b/docs/Models/Operations/GetMetadataChildrenResponseBody.md index f9837fd..e742822 100644 --- a/docs/Models/Operations/GetMetadataChildrenResponseBody.md +++ b/docs/Models/Operations/GetMetadataChildrenResponseBody.md @@ -5,6 +5,6 @@ The children of the library item. ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [?\LukeHagar\Plex_API\Models\Operations\GetMetadataChildrenMediaContainer](../../Models/Operations/GetMetadataChildrenMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [?Operations\GetMetadataChildrenMediaContainer](../../Models/Operations/GetMetadataChildrenMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetMetadataLibraryResponseBody.md b/docs/Models/Operations/GetMetadataLibraryResponseBody.md deleted file mode 100644 index 183f4f7..0000000 --- a/docs/Models/Operations/GetMetadataLibraryResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetMetadataLibraryResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetMetadataErrors](../../Models/Operations/GetMetadataErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetMetadataMedia.md b/docs/Models/Operations/GetMetadataMedia.md index f9882cc..dde0229 100644 --- a/docs/Models/Operations/GetMetadataMedia.md +++ b/docs/Models/Operations/GetMetadataMedia.md @@ -3,22 +3,22 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `id` | *?int* | :heavy_minus_sign: | N/A | 15 | -| `duration` | *?int* | :heavy_minus_sign: | N/A | 141417 | -| `bitrate` | *?int* | :heavy_minus_sign: | N/A | 2278 | -| `width` | *?int* | :heavy_minus_sign: | N/A | 1920 | -| `height` | *?int* | :heavy_minus_sign: | N/A | 814 | -| `aspectRatio` | *?float* | :heavy_minus_sign: | N/A | 2.35 | -| `audioChannels` | *?int* | :heavy_minus_sign: | N/A | 2 | -| `audioCodec` | *?string* | :heavy_minus_sign: | N/A | aac | -| `videoCodec` | *?string* | :heavy_minus_sign: | N/A | h264 | -| `videoResolution` | *?string* | :heavy_minus_sign: | N/A | 1080 | -| `container` | *?string* | :heavy_minus_sign: | N/A | mp4 | -| `videoFrameRate` | *?string* | :heavy_minus_sign: | N/A | 24p | -| `optimizedForStreaming` | *?int* | :heavy_minus_sign: | N/A | 0 | -| `audioProfile` | *?string* | :heavy_minus_sign: | N/A | lc | -| `has64bitOffsets` | *?bool* | :heavy_minus_sign: | N/A | false | -| `videoProfile` | *?string* | :heavy_minus_sign: | N/A | high | -| `part` | array<[\LukeHagar\Plex_API\Models\Operations\GetMetadataPart](../../Models/Operations/GetMetadataPart.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | +| `id` | *?int* | :heavy_minus_sign: | N/A | 15 | +| `duration` | *?int* | :heavy_minus_sign: | N/A | 141417 | +| `bitrate` | *?int* | :heavy_minus_sign: | N/A | 2278 | +| `width` | *?int* | :heavy_minus_sign: | N/A | 1920 | +| `height` | *?int* | :heavy_minus_sign: | N/A | 814 | +| `aspectRatio` | *?float* | :heavy_minus_sign: | N/A | 2.35 | +| `audioChannels` | *?int* | :heavy_minus_sign: | N/A | 2 | +| `audioCodec` | *?string* | :heavy_minus_sign: | N/A | aac | +| `videoCodec` | *?string* | :heavy_minus_sign: | N/A | h264 | +| `videoResolution` | *?string* | :heavy_minus_sign: | N/A | 1080 | +| `container` | *?string* | :heavy_minus_sign: | N/A | mp4 | +| `videoFrameRate` | *?string* | :heavy_minus_sign: | N/A | 24p | +| `optimizedForStreaming` | *?int* | :heavy_minus_sign: | N/A | 0 | +| `audioProfile` | *?string* | :heavy_minus_sign: | N/A | lc | +| `has64bitOffsets` | *?bool* | :heavy_minus_sign: | N/A | false | +| `videoProfile` | *?string* | :heavy_minus_sign: | N/A | high | +| `part` | array<[Operations\GetMetadataPart](../../Models/Operations/GetMetadataPart.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetMetadataMediaContainer.md b/docs/Models/Operations/GetMetadataMediaContainer.md index 8bc1602..36e756f 100644 --- a/docs/Models/Operations/GetMetadataMediaContainer.md +++ b/docs/Models/Operations/GetMetadataMediaContainer.md @@ -3,14 +3,14 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `size` | *?int* | :heavy_minus_sign: | N/A | 1 | -| `allowSync` | *?bool* | :heavy_minus_sign: | N/A | true | -| `identifier` | *?string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `librarySectionID` | *?int* | :heavy_minus_sign: | N/A | 1 | -| `librarySectionTitle` | *?string* | :heavy_minus_sign: | N/A | Movies | -| `librarySectionUUID` | *?string* | :heavy_minus_sign: | N/A | cfc899d7-3000-46f6-8489-b9592714ada5 | -| `mediaTagPrefix` | *?string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | -| `mediaTagVersion` | *?int* | :heavy_minus_sign: | N/A | 1698860922 | -| `metadata` | array<[\LukeHagar\Plex_API\Models\Operations\GetMetadataMetadata](../../Models/Operations/GetMetadataMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `size` | *?int* | :heavy_minus_sign: | N/A | 1 | +| `allowSync` | *?bool* | :heavy_minus_sign: | N/A | true | +| `identifier` | *?string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | +| `librarySectionID` | *?int* | :heavy_minus_sign: | N/A | 1 | +| `librarySectionTitle` | *?string* | :heavy_minus_sign: | N/A | Movies | +| `librarySectionUUID` | *?string* | :heavy_minus_sign: | N/A | cfc899d7-3000-46f6-8489-b9592714ada5 | +| `mediaTagPrefix` | *?string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | +| `mediaTagVersion` | *?int* | :heavy_minus_sign: | N/A | 1698860922 | +| `metadata` | array<[Operations\GetMetadataMetadata](../../Models/Operations/GetMetadataMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetMetadataMetadata.md b/docs/Models/Operations/GetMetadataMetadata.md index 5bac3b4..bf339ea 100644 --- a/docs/Models/Operations/GetMetadataMetadata.md +++ b/docs/Models/Operations/GetMetadataMetadata.md @@ -29,12 +29,12 @@ | `audienceRatingImage` | *?string* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.upright | | `hasPremiumPrimaryExtra` | *?string* | :heavy_minus_sign: | N/A | 1 | | `ratingImage` | *?string* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.ripe | -| `media` | array<[\LukeHagar\Plex_API\Models\Operations\GetMetadataMedia](../../Models/Operations/GetMetadataMedia.md)> | :heavy_minus_sign: | N/A | | -| `genre` | array<[\LukeHagar\Plex_API\Models\Operations\GetMetadataGenre](../../Models/Operations/GetMetadataGenre.md)> | :heavy_minus_sign: | N/A | | -| `country` | array<[\LukeHagar\Plex_API\Models\Operations\GetMetadataCountry](../../Models/Operations/GetMetadataCountry.md)> | :heavy_minus_sign: | N/A | | -| `guids` | array<[\LukeHagar\Plex_API\Models\Operations\Guids](../../Models/Operations/Guids.md)> | :heavy_minus_sign: | N/A | | -| `ratings` | array<[\LukeHagar\Plex_API\Models\Operations\Ratings](../../Models/Operations/Ratings.md)> | :heavy_minus_sign: | N/A | | -| `director` | array<[\LukeHagar\Plex_API\Models\Operations\GetMetadataDirector](../../Models/Operations/GetMetadataDirector.md)> | :heavy_minus_sign: | N/A | | -| `writer` | array<[\LukeHagar\Plex_API\Models\Operations\GetMetadataWriter](../../Models/Operations/GetMetadataWriter.md)> | :heavy_minus_sign: | N/A | | -| `role` | array<[\LukeHagar\Plex_API\Models\Operations\GetMetadataRole](../../Models/Operations/GetMetadataRole.md)> | :heavy_minus_sign: | N/A | | -| `producer` | array<[\LukeHagar\Plex_API\Models\Operations\Producer](../../Models/Operations/Producer.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `media` | array<[Operations\GetMetadataMedia](../../Models/Operations/GetMetadataMedia.md)> | :heavy_minus_sign: | N/A | | +| `genre` | array<[Operations\GetMetadataGenre](../../Models/Operations/GetMetadataGenre.md)> | :heavy_minus_sign: | N/A | | +| `country` | array<[Operations\GetMetadataCountry](../../Models/Operations/GetMetadataCountry.md)> | :heavy_minus_sign: | N/A | | +| `guids` | array<[Operations\Guids](../../Models/Operations/Guids.md)> | :heavy_minus_sign: | N/A | | +| `ratings` | array<[Operations\Ratings](../../Models/Operations/Ratings.md)> | :heavy_minus_sign: | N/A | | +| `director` | array<[Operations\GetMetadataDirector](../../Models/Operations/GetMetadataDirector.md)> | :heavy_minus_sign: | N/A | | +| `writer` | array<[Operations\GetMetadataWriter](../../Models/Operations/GetMetadataWriter.md)> | :heavy_minus_sign: | N/A | | +| `role` | array<[Operations\GetMetadataRole](../../Models/Operations/GetMetadataRole.md)> | :heavy_minus_sign: | N/A | | +| `producer` | array<[Operations\Producer](../../Models/Operations/Producer.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetMetadataPart.md b/docs/Models/Operations/GetMetadataPart.md index 15c0305..2535138 100644 --- a/docs/Models/Operations/GetMetadataPart.md +++ b/docs/Models/Operations/GetMetadataPart.md @@ -3,16 +3,16 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `id` | *?int* | :heavy_minus_sign: | N/A | 15 | -| `key` | *?string* | :heavy_minus_sign: | N/A | /library/parts/15/1705637151/file.mp4 | -| `duration` | *?int* | :heavy_minus_sign: | N/A | 141417 | -| `file` | *?string* | :heavy_minus_sign: | N/A | /movies/Serenity (2005)/Serenity (2005).mp4 | -| `size` | *?int* | :heavy_minus_sign: | N/A | 40271948 | -| `audioProfile` | *?string* | :heavy_minus_sign: | N/A | lc | -| `container` | *?string* | :heavy_minus_sign: | N/A | mp4 | -| `has64bitOffsets` | *?bool* | :heavy_minus_sign: | N/A | false | -| `optimizedForStreaming` | *?bool* | :heavy_minus_sign: | N/A | false | -| `videoProfile` | *?string* | :heavy_minus_sign: | N/A | high | -| `stream` | array<[\LukeHagar\Plex_API\Models\Operations\Stream](../../Models/Operations/Stream.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | +| `id` | *?int* | :heavy_minus_sign: | N/A | 15 | +| `key` | *?string* | :heavy_minus_sign: | N/A | /library/parts/15/1705637151/file.mp4 | +| `duration` | *?int* | :heavy_minus_sign: | N/A | 141417 | +| `file` | *?string* | :heavy_minus_sign: | N/A | /movies/Serenity (2005)/Serenity (2005).mp4 | +| `size` | *?int* | :heavy_minus_sign: | N/A | 40271948 | +| `audioProfile` | *?string* | :heavy_minus_sign: | N/A | lc | +| `container` | *?string* | :heavy_minus_sign: | N/A | mp4 | +| `has64bitOffsets` | *?bool* | :heavy_minus_sign: | N/A | false | +| `optimizedForStreaming` | *?bool* | :heavy_minus_sign: | N/A | false | +| `videoProfile` | *?string* | :heavy_minus_sign: | N/A | high | +| `stream` | array<[Operations\Stream](../../Models/Operations/Stream.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetMetadataResponse.md b/docs/Models/Operations/GetMetadataResponse.md index d92d328..b4f040b 100644 --- a/docs/Models/Operations/GetMetadataResponse.md +++ b/docs/Models/Operations/GetMetadataResponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetMetadataResponseBody](../../Models/Operations/GetMetadataResponseBody.md) | :heavy_minus_sign: | The metadata of the library item. | -| `fourHundredAndOneApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetMetadataLibraryResponseBody](../../Models/Operations/GetMetadataLibraryResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\GetMetadataResponseBody](../../Models/Operations/GetMetadataResponseBody.md) | :heavy_minus_sign: | The metadata of the library item. | \ No newline at end of file diff --git a/docs/Models/Operations/GetMetadataResponseBody.md b/docs/Models/Operations/GetMetadataResponseBody.md index f204e33..a4cb541 100644 --- a/docs/Models/Operations/GetMetadataResponseBody.md +++ b/docs/Models/Operations/GetMetadataResponseBody.md @@ -5,6 +5,6 @@ The metadata of the library item. ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `mediaContainer` | [?\LukeHagar\Plex_API\Models\Operations\GetMetadataMediaContainer](../../Models/Operations/GetMetadataMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `mediaContainer` | [?Operations\GetMetadataMediaContainer](../../Models/Operations/GetMetadataMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetMyPlexAccountResponse.md b/docs/Models/Operations/GetMyPlexAccountResponse.md index d49ce74..da913b9 100644 --- a/docs/Models/Operations/GetMyPlexAccountResponse.md +++ b/docs/Models/Operations/GetMyPlexAccountResponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetMyPlexAccountResponseBody](../../Models/Operations/GetMyPlexAccountResponseBody.md) | :heavy_minus_sign: | MyPlex Account | -| `fourHundredAndOneApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetMyPlexAccountServerResponseBody](../../Models/Operations/GetMyPlexAccountServerResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\GetMyPlexAccountResponseBody](../../Models/Operations/GetMyPlexAccountResponseBody.md) | :heavy_minus_sign: | MyPlex Account | \ No newline at end of file diff --git a/docs/Models/Operations/GetMyPlexAccountResponseBody.md b/docs/Models/Operations/GetMyPlexAccountResponseBody.md index 5c5b69b..27b8d6a 100644 --- a/docs/Models/Operations/GetMyPlexAccountResponseBody.md +++ b/docs/Models/Operations/GetMyPlexAccountResponseBody.md @@ -5,6 +5,6 @@ MyPlex Account ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `myPlex` | [?\LukeHagar\Plex_API\Models\Operations\MyPlex](../../Models/Operations/MyPlex.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `myPlex` | [?Operations\MyPlex](../../Models/Operations/MyPlex.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetMyPlexAccountServerResponseBody.md b/docs/Models/Operations/GetMyPlexAccountServerResponseBody.md deleted file mode 100644 index fdd64ac..0000000 --- a/docs/Models/Operations/GetMyPlexAccountServerResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetMyPlexAccountServerResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetMyPlexAccountErrors](../../Models/Operations/GetMyPlexAccountErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetOnDeckLibraryResponseBody.md b/docs/Models/Operations/GetOnDeckLibraryResponseBody.md deleted file mode 100644 index a7bf1d4..0000000 --- a/docs/Models/Operations/GetOnDeckLibraryResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetOnDeckLibraryResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetOnDeckErrors](../../Models/Operations/GetOnDeckErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetOnDeckMedia.md b/docs/Models/Operations/GetOnDeckMedia.md index b284a31..2dd18ce 100644 --- a/docs/Models/Operations/GetOnDeckMedia.md +++ b/docs/Models/Operations/GetOnDeckMedia.md @@ -3,20 +3,20 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `id` | *?float* | :heavy_minus_sign: | N/A | 80994 | -| `duration` | *?float* | :heavy_minus_sign: | N/A | 420080 | -| `bitrate` | *?float* | :heavy_minus_sign: | N/A | 1046 | -| `width` | *?float* | :heavy_minus_sign: | N/A | 1920 | -| `height` | *?float* | :heavy_minus_sign: | N/A | 1080 | -| `aspectRatio` | *?float* | :heavy_minus_sign: | N/A | 1.78 | -| `audioChannels` | *?float* | :heavy_minus_sign: | N/A | 2 | -| `audioCodec` | *?string* | :heavy_minus_sign: | N/A | aac | -| `videoCodec` | *?string* | :heavy_minus_sign: | N/A | hevc | -| `videoResolution` | *?string* | :heavy_minus_sign: | N/A | 1080 | -| `container` | *?string* | :heavy_minus_sign: | N/A | mkv | -| `videoFrameRate` | *?string* | :heavy_minus_sign: | N/A | PAL | -| `audioProfile` | *?string* | :heavy_minus_sign: | N/A | lc | -| `videoProfile` | *?string* | :heavy_minus_sign: | N/A | main | -| `part` | array<[\LukeHagar\Plex_API\Models\Operations\GetOnDeckPart](../../Models/Operations/GetOnDeckPart.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `id` | *?float* | :heavy_minus_sign: | N/A | 80994 | +| `duration` | *?float* | :heavy_minus_sign: | N/A | 420080 | +| `bitrate` | *?float* | :heavy_minus_sign: | N/A | 1046 | +| `width` | *?float* | :heavy_minus_sign: | N/A | 1920 | +| `height` | *?float* | :heavy_minus_sign: | N/A | 1080 | +| `aspectRatio` | *?float* | :heavy_minus_sign: | N/A | 1.78 | +| `audioChannels` | *?float* | :heavy_minus_sign: | N/A | 2 | +| `audioCodec` | *?string* | :heavy_minus_sign: | N/A | aac | +| `videoCodec` | *?string* | :heavy_minus_sign: | N/A | hevc | +| `videoResolution` | *?string* | :heavy_minus_sign: | N/A | 1080 | +| `container` | *?string* | :heavy_minus_sign: | N/A | mkv | +| `videoFrameRate` | *?string* | :heavy_minus_sign: | N/A | PAL | +| `audioProfile` | *?string* | :heavy_minus_sign: | N/A | lc | +| `videoProfile` | *?string* | :heavy_minus_sign: | N/A | main | +| `part` | array<[Operations\GetOnDeckPart](../../Models/Operations/GetOnDeckPart.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetOnDeckMediaContainer.md b/docs/Models/Operations/GetOnDeckMediaContainer.md index f9c368c..e07c0e5 100644 --- a/docs/Models/Operations/GetOnDeckMediaContainer.md +++ b/docs/Models/Operations/GetOnDeckMediaContainer.md @@ -3,12 +3,12 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -| `size` | *?float* | :heavy_minus_sign: | N/A | 16 | -| `allowSync` | *?bool* | :heavy_minus_sign: | N/A | | -| `identifier` | *?string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `mediaTagPrefix` | *?string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | -| `mediaTagVersion` | *?float* | :heavy_minus_sign: | N/A | 1680021154 | -| `mixedParents` | *?bool* | :heavy_minus_sign: | N/A | | -| `metadata` | array<[\LukeHagar\Plex_API\Models\Operations\GetOnDeckMetadata](../../Models/Operations/GetOnDeckMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | +| `size` | *?float* | :heavy_minus_sign: | N/A | 16 | +| `allowSync` | *?bool* | :heavy_minus_sign: | N/A | | +| `identifier` | *?string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | +| `mediaTagPrefix` | *?string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | +| `mediaTagVersion` | *?float* | :heavy_minus_sign: | N/A | 1680021154 | +| `mixedParents` | *?bool* | :heavy_minus_sign: | N/A | | +| `metadata` | array<[Operations\GetOnDeckMetadata](../../Models/Operations/GetOnDeckMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetOnDeckMetadata.md b/docs/Models/Operations/GetOnDeckMetadata.md index 72ef210..9d77b60 100644 --- a/docs/Models/Operations/GetOnDeckMetadata.md +++ b/docs/Models/Operations/GetOnDeckMetadata.md @@ -39,5 +39,5 @@ | `originallyAvailableAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_minus_sign: | N/A | 2020-10-31 00:00:00 +0000 UTC | | `addedAt` | *?float* | :heavy_minus_sign: | N/A | 1654258196 | | `updatedAt` | *?float* | :heavy_minus_sign: | N/A | 1654258204 | -| `media` | array<[\LukeHagar\Plex_API\Models\Operations\GetOnDeckMedia](../../Models/Operations/GetOnDeckMedia.md)> | :heavy_minus_sign: | N/A | | -| `guids` | array<[\LukeHagar\Plex_API\Models\Operations\GetOnDeckGuids](../../Models/Operations/GetOnDeckGuids.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `media` | array<[Operations\GetOnDeckMedia](../../Models/Operations/GetOnDeckMedia.md)> | :heavy_minus_sign: | N/A | | +| `guids` | array<[Operations\GetOnDeckGuids](../../Models/Operations/GetOnDeckGuids.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetOnDeckPart.md b/docs/Models/Operations/GetOnDeckPart.md index 9431478..7865687 100644 --- a/docs/Models/Operations/GetOnDeckPart.md +++ b/docs/Models/Operations/GetOnDeckPart.md @@ -3,14 +3,14 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `id` | *?float* | :heavy_minus_sign: | N/A | 80994 | -| `key` | *?string* | :heavy_minus_sign: | N/A | /library/parts/80994/1655007810/file.mkv | -| `duration` | *?float* | :heavy_minus_sign: | N/A | 420080 | -| `file` | *?string* | :heavy_minus_sign: | N/A | /tvshows/Bluey (2018)/Bluey (2018) - S02E33 - Circus.mkv | -| `size` | *?float* | :heavy_minus_sign: | N/A | 55148931 | -| `audioProfile` | *?string* | :heavy_minus_sign: | N/A | lc | -| `container` | *?string* | :heavy_minus_sign: | N/A | mkv | -| `videoProfile` | *?string* | :heavy_minus_sign: | N/A | main | -| `stream` | array<[\LukeHagar\Plex_API\Models\Operations\GetOnDeckStream](../../Models/Operations/GetOnDeckStream.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | +| `id` | *?float* | :heavy_minus_sign: | N/A | 80994 | +| `key` | *?string* | :heavy_minus_sign: | N/A | /library/parts/80994/1655007810/file.mkv | +| `duration` | *?float* | :heavy_minus_sign: | N/A | 420080 | +| `file` | *?string* | :heavy_minus_sign: | N/A | /tvshows/Bluey (2018)/Bluey (2018) - S02E33 - Circus.mkv | +| `size` | *?float* | :heavy_minus_sign: | N/A | 55148931 | +| `audioProfile` | *?string* | :heavy_minus_sign: | N/A | lc | +| `container` | *?string* | :heavy_minus_sign: | N/A | mkv | +| `videoProfile` | *?string* | :heavy_minus_sign: | N/A | main | +| `stream` | array<[Operations\GetOnDeckStream](../../Models/Operations/GetOnDeckStream.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetOnDeckResponse.md b/docs/Models/Operations/GetOnDeckResponse.md index 7ec2bb1..fbcf26c 100644 --- a/docs/Models/Operations/GetOnDeckResponse.md +++ b/docs/Models/Operations/GetOnDeckResponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetOnDeckResponseBody](../../Models/Operations/GetOnDeckResponseBody.md) | :heavy_minus_sign: | The on Deck content | -| `fourHundredAndOneApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetOnDeckLibraryResponseBody](../../Models/Operations/GetOnDeckLibraryResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\GetOnDeckResponseBody](../../Models/Operations/GetOnDeckResponseBody.md) | :heavy_minus_sign: | The on Deck content | \ No newline at end of file diff --git a/docs/Models/Operations/GetOnDeckResponseBody.md b/docs/Models/Operations/GetOnDeckResponseBody.md index 9aea995..2730718 100644 --- a/docs/Models/Operations/GetOnDeckResponseBody.md +++ b/docs/Models/Operations/GetOnDeckResponseBody.md @@ -5,6 +5,6 @@ The on Deck content ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [?\LukeHagar\Plex_API\Models\Operations\GetOnDeckMediaContainer](../../Models/Operations/GetOnDeckMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `mediaContainer` | [?Operations\GetOnDeckMediaContainer](../../Models/Operations/GetOnDeckMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetPinPlexResponseBody.md b/docs/Models/Operations/GetPinPlexResponseBody.md deleted file mode 100644 index 5320fdf..0000000 --- a/docs/Models/Operations/GetPinPlexResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetPinPlexResponseBody - -X-Plex-Client-Identifier is missing - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetPinErrors](../../Models/Operations/GetPinErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetPinResponse.md b/docs/Models/Operations/GetPinResponse.md index d8a4106..bcc0bed 100644 --- a/docs/Models/Operations/GetPinResponse.md +++ b/docs/Models/Operations/GetPinResponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredAndOneApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetPinResponseBody](../../Models/Operations/GetPinResponseBody.md) | :heavy_minus_sign: | The Pin | -| `fourHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetPinPlexResponseBody](../../Models/Operations/GetPinPlexResponseBody.md) | :heavy_minus_sign: | X-Plex-Client-Identifier is missing | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\GetPinResponseBody](../../Models/Operations/GetPinResponseBody.md) | :heavy_minus_sign: | The Pin | \ No newline at end of file diff --git a/docs/Models/Operations/GetPinResponseBody.md b/docs/Models/Operations/GetPinResponseBody.md index 2975157..71fae45 100644 --- a/docs/Models/Operations/GetPinResponseBody.md +++ b/docs/Models/Operations/GetPinResponseBody.md @@ -13,7 +13,7 @@ The Pin | `trusted` | *?bool* | :heavy_minus_sign: | N/A | | | `qr` | *?string* | :heavy_minus_sign: | a link to a QR code hosted on plex.tv
The QR code redirects to the relevant `plex.tv/link` authentication page
Which then prompts the user for the 4 Digit Link Pin
| https://plex.tv/api/v2/pins/qr/3patfx1a78ukcbr7x0n9bl26t | | `clientIdentifier` | *?string* | :heavy_minus_sign: | N/A | Postman | -| `location` | [?\LukeHagar\Plex_API\Models\Operations\Location](../../Models/Operations/Location.md) | :heavy_minus_sign: | N/A | | +| `location` | [?Operations\Location](../../Models/Operations/Location.md) | :heavy_minus_sign: | N/A | | | `expiresIn` | *?float* | :heavy_minus_sign: | N/A | 1800 | | `createdAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_minus_sign: | N/A | 2023-04-12 17:00:03 +0000 UTC | | `expiresAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_minus_sign: | N/A | 2023-04-12 17:30:03 +0000 UTC | diff --git a/docs/Models/Operations/GetPlaylistContentsMedia.md b/docs/Models/Operations/GetPlaylistContentsMedia.md index 5afc4f8..ca2a4ef 100644 --- a/docs/Models/Operations/GetPlaylistContentsMedia.md +++ b/docs/Models/Operations/GetPlaylistContentsMedia.md @@ -3,22 +3,22 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -| `id` | *?int* | :heavy_minus_sign: | N/A | 15 | -| `duration` | *?int* | :heavy_minus_sign: | N/A | 141416 | -| `bitrate` | *?int* | :heavy_minus_sign: | N/A | 2273 | -| `width` | *?int* | :heavy_minus_sign: | N/A | 1920 | -| `height` | *?int* | :heavy_minus_sign: | N/A | 814 | -| `aspectRatio` | *?float* | :heavy_minus_sign: | N/A | 2.35 | -| `audioChannels` | *?int* | :heavy_minus_sign: | N/A | 2 | -| `audioCodec` | *?string* | :heavy_minus_sign: | N/A | aac | -| `videoCodec` | *?string* | :heavy_minus_sign: | N/A | h264 | -| `videoResolution` | *?string* | :heavy_minus_sign: | N/A | 1080 | -| `container` | *?string* | :heavy_minus_sign: | N/A | mp4 | -| `videoFrameRate` | *?string* | :heavy_minus_sign: | N/A | 24p | -| `optimizedForStreaming` | *?int* | :heavy_minus_sign: | N/A | 0 | -| `audioProfile` | *?string* | :heavy_minus_sign: | N/A | lc | -| `has64bitOffsets` | *?bool* | :heavy_minus_sign: | N/A | false | -| `videoProfile` | *?string* | :heavy_minus_sign: | N/A | high | -| `part` | array<[\LukeHagar\Plex_API\Models\Operations\GetPlaylistContentsPart](../../Models/Operations/GetPlaylistContentsPart.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `id` | *?int* | :heavy_minus_sign: | N/A | 15 | +| `duration` | *?int* | :heavy_minus_sign: | N/A | 141416 | +| `bitrate` | *?int* | :heavy_minus_sign: | N/A | 2273 | +| `width` | *?int* | :heavy_minus_sign: | N/A | 1920 | +| `height` | *?int* | :heavy_minus_sign: | N/A | 814 | +| `aspectRatio` | *?float* | :heavy_minus_sign: | N/A | 2.35 | +| `audioChannels` | *?int* | :heavy_minus_sign: | N/A | 2 | +| `audioCodec` | *?string* | :heavy_minus_sign: | N/A | aac | +| `videoCodec` | *?string* | :heavy_minus_sign: | N/A | h264 | +| `videoResolution` | *?string* | :heavy_minus_sign: | N/A | 1080 | +| `container` | *?string* | :heavy_minus_sign: | N/A | mp4 | +| `videoFrameRate` | *?string* | :heavy_minus_sign: | N/A | 24p | +| `optimizedForStreaming` | *?int* | :heavy_minus_sign: | N/A | 0 | +| `audioProfile` | *?string* | :heavy_minus_sign: | N/A | lc | +| `has64bitOffsets` | *?bool* | :heavy_minus_sign: | N/A | false | +| `videoProfile` | *?string* | :heavy_minus_sign: | N/A | high | +| `part` | array<[Operations\GetPlaylistContentsPart](../../Models/Operations/GetPlaylistContentsPart.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetPlaylistContentsMediaContainer.md b/docs/Models/Operations/GetPlaylistContentsMediaContainer.md index 8ec35fa..1360e94 100644 --- a/docs/Models/Operations/GetPlaylistContentsMediaContainer.md +++ b/docs/Models/Operations/GetPlaylistContentsMediaContainer.md @@ -3,14 +3,14 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `size` | *?int* | :heavy_minus_sign: | N/A | 2 | -| `composite` | *?string* | :heavy_minus_sign: | N/A | /playlists/95/composite/1705717521 | -| `duration` | *?int* | :heavy_minus_sign: | N/A | 282 | -| `leafCount` | *?int* | :heavy_minus_sign: | N/A | 2 | -| `playlistType` | *?string* | :heavy_minus_sign: | N/A | video | -| `ratingKey` | *?string* | :heavy_minus_sign: | N/A | 95 | -| `smart` | *?bool* | :heavy_minus_sign: | N/A | true | -| `title` | *?string* | :heavy_minus_sign: | N/A | Smart Movie Playlist | -| `metadata` | array<[\LukeHagar\Plex_API\Models\Operations\GetPlaylistContentsMetadata](../../Models/Operations/GetPlaylistContentsMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `size` | *?int* | :heavy_minus_sign: | N/A | 2 | +| `composite` | *?string* | :heavy_minus_sign: | N/A | /playlists/95/composite/1705717521 | +| `duration` | *?int* | :heavy_minus_sign: | N/A | 282 | +| `leafCount` | *?int* | :heavy_minus_sign: | N/A | 2 | +| `playlistType` | *?string* | :heavy_minus_sign: | N/A | video | +| `ratingKey` | *?string* | :heavy_minus_sign: | N/A | 95 | +| `smart` | *?bool* | :heavy_minus_sign: | N/A | true | +| `title` | *?string* | :heavy_minus_sign: | N/A | Smart Movie Playlist | +| `metadata` | array<[Operations\GetPlaylistContentsMetadata](../../Models/Operations/GetPlaylistContentsMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetPlaylistContentsMetadata.md b/docs/Models/Operations/GetPlaylistContentsMetadata.md index 1e8de52..fb2b9d2 100644 --- a/docs/Models/Operations/GetPlaylistContentsMetadata.md +++ b/docs/Models/Operations/GetPlaylistContentsMetadata.md @@ -31,9 +31,9 @@ | `hasPremiumExtras` | *?string* | :heavy_minus_sign: | N/A | 1 | | `hasPremiumPrimaryExtra` | *?string* | :heavy_minus_sign: | N/A | 1 | | `ratingImage` | *?string* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.ripe | -| `media` | array<[\LukeHagar\Plex_API\Models\Operations\GetPlaylistContentsMedia](../../Models/Operations/GetPlaylistContentsMedia.md)> | :heavy_minus_sign: | N/A | | -| `genre` | array<[\LukeHagar\Plex_API\Models\Operations\GetPlaylistContentsGenre](../../Models/Operations/GetPlaylistContentsGenre.md)> | :heavy_minus_sign: | N/A | | -| `country` | array<[\LukeHagar\Plex_API\Models\Operations\GetPlaylistContentsCountry](../../Models/Operations/GetPlaylistContentsCountry.md)> | :heavy_minus_sign: | N/A | | -| `director` | array<[\LukeHagar\Plex_API\Models\Operations\GetPlaylistContentsDirector](../../Models/Operations/GetPlaylistContentsDirector.md)> | :heavy_minus_sign: | N/A | | -| `writer` | array<[\LukeHagar\Plex_API\Models\Operations\GetPlaylistContentsWriter](../../Models/Operations/GetPlaylistContentsWriter.md)> | :heavy_minus_sign: | N/A | | -| `role` | array<[\LukeHagar\Plex_API\Models\Operations\GetPlaylistContentsRole](../../Models/Operations/GetPlaylistContentsRole.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `media` | array<[Operations\GetPlaylistContentsMedia](../../Models/Operations/GetPlaylistContentsMedia.md)> | :heavy_minus_sign: | N/A | | +| `genre` | array<[Operations\GetPlaylistContentsGenre](../../Models/Operations/GetPlaylistContentsGenre.md)> | :heavy_minus_sign: | N/A | | +| `country` | array<[Operations\GetPlaylistContentsCountry](../../Models/Operations/GetPlaylistContentsCountry.md)> | :heavy_minus_sign: | N/A | | +| `director` | array<[Operations\GetPlaylistContentsDirector](../../Models/Operations/GetPlaylistContentsDirector.md)> | :heavy_minus_sign: | N/A | | +| `writer` | array<[Operations\GetPlaylistContentsWriter](../../Models/Operations/GetPlaylistContentsWriter.md)> | :heavy_minus_sign: | N/A | | +| `role` | array<[Operations\GetPlaylistContentsRole](../../Models/Operations/GetPlaylistContentsRole.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetPlaylistContentsPlaylistsResponseBody.md b/docs/Models/Operations/GetPlaylistContentsPlaylistsResponseBody.md deleted file mode 100644 index ccb856c..0000000 --- a/docs/Models/Operations/GetPlaylistContentsPlaylistsResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetPlaylistContentsPlaylistsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetPlaylistContentsErrors](../../Models/Operations/GetPlaylistContentsErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetPlaylistContentsResponse.md b/docs/Models/Operations/GetPlaylistContentsResponse.md index c20eca7..197a947 100644 --- a/docs/Models/Operations/GetPlaylistContentsResponse.md +++ b/docs/Models/Operations/GetPlaylistContentsResponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetPlaylistContentsResponseBody](../../Models/Operations/GetPlaylistContentsResponseBody.md) | :heavy_minus_sign: | The playlist contents | -| `fourHundredAndOneApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetPlaylistContentsPlaylistsResponseBody](../../Models/Operations/GetPlaylistContentsPlaylistsResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\GetPlaylistContentsResponseBody](../../Models/Operations/GetPlaylistContentsResponseBody.md) | :heavy_minus_sign: | The playlist contents | \ No newline at end of file diff --git a/docs/Models/Operations/GetPlaylistContentsResponseBody.md b/docs/Models/Operations/GetPlaylistContentsResponseBody.md index e5e2e6d..b8944ba 100644 --- a/docs/Models/Operations/GetPlaylistContentsResponseBody.md +++ b/docs/Models/Operations/GetPlaylistContentsResponseBody.md @@ -5,6 +5,6 @@ The playlist contents ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [?\LukeHagar\Plex_API\Models\Operations\GetPlaylistContentsMediaContainer](../../Models/Operations/GetPlaylistContentsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [?Operations\GetPlaylistContentsMediaContainer](../../Models/Operations/GetPlaylistContentsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetPlaylistMediaContainer.md b/docs/Models/Operations/GetPlaylistMediaContainer.md index 20da907..6e8e736 100644 --- a/docs/Models/Operations/GetPlaylistMediaContainer.md +++ b/docs/Models/Operations/GetPlaylistMediaContainer.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `size` | *?int* | :heavy_minus_sign: | N/A | 1 | -| `metadata` | array<[\LukeHagar\Plex_API\Models\Operations\GetPlaylistMetadata](../../Models/Operations/GetPlaylistMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `size` | *?int* | :heavy_minus_sign: | N/A | 1 | +| `metadata` | array<[Operations\GetPlaylistMetadata](../../Models/Operations/GetPlaylistMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetPlaylistPlaylistsResponseBody.md b/docs/Models/Operations/GetPlaylistPlaylistsResponseBody.md deleted file mode 100644 index 6f0d77e..0000000 --- a/docs/Models/Operations/GetPlaylistPlaylistsResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetPlaylistPlaylistsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetPlaylistErrors](../../Models/Operations/GetPlaylistErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetPlaylistResponse.md b/docs/Models/Operations/GetPlaylistResponse.md index a95b8e9..5ab78a3 100644 --- a/docs/Models/Operations/GetPlaylistResponse.md +++ b/docs/Models/Operations/GetPlaylistResponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetPlaylistResponseBody](../../Models/Operations/GetPlaylistResponseBody.md) | :heavy_minus_sign: | The playlist | -| `fourHundredAndOneApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetPlaylistPlaylistsResponseBody](../../Models/Operations/GetPlaylistPlaylistsResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\GetPlaylistResponseBody](../../Models/Operations/GetPlaylistResponseBody.md) | :heavy_minus_sign: | The playlist | \ No newline at end of file diff --git a/docs/Models/Operations/GetPlaylistResponseBody.md b/docs/Models/Operations/GetPlaylistResponseBody.md index 1a72430..7bc8e97 100644 --- a/docs/Models/Operations/GetPlaylistResponseBody.md +++ b/docs/Models/Operations/GetPlaylistResponseBody.md @@ -5,6 +5,6 @@ The playlist ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `mediaContainer` | [?\LukeHagar\Plex_API\Models\Operations\GetPlaylistMediaContainer](../../Models/Operations/GetPlaylistMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `mediaContainer` | [?Operations\GetPlaylistMediaContainer](../../Models/Operations/GetPlaylistMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetPlaylistsMediaContainer.md b/docs/Models/Operations/GetPlaylistsMediaContainer.md index 07b9941..f7419ab 100644 --- a/docs/Models/Operations/GetPlaylistsMediaContainer.md +++ b/docs/Models/Operations/GetPlaylistsMediaContainer.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -| `size` | *?int* | :heavy_minus_sign: | N/A | 4 | -| `metadata` | array<[\LukeHagar\Plex_API\Models\Operations\GetPlaylistsMetadata](../../Models/Operations/GetPlaylistsMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `size` | *?int* | :heavy_minus_sign: | N/A | 4 | +| `metadata` | array<[Operations\GetPlaylistsMetadata](../../Models/Operations/GetPlaylistsMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetPlaylistsPlaylistsResponseBody.md b/docs/Models/Operations/GetPlaylistsPlaylistsResponseBody.md deleted file mode 100644 index c7fdccd..0000000 --- a/docs/Models/Operations/GetPlaylistsPlaylistsResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetPlaylistsPlaylistsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetPlaylistsErrors](../../Models/Operations/GetPlaylistsErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetPlaylistsRequest.md b/docs/Models/Operations/GetPlaylistsRequest.md index 2f2272c..3e9bedc 100644 --- a/docs/Models/Operations/GetPlaylistsRequest.md +++ b/docs/Models/Operations/GetPlaylistsRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `playlistType` | [?\LukeHagar\Plex_API\Models\Operations\PlaylistType](../../Models/Operations/PlaylistType.md) | :heavy_minus_sign: | limit to a type of playlist. | -| `smart` | [?\LukeHagar\Plex_API\Models\Operations\QueryParamSmart](../../Models/Operations/QueryParamSmart.md) | :heavy_minus_sign: | type of playlists to return (default is all). | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `playlistType` | [?Operations\PlaylistType](../../Models/Operations/PlaylistType.md) | :heavy_minus_sign: | limit to a type of playlist. | +| `smart` | [?Operations\QueryParamSmart](../../Models/Operations/QueryParamSmart.md) | :heavy_minus_sign: | type of playlists to return (default is all). | \ No newline at end of file diff --git a/docs/Models/Operations/GetPlaylistsResponse.md b/docs/Models/Operations/GetPlaylistsResponse.md index 9f571d7..701dc06 100644 --- a/docs/Models/Operations/GetPlaylistsResponse.md +++ b/docs/Models/Operations/GetPlaylistsResponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetPlaylistsResponseBody](../../Models/Operations/GetPlaylistsResponseBody.md) | :heavy_minus_sign: | returns all playlists | -| `fourHundredAndOneApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetPlaylistsPlaylistsResponseBody](../../Models/Operations/GetPlaylistsPlaylistsResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\GetPlaylistsResponseBody](../../Models/Operations/GetPlaylistsResponseBody.md) | :heavy_minus_sign: | returns all playlists | \ No newline at end of file diff --git a/docs/Models/Operations/GetPlaylistsResponseBody.md b/docs/Models/Operations/GetPlaylistsResponseBody.md index 3787b38..56b0772 100644 --- a/docs/Models/Operations/GetPlaylistsResponseBody.md +++ b/docs/Models/Operations/GetPlaylistsResponseBody.md @@ -5,6 +5,6 @@ returns all playlists ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [?\LukeHagar\Plex_API\Models\Operations\GetPlaylistsMediaContainer](../../Models/Operations/GetPlaylistsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `mediaContainer` | [?Operations\GetPlaylistsMediaContainer](../../Models/Operations/GetPlaylistsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetRecentlyAddedLibraryResponseBody.md b/docs/Models/Operations/GetRecentlyAddedLibraryResponseBody.md deleted file mode 100644 index b7fd116..0000000 --- a/docs/Models/Operations/GetRecentlyAddedLibraryResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetRecentlyAddedLibraryResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetRecentlyAddedErrors](../../Models/Operations/GetRecentlyAddedErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetRecentlyAddedMediaContainer.md b/docs/Models/Operations/GetRecentlyAddedMediaContainer.md index 5a78216..84b6da0 100644 --- a/docs/Models/Operations/GetRecentlyAddedMediaContainer.md +++ b/docs/Models/Operations/GetRecentlyAddedMediaContainer.md @@ -3,12 +3,12 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | -| `size` | *?float* | :heavy_minus_sign: | N/A | 50 | -| `allowSync` | *?bool* | :heavy_minus_sign: | N/A | | -| `identifier` | *?string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `mediaTagPrefix` | *?string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | -| `mediaTagVersion` | *?float* | :heavy_minus_sign: | N/A | 1680021154 | -| `mixedParents` | *?bool* | :heavy_minus_sign: | N/A | | -| `metadata` | array<[\LukeHagar\Plex_API\Models\Operations\GetRecentlyAddedMetadata](../../Models/Operations/GetRecentlyAddedMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `size` | *?float* | :heavy_minus_sign: | N/A | 50 | +| `allowSync` | *?bool* | :heavy_minus_sign: | N/A | | +| `identifier` | *?string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | +| `mediaTagPrefix` | *?string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | +| `mediaTagVersion` | *?float* | :heavy_minus_sign: | N/A | 1680021154 | +| `mixedParents` | *?bool* | :heavy_minus_sign: | N/A | | +| `metadata` | array<[Operations\GetRecentlyAddedMetadata](../../Models/Operations/GetRecentlyAddedMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetRecentlyAddedMetadata.md b/docs/Models/Operations/GetRecentlyAddedMetadata.md index 03700c8..c4ac39c 100644 --- a/docs/Models/Operations/GetRecentlyAddedMetadata.md +++ b/docs/Models/Operations/GetRecentlyAddedMetadata.md @@ -31,9 +31,9 @@ | `chapterSource` | *?string* | :heavy_minus_sign: | N/A | media | | `primaryExtraKey` | *?string* | :heavy_minus_sign: | N/A | /library/metadata/59399 | | `ratingImage` | *?string* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.rotten | -| `media` | array<[\LukeHagar\Plex_API\Models\Operations\Media](../../Models/Operations/Media.md)> | :heavy_minus_sign: | N/A | | -| `genre` | array<[\LukeHagar\Plex_API\Models\Operations\Genre](../../Models/Operations/Genre.md)> | :heavy_minus_sign: | N/A | | -| `director` | array<[\LukeHagar\Plex_API\Models\Operations\Director](../../Models/Operations/Director.md)> | :heavy_minus_sign: | N/A | | -| `writer` | array<[\LukeHagar\Plex_API\Models\Operations\Writer](../../Models/Operations/Writer.md)> | :heavy_minus_sign: | N/A | | -| `country` | array<[\LukeHagar\Plex_API\Models\Operations\Country](../../Models/Operations/Country.md)> | :heavy_minus_sign: | N/A | | -| `role` | array<[\LukeHagar\Plex_API\Models\Operations\Role](../../Models/Operations/Role.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `media` | array<[Operations\Media](../../Models/Operations/Media.md)> | :heavy_minus_sign: | N/A | | +| `genre` | array<[Operations\Genre](../../Models/Operations/Genre.md)> | :heavy_minus_sign: | N/A | | +| `director` | array<[Operations\Director](../../Models/Operations/Director.md)> | :heavy_minus_sign: | N/A | | +| `writer` | array<[Operations\Writer](../../Models/Operations/Writer.md)> | :heavy_minus_sign: | N/A | | +| `country` | array<[Operations\Country](../../Models/Operations/Country.md)> | :heavy_minus_sign: | N/A | | +| `role` | array<[Operations\Role](../../Models/Operations/Role.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetRecentlyAddedResponse.md b/docs/Models/Operations/GetRecentlyAddedResponse.md index 1a33446..b497195 100644 --- a/docs/Models/Operations/GetRecentlyAddedResponse.md +++ b/docs/Models/Operations/GetRecentlyAddedResponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetRecentlyAddedResponseBody](../../Models/Operations/GetRecentlyAddedResponseBody.md) | :heavy_minus_sign: | The recently added content | -| `fourHundredAndOneApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetRecentlyAddedLibraryResponseBody](../../Models/Operations/GetRecentlyAddedLibraryResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\GetRecentlyAddedResponseBody](../../Models/Operations/GetRecentlyAddedResponseBody.md) | :heavy_minus_sign: | The recently added content | \ No newline at end of file diff --git a/docs/Models/Operations/GetRecentlyAddedResponseBody.md b/docs/Models/Operations/GetRecentlyAddedResponseBody.md index 86309a9..08f18e7 100644 --- a/docs/Models/Operations/GetRecentlyAddedResponseBody.md +++ b/docs/Models/Operations/GetRecentlyAddedResponseBody.md @@ -5,6 +5,6 @@ The recently added content ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [?\LukeHagar\Plex_API\Models\Operations\GetRecentlyAddedMediaContainer](../../Models/Operations/GetRecentlyAddedMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [?Operations\GetRecentlyAddedMediaContainer](../../Models/Operations/GetRecentlyAddedMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetResizedPhotoRequest.md b/docs/Models/Operations/GetResizedPhotoRequest.md index b2be1a3..9d16bc0 100644 --- a/docs/Models/Operations/GetResizedPhotoRequest.md +++ b/docs/Models/Operations/GetResizedPhotoRequest.md @@ -9,6 +9,6 @@ | `height` | *float* | :heavy_check_mark: | The height for the resized photo | 165 | | `opacity` | *int* | :heavy_check_mark: | The opacity for the resized photo | | | `blur` | *float* | :heavy_check_mark: | The width for the resized photo | 0 | -| `minSize` | [\LukeHagar\Plex_API\Models\Operations\MinSize](../../Models/Operations/MinSize.md) | :heavy_check_mark: | images are always scaled proportionally. A value of '1' in minSize will make the smaller native dimension the dimension resized against. | | -| `upscale` | [\LukeHagar\Plex_API\Models\Operations\Upscale](../../Models/Operations/Upscale.md) | :heavy_check_mark: | allow images to be resized beyond native dimensions. | | +| `minSize` | [Operations\MinSize](../../Models/Operations/MinSize.md) | :heavy_check_mark: | images are always scaled proportionally. A value of '1' in minSize will make the smaller native dimension the dimension resized against. | | +| `upscale` | [Operations\Upscale](../../Models/Operations/Upscale.md) | :heavy_check_mark: | allow images to be resized beyond native dimensions. | | | `url` | *string* | :heavy_check_mark: | path to image within Plex | /library/metadata/49564/thumb/1654258204 | \ No newline at end of file diff --git a/docs/Models/Operations/GetResizedPhotoResponse.md b/docs/Models/Operations/GetResizedPhotoResponse.md index cd54692..17ec0a1 100644 --- a/docs/Models/Operations/GetResizedPhotoResponse.md +++ b/docs/Models/Operations/GetResizedPhotoResponse.md @@ -3,9 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [?\LukeHagar\Plex_API\Models\Operations\GetResizedPhotoResponseBody](../../Models/Operations/GetResizedPhotoResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetResizedPhotoResponseBody.md b/docs/Models/Operations/GetResizedPhotoResponseBody.md deleted file mode 100644 index 26905ab..0000000 --- a/docs/Models/Operations/GetResizedPhotoResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetResizedPhotoResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetResizedPhotoErrors](../../Models/Operations/GetResizedPhotoErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetResourcesStatisticsMediaContainer.md b/docs/Models/Operations/GetResourcesStatisticsMediaContainer.md index 0e3bbeb..9baad69 100644 --- a/docs/Models/Operations/GetResourcesStatisticsMediaContainer.md +++ b/docs/Models/Operations/GetResourcesStatisticsMediaContainer.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `size` | *?int* | :heavy_minus_sign: | N/A | 5497 | -| `statisticsResources` | array<[\LukeHagar\Plex_API\Models\Operations\StatisticsResources](../../Models/Operations/StatisticsResources.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `size` | *?int* | :heavy_minus_sign: | N/A | 5497 | +| `statisticsResources` | array<[Operations\StatisticsResources](../../Models/Operations/StatisticsResources.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetResourcesStatisticsResponse.md b/docs/Models/Operations/GetResourcesStatisticsResponse.md index 27a8eb8..75daae4 100644 --- a/docs/Models/Operations/GetResourcesStatisticsResponse.md +++ b/docs/Models/Operations/GetResourcesStatisticsResponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetResourcesStatisticsResponseBody](../../Models/Operations/GetResourcesStatisticsResponseBody.md) | :heavy_minus_sign: | Resource Statistics | -| `fourHundredAndOneApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetResourcesStatisticsStatisticsResponseBody](../../Models/Operations/GetResourcesStatisticsStatisticsResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\GetResourcesStatisticsResponseBody](../../Models/Operations/GetResourcesStatisticsResponseBody.md) | :heavy_minus_sign: | Resource Statistics | \ No newline at end of file diff --git a/docs/Models/Operations/GetResourcesStatisticsResponseBody.md b/docs/Models/Operations/GetResourcesStatisticsResponseBody.md index d2d5621..39a3ff1 100644 --- a/docs/Models/Operations/GetResourcesStatisticsResponseBody.md +++ b/docs/Models/Operations/GetResourcesStatisticsResponseBody.md @@ -5,6 +5,6 @@ Resource Statistics ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [?\LukeHagar\Plex_API\Models\Operations\GetResourcesStatisticsMediaContainer](../../Models/Operations/GetResourcesStatisticsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [?Operations\GetResourcesStatisticsMediaContainer](../../Models/Operations/GetResourcesStatisticsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetResourcesStatisticsStatisticsResponseBody.md b/docs/Models/Operations/GetResourcesStatisticsStatisticsResponseBody.md deleted file mode 100644 index caee700..0000000 --- a/docs/Models/Operations/GetResourcesStatisticsStatisticsResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetResourcesStatisticsStatisticsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetResourcesStatisticsErrors](../../Models/Operations/GetResourcesStatisticsErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetSearchResultsMedia.md b/docs/Models/Operations/GetSearchResultsMedia.md index de25a22..09d26d9 100644 --- a/docs/Models/Operations/GetSearchResultsMedia.md +++ b/docs/Models/Operations/GetSearchResultsMedia.md @@ -3,20 +3,20 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -| `id` | *?float* | :heavy_minus_sign: | N/A | 26610 | -| `duration` | *?float* | :heavy_minus_sign: | N/A | 6612628 | -| `bitrate` | *?float* | :heavy_minus_sign: | N/A | 4751 | -| `width` | *?float* | :heavy_minus_sign: | N/A | 1916 | -| `height` | *?float* | :heavy_minus_sign: | N/A | 796 | -| `aspectRatio` | *?float* | :heavy_minus_sign: | N/A | 2.35 | -| `audioChannels` | *?float* | :heavy_minus_sign: | N/A | 6 | -| `audioCodec` | *?string* | :heavy_minus_sign: | N/A | aac | -| `videoCodec` | *?string* | :heavy_minus_sign: | N/A | hevc | -| `videoResolution` | *?float* | :heavy_minus_sign: | N/A | 1080 | -| `container` | *?string* | :heavy_minus_sign: | N/A | mkv | -| `videoFrameRate` | *?string* | :heavy_minus_sign: | N/A | 24p | -| `audioProfile` | *?string* | :heavy_minus_sign: | N/A | lc | -| `videoProfile` | *?string* | :heavy_minus_sign: | N/A | main 10 | -| `part` | array<[\LukeHagar\Plex_API\Models\Operations\GetSearchResultsPart](../../Models/Operations/GetSearchResultsPart.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `id` | *?float* | :heavy_minus_sign: | N/A | 26610 | +| `duration` | *?float* | :heavy_minus_sign: | N/A | 6612628 | +| `bitrate` | *?float* | :heavy_minus_sign: | N/A | 4751 | +| `width` | *?float* | :heavy_minus_sign: | N/A | 1916 | +| `height` | *?float* | :heavy_minus_sign: | N/A | 796 | +| `aspectRatio` | *?float* | :heavy_minus_sign: | N/A | 2.35 | +| `audioChannels` | *?float* | :heavy_minus_sign: | N/A | 6 | +| `audioCodec` | *?string* | :heavy_minus_sign: | N/A | aac | +| `videoCodec` | *?string* | :heavy_minus_sign: | N/A | hevc | +| `videoResolution` | *?float* | :heavy_minus_sign: | N/A | 1080 | +| `container` | *?string* | :heavy_minus_sign: | N/A | mkv | +| `videoFrameRate` | *?string* | :heavy_minus_sign: | N/A | 24p | +| `audioProfile` | *?string* | :heavy_minus_sign: | N/A | lc | +| `videoProfile` | *?string* | :heavy_minus_sign: | N/A | main 10 | +| `part` | array<[Operations\GetSearchResultsPart](../../Models/Operations/GetSearchResultsPart.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetSearchResultsMediaContainer.md b/docs/Models/Operations/GetSearchResultsMediaContainer.md index d4d7975..120b190 100644 --- a/docs/Models/Operations/GetSearchResultsMediaContainer.md +++ b/docs/Models/Operations/GetSearchResultsMediaContainer.md @@ -3,11 +3,11 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | -| `size` | *?float* | :heavy_minus_sign: | N/A | 26 | -| `identifier` | *?string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `mediaTagPrefix` | *?string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | -| `mediaTagVersion` | *?float* | :heavy_minus_sign: | N/A | 1680021154 | -| `metadata` | array<[\LukeHagar\Plex_API\Models\Operations\GetSearchResultsMetadata](../../Models/Operations/GetSearchResultsMetadata.md)> | :heavy_minus_sign: | N/A | | -| `provider` | array<[\LukeHagar\Plex_API\Models\Operations\Provider](../../Models/Operations/Provider.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `size` | *?float* | :heavy_minus_sign: | N/A | 26 | +| `identifier` | *?string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | +| `mediaTagPrefix` | *?string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | +| `mediaTagVersion` | *?float* | :heavy_minus_sign: | N/A | 1680021154 | +| `metadata` | array<[Operations\GetSearchResultsMetadata](../../Models/Operations/GetSearchResultsMetadata.md)> | :heavy_minus_sign: | N/A | | +| `provider` | array<[Operations\Provider](../../Models/Operations/Provider.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetSearchResultsMetadata.md b/docs/Models/Operations/GetSearchResultsMetadata.md index 8226644..e9b4050 100644 --- a/docs/Models/Operations/GetSearchResultsMetadata.md +++ b/docs/Models/Operations/GetSearchResultsMetadata.md @@ -33,9 +33,9 @@ | `chapterSource` | *?string* | :heavy_minus_sign: | N/A | media | | `primaryExtraKey` | *?string* | :heavy_minus_sign: | N/A | /library/metadata/10501 | | `ratingImage` | *?string* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.ripe | -| `media` | array<[\LukeHagar\Plex_API\Models\Operations\GetSearchResultsMedia](../../Models/Operations/GetSearchResultsMedia.md)> | :heavy_minus_sign: | N/A | | -| `genre` | array<[\LukeHagar\Plex_API\Models\Operations\GetSearchResultsGenre](../../Models/Operations/GetSearchResultsGenre.md)> | :heavy_minus_sign: | N/A | | -| `director` | array<[\LukeHagar\Plex_API\Models\Operations\GetSearchResultsDirector](../../Models/Operations/GetSearchResultsDirector.md)> | :heavy_minus_sign: | N/A | | -| `writer` | array<[\LukeHagar\Plex_API\Models\Operations\GetSearchResultsWriter](../../Models/Operations/GetSearchResultsWriter.md)> | :heavy_minus_sign: | N/A | | -| `country` | array<[\LukeHagar\Plex_API\Models\Operations\GetSearchResultsCountry](../../Models/Operations/GetSearchResultsCountry.md)> | :heavy_minus_sign: | N/A | | -| `role` | array<[\LukeHagar\Plex_API\Models\Operations\GetSearchResultsRole](../../Models/Operations/GetSearchResultsRole.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `media` | array<[Operations\GetSearchResultsMedia](../../Models/Operations/GetSearchResultsMedia.md)> | :heavy_minus_sign: | N/A | | +| `genre` | array<[Operations\GetSearchResultsGenre](../../Models/Operations/GetSearchResultsGenre.md)> | :heavy_minus_sign: | N/A | | +| `director` | array<[Operations\GetSearchResultsDirector](../../Models/Operations/GetSearchResultsDirector.md)> | :heavy_minus_sign: | N/A | | +| `writer` | array<[Operations\GetSearchResultsWriter](../../Models/Operations/GetSearchResultsWriter.md)> | :heavy_minus_sign: | N/A | | +| `country` | array<[Operations\GetSearchResultsCountry](../../Models/Operations/GetSearchResultsCountry.md)> | :heavy_minus_sign: | N/A | | +| `role` | array<[Operations\GetSearchResultsRole](../../Models/Operations/GetSearchResultsRole.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetSearchResultsResponse.md b/docs/Models/Operations/GetSearchResultsResponse.md index 5d4446b..d4be448 100644 --- a/docs/Models/Operations/GetSearchResultsResponse.md +++ b/docs/Models/Operations/GetSearchResultsResponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetSearchResultsResponseBody](../../Models/Operations/GetSearchResultsResponseBody.md) | :heavy_minus_sign: | Search Results | -| `fourHundredAndOneApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetSearchResultsSearchResponseBody](../../Models/Operations/GetSearchResultsSearchResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\GetSearchResultsResponseBody](../../Models/Operations/GetSearchResultsResponseBody.md) | :heavy_minus_sign: | Search Results | \ No newline at end of file diff --git a/docs/Models/Operations/GetSearchResultsResponseBody.md b/docs/Models/Operations/GetSearchResultsResponseBody.md index 5e53fc0..f717618 100644 --- a/docs/Models/Operations/GetSearchResultsResponseBody.md +++ b/docs/Models/Operations/GetSearchResultsResponseBody.md @@ -5,6 +5,6 @@ Search Results ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [?\LukeHagar\Plex_API\Models\Operations\GetSearchResultsMediaContainer](../../Models/Operations/GetSearchResultsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [?Operations\GetSearchResultsMediaContainer](../../Models/Operations/GetSearchResultsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetSearchResultsSearchResponseBody.md b/docs/Models/Operations/GetSearchResultsSearchResponseBody.md deleted file mode 100644 index 318fe84..0000000 --- a/docs/Models/Operations/GetSearchResultsSearchResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetSearchResultsSearchResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetSearchResultsErrors](../../Models/Operations/GetSearchResultsErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetServerActivitiesActivitiesResponseBody.md b/docs/Models/Operations/GetServerActivitiesActivitiesResponseBody.md deleted file mode 100644 index ffbe690..0000000 --- a/docs/Models/Operations/GetServerActivitiesActivitiesResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetServerActivitiesActivitiesResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetServerActivitiesErrors](../../Models/Operations/GetServerActivitiesErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetServerActivitiesMediaContainer.md b/docs/Models/Operations/GetServerActivitiesMediaContainer.md index 29fe7ac..725d17d 100644 --- a/docs/Models/Operations/GetServerActivitiesMediaContainer.md +++ b/docs/Models/Operations/GetServerActivitiesMediaContainer.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `size` | *?float* | :heavy_minus_sign: | N/A | -| `activity` | array<[\LukeHagar\Plex_API\Models\Operations\Activity](../../Models/Operations/Activity.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | +| `size` | *?float* | :heavy_minus_sign: | N/A | +| `activity` | array<[Operations\Activity](../../Models/Operations/Activity.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetServerActivitiesResponse.md b/docs/Models/Operations/GetServerActivitiesResponse.md index 6b8d95c..4fb46a6 100644 --- a/docs/Models/Operations/GetServerActivitiesResponse.md +++ b/docs/Models/Operations/GetServerActivitiesResponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetServerActivitiesResponseBody](../../Models/Operations/GetServerActivitiesResponseBody.md) | :heavy_minus_sign: | The Server Activities | -| `fourHundredAndOneApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetServerActivitiesActivitiesResponseBody](../../Models/Operations/GetServerActivitiesActivitiesResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\GetServerActivitiesResponseBody](../../Models/Operations/GetServerActivitiesResponseBody.md) | :heavy_minus_sign: | The Server Activities | \ No newline at end of file diff --git a/docs/Models/Operations/GetServerActivitiesResponseBody.md b/docs/Models/Operations/GetServerActivitiesResponseBody.md index a1f421d..5cb4c81 100644 --- a/docs/Models/Operations/GetServerActivitiesResponseBody.md +++ b/docs/Models/Operations/GetServerActivitiesResponseBody.md @@ -5,6 +5,6 @@ The Server Activities ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [?\LukeHagar\Plex_API\Models\Operations\GetServerActivitiesMediaContainer](../../Models/Operations/GetServerActivitiesMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [?Operations\GetServerActivitiesMediaContainer](../../Models/Operations/GetServerActivitiesMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetServerCapabilitiesResponse.md b/docs/Models/Operations/GetServerCapabilitiesResponse.md index ce5a6e5..5ad442a 100644 --- a/docs/Models/Operations/GetServerCapabilitiesResponse.md +++ b/docs/Models/Operations/GetServerCapabilitiesResponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetServerCapabilitiesResponseBody](../../Models/Operations/GetServerCapabilitiesResponseBody.md) | :heavy_minus_sign: | The Server Capabilities | -| `fourHundredAndOneApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetServerCapabilitiesServerResponseBody](../../Models/Operations/GetServerCapabilitiesServerResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\GetServerCapabilitiesResponseBody](../../Models/Operations/GetServerCapabilitiesResponseBody.md) | :heavy_minus_sign: | The Server Capabilities | \ No newline at end of file diff --git a/docs/Models/Operations/GetServerCapabilitiesResponseBody.md b/docs/Models/Operations/GetServerCapabilitiesResponseBody.md index 602cd73..a1e1fcf 100644 --- a/docs/Models/Operations/GetServerCapabilitiesResponseBody.md +++ b/docs/Models/Operations/GetServerCapabilitiesResponseBody.md @@ -5,6 +5,6 @@ The Server Capabilities ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [?\LukeHagar\Plex_API\Models\Operations\MediaContainer](../../Models/Operations/MediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `mediaContainer` | [?Operations\MediaContainer](../../Models/Operations/MediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetServerCapabilitiesServerResponseBody.md b/docs/Models/Operations/GetServerCapabilitiesServerResponseBody.md deleted file mode 100644 index b049215..0000000 --- a/docs/Models/Operations/GetServerCapabilitiesServerResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetServerCapabilitiesServerResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\Errors](../../Models/Operations/Errors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetServerIdentityResponse.md b/docs/Models/Operations/GetServerIdentityResponse.md index 281be8b..649a5e7 100644 --- a/docs/Models/Operations/GetServerIdentityResponse.md +++ b/docs/Models/Operations/GetServerIdentityResponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetServerIdentityResponseBody](../../Models/Operations/GetServerIdentityResponseBody.md) | :heavy_minus_sign: | The Server Identity information | -| `fourHundredAndOneApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetServerIdentityServerResponseBody](../../Models/Operations/GetServerIdentityServerResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\GetServerIdentityResponseBody](../../Models/Operations/GetServerIdentityResponseBody.md) | :heavy_minus_sign: | The Server Identity information | \ No newline at end of file diff --git a/docs/Models/Operations/GetServerIdentityResponseBody.md b/docs/Models/Operations/GetServerIdentityResponseBody.md index 9bc8749..441c3fd 100644 --- a/docs/Models/Operations/GetServerIdentityResponseBody.md +++ b/docs/Models/Operations/GetServerIdentityResponseBody.md @@ -5,6 +5,6 @@ The Server Identity information ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | -| `mediaContainer` | [?\LukeHagar\Plex_API\Models\Operations\GetServerIdentityMediaContainer](../../Models/Operations/GetServerIdentityMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [?Operations\GetServerIdentityMediaContainer](../../Models/Operations/GetServerIdentityMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetServerIdentityServerResponseBody.md b/docs/Models/Operations/GetServerIdentityServerResponseBody.md deleted file mode 100644 index 25f3f13..0000000 --- a/docs/Models/Operations/GetServerIdentityServerResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetServerIdentityServerResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetServerIdentityErrors](../../Models/Operations/GetServerIdentityErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetServerListMediaContainer.md b/docs/Models/Operations/GetServerListMediaContainer.md index 6fd2021..f6137d3 100644 --- a/docs/Models/Operations/GetServerListMediaContainer.md +++ b/docs/Models/Operations/GetServerListMediaContainer.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `size` | *?float* | :heavy_minus_sign: | N/A | 1 | -| `server` | array<[\LukeHagar\Plex_API\Models\Operations\GetServerListServer](../../Models/Operations/GetServerListServer.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `size` | *?float* | :heavy_minus_sign: | N/A | 1 | +| `server` | array<[Operations\GetServerListServer](../../Models/Operations/GetServerListServer.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetServerListResponse.md b/docs/Models/Operations/GetServerListResponse.md index b4e5ba4..fd8c64a 100644 --- a/docs/Models/Operations/GetServerListResponse.md +++ b/docs/Models/Operations/GetServerListResponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetServerListResponseBody](../../Models/Operations/GetServerListResponseBody.md) | :heavy_minus_sign: | List of Servers | -| `fourHundredAndOneApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetServerListServerResponseBody](../../Models/Operations/GetServerListServerResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\GetServerListResponseBody](../../Models/Operations/GetServerListResponseBody.md) | :heavy_minus_sign: | List of Servers | \ No newline at end of file diff --git a/docs/Models/Operations/GetServerListResponseBody.md b/docs/Models/Operations/GetServerListResponseBody.md index 8969ec8..e2358ef 100644 --- a/docs/Models/Operations/GetServerListResponseBody.md +++ b/docs/Models/Operations/GetServerListResponseBody.md @@ -5,6 +5,6 @@ List of Servers ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [?\LukeHagar\Plex_API\Models\Operations\GetServerListMediaContainer](../../Models/Operations/GetServerListMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [?Operations\GetServerListMediaContainer](../../Models/Operations/GetServerListMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetServerListServerResponseBody.md b/docs/Models/Operations/GetServerListServerResponseBody.md deleted file mode 100644 index 03f75c9..0000000 --- a/docs/Models/Operations/GetServerListServerResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetServerListServerResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetServerListErrors](../../Models/Operations/GetServerListErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetServerPreferencesMediaContainer.md b/docs/Models/Operations/GetServerPreferencesMediaContainer.md index f0762bd..2b46b9c 100644 --- a/docs/Models/Operations/GetServerPreferencesMediaContainer.md +++ b/docs/Models/Operations/GetServerPreferencesMediaContainer.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `size` | *?int* | :heavy_minus_sign: | N/A | 161 | -| `setting` | array<[\LukeHagar\Plex_API\Models\Operations\Setting](../../Models/Operations/Setting.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `size` | *?int* | :heavy_minus_sign: | N/A | 161 | +| `setting` | array<[Operations\Setting](../../Models/Operations/Setting.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetServerPreferencesResponse.md b/docs/Models/Operations/GetServerPreferencesResponse.md index c14e538..a0d3435 100644 --- a/docs/Models/Operations/GetServerPreferencesResponse.md +++ b/docs/Models/Operations/GetServerPreferencesResponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetServerPreferencesResponseBody](../../Models/Operations/GetServerPreferencesResponseBody.md) | :heavy_minus_sign: | Server Preferences | -| `fourHundredAndOneApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetServerPreferencesServerResponseBody](../../Models/Operations/GetServerPreferencesServerResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\GetServerPreferencesResponseBody](../../Models/Operations/GetServerPreferencesResponseBody.md) | :heavy_minus_sign: | Server Preferences | \ No newline at end of file diff --git a/docs/Models/Operations/GetServerPreferencesResponseBody.md b/docs/Models/Operations/GetServerPreferencesResponseBody.md index 4503bf6..ee30cac 100644 --- a/docs/Models/Operations/GetServerPreferencesResponseBody.md +++ b/docs/Models/Operations/GetServerPreferencesResponseBody.md @@ -5,6 +5,6 @@ Server Preferences ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | -| `mediaContainer` | [?\LukeHagar\Plex_API\Models\Operations\GetServerPreferencesMediaContainer](../../Models/Operations/GetServerPreferencesMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [?Operations\GetServerPreferencesMediaContainer](../../Models/Operations/GetServerPreferencesMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetServerPreferencesServerResponseBody.md b/docs/Models/Operations/GetServerPreferencesServerResponseBody.md deleted file mode 100644 index c8b9258..0000000 --- a/docs/Models/Operations/GetServerPreferencesServerResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetServerPreferencesServerResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetServerPreferencesErrors](../../Models/Operations/GetServerPreferencesErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetSessionHistoryMediaContainer.md b/docs/Models/Operations/GetSessionHistoryMediaContainer.md index c48e548..defe5fe 100644 --- a/docs/Models/Operations/GetSessionHistoryMediaContainer.md +++ b/docs/Models/Operations/GetSessionHistoryMediaContainer.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `size` | *?int* | :heavy_minus_sign: | N/A | 10855 | -| `metadata` | array<[\LukeHagar\Plex_API\Models\Operations\GetSessionHistoryMetadata](../../Models/Operations/GetSessionHistoryMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `size` | *?int* | :heavy_minus_sign: | N/A | 10855 | +| `metadata` | array<[Operations\GetSessionHistoryMetadata](../../Models/Operations/GetSessionHistoryMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetSessionHistoryRequest.md b/docs/Models/Operations/GetSessionHistoryRequest.md index ba6d741..63defa5 100644 --- a/docs/Models/Operations/GetSessionHistoryRequest.md +++ b/docs/Models/Operations/GetSessionHistoryRequest.md @@ -7,5 +7,5 @@ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `sort` | *?string* | :heavy_minus_sign: | Sorts the results by the specified field followed by the direction (asc, desc)
| | | `accountId` | *?int* | :heavy_minus_sign: | Filter results by those that are related to a specific users id
| 1 | -| `filter` | [?\LukeHagar\Plex_API\Models\Operations\Filter](../../Models/Operations/Filter.md) | :heavy_minus_sign: | Filters content by field and direction/equality
(Unknown if viewedAt is the only supported column)
| {
"viewed-at-greater-than": {
"value": "viewedAt\u003e"
},
"viewed-at-greater-than-or-equal-to": {
"value": "viewedAt\u003e=\u003e"
},
"viewed-at-less-than": {
"value": "viewedAt\u003c"
}
} | +| `filter` | [?Operations\Filter](../../Models/Operations/Filter.md) | :heavy_minus_sign: | Filters content by field and direction/equality
(Unknown if viewedAt is the only supported column)
| {
"viewed-at-greater-than": {
"value": "viewedAt\u003e"
},
"viewed-at-greater-than-or-equal-to": {
"value": "viewedAt\u003e=\u003e"
},
"viewed-at-less-than": {
"value": "viewedAt\u003c"
}
} | | `librarySectionID` | *?int* | :heavy_minus_sign: | Filters the results based on the id of a valid library section
| 12 | \ No newline at end of file diff --git a/docs/Models/Operations/GetSessionHistoryResponse.md b/docs/Models/Operations/GetSessionHistoryResponse.md index 5208ace..8247e13 100644 --- a/docs/Models/Operations/GetSessionHistoryResponse.md +++ b/docs/Models/Operations/GetSessionHistoryResponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetSessionHistoryResponseBody](../../Models/Operations/GetSessionHistoryResponseBody.md) | :heavy_minus_sign: | List of Plex Sessions | -| `fourHundredAndOneApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetSessionHistorySessionsResponseBody](../../Models/Operations/GetSessionHistorySessionsResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\GetSessionHistoryResponseBody](../../Models/Operations/GetSessionHistoryResponseBody.md) | :heavy_minus_sign: | List of Plex Sessions | \ No newline at end of file diff --git a/docs/Models/Operations/GetSessionHistoryResponseBody.md b/docs/Models/Operations/GetSessionHistoryResponseBody.md index 33a0062..7dff3b8 100644 --- a/docs/Models/Operations/GetSessionHistoryResponseBody.md +++ b/docs/Models/Operations/GetSessionHistoryResponseBody.md @@ -5,6 +5,6 @@ List of Plex Sessions ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | -| `mediaContainer` | [?\LukeHagar\Plex_API\Models\Operations\GetSessionHistoryMediaContainer](../../Models/Operations/GetSessionHistoryMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [?Operations\GetSessionHistoryMediaContainer](../../Models/Operations/GetSessionHistoryMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetSessionHistorySessionsResponseBody.md b/docs/Models/Operations/GetSessionHistorySessionsResponseBody.md deleted file mode 100644 index 7a05e87..0000000 --- a/docs/Models/Operations/GetSessionHistorySessionsResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetSessionHistorySessionsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetSessionHistoryErrors](../../Models/Operations/GetSessionHistoryErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetSessionsMedia.md b/docs/Models/Operations/GetSessionsMedia.md index 8a0e89e..45fca21 100644 --- a/docs/Models/Operations/GetSessionsMedia.md +++ b/docs/Models/Operations/GetSessionsMedia.md @@ -3,13 +3,13 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `audioChannels` | *?int* | :heavy_minus_sign: | N/A | 2 | -| `audioCodec` | *?string* | :heavy_minus_sign: | N/A | flac | -| `bitrate` | *?int* | :heavy_minus_sign: | N/A | 1014 | -| `container` | *?string* | :heavy_minus_sign: | N/A | flac | -| `duration` | *?int* | :heavy_minus_sign: | N/A | 186240 | -| `id` | *?string* | :heavy_minus_sign: | N/A | 130355 | -| `selected` | *?bool* | :heavy_minus_sign: | N/A | true | -| `part` | array<[\LukeHagar\Plex_API\Models\Operations\GetSessionsPart](../../Models/Operations/GetSessionsPart.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | +| `audioChannels` | *?int* | :heavy_minus_sign: | N/A | 2 | +| `audioCodec` | *?string* | :heavy_minus_sign: | N/A | flac | +| `bitrate` | *?int* | :heavy_minus_sign: | N/A | 1014 | +| `container` | *?string* | :heavy_minus_sign: | N/A | flac | +| `duration` | *?int* | :heavy_minus_sign: | N/A | 186240 | +| `id` | *?string* | :heavy_minus_sign: | N/A | 130355 | +| `selected` | *?bool* | :heavy_minus_sign: | N/A | true | +| `part` | array<[Operations\GetSessionsPart](../../Models/Operations/GetSessionsPart.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetSessionsMediaContainer.md b/docs/Models/Operations/GetSessionsMediaContainer.md index 13f5bb4..faa799f 100644 --- a/docs/Models/Operations/GetSessionsMediaContainer.md +++ b/docs/Models/Operations/GetSessionsMediaContainer.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `size` | *?int* | :heavy_minus_sign: | N/A | 1 | -| `metadata` | array<[\LukeHagar\Plex_API\Models\Operations\GetSessionsMetadata](../../Models/Operations/GetSessionsMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `size` | *?int* | :heavy_minus_sign: | N/A | 1 | +| `metadata` | array<[Operations\GetSessionsMetadata](../../Models/Operations/GetSessionsMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetSessionsMetadata.md b/docs/Models/Operations/GetSessionsMetadata.md index 080fe73..aa0e8db 100644 --- a/docs/Models/Operations/GetSessionsMetadata.md +++ b/docs/Models/Operations/GetSessionsMetadata.md @@ -3,42 +3,42 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| `addedAt` | *?int* | :heavy_minus_sign: | N/A | 1705543312 | -| `art` | *?string* | :heavy_minus_sign: | N/A | /library/metadata/39904/art/1705310687 | -| `duration` | *?int* | :heavy_minus_sign: | N/A | 186240 | -| `grandparentArt` | *?string* | :heavy_minus_sign: | N/A | /library/metadata/39904/art/1705310687 | -| `grandparentGuid` | *?string* | :heavy_minus_sign: | N/A | plex://artist/5d07bbfd403c6402904a6480 | -| `grandparentKey` | *?string* | :heavy_minus_sign: | N/A | /library/metadata/39904 | -| `grandparentRatingKey` | *?string* | :heavy_minus_sign: | N/A | 39904 | -| `grandparentThumb` | *?string* | :heavy_minus_sign: | N/A | /library/metadata/39904/thumb/1705310687 | -| `grandparentTitle` | *?string* | :heavy_minus_sign: | N/A | Green Day | -| `guid` | *?string* | :heavy_minus_sign: | N/A | plex://track/6535834f71f22f36f71a8e8f | -| `index` | *?int* | :heavy_minus_sign: | N/A | 1 | -| `key` | *?string* | :heavy_minus_sign: | N/A | /library/metadata/67085 | -| `librarySectionID` | *?string* | :heavy_minus_sign: | N/A | 3 | -| `librarySectionKey` | *?string* | :heavy_minus_sign: | N/A | /library/sections/3 | -| `librarySectionTitle` | *?string* | :heavy_minus_sign: | N/A | Music | -| `musicAnalysisVersion` | *?string* | :heavy_minus_sign: | N/A | 1 | -| `parentGuid` | *?string* | :heavy_minus_sign: | N/A | plex://album/65394d6d472b8ab03ef47f12 | -| `parentIndex` | *?int* | :heavy_minus_sign: | N/A | 1 | -| `parentKey` | *?string* | :heavy_minus_sign: | N/A | /library/metadata/67084 | -| `parentRatingKey` | *?string* | :heavy_minus_sign: | N/A | 67084 | -| `parentStudio` | *?string* | :heavy_minus_sign: | N/A | Reprise Records | -| `parentThumb` | *?string* | :heavy_minus_sign: | N/A | /library/metadata/67084/thumb/1705543314 | -| `parentTitle` | *?string* | :heavy_minus_sign: | N/A | Saviors | -| `parentYear` | *?int* | :heavy_minus_sign: | N/A | 2024 | -| `ratingCount` | *?int* | :heavy_minus_sign: | N/A | 45885 | -| `ratingKey` | *?string* | :heavy_minus_sign: | N/A | 67085 | -| `sessionKey` | *?string* | :heavy_minus_sign: | N/A | 203 | -| `thumb` | *?string* | :heavy_minus_sign: | N/A | /library/metadata/67084/thumb/1705543314 | -| `title` | *?string* | :heavy_minus_sign: | N/A | The American Dream Is Killing Me | -| `titleSort` | *?string* | :heavy_minus_sign: | N/A | American Dream Is Killing Me | -| `type` | *?string* | :heavy_minus_sign: | N/A | track | -| `updatedAt` | *?int* | :heavy_minus_sign: | N/A | 1705543314 | -| `viewOffset` | *?int* | :heavy_minus_sign: | N/A | 1000 | -| `media` | array<[\LukeHagar\Plex_API\Models\Operations\GetSessionsMedia](../../Models/Operations/GetSessionsMedia.md)> | :heavy_minus_sign: | N/A | | -| `user` | [?\LukeHagar\Plex_API\Models\Operations\GetSessionsUser](../../Models/Operations/GetSessionsUser.md) | :heavy_minus_sign: | N/A | | -| `player` | [?\LukeHagar\Plex_API\Models\Operations\Player](../../Models/Operations/Player.md) | :heavy_minus_sign: | N/A | | -| `session` | [?\LukeHagar\Plex_API\Models\Operations\Session](../../Models/Operations/Session.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `addedAt` | *?int* | :heavy_minus_sign: | N/A | 1705543312 | +| `art` | *?string* | :heavy_minus_sign: | N/A | /library/metadata/39904/art/1705310687 | +| `duration` | *?int* | :heavy_minus_sign: | N/A | 186240 | +| `grandparentArt` | *?string* | :heavy_minus_sign: | N/A | /library/metadata/39904/art/1705310687 | +| `grandparentGuid` | *?string* | :heavy_minus_sign: | N/A | plex://artist/5d07bbfd403c6402904a6480 | +| `grandparentKey` | *?string* | :heavy_minus_sign: | N/A | /library/metadata/39904 | +| `grandparentRatingKey` | *?string* | :heavy_minus_sign: | N/A | 39904 | +| `grandparentThumb` | *?string* | :heavy_minus_sign: | N/A | /library/metadata/39904/thumb/1705310687 | +| `grandparentTitle` | *?string* | :heavy_minus_sign: | N/A | Green Day | +| `guid` | *?string* | :heavy_minus_sign: | N/A | plex://track/6535834f71f22f36f71a8e8f | +| `index` | *?int* | :heavy_minus_sign: | N/A | 1 | +| `key` | *?string* | :heavy_minus_sign: | N/A | /library/metadata/67085 | +| `librarySectionID` | *?string* | :heavy_minus_sign: | N/A | 3 | +| `librarySectionKey` | *?string* | :heavy_minus_sign: | N/A | /library/sections/3 | +| `librarySectionTitle` | *?string* | :heavy_minus_sign: | N/A | Music | +| `musicAnalysisVersion` | *?string* | :heavy_minus_sign: | N/A | 1 | +| `parentGuid` | *?string* | :heavy_minus_sign: | N/A | plex://album/65394d6d472b8ab03ef47f12 | +| `parentIndex` | *?int* | :heavy_minus_sign: | N/A | 1 | +| `parentKey` | *?string* | :heavy_minus_sign: | N/A | /library/metadata/67084 | +| `parentRatingKey` | *?string* | :heavy_minus_sign: | N/A | 67084 | +| `parentStudio` | *?string* | :heavy_minus_sign: | N/A | Reprise Records | +| `parentThumb` | *?string* | :heavy_minus_sign: | N/A | /library/metadata/67084/thumb/1705543314 | +| `parentTitle` | *?string* | :heavy_minus_sign: | N/A | Saviors | +| `parentYear` | *?int* | :heavy_minus_sign: | N/A | 2024 | +| `ratingCount` | *?int* | :heavy_minus_sign: | N/A | 45885 | +| `ratingKey` | *?string* | :heavy_minus_sign: | N/A | 67085 | +| `sessionKey` | *?string* | :heavy_minus_sign: | N/A | 203 | +| `thumb` | *?string* | :heavy_minus_sign: | N/A | /library/metadata/67084/thumb/1705543314 | +| `title` | *?string* | :heavy_minus_sign: | N/A | The American Dream Is Killing Me | +| `titleSort` | *?string* | :heavy_minus_sign: | N/A | American Dream Is Killing Me | +| `type` | *?string* | :heavy_minus_sign: | N/A | track | +| `updatedAt` | *?int* | :heavy_minus_sign: | N/A | 1705543314 | +| `viewOffset` | *?int* | :heavy_minus_sign: | N/A | 1000 | +| `media` | array<[Operations\GetSessionsMedia](../../Models/Operations/GetSessionsMedia.md)> | :heavy_minus_sign: | N/A | | +| `user` | [?Operations\GetSessionsUser](../../Models/Operations/GetSessionsUser.md) | :heavy_minus_sign: | N/A | | +| `player` | [?Operations\Player](../../Models/Operations/Player.md) | :heavy_minus_sign: | N/A | | +| `session` | [?Operations\Session](../../Models/Operations/Session.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetSessionsPart.md b/docs/Models/Operations/GetSessionsPart.md index b3ab537..0fad1db 100644 --- a/docs/Models/Operations/GetSessionsPart.md +++ b/docs/Models/Operations/GetSessionsPart.md @@ -3,15 +3,15 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -| `container` | *?string* | :heavy_minus_sign: | N/A | flac | -| `duration` | *?int* | :heavy_minus_sign: | N/A | 186240 | -| `file` | *?string* | :heavy_minus_sign: | N/A | /music/Green Day/Saviors (2024)/Green Day - Saviors - 01 - The American Dream Is Killing Me.flac | -| `hasThumbnail` | *?string* | :heavy_minus_sign: | N/A | 1 | -| `id` | *?string* | :heavy_minus_sign: | N/A | 130625 | -| `key` | *?string* | :heavy_minus_sign: | N/A | /library/parts/130625/1705543268/file.flac | -| `size` | *?int* | :heavy_minus_sign: | N/A | 23644000 | -| `decision` | *?string* | :heavy_minus_sign: | N/A | directplay | -| `selected` | *?bool* | :heavy_minus_sign: | N/A | true | -| `stream` | array<[\LukeHagar\Plex_API\Models\Operations\GetSessionsStream](../../Models/Operations/GetSessionsStream.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `container` | *?string* | :heavy_minus_sign: | N/A | flac | +| `duration` | *?int* | :heavy_minus_sign: | N/A | 186240 | +| `file` | *?string* | :heavy_minus_sign: | N/A | /music/Green Day/Saviors (2024)/Green Day - Saviors - 01 - The American Dream Is Killing Me.flac | +| `hasThumbnail` | *?string* | :heavy_minus_sign: | N/A | 1 | +| `id` | *?string* | :heavy_minus_sign: | N/A | 130625 | +| `key` | *?string* | :heavy_minus_sign: | N/A | /library/parts/130625/1705543268/file.flac | +| `size` | *?int* | :heavy_minus_sign: | N/A | 23644000 | +| `decision` | *?string* | :heavy_minus_sign: | N/A | directplay | +| `selected` | *?bool* | :heavy_minus_sign: | N/A | true | +| `stream` | array<[Operations\GetSessionsStream](../../Models/Operations/GetSessionsStream.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetSessionsResponse.md b/docs/Models/Operations/GetSessionsResponse.md index fd34646..9ab0303 100644 --- a/docs/Models/Operations/GetSessionsResponse.md +++ b/docs/Models/Operations/GetSessionsResponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetSessionsResponseBody](../../Models/Operations/GetSessionsResponseBody.md) | :heavy_minus_sign: | List of Active Plex Sessions | -| `fourHundredAndOneApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetSessionsSessionsResponseBody](../../Models/Operations/GetSessionsSessionsResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\GetSessionsResponseBody](../../Models/Operations/GetSessionsResponseBody.md) | :heavy_minus_sign: | List of Active Plex Sessions | \ No newline at end of file diff --git a/docs/Models/Operations/GetSessionsResponseBody.md b/docs/Models/Operations/GetSessionsResponseBody.md index 609623c..e7183b3 100644 --- a/docs/Models/Operations/GetSessionsResponseBody.md +++ b/docs/Models/Operations/GetSessionsResponseBody.md @@ -5,6 +5,6 @@ List of Active Plex Sessions ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `mediaContainer` | [?\LukeHagar\Plex_API\Models\Operations\GetSessionsMediaContainer](../../Models/Operations/GetSessionsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `mediaContainer` | [?Operations\GetSessionsMediaContainer](../../Models/Operations/GetSessionsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetSessionsSessionsResponseBody.md b/docs/Models/Operations/GetSessionsSessionsResponseBody.md deleted file mode 100644 index 48bd04f..0000000 --- a/docs/Models/Operations/GetSessionsSessionsResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetSessionsSessionsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetSessionsErrors](../../Models/Operations/GetSessionsErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetSourceConnectionInformationResponse.md b/docs/Models/Operations/GetSourceConnectionInformationResponse.md index d0c81b3..0aef42d 100644 --- a/docs/Models/Operations/GetSourceConnectionInformationResponse.md +++ b/docs/Models/Operations/GetSourceConnectionInformationResponse.md @@ -3,9 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [?\LukeHagar\Plex_API\Models\Operations\GetSourceConnectionInformationResponseBody](../../Models/Operations/GetSourceConnectionInformationResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetSourceConnectionInformationResponseBody.md b/docs/Models/Operations/GetSourceConnectionInformationResponseBody.md deleted file mode 100644 index abe183b..0000000 --- a/docs/Models/Operations/GetSourceConnectionInformationResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetSourceConnectionInformationResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetSourceConnectionInformationErrors](../../Models/Operations/GetSourceConnectionInformationErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetStatisticsMediaContainer.md b/docs/Models/Operations/GetStatisticsMediaContainer.md index a8242e5..0a0b40a 100644 --- a/docs/Models/Operations/GetStatisticsMediaContainer.md +++ b/docs/Models/Operations/GetStatisticsMediaContainer.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `size` | *?int* | :heavy_minus_sign: | N/A | 5497 | -| `device` | array<[\LukeHagar\Plex_API\Models\Operations\GetStatisticsDevice](../../Models/Operations/GetStatisticsDevice.md)> | :heavy_minus_sign: | N/A | | -| `account` | array<[\LukeHagar\Plex_API\Models\Operations\Account](../../Models/Operations/Account.md)> | :heavy_minus_sign: | N/A | | -| `statisticsMedia` | array<[\LukeHagar\Plex_API\Models\Operations\StatisticsMedia](../../Models/Operations/StatisticsMedia.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `size` | *?int* | :heavy_minus_sign: | N/A | 5497 | +| `device` | array<[Operations\GetStatisticsDevice](../../Models/Operations/GetStatisticsDevice.md)> | :heavy_minus_sign: | N/A | | +| `account` | array<[Operations\Account](../../Models/Operations/Account.md)> | :heavy_minus_sign: | N/A | | +| `statisticsMedia` | array<[Operations\StatisticsMedia](../../Models/Operations/StatisticsMedia.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetStatisticsResponse.md b/docs/Models/Operations/GetStatisticsResponse.md index 5259e88..da3d009 100644 --- a/docs/Models/Operations/GetStatisticsResponse.md +++ b/docs/Models/Operations/GetStatisticsResponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetStatisticsResponseBody](../../Models/Operations/GetStatisticsResponseBody.md) | :heavy_minus_sign: | Media Statistics | -| `fourHundredAndOneApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetStatisticsStatisticsResponseBody](../../Models/Operations/GetStatisticsStatisticsResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\GetStatisticsResponseBody](../../Models/Operations/GetStatisticsResponseBody.md) | :heavy_minus_sign: | Media Statistics | \ No newline at end of file diff --git a/docs/Models/Operations/GetStatisticsResponseBody.md b/docs/Models/Operations/GetStatisticsResponseBody.md index a51b842..da7c09d 100644 --- a/docs/Models/Operations/GetStatisticsResponseBody.md +++ b/docs/Models/Operations/GetStatisticsResponseBody.md @@ -5,6 +5,6 @@ Media Statistics ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [?\LukeHagar\Plex_API\Models\Operations\GetStatisticsMediaContainer](../../Models/Operations/GetStatisticsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [?Operations\GetStatisticsMediaContainer](../../Models/Operations/GetStatisticsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetStatisticsStatisticsResponseBody.md b/docs/Models/Operations/GetStatisticsStatisticsResponseBody.md deleted file mode 100644 index d0a96bf..0000000 --- a/docs/Models/Operations/GetStatisticsStatisticsResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetStatisticsStatisticsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetStatisticsErrors](../../Models/Operations/GetStatisticsErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetTimelineRequest.md b/docs/Models/Operations/GetTimelineRequest.md index 6ef127e..44101bf 100644 --- a/docs/Models/Operations/GetTimelineRequest.md +++ b/docs/Models/Operations/GetTimelineRequest.md @@ -3,15 +3,15 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | -| `ratingKey` | *float* | :heavy_check_mark: | The rating key of the media item | 23409 | -| `key` | *string* | :heavy_check_mark: | The key of the media item to get the timeline for | /library/metadata/23409 | -| `state` | [\LukeHagar\Plex_API\Models\Operations\State](../../Models/Operations/State.md) | :heavy_check_mark: | The state of the media item | playing | -| `hasMDE` | *float* | :heavy_check_mark: | Whether the media item has MDE | 1 | -| `time` | *float* | :heavy_check_mark: | The time of the media item | 2000 | -| `duration` | *float* | :heavy_check_mark: | The duration of the media item | 10000 | -| `context` | *string* | :heavy_check_mark: | The context of the media item | home:hub.continueWatching | -| `playQueueItemID` | *float* | :heavy_check_mark: | The play queue item ID of the media item | 1 | -| `playBackTime` | *float* | :heavy_check_mark: | The playback time of the media item | 2000 | -| `row` | *float* | :heavy_check_mark: | The row of the media item | 1 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | +| `ratingKey` | *float* | :heavy_check_mark: | The rating key of the media item | 23409 | +| `key` | *string* | :heavy_check_mark: | The key of the media item to get the timeline for | /library/metadata/23409 | +| `state` | [Operations\State](../../Models/Operations/State.md) | :heavy_check_mark: | The state of the media item | playing | +| `hasMDE` | *float* | :heavy_check_mark: | Whether the media item has MDE | 1 | +| `time` | *float* | :heavy_check_mark: | The time of the media item | 2000 | +| `duration` | *float* | :heavy_check_mark: | The duration of the media item | 10000 | +| `context` | *string* | :heavy_check_mark: | The context of the media item | home:hub.continueWatching | +| `playQueueItemID` | *float* | :heavy_check_mark: | The play queue item ID of the media item | 1 | +| `playBackTime` | *float* | :heavy_check_mark: | The playback time of the media item | 2000 | +| `row` | *float* | :heavy_check_mark: | The row of the media item | 1 | \ No newline at end of file diff --git a/docs/Models/Operations/GetTimelineResponse.md b/docs/Models/Operations/GetTimelineResponse.md index 71e7530..2f08130 100644 --- a/docs/Models/Operations/GetTimelineResponse.md +++ b/docs/Models/Operations/GetTimelineResponse.md @@ -3,9 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [?\LukeHagar\Plex_API\Models\Operations\GetTimelineResponseBody](../../Models/Operations/GetTimelineResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetTimelineResponseBody.md b/docs/Models/Operations/GetTimelineResponseBody.md deleted file mode 100644 index 6200fa4..0000000 --- a/docs/Models/Operations/GetTimelineResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetTimelineResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetTimelineErrors](../../Models/Operations/GetTimelineErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetTokenPlexResponseBody.md b/docs/Models/Operations/GetTokenPlexResponseBody.md deleted file mode 100644 index bf3e7e6..0000000 --- a/docs/Models/Operations/GetTokenPlexResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetTokenPlexResponseBody - -X-Plex-Client-Identifier is missing - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetTokenErrors](../../Models/Operations/GetTokenErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetTokenResponse.md b/docs/Models/Operations/GetTokenResponse.md index 6d13fed..5489d3c 100644 --- a/docs/Models/Operations/GetTokenResponse.md +++ b/docs/Models/Operations/GetTokenResponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetTokenResponseBody](../../Models/Operations/GetTokenResponseBody.md) | :heavy_minus_sign: | Access Token | -| `fourHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetTokenPlexResponseBody](../../Models/Operations/GetTokenPlexResponseBody.md) | :heavy_minus_sign: | X-Plex-Client-Identifier is missing | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\GetTokenResponseBody](../../Models/Operations/GetTokenResponseBody.md) | :heavy_minus_sign: | Access Token | \ No newline at end of file diff --git a/docs/Models/Operations/GetTokenResponseBody.md b/docs/Models/Operations/GetTokenResponseBody.md index 06af776..77a95e4 100644 --- a/docs/Models/Operations/GetTokenResponseBody.md +++ b/docs/Models/Operations/GetTokenResponseBody.md @@ -13,7 +13,7 @@ Access Token | `trusted` | *?bool* | :heavy_minus_sign: | N/A | | | `qr` | *?string* | :heavy_minus_sign: | a link to a QR code hosted on plex.tv
The QR code redirects to the relevant `plex.tv/link` authentication page
Which then prompts the user for the 4 Digit Link Pin
| https://plex.tv/api/v2/pins/qr/3patfx1a78ukcbr7x0n9bl26t | | `clientIdentifier` | *?string* | :heavy_minus_sign: | N/A | Postman | -| `location` | [?\LukeHagar\Plex_API\Models\Operations\GetTokenLocation](../../Models/Operations/GetTokenLocation.md) | :heavy_minus_sign: | N/A | | +| `location` | [?Operations\GetTokenLocation](../../Models/Operations/GetTokenLocation.md) | :heavy_minus_sign: | N/A | | | `expiresIn` | *?float* | :heavy_minus_sign: | N/A | 1800 | | `createdAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_minus_sign: | N/A | 2023-04-12 17:00:03 +0000 UTC | | `expiresAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_minus_sign: | N/A | 2023-04-12 17:30:03 +0000 UTC | diff --git a/docs/Models/Operations/GetTopWatchedContentMediaContainer.md b/docs/Models/Operations/GetTopWatchedContentMediaContainer.md index 86391f7..f9b60f7 100644 --- a/docs/Models/Operations/GetTopWatchedContentMediaContainer.md +++ b/docs/Models/Operations/GetTopWatchedContentMediaContainer.md @@ -3,11 +3,11 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | -| `size` | *?int* | :heavy_minus_sign: | N/A | 1 | -| `allowSync` | *?bool* | :heavy_minus_sign: | N/A | true | -| `identifier` | *?string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `mediaTagPrefix` | *?string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | -| `mediaTagVersion` | *?int* | :heavy_minus_sign: | N/A | 1698860922 | -| `metadata` | array<[\LukeHagar\Plex_API\Models\Operations\GetTopWatchedContentMetadata](../../Models/Operations/GetTopWatchedContentMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | +| `size` | *?int* | :heavy_minus_sign: | N/A | 1 | +| `allowSync` | *?bool* | :heavy_minus_sign: | N/A | true | +| `identifier` | *?string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | +| `mediaTagPrefix` | *?string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | +| `mediaTagVersion` | *?int* | :heavy_minus_sign: | N/A | 1698860922 | +| `metadata` | array<[Operations\GetTopWatchedContentMetadata](../../Models/Operations/GetTopWatchedContentMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetTopWatchedContentMetadata.md b/docs/Models/Operations/GetTopWatchedContentMetadata.md index 9c1f9c3..a0eeaeb 100644 --- a/docs/Models/Operations/GetTopWatchedContentMetadata.md +++ b/docs/Models/Operations/GetTopWatchedContentMetadata.md @@ -32,8 +32,8 @@ | `updatedAt` | *?int* | :heavy_minus_sign: | N/A | 1705637165 | | `globalViewCount` | *?int* | :heavy_minus_sign: | N/A | 80 | | `audienceRatingImage` | *?string* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.upright | -| `genre` | array<[\LukeHagar\Plex_API\Models\Operations\GetTopWatchedContentGenre](../../Models/Operations/GetTopWatchedContentGenre.md)> | :heavy_minus_sign: | N/A | | -| `country` | array<[\LukeHagar\Plex_API\Models\Operations\GetTopWatchedContentCountry](../../Models/Operations/GetTopWatchedContentCountry.md)> | :heavy_minus_sign: | N/A | | -| `guids` | array<[\LukeHagar\Plex_API\Models\Operations\GetTopWatchedContentGuids](../../Models/Operations/GetTopWatchedContentGuids.md)> | :heavy_minus_sign: | N/A | | -| `role` | array<[\LukeHagar\Plex_API\Models\Operations\GetTopWatchedContentRole](../../Models/Operations/GetTopWatchedContentRole.md)> | :heavy_minus_sign: | N/A | | -| `user` | array<[\LukeHagar\Plex_API\Models\Operations\User](../../Models/Operations/User.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `genre` | array<[Operations\GetTopWatchedContentGenre](../../Models/Operations/GetTopWatchedContentGenre.md)> | :heavy_minus_sign: | N/A | | +| `country` | array<[Operations\GetTopWatchedContentCountry](../../Models/Operations/GetTopWatchedContentCountry.md)> | :heavy_minus_sign: | N/A | | +| `guids` | array<[Operations\GetTopWatchedContentGuids](../../Models/Operations/GetTopWatchedContentGuids.md)> | :heavy_minus_sign: | N/A | | +| `role` | array<[Operations\GetTopWatchedContentRole](../../Models/Operations/GetTopWatchedContentRole.md)> | :heavy_minus_sign: | N/A | | +| `user` | array<[Operations\User](../../Models/Operations/User.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetTopWatchedContentResponse.md b/docs/Models/Operations/GetTopWatchedContentResponse.md index 70e478d..1ef6e38 100644 --- a/docs/Models/Operations/GetTopWatchedContentResponse.md +++ b/docs/Models/Operations/GetTopWatchedContentResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [?\LukeHagar\Plex_API\Models\Operations\GetTopWatchedContentResponseBody](../../Models/Operations/GetTopWatchedContentResponseBody.md) | :heavy_minus_sign: | The metadata of the library item. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\GetTopWatchedContentResponseBody](../../Models/Operations/GetTopWatchedContentResponseBody.md) | :heavy_minus_sign: | The metadata of the library item. | \ No newline at end of file diff --git a/docs/Models/Operations/GetTopWatchedContentResponseBody.md b/docs/Models/Operations/GetTopWatchedContentResponseBody.md index 1aaa8c6..3b0d7cc 100644 --- a/docs/Models/Operations/GetTopWatchedContentResponseBody.md +++ b/docs/Models/Operations/GetTopWatchedContentResponseBody.md @@ -5,6 +5,6 @@ The metadata of the library item. ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | -| `mediaContainer` | [?\LukeHagar\Plex_API\Models\Operations\GetTopWatchedContentMediaContainer](../../Models/Operations/GetTopWatchedContentMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [?Operations\GetTopWatchedContentMediaContainer](../../Models/Operations/GetTopWatchedContentMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetTranscodeSessionsMediaContainer.md b/docs/Models/Operations/GetTranscodeSessionsMediaContainer.md index 9ad60a2..df3d77d 100644 --- a/docs/Models/Operations/GetTranscodeSessionsMediaContainer.md +++ b/docs/Models/Operations/GetTranscodeSessionsMediaContainer.md @@ -6,4 +6,4 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `size` | *?int* | :heavy_minus_sign: | N/A | 1 | -| `transcodeSession` | array<[\LukeHagar\Plex_API\Models\Operations\TranscodeSession](../../Models/Operations/TranscodeSession.md)> | :heavy_minus_sign: | N/A | [
{
"key": "vv3i2q2lax92qlzul1hbd4bx",
"throttled": false,
"complete": false,
"progress": 1.7999999523162842,
"size": -22,
"speed": 25.100000381469727,
"error": false,
"duration": 1445695,
"remaining": 53,
"context": "streaming",
"sourceVideoCodec": "h264",
"sourceAudioCodec": "aac",
"videoDecision": "transcode",
"audioDecision": "transcode",
"subtitleDecision": "burn",
"protocol": "http",
"container": "mkv",
"videoCodec": "h264",
"audioCodec": "opus",
"audioChannels": 1,
"transcodeHwRequested": true,
"timeStamp": 1705895805.4919229,
"maxOffsetAvailable": 29.53,
"minOffsetAvailable": 3.003000020980835
}
] | \ No newline at end of file +| `transcodeSession` | array<[Operations\TranscodeSession](../../Models/Operations/TranscodeSession.md)> | :heavy_minus_sign: | N/A | [
{
"key": "vv3i2q2lax92qlzul1hbd4bx",
"throttled": false,
"complete": false,
"progress": 1.7999999523162842,
"size": -22,
"speed": 25.100000381469727,
"error": false,
"duration": 1445695,
"remaining": 53,
"context": "streaming",
"sourceVideoCodec": "h264",
"sourceAudioCodec": "aac",
"videoDecision": "transcode",
"audioDecision": "transcode",
"subtitleDecision": "burn",
"protocol": "http",
"container": "mkv",
"videoCodec": "h264",
"audioCodec": "opus",
"audioChannels": 1,
"transcodeHwRequested": true,
"timeStamp": 1705895805.4919229,
"maxOffsetAvailable": 29.53,
"minOffsetAvailable": 3.003000020980835
}
] | \ No newline at end of file diff --git a/docs/Models/Operations/GetTranscodeSessionsResponse.md b/docs/Models/Operations/GetTranscodeSessionsResponse.md index 64ff216..aaef94c 100644 --- a/docs/Models/Operations/GetTranscodeSessionsResponse.md +++ b/docs/Models/Operations/GetTranscodeSessionsResponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetTranscodeSessionsResponseBody](../../Models/Operations/GetTranscodeSessionsResponseBody.md) | :heavy_minus_sign: | The Transcode Sessions | -| `fourHundredAndOneApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetTranscodeSessionsSessionsResponseBody](../../Models/Operations/GetTranscodeSessionsSessionsResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\GetTranscodeSessionsResponseBody](../../Models/Operations/GetTranscodeSessionsResponseBody.md) | :heavy_minus_sign: | The Transcode Sessions | \ No newline at end of file diff --git a/docs/Models/Operations/GetTranscodeSessionsResponseBody.md b/docs/Models/Operations/GetTranscodeSessionsResponseBody.md index c663940..0664afc 100644 --- a/docs/Models/Operations/GetTranscodeSessionsResponseBody.md +++ b/docs/Models/Operations/GetTranscodeSessionsResponseBody.md @@ -5,6 +5,6 @@ The Transcode Sessions ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | -| `mediaContainer` | [?\LukeHagar\Plex_API\Models\Operations\GetTranscodeSessionsMediaContainer](../../Models/Operations/GetTranscodeSessionsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [?Operations\GetTranscodeSessionsMediaContainer](../../Models/Operations/GetTranscodeSessionsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetTranscodeSessionsSessionsResponseBody.md b/docs/Models/Operations/GetTranscodeSessionsSessionsResponseBody.md deleted file mode 100644 index 7cc1c75..0000000 --- a/docs/Models/Operations/GetTranscodeSessionsSessionsResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetTranscodeSessionsSessionsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetTranscodeSessionsErrors](../../Models/Operations/GetTranscodeSessionsErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetTransientTokenRequest.md b/docs/Models/Operations/GetTransientTokenRequest.md index 8b2a411..46ccdcf 100644 --- a/docs/Models/Operations/GetTransientTokenRequest.md +++ b/docs/Models/Operations/GetTransientTokenRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [\LukeHagar\Plex_API\Models\Operations\GetTransientTokenQueryParamType](../../Models/Operations/GetTransientTokenQueryParamType.md) | :heavy_check_mark: | `delegation` - This is the only supported `type` parameter. | -| `scope` | [\LukeHagar\Plex_API\Models\Operations\Scope](../../Models/Operations/Scope.md) | :heavy_check_mark: | `all` - This is the only supported `scope` parameter. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `type` | [Operations\GetTransientTokenQueryParamType](../../Models/Operations/GetTransientTokenQueryParamType.md) | :heavy_check_mark: | `delegation` - This is the only supported `type` parameter. | +| `scope` | [Operations\Scope](../../Models/Operations/Scope.md) | :heavy_check_mark: | `all` - This is the only supported `scope` parameter. | \ No newline at end of file diff --git a/docs/Models/Operations/GetTransientTokenResponse.md b/docs/Models/Operations/GetTransientTokenResponse.md index c22b338..5963dee 100644 --- a/docs/Models/Operations/GetTransientTokenResponse.md +++ b/docs/Models/Operations/GetTransientTokenResponse.md @@ -3,9 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [?\LukeHagar\Plex_API\Models\Operations\GetTransientTokenResponseBody](../../Models/Operations/GetTransientTokenResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetTransientTokenResponseBody.md b/docs/Models/Operations/GetTransientTokenResponseBody.md deleted file mode 100644 index 99c3a3d..0000000 --- a/docs/Models/Operations/GetTransientTokenResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetTransientTokenResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetTransientTokenErrors](../../Models/Operations/GetTransientTokenErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetUpdateStatusMediaContainer.md b/docs/Models/Operations/GetUpdateStatusMediaContainer.md index 277161d..1d90fd3 100644 --- a/docs/Models/Operations/GetUpdateStatusMediaContainer.md +++ b/docs/Models/Operations/GetUpdateStatusMediaContainer.md @@ -10,4 +10,4 @@ | `checkedAt` | *?int* | :heavy_minus_sign: | N/A | 1705801232 | | `downloadURL` | *?string* | :heavy_minus_sign: | N/A | https://plex.tv/downloads/latest/5?channel=8&build=linux-x86_64&distro=redhat&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx | | `status` | *?int* | :heavy_minus_sign: | N/A | 0 | -| `release` | array<[\LukeHagar\Plex_API\Models\Operations\Release](../../Models/Operations/Release.md)> | :heavy_minus_sign: | N/A | [
{
"key": "https://plex.tv/updater/releases/5136",
"version": "1.40.0.7775-456fbaf97",
"added": "(PLEASE NOTE) This version makes changes to the database which will make it compatible only with server versions 1.31.2 or higher (released March 14). You will not be able to use your database on Plex Media Server versions lower than this after this update. Please also be patient when updating to this version if you have a very large database and allow the upgrade process to finish.\n(Collections) Items added to a collection from the item context menu will now lock the collection field on the items (#12793)\n(Music) Store track genres and add filtering options (#14653)\n(Music) Support ID3v2.4 null-separated tags for genres and release type (#14653)\n(View History) No longer create a view history entry for items marked as played (#10888)\n(Web) Updated to 4.118.0",
"fixed": "(Agents) Changing a 'Other Videos' type library to the modern movie agent would fail (#14483)\n(Agents) It is possible that agents are not initialised during startup on rare occasions (#14654)\n(Agents) Remove the legacy OpenSubtitles agent which is no longer supported upstream (#14667)\n(Collection) Server could become unresponsive when collection membership changes (#14612)\n(DVR) Previously watched recordings could be deleted without being watched again (#13779)\n(Libraries) When performing fix match on items from certain music libraries the language would default to Arabic (#14501)\n(Library) The Content Rating not equal to None filter does not work (#14620)\n(Search) Album search results could contain all the album's tracks too (#14486)\n(Subtitles) In some circumstances, sidecar subtitles can show up for media when they're no longer available (#14674)\n(Transcoder) HW encoding would fail on devices with no rate control (#14222)\n(Transcoder) Software transcoding on Ubuntu could cause unexpected behavior (#14605)",
"downloadURL": "https://plex.tv/downloads/latest/5?channel=8\u0026build=linux-x86_64\u0026distro=redhat\u0026X-Plex-Token=xxxxxxxxxxxxxxxxxxxx",
"state": "notify"
}
] | \ No newline at end of file +| `release` | array<[Operations\Release](../../Models/Operations/Release.md)> | :heavy_minus_sign: | N/A | [
{
"key": "https://plex.tv/updater/releases/5136",
"version": "1.40.0.7775-456fbaf97",
"added": "(PLEASE NOTE) This version makes changes to the database which will make it compatible only with server versions 1.31.2 or higher (released March 14). You will not be able to use your database on Plex Media Server versions lower than this after this update. Please also be patient when updating to this version if you have a very large database and allow the upgrade process to finish.\n(Collections) Items added to a collection from the item context menu will now lock the collection field on the items (#12793)\n(Music) Store track genres and add filtering options (#14653)\n(Music) Support ID3v2.4 null-separated tags for genres and release type (#14653)\n(View History) No longer create a view history entry for items marked as played (#10888)\n(Web) Updated to 4.118.0",
"fixed": "(Agents) Changing a 'Other Videos' type library to the modern movie agent would fail (#14483)\n(Agents) It is possible that agents are not initialised during startup on rare occasions (#14654)\n(Agents) Remove the legacy OpenSubtitles agent which is no longer supported upstream (#14667)\n(Collection) Server could become unresponsive when collection membership changes (#14612)\n(DVR) Previously watched recordings could be deleted without being watched again (#13779)\n(Libraries) When performing fix match on items from certain music libraries the language would default to Arabic (#14501)\n(Library) The Content Rating not equal to None filter does not work (#14620)\n(Search) Album search results could contain all the album's tracks too (#14486)\n(Subtitles) In some circumstances, sidecar subtitles can show up for media when they're no longer available (#14674)\n(Transcoder) HW encoding would fail on devices with no rate control (#14222)\n(Transcoder) Software transcoding on Ubuntu could cause unexpected behavior (#14605)",
"downloadURL": "https://plex.tv/downloads/latest/5?channel=8\u0026build=linux-x86_64\u0026distro=redhat\u0026X-Plex-Token=xxxxxxxxxxxxxxxxxxxx",
"state": "notify"
}
] | \ No newline at end of file diff --git a/docs/Models/Operations/GetUpdateStatusResponse.md b/docs/Models/Operations/GetUpdateStatusResponse.md index 01e733a..56861b5 100644 --- a/docs/Models/Operations/GetUpdateStatusResponse.md +++ b/docs/Models/Operations/GetUpdateStatusResponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetUpdateStatusResponseBody](../../Models/Operations/GetUpdateStatusResponseBody.md) | :heavy_minus_sign: | The Server Updates | -| `fourHundredAndOneApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetUpdateStatusUpdaterResponseBody](../../Models/Operations/GetUpdateStatusUpdaterResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\GetUpdateStatusResponseBody](../../Models/Operations/GetUpdateStatusResponseBody.md) | :heavy_minus_sign: | The Server Updates | \ No newline at end of file diff --git a/docs/Models/Operations/GetUpdateStatusResponseBody.md b/docs/Models/Operations/GetUpdateStatusResponseBody.md index 1d3929b..2ae1f65 100644 --- a/docs/Models/Operations/GetUpdateStatusResponseBody.md +++ b/docs/Models/Operations/GetUpdateStatusResponseBody.md @@ -5,6 +5,6 @@ The Server Updates ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [?\LukeHagar\Plex_API\Models\Operations\GetUpdateStatusMediaContainer](../../Models/Operations/GetUpdateStatusMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [?Operations\GetUpdateStatusMediaContainer](../../Models/Operations/GetUpdateStatusMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetUpdateStatusUpdaterResponseBody.md b/docs/Models/Operations/GetUpdateStatusUpdaterResponseBody.md deleted file mode 100644 index b10e904..0000000 --- a/docs/Models/Operations/GetUpdateStatusUpdaterResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetUpdateStatusUpdaterResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetUpdateStatusErrors](../../Models/Operations/GetUpdateStatusErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetWatchlistRequest.md b/docs/Models/Operations/GetWatchlistRequest.md index 9645244..335ab7e 100644 --- a/docs/Models/Operations/GetWatchlistRequest.md +++ b/docs/Models/Operations/GetWatchlistRequest.md @@ -5,12 +5,12 @@ | Field | Type | Required | Description | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `filter` | [\LukeHagar\Plex_API\Models\Operations\PathParamFilter](../../Models/Operations/PathParamFilter.md) | :heavy_check_mark: | Filter | -| `sort` | *?string* | :heavy_minus_sign: | In the format "field:dir". Available fields are "watchlistedAt" (Added At),
"titleSort" (Title), "originallyAvailableAt" (Release Date), or "rating" (Critic Rating).
"dir" can be "asc" or "desc"
| -| `libtype` | [?\LukeHagar\Plex_API\Models\Operations\Libtype](../../Models/Operations/Libtype.md) | :heavy_minus_sign: | The type of library to filter. Can be "movie" or "show", or all if not present.
| -| `maxresults` | *?int* | :heavy_minus_sign: | The number of items to return. If not specified, all items will be returned.
If the number of items exceeds the limit, the response will be paginated.
| -| `includeCollections` | [?\LukeHagar\Plex_API\Models\Operations\IncludeCollections](../../Models/Operations/IncludeCollections.md) | :heavy_minus_sign: | include collections in the results
| -| `includeExternalMedia` | [?\LukeHagar\Plex_API\Models\Operations\IncludeExternalMedia](../../Models/Operations/IncludeExternalMedia.md) | :heavy_minus_sign: | include external media in the results
| +| `filter` | [Operations\PathParamFilter](../../Models/Operations/PathParamFilter.md) | :heavy_check_mark: | Filter | | `xPlexToken` | *string* | :heavy_check_mark: | User Token | +| `sort` | *?string* | :heavy_minus_sign: | In the format "field:dir". Available fields are "watchlistedAt" (Added At),
"titleSort" (Title), "originallyAvailableAt" (Release Date), or "rating" (Critic Rating).
"dir" can be "asc" or "desc"
| +| `libtype` | [?Operations\Libtype](../../Models/Operations/Libtype.md) | :heavy_minus_sign: | The type of library to filter. Can be "movie" or "show", or all if not present.
| +| `maxresults` | *?int* | :heavy_minus_sign: | The number of items to return. If not specified, all items will be returned.
If the number of items exceeds the limit, the response will be paginated.
| +| `includeCollections` | [?Operations\IncludeCollections](../../Models/Operations/IncludeCollections.md) | :heavy_minus_sign: | include collections in the results
| +| `includeExternalMedia` | [?Operations\IncludeExternalMedia](../../Models/Operations/IncludeExternalMedia.md) | :heavy_minus_sign: | include external media in the results
| | `xPlexContainerStart` | *?int* | :heavy_minus_sign: | The index of the first item to return. If not specified, the first item will be returned.
If the number of items exceeds the limit, the response will be paginated.
| | `xPlexContainerSize` | *?int* | :heavy_minus_sign: | The number of items to return. If not specified, all items will be returned.
If the number of items exceeds the limit, the response will be paginated.
| \ No newline at end of file diff --git a/docs/Models/Operations/GetWatchlistResponse.md b/docs/Models/Operations/GetWatchlistResponse.md index 0aa6c80..1e77dd8 100644 --- a/docs/Models/Operations/GetWatchlistResponse.md +++ b/docs/Models/Operations/GetWatchlistResponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetWatchlistResponseBody](../../Models/Operations/GetWatchlistResponseBody.md) | :heavy_minus_sign: | Watchlist Data | -| `fourHundredAndOneApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetWatchlistWatchlistResponseBody](../../Models/Operations/GetWatchlistWatchlistResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\GetWatchlistResponseBody](../../Models/Operations/GetWatchlistResponseBody.md) | :heavy_minus_sign: | Watchlist Data | \ No newline at end of file diff --git a/docs/Models/Operations/GetWatchlistResponseBody.md b/docs/Models/Operations/GetWatchlistResponseBody.md index 379812f..cd0835e 100644 --- a/docs/Models/Operations/GetWatchlistResponseBody.md +++ b/docs/Models/Operations/GetWatchlistResponseBody.md @@ -5,12 +5,12 @@ Watchlist Data ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `librarySectionID` | *?string* | :heavy_minus_sign: | N/A | -| `librarySectionTitle` | *?string* | :heavy_minus_sign: | N/A | -| `offset` | *?int* | :heavy_minus_sign: | N/A | -| `totalSize` | *?int* | :heavy_minus_sign: | N/A | -| `identifier` | *?string* | :heavy_minus_sign: | N/A | -| `size` | *?int* | :heavy_minus_sign: | N/A | -| `metadata` | array<[\LukeHagar\Plex_API\Models\Operations\Metadata](../../Models/Operations/Metadata.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | +| `librarySectionID` | *?string* | :heavy_minus_sign: | N/A | +| `librarySectionTitle` | *?string* | :heavy_minus_sign: | N/A | +| `offset` | *?int* | :heavy_minus_sign: | N/A | +| `totalSize` | *?int* | :heavy_minus_sign: | N/A | +| `identifier` | *?string* | :heavy_minus_sign: | N/A | +| `size` | *?int* | :heavy_minus_sign: | N/A | +| `metadata` | array<[Operations\Metadata](../../Models/Operations/Metadata.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetWatchlistWatchlistResponseBody.md b/docs/Models/Operations/GetWatchlistWatchlistResponseBody.md deleted file mode 100644 index ab2621c..0000000 --- a/docs/Models/Operations/GetWatchlistWatchlistResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetWatchlistWatchlistResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetWatchlistErrors](../../Models/Operations/GetWatchlistErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/Hub.md b/docs/Models/Operations/Hub.md index 0385017..d29dd01 100644 --- a/docs/Models/Operations/Hub.md +++ b/docs/Models/Operations/Hub.md @@ -3,16 +3,16 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `hubKey` | *?string* | :heavy_minus_sign: | N/A | /library/metadata/50768,65523,58188,57341,57302,57070 | -| `key` | *?string* | :heavy_minus_sign: | N/A | /playlists/all?type=15&sort=lastViewedAt:desc&playlistType=video,audio | -| `title` | *?string* | :heavy_minus_sign: | N/A | Recent Playlists | -| `type` | *?string* | :heavy_minus_sign: | N/A | playlist | -| `hubIdentifier` | *?string* | :heavy_minus_sign: | N/A | home.playlists | -| `context` | *?string* | :heavy_minus_sign: | N/A | hub.home.playlists | -| `size` | *?int* | :heavy_minus_sign: | N/A | 6 | -| `more` | *?bool* | :heavy_minus_sign: | N/A | true | -| `style` | *?string* | :heavy_minus_sign: | N/A | shelf | -| `promoted` | *?bool* | :heavy_minus_sign: | N/A | true | -| `metadata` | array<[\LukeHagar\Plex_API\Models\Operations\GetGlobalHubsMetadata](../../Models/Operations/GetGlobalHubsMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `hubKey` | *?string* | :heavy_minus_sign: | N/A | /library/metadata/50768,65523,58188,57341,57302,57070 | +| `key` | *?string* | :heavy_minus_sign: | N/A | /playlists/all?type=15&sort=lastViewedAt:desc&playlistType=video,audio | +| `title` | *?string* | :heavy_minus_sign: | N/A | Recent Playlists | +| `type` | *?string* | :heavy_minus_sign: | N/A | playlist | +| `hubIdentifier` | *?string* | :heavy_minus_sign: | N/A | home.playlists | +| `context` | *?string* | :heavy_minus_sign: | N/A | hub.home.playlists | +| `size` | *?int* | :heavy_minus_sign: | N/A | 6 | +| `more` | *?bool* | :heavy_minus_sign: | N/A | true | +| `style` | *?string* | :heavy_minus_sign: | N/A | shelf | +| `promoted` | *?bool* | :heavy_minus_sign: | N/A | true | +| `metadata` | array<[Operations\GetGlobalHubsMetadata](../../Models/Operations/GetGlobalHubsMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/LibrarySectionID.md b/docs/Models/Operations/LibrarySectionID.md new file mode 100644 index 0000000..e80639f --- /dev/null +++ b/docs/Models/Operations/LibrarySectionID.md @@ -0,0 +1,17 @@ +# LibrarySectionID + + +## Supported Types + +### `int` + +```php +int $value = /* values here */ +``` + +### `string` + +```php +string $value = /* values here */ +``` + diff --git a/docs/Models/Operations/LogLineRequest.md b/docs/Models/Operations/LogLineRequest.md index 154de23..5c6e8d7 100644 --- a/docs/Models/Operations/LogLineRequest.md +++ b/docs/Models/Operations/LogLineRequest.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `level` | [\LukeHagar\Plex_API\Models\Operations\Level](../../Models/Operations/Level.md) | :heavy_check_mark: | An integer log level to write to the PMS log with.
0: Error
1: Warning
2: Info
3: Debug
4: Verbose
| | +| `level` | [Operations\Level](../../Models/Operations/Level.md) | :heavy_check_mark: | An integer log level to write to the PMS log with.
0: Error
1: Warning
2: Info
3: Debug
4: Verbose
| | | `message` | *string* | :heavy_check_mark: | The text of the message to write to the log. | Test log message | | `source` | *string* | :heavy_check_mark: | a string indicating the source of the message. | Postman | \ No newline at end of file diff --git a/docs/Models/Operations/LogLineResponse.md b/docs/Models/Operations/LogLineResponse.md index b5f3996..b5d9e93 100644 --- a/docs/Models/Operations/LogLineResponse.md +++ b/docs/Models/Operations/LogLineResponse.md @@ -7,5 +7,4 @@ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [?\LukeHagar\Plex_API\Models\Operations\LogLineResponseBody](../../Models/Operations/LogLineResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/LogLineResponseBody.md b/docs/Models/Operations/LogLineResponseBody.md deleted file mode 100644 index f4454cd..0000000 --- a/docs/Models/Operations/LogLineResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# LogLineResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\LogLineErrors](../../Models/Operations/LogLineErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/LogMultiLineResponse.md b/docs/Models/Operations/LogMultiLineResponse.md index 79e624a..95fa241 100644 --- a/docs/Models/Operations/LogMultiLineResponse.md +++ b/docs/Models/Operations/LogMultiLineResponse.md @@ -3,9 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [?\LukeHagar\Plex_API\Models\Operations\LogMultiLineResponseBody](../../Models/Operations/LogMultiLineResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/LogMultiLineResponseBody.md b/docs/Models/Operations/LogMultiLineResponseBody.md deleted file mode 100644 index aee2656..0000000 --- a/docs/Models/Operations/LogMultiLineResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# LogMultiLineResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\LogMultiLineErrors](../../Models/Operations/LogMultiLineErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/MarkPlayedResponse.md b/docs/Models/Operations/MarkPlayedResponse.md index f27670d..a80dfc5 100644 --- a/docs/Models/Operations/MarkPlayedResponse.md +++ b/docs/Models/Operations/MarkPlayedResponse.md @@ -3,9 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [?\LukeHagar\Plex_API\Models\Operations\MarkPlayedResponseBody](../../Models/Operations/MarkPlayedResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/MarkUnplayedResponse.md b/docs/Models/Operations/MarkUnplayedResponse.md index 936706b..0e631f4 100644 --- a/docs/Models/Operations/MarkUnplayedResponse.md +++ b/docs/Models/Operations/MarkUnplayedResponse.md @@ -3,9 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [?\LukeHagar\Plex_API\Models\Operations\MarkUnplayedResponseBody](../../Models/Operations/MarkUnplayedResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/MarkUnplayedResponseBody.md b/docs/Models/Operations/MarkUnplayedResponseBody.md deleted file mode 100644 index d6e148b..0000000 --- a/docs/Models/Operations/MarkUnplayedResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# MarkUnplayedResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\MarkUnplayedErrors](../../Models/Operations/MarkUnplayedErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/Media.md b/docs/Models/Operations/Media.md index c02acdd..11b9c88 100644 --- a/docs/Models/Operations/Media.md +++ b/docs/Models/Operations/Media.md @@ -3,21 +3,21 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `id` | *?float* | :heavy_minus_sign: | N/A | 120345 | -| `duration` | *?float* | :heavy_minus_sign: | N/A | 7474422 | -| `bitrate` | *?float* | :heavy_minus_sign: | N/A | 3623 | -| `width` | *?float* | :heavy_minus_sign: | N/A | 1920 | -| `height` | *?float* | :heavy_minus_sign: | N/A | 804 | -| `aspectRatio` | *?float* | :heavy_minus_sign: | N/A | 2.35 | -| `audioChannels` | *?float* | :heavy_minus_sign: | N/A | 6 | -| `audioCodec` | *?string* | :heavy_minus_sign: | N/A | ac3 | -| `videoCodec` | *?string* | :heavy_minus_sign: | N/A | h264 | -| `videoResolution` | *?float* | :heavy_minus_sign: | N/A | 1080 | -| `container` | *?string* | :heavy_minus_sign: | N/A | mp4 | -| `videoFrameRate` | *?string* | :heavy_minus_sign: | N/A | 24p | -| `optimizedForStreaming` | *?float* | :heavy_minus_sign: | N/A | 0 | -| `has64bitOffsets` | *?bool* | :heavy_minus_sign: | N/A | | -| `videoProfile` | *?string* | :heavy_minus_sign: | N/A | high | -| `part` | array<[\LukeHagar\Plex_API\Models\Operations\Part](../../Models/Operations/Part.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `id` | *?float* | :heavy_minus_sign: | N/A | 120345 | +| `duration` | *?float* | :heavy_minus_sign: | N/A | 7474422 | +| `bitrate` | *?float* | :heavy_minus_sign: | N/A | 3623 | +| `width` | *?float* | :heavy_minus_sign: | N/A | 1920 | +| `height` | *?float* | :heavy_minus_sign: | N/A | 804 | +| `aspectRatio` | *?float* | :heavy_minus_sign: | N/A | 2.35 | +| `audioChannels` | *?float* | :heavy_minus_sign: | N/A | 6 | +| `audioCodec` | *?string* | :heavy_minus_sign: | N/A | ac3 | +| `videoCodec` | *?string* | :heavy_minus_sign: | N/A | h264 | +| `videoResolution` | *?float* | :heavy_minus_sign: | N/A | 1080 | +| `container` | *?string* | :heavy_minus_sign: | N/A | mp4 | +| `videoFrameRate` | *?string* | :heavy_minus_sign: | N/A | 24p | +| `optimizedForStreaming` | *?float* | :heavy_minus_sign: | N/A | 0 | +| `has64bitOffsets` | *?bool* | :heavy_minus_sign: | N/A | | +| `videoProfile` | *?string* | :heavy_minus_sign: | N/A | high | +| `part` | array<[Operations\Part](../../Models/Operations/Part.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/MediaContainer.md b/docs/Models/Operations/MediaContainer.md index abc3953..7cdc498 100644 --- a/docs/Models/Operations/MediaContainer.md +++ b/docs/Models/Operations/MediaContainer.md @@ -3,56 +3,56 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `size` | *?float* | :heavy_minus_sign: | N/A | -| `allowCameraUpload` | *?bool* | :heavy_minus_sign: | N/A | -| `allowChannelAccess` | *?bool* | :heavy_minus_sign: | N/A | -| `allowMediaDeletion` | *?bool* | :heavy_minus_sign: | N/A | -| `allowSharing` | *?bool* | :heavy_minus_sign: | N/A | -| `allowSync` | *?bool* | :heavy_minus_sign: | N/A | -| `allowTuners` | *?bool* | :heavy_minus_sign: | N/A | -| `backgroundProcessing` | *?bool* | :heavy_minus_sign: | N/A | -| `certificate` | *?bool* | :heavy_minus_sign: | N/A | -| `companionProxy` | *?bool* | :heavy_minus_sign: | N/A | -| `countryCode` | *?string* | :heavy_minus_sign: | N/A | -| `diagnostics` | *?string* | :heavy_minus_sign: | N/A | -| `eventStream` | *?bool* | :heavy_minus_sign: | N/A | -| `friendlyName` | *?string* | :heavy_minus_sign: | N/A | -| `hubSearch` | *?bool* | :heavy_minus_sign: | N/A | -| `itemClusters` | *?bool* | :heavy_minus_sign: | N/A | -| `livetv` | *?float* | :heavy_minus_sign: | N/A | -| `machineIdentifier` | *?string* | :heavy_minus_sign: | N/A | -| `mediaProviders` | *?bool* | :heavy_minus_sign: | N/A | -| `multiuser` | *?bool* | :heavy_minus_sign: | N/A | -| `musicAnalysis` | *?float* | :heavy_minus_sign: | N/A | -| `myPlex` | *?bool* | :heavy_minus_sign: | N/A | -| `myPlexMappingState` | *?string* | :heavy_minus_sign: | N/A | -| `myPlexSigninState` | *?string* | :heavy_minus_sign: | N/A | -| `myPlexSubscription` | *?bool* | :heavy_minus_sign: | N/A | -| `myPlexUsername` | *?string* | :heavy_minus_sign: | N/A | -| `offlineTranscode` | *?float* | :heavy_minus_sign: | N/A | -| `ownerFeatures` | *?string* | :heavy_minus_sign: | N/A | -| `photoAutoTag` | *?bool* | :heavy_minus_sign: | N/A | -| `platform` | *?string* | :heavy_minus_sign: | N/A | -| `platformVersion` | *?string* | :heavy_minus_sign: | N/A | -| `pluginHost` | *?bool* | :heavy_minus_sign: | N/A | -| `pushNotifications` | *?bool* | :heavy_minus_sign: | N/A | -| `readOnlyLibraries` | *?bool* | :heavy_minus_sign: | N/A | -| `streamingBrainABRVersion` | *?float* | :heavy_minus_sign: | N/A | -| `streamingBrainVersion` | *?float* | :heavy_minus_sign: | N/A | -| `sync` | *?bool* | :heavy_minus_sign: | N/A | -| `transcoderActiveVideoSessions` | *?float* | :heavy_minus_sign: | N/A | -| `transcoderAudio` | *?bool* | :heavy_minus_sign: | N/A | -| `transcoderLyrics` | *?bool* | :heavy_minus_sign: | N/A | -| `transcoderPhoto` | *?bool* | :heavy_minus_sign: | N/A | -| `transcoderSubtitles` | *?bool* | :heavy_minus_sign: | N/A | -| `transcoderVideo` | *?bool* | :heavy_minus_sign: | N/A | -| `transcoderVideoBitrates` | *?string* | :heavy_minus_sign: | N/A | -| `transcoderVideoQualities` | *?string* | :heavy_minus_sign: | N/A | -| `transcoderVideoResolutions` | *?string* | :heavy_minus_sign: | N/A | -| `updatedAt` | *?float* | :heavy_minus_sign: | N/A | -| `updater` | *?bool* | :heavy_minus_sign: | N/A | -| `version` | *?string* | :heavy_minus_sign: | N/A | -| `voiceSearch` | *?bool* | :heavy_minus_sign: | N/A | -| `directory` | array<[\LukeHagar\Plex_API\Models\Operations\Directory](../../Models/Operations/Directory.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `size` | *?float* | :heavy_minus_sign: | N/A | +| `allowCameraUpload` | *?bool* | :heavy_minus_sign: | N/A | +| `allowChannelAccess` | *?bool* | :heavy_minus_sign: | N/A | +| `allowMediaDeletion` | *?bool* | :heavy_minus_sign: | N/A | +| `allowSharing` | *?bool* | :heavy_minus_sign: | N/A | +| `allowSync` | *?bool* | :heavy_minus_sign: | N/A | +| `allowTuners` | *?bool* | :heavy_minus_sign: | N/A | +| `backgroundProcessing` | *?bool* | :heavy_minus_sign: | N/A | +| `certificate` | *?bool* | :heavy_minus_sign: | N/A | +| `companionProxy` | *?bool* | :heavy_minus_sign: | N/A | +| `countryCode` | *?string* | :heavy_minus_sign: | N/A | +| `diagnostics` | *?string* | :heavy_minus_sign: | N/A | +| `eventStream` | *?bool* | :heavy_minus_sign: | N/A | +| `friendlyName` | *?string* | :heavy_minus_sign: | N/A | +| `hubSearch` | *?bool* | :heavy_minus_sign: | N/A | +| `itemClusters` | *?bool* | :heavy_minus_sign: | N/A | +| `livetv` | *?float* | :heavy_minus_sign: | N/A | +| `machineIdentifier` | *?string* | :heavy_minus_sign: | N/A | +| `mediaProviders` | *?bool* | :heavy_minus_sign: | N/A | +| `multiuser` | *?bool* | :heavy_minus_sign: | N/A | +| `musicAnalysis` | *?float* | :heavy_minus_sign: | N/A | +| `myPlex` | *?bool* | :heavy_minus_sign: | N/A | +| `myPlexMappingState` | *?string* | :heavy_minus_sign: | N/A | +| `myPlexSigninState` | *?string* | :heavy_minus_sign: | N/A | +| `myPlexSubscription` | *?bool* | :heavy_minus_sign: | N/A | +| `myPlexUsername` | *?string* | :heavy_minus_sign: | N/A | +| `offlineTranscode` | *?float* | :heavy_minus_sign: | N/A | +| `ownerFeatures` | *?string* | :heavy_minus_sign: | N/A | +| `photoAutoTag` | *?bool* | :heavy_minus_sign: | N/A | +| `platform` | *?string* | :heavy_minus_sign: | N/A | +| `platformVersion` | *?string* | :heavy_minus_sign: | N/A | +| `pluginHost` | *?bool* | :heavy_minus_sign: | N/A | +| `pushNotifications` | *?bool* | :heavy_minus_sign: | N/A | +| `readOnlyLibraries` | *?bool* | :heavy_minus_sign: | N/A | +| `streamingBrainABRVersion` | *?float* | :heavy_minus_sign: | N/A | +| `streamingBrainVersion` | *?float* | :heavy_minus_sign: | N/A | +| `sync` | *?bool* | :heavy_minus_sign: | N/A | +| `transcoderActiveVideoSessions` | *?float* | :heavy_minus_sign: | N/A | +| `transcoderAudio` | *?bool* | :heavy_minus_sign: | N/A | +| `transcoderLyrics` | *?bool* | :heavy_minus_sign: | N/A | +| `transcoderPhoto` | *?bool* | :heavy_minus_sign: | N/A | +| `transcoderSubtitles` | *?bool* | :heavy_minus_sign: | N/A | +| `transcoderVideo` | *?bool* | :heavy_minus_sign: | N/A | +| `transcoderVideoBitrates` | *?string* | :heavy_minus_sign: | N/A | +| `transcoderVideoQualities` | *?string* | :heavy_minus_sign: | N/A | +| `transcoderVideoResolutions` | *?string* | :heavy_minus_sign: | N/A | +| `updatedAt` | *?float* | :heavy_minus_sign: | N/A | +| `updater` | *?bool* | :heavy_minus_sign: | N/A | +| `version` | *?string* | :heavy_minus_sign: | N/A | +| `voiceSearch` | *?bool* | :heavy_minus_sign: | N/A | +| `directory` | array<[Operations\Directory](../../Models/Operations/Directory.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/Metadata.md b/docs/Models/Operations/Metadata.md index 4baa823..0d92359 100644 --- a/docs/Models/Operations/Metadata.md +++ b/docs/Models/Operations/Metadata.md @@ -3,40 +3,40 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `art` | *?string* | :heavy_minus_sign: | N/A | -| `guid` | *?string* | :heavy_minus_sign: | N/A | -| `key` | *?string* | :heavy_minus_sign: | N/A | -| `ratingKey` | *?string* | :heavy_minus_sign: | N/A | -| `studio` | *?string* | :heavy_minus_sign: | N/A | -| `tagline` | *?string* | :heavy_minus_sign: | N/A | -| `type` | *?string* | :heavy_minus_sign: | N/A | -| `thumb` | *?string* | :heavy_minus_sign: | N/A | -| `addedAt` | *?int* | :heavy_minus_sign: | N/A | -| `duration` | *?int* | :heavy_minus_sign: | N/A | -| `publicPagesURL` | *?string* | :heavy_minus_sign: | N/A | -| `slug` | *?string* | :heavy_minus_sign: | N/A | -| `userState` | *?bool* | :heavy_minus_sign: | N/A | -| `title` | *?string* | :heavy_minus_sign: | N/A | -| `contentRating` | *?string* | :heavy_minus_sign: | N/A | -| `originallyAvailableAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_minus_sign: | N/A | -| `year` | *?int* | :heavy_minus_sign: | N/A | -| `image` | array<[\LukeHagar\Plex_API\Models\Operations\Image](../../Models/Operations/Image.md)> | :heavy_minus_sign: | N/A | -| `banner` | *?string* | :heavy_minus_sign: | N/A | -| `rating` | *?float* | :heavy_minus_sign: | N/A | -| `expiresAt` | *?int* | :heavy_minus_sign: | N/A | -| `originalTitle` | *?string* | :heavy_minus_sign: | N/A | -| `audienceRating` | *?float* | :heavy_minus_sign: | N/A | -| `audienceRatingImage` | *?string* | :heavy_minus_sign: | N/A | -| `ratingImage` | *?string* | :heavy_minus_sign: | N/A | -| `imdbRatingCount` | *?int* | :heavy_minus_sign: | N/A | -| `subtype` | *?string* | :heavy_minus_sign: | N/A | -| `theme` | *?string* | :heavy_minus_sign: | N/A | -| `leafCount` | *?int* | :heavy_minus_sign: | N/A | -| `childCount` | *?int* | :heavy_minus_sign: | N/A | -| `isContinuingSeries` | *?bool* | :heavy_minus_sign: | N/A | -| `skipChildren` | *?bool* | :heavy_minus_sign: | N/A | -| `availabilityId` | *?string* | :heavy_minus_sign: | N/A | -| `streamingMediaId` | *?string* | :heavy_minus_sign: | N/A | -| `playableKey` | *?string* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | +| `art` | *?string* | :heavy_minus_sign: | N/A | +| `guid` | *?string* | :heavy_minus_sign: | N/A | +| `key` | *?string* | :heavy_minus_sign: | N/A | +| `ratingKey` | *?string* | :heavy_minus_sign: | N/A | +| `studio` | *?string* | :heavy_minus_sign: | N/A | +| `tagline` | *?string* | :heavy_minus_sign: | N/A | +| `type` | *?string* | :heavy_minus_sign: | N/A | +| `thumb` | *?string* | :heavy_minus_sign: | N/A | +| `addedAt` | *?int* | :heavy_minus_sign: | N/A | +| `duration` | *?int* | :heavy_minus_sign: | N/A | +| `publicPagesURL` | *?string* | :heavy_minus_sign: | N/A | +| `slug` | *?string* | :heavy_minus_sign: | N/A | +| `userState` | *?bool* | :heavy_minus_sign: | N/A | +| `title` | *?string* | :heavy_minus_sign: | N/A | +| `contentRating` | *?string* | :heavy_minus_sign: | N/A | +| `originallyAvailableAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_minus_sign: | N/A | +| `year` | *?int* | :heavy_minus_sign: | N/A | +| `image` | array<[Operations\Image](../../Models/Operations/Image.md)> | :heavy_minus_sign: | N/A | +| `banner` | *?string* | :heavy_minus_sign: | N/A | +| `rating` | *?float* | :heavy_minus_sign: | N/A | +| `expiresAt` | *?int* | :heavy_minus_sign: | N/A | +| `originalTitle` | *?string* | :heavy_minus_sign: | N/A | +| `audienceRating` | *?float* | :heavy_minus_sign: | N/A | +| `audienceRatingImage` | *?string* | :heavy_minus_sign: | N/A | +| `ratingImage` | *?string* | :heavy_minus_sign: | N/A | +| `imdbRatingCount` | *?int* | :heavy_minus_sign: | N/A | +| `subtype` | *?string* | :heavy_minus_sign: | N/A | +| `theme` | *?string* | :heavy_minus_sign: | N/A | +| `leafCount` | *?int* | :heavy_minus_sign: | N/A | +| `childCount` | *?int* | :heavy_minus_sign: | N/A | +| `isContinuingSeries` | *?bool* | :heavy_minus_sign: | N/A | +| `skipChildren` | *?bool* | :heavy_minus_sign: | N/A | +| `availabilityId` | *?string* | :heavy_minus_sign: | N/A | +| `streamingMediaId` | *?string* | :heavy_minus_sign: | N/A | +| `playableKey` | *?string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/PerformSearchResponse.md b/docs/Models/Operations/PerformSearchResponse.md index 78d7cbe..c680ab8 100644 --- a/docs/Models/Operations/PerformSearchResponse.md +++ b/docs/Models/Operations/PerformSearchResponse.md @@ -3,9 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [?\LukeHagar\Plex_API\Models\Operations\PerformSearchResponseBody](../../Models/Operations/PerformSearchResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/PerformSearchResponseBody.md b/docs/Models/Operations/PerformSearchResponseBody.md deleted file mode 100644 index 217e42d..0000000 --- a/docs/Models/Operations/PerformSearchResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# PerformSearchResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\PerformSearchErrors](../../Models/Operations/PerformSearchErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/PerformVoiceSearchResponse.md b/docs/Models/Operations/PerformVoiceSearchResponse.md index ae66b02..346e36a 100644 --- a/docs/Models/Operations/PerformVoiceSearchResponse.md +++ b/docs/Models/Operations/PerformVoiceSearchResponse.md @@ -3,9 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [?\LukeHagar\Plex_API\Models\Operations\PerformVoiceSearchResponseBody](../../Models/Operations/PerformVoiceSearchResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/PerformVoiceSearchResponseBody.md b/docs/Models/Operations/PerformVoiceSearchResponseBody.md deleted file mode 100644 index 0801821..0000000 --- a/docs/Models/Operations/PerformVoiceSearchResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# PerformVoiceSearchResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\PerformVoiceSearchErrors](../../Models/Operations/PerformVoiceSearchErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/RefreshLibraryResponse.md b/docs/Models/Operations/RefreshLibraryResponse.md index b1d31fb..92bdbe7 100644 --- a/docs/Models/Operations/RefreshLibraryResponse.md +++ b/docs/Models/Operations/RefreshLibraryResponse.md @@ -3,9 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [?\LukeHagar\Plex_API\Models\Operations\RefreshLibraryResponseBody](../../Models/Operations/RefreshLibraryResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/RefreshLibraryResponseBody.md b/docs/Models/Operations/RefreshLibraryResponseBody.md deleted file mode 100644 index fef5cd8..0000000 --- a/docs/Models/Operations/RefreshLibraryResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# RefreshLibraryResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\RefreshLibraryErrors](../../Models/Operations/RefreshLibraryErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/SearchLibraryLibraryResponseBody.md b/docs/Models/Operations/SearchLibraryLibraryResponseBody.md deleted file mode 100644 index d719835..0000000 --- a/docs/Models/Operations/SearchLibraryLibraryResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# SearchLibraryLibraryResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\SearchLibraryErrors](../../Models/Operations/SearchLibraryErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/SearchLibraryMediaContainer.md b/docs/Models/Operations/SearchLibraryMediaContainer.md index 01db6aa..15b62a0 100644 --- a/docs/Models/Operations/SearchLibraryMediaContainer.md +++ b/docs/Models/Operations/SearchLibraryMediaContainer.md @@ -3,18 +3,18 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `size` | *?int* | :heavy_minus_sign: | N/A | 2 | -| `allowSync` | *?bool* | :heavy_minus_sign: | N/A | false | -| `art` | *?string* | :heavy_minus_sign: | N/A | /:/resources/show-fanart.jpg | -| `identifier` | *?string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `mediaTagPrefix` | *?string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | -| `mediaTagVersion` | *?int* | :heavy_minus_sign: | N/A | 1698860922 | -| `nocache` | *?bool* | :heavy_minus_sign: | N/A | true | -| `thumb` | *?string* | :heavy_minus_sign: | N/A | /:/resources/show.png | -| `title1` | *?string* | :heavy_minus_sign: | N/A | TV Shows | -| `title2` | *?string* | :heavy_minus_sign: | N/A | Search for '' | -| `viewGroup` | *?string* | :heavy_minus_sign: | N/A | season | -| `viewMode` | *?int* | :heavy_minus_sign: | N/A | 65593 | -| `metadata` | array<[\LukeHagar\Plex_API\Models\Operations\SearchLibraryMetadata](../../Models/Operations/SearchLibraryMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `size` | *?int* | :heavy_minus_sign: | N/A | 2 | +| `allowSync` | *?bool* | :heavy_minus_sign: | N/A | false | +| `art` | *?string* | :heavy_minus_sign: | N/A | /:/resources/show-fanart.jpg | +| `identifier` | *?string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | +| `mediaTagPrefix` | *?string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | +| `mediaTagVersion` | *?int* | :heavy_minus_sign: | N/A | 1698860922 | +| `nocache` | *?bool* | :heavy_minus_sign: | N/A | true | +| `thumb` | *?string* | :heavy_minus_sign: | N/A | /:/resources/show.png | +| `title1` | *?string* | :heavy_minus_sign: | N/A | TV Shows | +| `title2` | *?string* | :heavy_minus_sign: | N/A | Search for '' | +| `viewGroup` | *?string* | :heavy_minus_sign: | N/A | season | +| `viewMode` | *?int* | :heavy_minus_sign: | N/A | 65593 | +| `metadata` | array<[Operations\SearchLibraryMetadata](../../Models/Operations/SearchLibraryMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/SearchLibraryRequest.md b/docs/Models/Operations/SearchLibraryRequest.md index ae9cc9b..9b12a30 100644 --- a/docs/Models/Operations/SearchLibraryRequest.md +++ b/docs/Models/Operations/SearchLibraryRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `sectionId` | *int* | :heavy_check_mark: | the Id of the library to query | -| `type` | [\LukeHagar\Plex_API\Models\Operations\Type](../../Models/Operations/Type.md) | :heavy_check_mark: | Plex content type to search for | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | +| `sectionId` | *int* | :heavy_check_mark: | the Id of the library to query | +| `type` | [Operations\Type](../../Models/Operations/Type.md) | :heavy_check_mark: | Plex content type to search for | \ No newline at end of file diff --git a/docs/Models/Operations/SearchLibraryResponse.md b/docs/Models/Operations/SearchLibraryResponse.md index a3a6dbf..e8b9852 100644 --- a/docs/Models/Operations/SearchLibraryResponse.md +++ b/docs/Models/Operations/SearchLibraryResponse.md @@ -3,10 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\SearchLibraryResponseBody](../../Models/Operations/SearchLibraryResponseBody.md) | :heavy_minus_sign: | The contents of the library by section and type | -| `fourHundredAndOneApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\SearchLibraryLibraryResponseBody](../../Models/Operations/SearchLibraryLibraryResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\SearchLibraryResponseBody](../../Models/Operations/SearchLibraryResponseBody.md) | :heavy_minus_sign: | The contents of the library by section and type | \ No newline at end of file diff --git a/docs/Models/Operations/SearchLibraryResponseBody.md b/docs/Models/Operations/SearchLibraryResponseBody.md index 6fb4d35..40c3b74 100644 --- a/docs/Models/Operations/SearchLibraryResponseBody.md +++ b/docs/Models/Operations/SearchLibraryResponseBody.md @@ -5,6 +5,6 @@ The contents of the library by section and type ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [?\LukeHagar\Plex_API\Models\Operations\SearchLibraryMediaContainer](../../Models/Operations/SearchLibraryMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `mediaContainer` | [?Operations\SearchLibraryMediaContainer](../../Models/Operations/SearchLibraryMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/StartAllTasksResponse.md b/docs/Models/Operations/StartAllTasksResponse.md index ab718bb..dd2a6c4 100644 --- a/docs/Models/Operations/StartAllTasksResponse.md +++ b/docs/Models/Operations/StartAllTasksResponse.md @@ -3,9 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [?\LukeHagar\Plex_API\Models\Operations\StartAllTasksResponseBody](../../Models/Operations/StartAllTasksResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/StartAllTasksResponseBody.md b/docs/Models/Operations/StartAllTasksResponseBody.md deleted file mode 100644 index e5df765..0000000 --- a/docs/Models/Operations/StartAllTasksResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# StartAllTasksResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\StartAllTasksErrors](../../Models/Operations/StartAllTasksErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/StartTaskRequest.md b/docs/Models/Operations/StartTaskRequest.md index f766720..4f54b9e 100644 --- a/docs/Models/Operations/StartTaskRequest.md +++ b/docs/Models/Operations/StartTaskRequest.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `taskName` | [\LukeHagar\Plex_API\Models\Operations\TaskName](../../Models/Operations/TaskName.md) | :heavy_check_mark: | the name of the task to be started. | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | +| `taskName` | [Operations\TaskName](../../Models/Operations/TaskName.md) | :heavy_check_mark: | the name of the task to be started. | \ No newline at end of file diff --git a/docs/Models/Operations/StartTaskResponse.md b/docs/Models/Operations/StartTaskResponse.md index af2e27d..1632fad 100644 --- a/docs/Models/Operations/StartTaskResponse.md +++ b/docs/Models/Operations/StartTaskResponse.md @@ -3,9 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [?\LukeHagar\Plex_API\Models\Operations\StartTaskResponseBody](../../Models/Operations/StartTaskResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/StartTaskResponseBody.md b/docs/Models/Operations/StartTaskResponseBody.md deleted file mode 100644 index d1357a3..0000000 --- a/docs/Models/Operations/StartTaskResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# StartTaskResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\StartTaskErrors](../../Models/Operations/StartTaskErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/StartUniversalTranscodeResponse.md b/docs/Models/Operations/StartUniversalTranscodeResponse.md index bea4c65..d8f4f77 100644 --- a/docs/Models/Operations/StartUniversalTranscodeResponse.md +++ b/docs/Models/Operations/StartUniversalTranscodeResponse.md @@ -3,9 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [?\LukeHagar\Plex_API\Models\Operations\StartUniversalTranscodeResponseBody](../../Models/Operations/StartUniversalTranscodeResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/StartUniversalTranscodeResponseBody.md b/docs/Models/Operations/StartUniversalTranscodeResponseBody.md deleted file mode 100644 index 0462aa1..0000000 --- a/docs/Models/Operations/StartUniversalTranscodeResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# StartUniversalTranscodeResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\StartUniversalTranscodeErrors](../../Models/Operations/StartUniversalTranscodeErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/StopAllTasksResponse.md b/docs/Models/Operations/StopAllTasksResponse.md index e51609b..f012277 100644 --- a/docs/Models/Operations/StopAllTasksResponse.md +++ b/docs/Models/Operations/StopAllTasksResponse.md @@ -3,9 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [?\LukeHagar\Plex_API\Models\Operations\StopAllTasksResponseBody](../../Models/Operations/StopAllTasksResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/StopAllTasksResponseBody.md b/docs/Models/Operations/StopAllTasksResponseBody.md deleted file mode 100644 index 0a7d83a..0000000 --- a/docs/Models/Operations/StopAllTasksResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# StopAllTasksResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\StopAllTasksErrors](../../Models/Operations/StopAllTasksErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/StopTaskRequest.md b/docs/Models/Operations/StopTaskRequest.md index f21f6d4..06b3063 100644 --- a/docs/Models/Operations/StopTaskRequest.md +++ b/docs/Models/Operations/StopTaskRequest.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | -| `taskName` | [\LukeHagar\Plex_API\Models\Operations\PathParamTaskName](../../Models/Operations/PathParamTaskName.md) | :heavy_check_mark: | The name of the task to be started. | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `taskName` | [Operations\PathParamTaskName](../../Models/Operations/PathParamTaskName.md) | :heavy_check_mark: | The name of the task to be started. | \ No newline at end of file diff --git a/docs/Models/Operations/StopTaskResponse.md b/docs/Models/Operations/StopTaskResponse.md index e082687..6e7f83b 100644 --- a/docs/Models/Operations/StopTaskResponse.md +++ b/docs/Models/Operations/StopTaskResponse.md @@ -3,9 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [?\LukeHagar\Plex_API\Models\Operations\StopTaskResponseBody](../../Models/Operations/StopTaskResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/StopTaskResponseBody.md b/docs/Models/Operations/StopTaskResponseBody.md deleted file mode 100644 index 742f53c..0000000 --- a/docs/Models/Operations/StopTaskResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# StopTaskResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\StopTaskErrors](../../Models/Operations/StopTaskErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/StopTranscodeSessionResponse.md b/docs/Models/Operations/StopTranscodeSessionResponse.md index 3a177c3..27289a1 100644 --- a/docs/Models/Operations/StopTranscodeSessionResponse.md +++ b/docs/Models/Operations/StopTranscodeSessionResponse.md @@ -3,9 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [?\LukeHagar\Plex_API\Models\Operations\StopTranscodeSessionResponseBody](../../Models/Operations/StopTranscodeSessionResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/StopTranscodeSessionResponseBody.md b/docs/Models/Operations/StopTranscodeSessionResponseBody.md deleted file mode 100644 index 5dae970..0000000 --- a/docs/Models/Operations/StopTranscodeSessionResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# StopTranscodeSessionResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\StopTranscodeSessionErrors](../../Models/Operations/StopTranscodeSessionErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/UpdatePlayProgressResponse.md b/docs/Models/Operations/UpdatePlayProgressResponse.md index d9e0ff9..88f1482 100644 --- a/docs/Models/Operations/UpdatePlayProgressResponse.md +++ b/docs/Models/Operations/UpdatePlayProgressResponse.md @@ -3,9 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [?\LukeHagar\Plex_API\Models\Operations\UpdatePlayProgressResponseBody](../../Models/Operations/UpdatePlayProgressResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/UpdatePlayProgressResponseBody.md b/docs/Models/Operations/UpdatePlayProgressResponseBody.md deleted file mode 100644 index 0902e6e..0000000 --- a/docs/Models/Operations/UpdatePlayProgressResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# UpdatePlayProgressResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\UpdatePlayProgressErrors](../../Models/Operations/UpdatePlayProgressErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/UpdatePlaylistResponse.md b/docs/Models/Operations/UpdatePlaylistResponse.md index 63b463c..0a8b442 100644 --- a/docs/Models/Operations/UpdatePlaylistResponse.md +++ b/docs/Models/Operations/UpdatePlaylistResponse.md @@ -3,9 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [?\LukeHagar\Plex_API\Models\Operations\UpdatePlaylistResponseBody](../../Models/Operations/UpdatePlaylistResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/UpdatePlaylistResponseBody.md b/docs/Models/Operations/UpdatePlaylistResponseBody.md deleted file mode 100644 index 54654f8..0000000 --- a/docs/Models/Operations/UpdatePlaylistResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# UpdatePlaylistResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\UpdatePlaylistErrors](../../Models/Operations/UpdatePlaylistErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/UploadPlaylistRequest.md b/docs/Models/Operations/UploadPlaylistRequest.md index a3933c4..6d68b25 100644 --- a/docs/Models/Operations/UploadPlaylistRequest.md +++ b/docs/Models/Operations/UploadPlaylistRequest.md @@ -6,4 +6,4 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `path` | *string* | :heavy_check_mark: | absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server.
If the `path` argument is a directory, that path will be scanned for playlist files to be processed.
Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it.
The GUID of each playlist is based on the filename.
If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it.
The GUID of each playlist is based on the filename.
| /home/barkley/playlist.m3u | -| `force` | [\LukeHagar\Plex_API\Models\Operations\Force](../../Models/Operations/Force.md) | :heavy_check_mark: | Force overwriting of duplicate playlists.
By default, a playlist file uploaded with the same path will overwrite the existing playlist.
The `force` argument is used to disable overwriting.
If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded.
| | \ No newline at end of file +| `force` | [Operations\Force](../../Models/Operations/Force.md) | :heavy_check_mark: | Force overwriting of duplicate playlists.
By default, a playlist file uploaded with the same path will overwrite the existing playlist.
The `force` argument is used to disable overwriting.
If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded.
| | \ No newline at end of file diff --git a/docs/Models/Operations/UploadPlaylistResponse.md b/docs/Models/Operations/UploadPlaylistResponse.md index d70df4f..d8b4b24 100644 --- a/docs/Models/Operations/UploadPlaylistResponse.md +++ b/docs/Models/Operations/UploadPlaylistResponse.md @@ -3,9 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [?\LukeHagar\Plex_API\Models\Operations\UploadPlaylistResponseBody](../../Models/Operations/UploadPlaylistResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/UploadPlaylistResponseBody.md b/docs/Models/Operations/UploadPlaylistResponseBody.md deleted file mode 100644 index e92e5b4..0000000 --- a/docs/Models/Operations/UploadPlaylistResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# UploadPlaylistResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\UploadPlaylistErrors](../../Models/Operations/UploadPlaylistErrors.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdks/activities/README.md b/docs/sdks/activities/README.md index 47ad39e..e5bd171 100644 --- a/docs/sdks/activities/README.md +++ b/docs/sdks/activities/README.md @@ -24,14 +24,12 @@ Get Server Activities ### Example Usage ```php -accessToken = ''; @@ -43,7 +41,7 @@ $sdk = Plex_API\PlexAPI::builder() try { $response = $sdk->activities->getServerActivities(); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -54,8 +52,13 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetServerActivitiesResponse](../../Models/Operations/GetServerActivitiesResponse.md)** +**[?Operations\GetServerActivitiesResponse](../../Models/Operations/GetServerActivitiesResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\GetServerActivitiesResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## cancelServerActivities @@ -64,15 +67,12 @@ Cancel Server Activities ### Example Usage ```php -accessToken = ''; @@ -82,7 +82,6 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $response = $sdk->activities->cancelServerActivities('25b71ed5-0f9d-461c-baa7-d404e9e10d3e'); @@ -103,5 +102,10 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\CancelServerActivitiesResponse](../../Models/Operations/CancelServerActivitiesResponse.md)** +**[?Operations\CancelServerActivitiesResponse](../../Models/Operations/CancelServerActivitiesResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\CancelServerActivitiesResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/authentication/README.md b/docs/sdks/authentication/README.md index db701bd..3399db2 100644 --- a/docs/sdks/authentication/README.md +++ b/docs/sdks/authentication/README.md @@ -19,15 +19,13 @@ This endpoint provides the caller with a temporary token with the same access le ### Example Usage ```php -accessToken = ''; @@ -37,7 +35,6 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $response = $sdk->authentication->getTransientToken(Operations\GetTransientTokenQueryParamType::Delegation, Operations\Scope::All); @@ -51,16 +48,21 @@ try { ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [\LukeHagar\Plex_API\Models\Operations\GetTransientTokenQueryParamType](../../Models/Operations/GetTransientTokenQueryParamType.md) | :heavy_check_mark: | `delegation` - This is the only supported `type` parameter. | -| `scope` | [\LukeHagar\Plex_API\Models\Operations\Scope](../../Models/Operations/Scope.md) | :heavy_check_mark: | `all` - This is the only supported `scope` parameter. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `type` | [Operations\GetTransientTokenQueryParamType](../../Models/Operations/GetTransientTokenQueryParamType.md) | :heavy_check_mark: | `delegation` - This is the only supported `type` parameter. | +| `scope` | [Operations\Scope](../../Models/Operations/Scope.md) | :heavy_check_mark: | `all` - This is the only supported `scope` parameter. | ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetTransientTokenResponse](../../Models/Operations/GetTransientTokenResponse.md)** +**[?Operations\GetTransientTokenResponse](../../Models/Operations/GetTransientTokenResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\GetTransientTokenResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## getSourceConnectionInformation @@ -71,15 +73,12 @@ Note: requires Plex Media Server >= 1.15.4. ### Example Usage ```php -accessToken = ''; @@ -89,7 +88,6 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $response = $sdk->authentication->getSourceConnectionInformation('server://client-identifier'); @@ -110,5 +108,10 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetSourceConnectionInformationResponse](../../Models/Operations/GetSourceConnectionInformationResponse.md)** +**[?Operations\GetSourceConnectionInformationResponse](../../Models/Operations/GetSourceConnectionInformationResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | +| Errors\GetSourceConnectionInformationResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/butler/README.md b/docs/sdks/butler/README.md index 9ce53b1..dd427bc 100644 --- a/docs/sdks/butler/README.md +++ b/docs/sdks/butler/README.md @@ -21,14 +21,12 @@ Returns a list of butler tasks ### Example Usage ```php -accessToken = ''; @@ -40,7 +38,7 @@ $sdk = Plex_API\PlexAPI::builder() try { $response = $sdk->butler->getButlerTasks(); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -51,8 +49,13 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetButlerTasksResponse](../../Models/Operations/GetButlerTasksResponse.md)** +**[?Operations\GetButlerTasksResponse](../../Models/Operations/GetButlerTasksResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\GetButlerTasksResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## startAllTasks @@ -66,14 +69,12 @@ This endpoint will attempt to start all Butler tasks that are enabled in the set ### Example Usage ```php -accessToken = ''; @@ -96,8 +97,13 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\StartAllTasksResponse](../../Models/Operations/StartAllTasksResponse.md)** +**[?Operations\StartAllTasksResponse](../../Models/Operations/StartAllTasksResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\StartAllTasksResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## stopAllTasks @@ -107,14 +113,12 @@ This endpoint will stop all currently running tasks and remove any scheduled tas ### Example Usage ```php -accessToken = ''; @@ -137,8 +141,13 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\StopAllTasksResponse](../../Models/Operations/StopAllTasksResponse.md)** +**[?Operations\StopAllTasksResponse](../../Models/Operations/StopAllTasksResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\StopAllTasksResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## startTask @@ -152,15 +161,13 @@ This endpoint will attempt to start a single Butler task that is enabled in the ### Example Usage ```php -accessToken = ''; @@ -170,7 +177,6 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $response = $sdk->butler->startTask(Operations\TaskName::CleanOldBundles); @@ -184,15 +190,20 @@ try { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `taskName` | [\LukeHagar\Plex_API\Models\Operations\TaskName](../../Models/Operations/TaskName.md) | :heavy_check_mark: | the name of the task to be started. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | +| `taskName` | [Operations\TaskName](../../Models/Operations/TaskName.md) | :heavy_check_mark: | the name of the task to be started. | ### Response -**[?\LukeHagar\Plex_API\Models\Operations\StartTaskResponse](../../Models/Operations/StartTaskResponse.md)** +**[?Operations\StartTaskResponse](../../Models/Operations/StartTaskResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\StartTaskResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## stopTask @@ -202,15 +213,13 @@ This endpoint will stop a currently running task by name, or remove it from the ### Example Usage ```php -accessToken = ''; @@ -220,7 +229,6 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $response = $sdk->butler->stopTask(Operations\PathParamTaskName::BackupDatabase); @@ -234,12 +242,17 @@ try { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | -| `taskName` | [\LukeHagar\Plex_API\Models\Operations\PathParamTaskName](../../Models/Operations/PathParamTaskName.md) | :heavy_check_mark: | The name of the task to be started. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `taskName` | [Operations\PathParamTaskName](../../Models/Operations/PathParamTaskName.md) | :heavy_check_mark: | The name of the task to be started. | ### Response -**[?\LukeHagar\Plex_API\Models\Operations\StopTaskResponse](../../Models/Operations/StopTaskResponse.md)** +**[?Operations\StopTaskResponse](../../Models/Operations/StopTaskResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\StopTaskResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/hubs/README.md b/docs/sdks/hubs/README.md index ca2b7f8..6d8346a 100644 --- a/docs/sdks/hubs/README.md +++ b/docs/sdks/hubs/README.md @@ -18,15 +18,13 @@ Get Global Hubs filtered by the parameters provided. ### Example Usage ```php -accessToken = ''; @@ -36,11 +34,10 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $response = $sdk->hubs->getGlobalHubs(1262.49, Operations\OnlyTransient::One); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -53,13 +50,18 @@ try { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | | `count` | *float* | :heavy_minus_sign: | The number of items to return with each hub. | -| `onlyTransient` | [\LukeHagar\Plex_API\Models\Operations\OnlyTransient](../../Models/Operations/OnlyTransient.md) | :heavy_minus_sign: | Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). | +| `onlyTransient` | [Operations\OnlyTransient](../../Models/Operations/OnlyTransient.md) | :heavy_minus_sign: | Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). | ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetGlobalHubsResponse](../../Models/Operations/GetGlobalHubsResponse.md)** +**[?Operations\GetGlobalHubsResponse](../../Models/Operations/GetGlobalHubsResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\GetGlobalHubsResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## getLibraryHubs @@ -69,15 +71,13 @@ This endpoint will return a list of library specific hubs ### Example Usage ```php -accessToken = ''; @@ -87,11 +87,10 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $response = $sdk->hubs->getLibraryHubs(6728.76, 9010.22, Operations\QueryParamOnlyTransient::Zero); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -105,10 +104,15 @@ try { | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | | `sectionId` | *float* | :heavy_check_mark: | the Id of the library to query | | `count` | *float* | :heavy_minus_sign: | The number of items to return with each hub. | -| `onlyTransient` | [\LukeHagar\Plex_API\Models\Operations\QueryParamOnlyTransient](../../Models/Operations/QueryParamOnlyTransient.md) | :heavy_minus_sign: | Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). | +| `onlyTransient` | [Operations\QueryParamOnlyTransient](../../Models/Operations/QueryParamOnlyTransient.md) | :heavy_minus_sign: | Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). | ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetLibraryHubsResponse](../../Models/Operations/GetLibraryHubsResponse.md)** +**[?Operations\GetLibraryHubsResponse](../../Models/Operations/GetLibraryHubsResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\GetLibraryHubsResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/library/README.md b/docs/sdks/library/README.md index aa9fe6e..ac9a932 100644 --- a/docs/sdks/library/README.md +++ b/docs/sdks/library/README.md @@ -28,15 +28,12 @@ This resource returns hash values for local files ### Example Usage ```php -accessToken = ''; @@ -46,7 +43,6 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $response = $sdk->library->getFileHash('file://C:\Image.png&type=13', 4462.17); @@ -68,8 +64,13 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetFileHashResponse](../../Models/Operations/GetFileHashResponse.md)** +**[?Operations\GetFileHashResponse](../../Models/Operations/GetFileHashResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\GetFileHashResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## getRecentlyAdded @@ -79,14 +80,12 @@ This endpoint will return the recently added content. ### Example Usage ```php -accessToken = ''; @@ -98,7 +97,7 @@ $sdk = Plex_API\PlexAPI::builder() try { $response = $sdk->library->getRecentlyAdded(); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -109,8 +108,13 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetRecentlyAddedResponse](../../Models/Operations/GetRecentlyAddedResponse.md)** +**[?Operations\GetRecentlyAddedResponse](../../Models/Operations/GetRecentlyAddedResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\GetRecentlyAddedResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## getLibraries @@ -125,14 +129,12 @@ This allows a client to provide a rich interface around the media (e.g. allow so ### Example Usage ```php -accessToken = ''; @@ -144,7 +146,7 @@ $sdk = Plex_API\PlexAPI::builder() try { $response = $sdk->library->getLibraries(); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -155,8 +157,13 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetLibrariesResponse](../../Models/Operations/GetLibrariesResponse.md)** +**[?Operations\GetLibrariesResponse](../../Models/Operations/GetLibrariesResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\GetLibrariesResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## getLibrary @@ -204,15 +211,13 @@ Each type in the library comes with a set of filters and sorts, aiding in buildi ### Example Usage ```php -accessToken = ''; @@ -222,11 +227,10 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $response = $sdk->library->getLibrary(1000, Operations\IncludeDetails::Zero); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -239,13 +243,18 @@ try { | Parameter | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `sectionId` | *float* | :heavy_check_mark: | the Id of the library to query | 1000 | -| `includeDetails` | [\LukeHagar\Plex_API\Models\Operations\IncludeDetails](../../Models/Operations/IncludeDetails.md) | :heavy_minus_sign: | Whether or not to include details for a section (types, filters, and sorts).
Only exists for backwards compatibility, media providers other than the server libraries have it on always.
| | +| `includeDetails` | [Operations\IncludeDetails](../../Models/Operations/IncludeDetails.md) | :heavy_minus_sign: | Whether or not to include details for a section (types, filters, and sorts).
Only exists for backwards compatibility, media providers other than the server libraries have it on always.
| | ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetLibraryResponse](../../Models/Operations/GetLibraryResponse.md)** +**[?Operations\GetLibraryResponse](../../Models/Operations/GetLibraryResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\GetLibraryResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## deleteLibrary @@ -254,15 +263,12 @@ Delate a library using a specific section ### Example Usage ```php -accessToken = ''; @@ -272,7 +278,6 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $response = $sdk->library->deleteLibrary(1000); @@ -293,8 +298,13 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\DeleteLibraryResponse](../../Models/Operations/DeleteLibraryResponse.md)** +**[?Operations\DeleteLibraryResponse](../../Models/Operations/DeleteLibraryResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\DeleteLibraryResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## getLibraryItems @@ -323,15 +333,13 @@ Fetches details from a specific section of the library identified by a section k ### Example Usage ```php -accessToken = ''; @@ -341,11 +349,10 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $response = $sdk->library->getLibraryItems('', Operations\Tag::Genre, 1); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -355,17 +362,22 @@ try { ### Parameters -| Parameter | Type | Required | Description | Example | -| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `sectionId` | *mixed* | :heavy_check_mark: | the Id of the library to query | | -| `tag` | [\LukeHagar\Plex_API\Models\Operations\Tag](../../Models/Operations/Tag.md) | :heavy_check_mark: | A key representing a specific tag within the section. | | -| `includeGuids` | *int* | :heavy_minus_sign: | Adds the Guids object to the response
| 1 | +| Parameter | Type | Required | Description | Example | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `sectionId` | *mixed* | :heavy_check_mark: | the Id of the library to query | | +| `tag` | [Operations\Tag](../../Models/Operations/Tag.md) | :heavy_check_mark: | A key representing a specific tag within the section. | | +| `includeGuids` | *int* | :heavy_minus_sign: | Adds the Guids object to the response
| 1 | ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetLibraryItemsResponse](../../Models/Operations/GetLibraryItemsResponse.md)** +**[?Operations\GetLibraryItemsResponse](../../Models/Operations/GetLibraryItemsResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\GetLibraryItemsResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## refreshLibrary @@ -375,15 +387,12 @@ This endpoint Refreshes the library. ### Example Usage ```php -accessToken = ''; @@ -393,7 +402,6 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $response = $sdk->library->refreshLibrary(934.16); @@ -414,8 +422,13 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\RefreshLibraryResponse](../../Models/Operations/RefreshLibraryResponse.md)** +**[?Operations\RefreshLibraryResponse](../../Models/Operations/RefreshLibraryResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\RefreshLibraryResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## searchLibrary @@ -442,15 +455,13 @@ Each type in the library comes with a set of filters and sorts, aiding in buildi ### Example Usage ```php -accessToken = ''; @@ -460,11 +471,10 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $response = $sdk->library->searchLibrary(933505, Operations\Type::Four); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -474,16 +484,21 @@ try { ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `sectionId` | *int* | :heavy_check_mark: | the Id of the library to query | -| `type` | [\LukeHagar\Plex_API\Models\Operations\Type](../../Models/Operations/Type.md) | :heavy_check_mark: | Plex content type to search for | +| Parameter | Type | Required | Description | +| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | +| `sectionId` | *int* | :heavy_check_mark: | the Id of the library to query | +| `type` | [Operations\Type](../../Models/Operations/Type.md) | :heavy_check_mark: | Plex content type to search for | ### Response -**[?\LukeHagar\Plex_API\Models\Operations\SearchLibraryResponse](../../Models/Operations/SearchLibraryResponse.md)** +**[?Operations\SearchLibraryResponse](../../Models/Operations/SearchLibraryResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\SearchLibraryResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## getMetadata @@ -493,15 +508,12 @@ This endpoint will return the metadata of a library item specified with the rati ### Example Usage ```php -accessToken = ''; @@ -511,11 +523,10 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $response = $sdk->library->getMetadata(8382.31); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -532,8 +543,13 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetMetadataResponse](../../Models/Operations/GetMetadataResponse.md)** +**[?Operations\GetMetadataResponse](../../Models/Operations/GetMetadataResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\GetMetadataResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## getMetadataChildren @@ -543,15 +559,12 @@ This endpoint will return the children of of a library item specified with the r ### Example Usage ```php -accessToken = ''; @@ -561,11 +574,10 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $response = $sdk->library->getMetadataChildren(1539.14, ''); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -583,8 +595,13 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetMetadataChildrenResponse](../../Models/Operations/GetMetadataChildrenResponse.md)** +**[?Operations\GetMetadataChildrenResponse](../../Models/Operations/GetMetadataChildrenResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\GetMetadataChildrenResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## getTopWatchedContent @@ -594,15 +611,12 @@ This endpoint will return the top watched content from libraries of a certain ty ### Example Usage ```php -accessToken = ''; @@ -612,7 +626,6 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $response = $sdk->library->getTopWatchedContent(505531, 1); @@ -634,8 +647,12 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetTopWatchedContentResponse](../../Models/Operations/GetTopWatchedContentResponse.md)** +**[?Operations\GetTopWatchedContentResponse](../../Models/Operations/GetTopWatchedContentResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## getOnDeck @@ -645,14 +662,12 @@ This endpoint will return the on deck content. ### Example Usage ```php -accessToken = ''; @@ -664,7 +679,7 @@ $sdk = Plex_API\PlexAPI::builder() try { $response = $sdk->library->getOnDeck(); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -675,5 +690,10 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetOnDeckResponse](../../Models/Operations/GetOnDeckResponse.md)** +**[?Operations\GetOnDeckResponse](../../Models/Operations/GetOnDeckResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\GetOnDeckResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/log/README.md b/docs/sdks/log/README.md index 071900a..9f49bee 100644 --- a/docs/sdks/log/README.md +++ b/docs/sdks/log/README.md @@ -20,15 +20,13 @@ This endpoint will write a single-line log message, including a level and source ### Example Usage ```php -accessToken = ''; @@ -38,7 +36,6 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $response = $sdk->log->logLine(Operations\Level::Three, 'Test log message', 'Postman'); @@ -54,15 +51,20 @@ try { | Parameter | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `level` | [\LukeHagar\Plex_API\Models\Operations\Level](../../Models/Operations/Level.md) | :heavy_check_mark: | An integer log level to write to the PMS log with.
0: Error
1: Warning
2: Info
3: Debug
4: Verbose
| | +| `level` | [Operations\Level](../../Models/Operations/Level.md) | :heavy_check_mark: | An integer log level to write to the PMS log with.
0: Error
1: Warning
2: Info
3: Debug
4: Verbose
| | | `message` | *string* | :heavy_check_mark: | The text of the message to write to the log. | Test log message | | `source` | *string* | :heavy_check_mark: | a string indicating the source of the message. | Postman | ### Response -**[?\LukeHagar\Plex_API\Models\Operations\LogLineResponse](../../Models/Operations/LogLineResponse.md)** +**[?Operations\LogLineResponse](../../Models/Operations/LogLineResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\LogLineResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## logMultiLine @@ -92,14 +94,12 @@ Ensure each parameter is properly URL-encoded to avoid interpretation issues. ### Example Usage ```php -accessToken = ''; @@ -109,10 +109,9 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - 'level=4&message=Test%20message%201&source=postman -level=3&message=Test%20message%202&source=postman -level=1&message=Test%20message%203&source=postman'; - + $request = 'level=4&message=Test%20message%201&source=postman + level=3&message=Test%20message%202&source=postman + level=1&message=Test%20message%203&source=postman'; $response = $sdk->log->logMultiLine($request); if ($response->statusCode === 200) { @@ -132,8 +131,13 @@ level=1&message=Test%20message%203&source=postman'; ### Response -**[?\LukeHagar\Plex_API\Models\Operations\LogMultiLineResponse](../../Models/Operations/LogMultiLineResponse.md)** +**[?Operations\LogMultiLineResponse](../../Models/Operations/LogMultiLineResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\LogMultiLineResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## enablePaperTrail @@ -143,14 +147,12 @@ This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail ### Example Usage ```php -accessToken = ''; @@ -173,5 +175,10 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\EnablePaperTrailResponse](../../Models/Operations/EnablePaperTrailResponse.md)** +**[?Operations\EnablePaperTrailResponse](../../Models/Operations/EnablePaperTrailResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\EnablePaperTrailResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/media/README.md b/docs/sdks/media/README.md index d1a642e..d4f3093 100644 --- a/docs/sdks/media/README.md +++ b/docs/sdks/media/README.md @@ -19,15 +19,12 @@ This will mark the provided media key as Played. ### Example Usage ```php -accessToken = ''; @@ -37,7 +34,6 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $response = $sdk->media->markPlayed(59398); @@ -58,8 +54,13 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\MarkPlayedResponse](../../Models/Operations/MarkPlayedResponse.md)** +**[?Operations\MarkPlayedResponse](../../Models/Operations/MarkPlayedResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\MarkPlayedResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## markUnplayed @@ -68,15 +69,12 @@ This will mark the provided media key as Unplayed. ### Example Usage ```php -accessToken = ''; @@ -86,7 +84,6 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $response = $sdk->media->markUnplayed(59398); @@ -107,8 +104,13 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\MarkUnplayedResponse](../../Models/Operations/MarkUnplayedResponse.md)** +**[?Operations\MarkUnplayedResponse](../../Models/Operations/MarkUnplayedResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\MarkUnplayedResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## updatePlayProgress @@ -118,15 +120,12 @@ This API command can be used to update the play progress of a media item. ### Example Usage ```php -accessToken = ''; @@ -136,7 +135,6 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $response = $sdk->media->updatePlayProgress('', 90000, 'played'); @@ -159,5 +157,10 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\UpdatePlayProgressResponse](../../Models/Operations/UpdatePlayProgressResponse.md)** +**[?Operations\UpdatePlayProgressResponse](../../Models/Operations/UpdatePlayProgressResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\UpdatePlayProgressResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/playlists/README.md b/docs/sdks/playlists/README.md index f1dfdb0..fada869 100644 --- a/docs/sdks/playlists/README.md +++ b/docs/sdks/playlists/README.md @@ -31,15 +31,13 @@ Create a new playlist. By default the playlist is blank. To create a playlist al ### Example Usage ```php -accessToken = ''; @@ -49,16 +47,16 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $request = new Operations\CreatePlaylistRequest(); - $request->title = ''; - $request->type = Operations\QueryParamType::Photo; - $request->smart = Operations\Smart::One; - $request->uri = 'https://inborn-brochure.biz'; - $request->playQueueID = 3686.33;; - + $request = new Operations\CreatePlaylistRequest( + title: '', + type: Operations\QueryParamType::Photo, + smart: Operations\Smart::One, + uri: 'https://inborn-brochure.biz', + playQueueID: 3686.33, + ); $response = $sdk->playlists->createPlaylist($request); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -68,15 +66,20 @@ try { ### Parameters -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | -| `$request` | [\LukeHagar\Plex_API\Models\Operations\CreatePlaylistRequest](../../Models/Operations/CreatePlaylistRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `$request` | [Operations\CreatePlaylistRequest](../../Models/Operations/CreatePlaylistRequest.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[?\LukeHagar\Plex_API\Models\Operations\CreatePlaylistResponse](../../Models/Operations/CreatePlaylistResponse.md)** +**[?Operations\CreatePlaylistResponse](../../Models/Operations/CreatePlaylistResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\CreatePlaylistResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## getPlaylists @@ -85,15 +88,13 @@ Get All Playlists given the specified filters. ### Example Usage ```php -accessToken = ''; @@ -103,11 +104,10 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $response = $sdk->playlists->getPlaylists(Operations\PlaylistType::Audio, Operations\QueryParamSmart::Zero); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -117,16 +117,21 @@ try { ### Parameters -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | -| `playlistType` | [\LukeHagar\Plex_API\Models\Operations\PlaylistType](../../Models/Operations/PlaylistType.md) | :heavy_minus_sign: | limit to a type of playlist. | -| `smart` | [\LukeHagar\Plex_API\Models\Operations\QueryParamSmart](../../Models/Operations/QueryParamSmart.md) | :heavy_minus_sign: | type of playlists to return (default is all). | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `playlistType` | [Operations\PlaylistType](../../Models/Operations/PlaylistType.md) | :heavy_minus_sign: | limit to a type of playlist. | +| `smart` | [Operations\QueryParamSmart](../../Models/Operations/QueryParamSmart.md) | :heavy_minus_sign: | type of playlists to return (default is all). | ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetPlaylistsResponse](../../Models/Operations/GetPlaylistsResponse.md)** +**[?Operations\GetPlaylistsResponse](../../Models/Operations/GetPlaylistsResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\GetPlaylistsResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## getPlaylist @@ -137,15 +142,12 @@ Smart playlist details contain the `content` attribute. This is the content URI ### Example Usage ```php -accessToken = ''; @@ -155,11 +157,10 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $response = $sdk->playlists->getPlaylist(4109.48); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -176,8 +177,13 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetPlaylistResponse](../../Models/Operations/GetPlaylistResponse.md)** +**[?Operations\GetPlaylistResponse](../../Models/Operations/GetPlaylistResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\GetPlaylistResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## deletePlaylist @@ -187,15 +193,12 @@ This endpoint will delete a playlist ### Example Usage ```php -accessToken = ''; @@ -205,7 +208,6 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $response = $sdk->playlists->deletePlaylist(216.22); @@ -226,8 +228,13 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\DeletePlaylistResponse](../../Models/Operations/DeletePlaylistResponse.md)** +**[?Operations\DeletePlaylistResponse](../../Models/Operations/DeletePlaylistResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\DeletePlaylistResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## updatePlaylist @@ -237,15 +244,12 @@ From PMS version 1.9.1 clients can also edit playlist metadata using this endpoi ### Example Usage ```php -accessToken = ''; @@ -255,7 +259,6 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $response = $sdk->playlists->updatePlaylist(3915, '', ''); @@ -278,8 +281,13 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\UpdatePlaylistResponse](../../Models/Operations/UpdatePlaylistResponse.md)** +**[?Operations\UpdatePlaylistResponse](../../Models/Operations/UpdatePlaylistResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\UpdatePlaylistResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## getPlaylistContents @@ -292,15 +300,12 @@ Note that for dumb playlists, items have a `playlistItemID` attribute which is u ### Example Usage ```php -accessToken = ''; @@ -310,11 +315,10 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $response = $sdk->playlists->getPlaylistContents(5004.46, 9403.59); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -332,8 +336,13 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetPlaylistContentsResponse](../../Models/Operations/GetPlaylistContentsResponse.md)** +**[?Operations\GetPlaylistContentsResponse](../../Models/Operations/GetPlaylistContentsResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\GetPlaylistContentsResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## clearPlaylistContents @@ -343,15 +352,12 @@ Clears a playlist, only works with dumb playlists. Returns the playlist. ### Example Usage ```php -accessToken = ''; @@ -361,7 +367,6 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $response = $sdk->playlists->clearPlaylistContents(1893.18); @@ -382,8 +387,13 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\ClearPlaylistContentsResponse](../../Models/Operations/ClearPlaylistContentsResponse.md)** +**[?Operations\ClearPlaylistContentsResponse](../../Models/Operations/ClearPlaylistContentsResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\ClearPlaylistContentsResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## addPlaylistContents @@ -394,15 +404,12 @@ With a smart playlist, passing a new `uri` parameter replaces the rules for the ### Example Usage ```php -accessToken = ''; @@ -412,11 +419,10 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $response = $sdk->playlists->addPlaylistContents(8502.01, 'server://12345/com.plexapp.plugins.library/library/metadata/1', 123); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -435,8 +441,13 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\AddPlaylistContentsResponse](../../Models/Operations/AddPlaylistContentsResponse.md)** +**[?Operations\AddPlaylistContentsResponse](../../Models/Operations/AddPlaylistContentsResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\AddPlaylistContentsResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## uploadPlaylist @@ -446,15 +457,13 @@ Imports m3u playlists by passing a path on the server to scan for m3u-formatted ### Example Usage ```php -accessToken = ''; @@ -464,7 +473,6 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $response = $sdk->playlists->uploadPlaylist('/home/barkley/playlist.m3u', Operations\Force::Zero); @@ -481,10 +489,15 @@ try { | Parameter | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `path` | *string* | :heavy_check_mark: | absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server.
If the `path` argument is a directory, that path will be scanned for playlist files to be processed.
Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it.
The GUID of each playlist is based on the filename.
If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it.
The GUID of each playlist is based on the filename.
| /home/barkley/playlist.m3u | -| `force` | [\LukeHagar\Plex_API\Models\Operations\Force](../../Models/Operations/Force.md) | :heavy_check_mark: | Force overwriting of duplicate playlists.
By default, a playlist file uploaded with the same path will overwrite the existing playlist.
The `force` argument is used to disable overwriting.
If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded.
| | +| `force` | [Operations\Force](../../Models/Operations/Force.md) | :heavy_check_mark: | Force overwriting of duplicate playlists.
By default, a playlist file uploaded with the same path will overwrite the existing playlist.
The `force` argument is used to disable overwriting.
If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded.
| | ### Response -**[?\LukeHagar\Plex_API\Models\Operations\UploadPlaylistResponse](../../Models/Operations/UploadPlaylistResponse.md)** +**[?Operations\UploadPlaylistResponse](../../Models/Operations/UploadPlaylistResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\UploadPlaylistResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/plex/README.md b/docs/sdks/plex/README.md index 67bc767..a6530c9 100644 --- a/docs/sdks/plex/README.md +++ b/docs/sdks/plex/README.md @@ -19,14 +19,12 @@ Retrieves the home data for the authenticated user, including details like home ### Example Usage ```php -accessToken = ''; @@ -38,7 +36,7 @@ $sdk = Plex_API\PlexAPI::builder() try { $response = $sdk->plex->getHomeData(); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -49,8 +47,13 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetHomeDataResponse](../../Models/Operations/GetHomeDataResponse.md)** +**[?Operations\GetHomeDataResponse](../../Models/Operations/GetHomeDataResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\GetHomeDataResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## getPin @@ -59,26 +62,21 @@ Retrieve a Pin from Plex.tv for authentication flows ### Example Usage ```php -setXPlexClientIdentifier('Postman') ->build(); try { - $response = $sdk->plex->getPin('Postman', false, 'Postman'); - if ($response->twoHundredAndOneApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -98,8 +96,13 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetPinResponse](../../Models/Operations/GetPinResponse.md)** +**[?Operations\GetPinResponse](../../Models/Operations/GetPinResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\GetPinResponseBody | 400 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## getToken @@ -108,26 +111,21 @@ Retrieve an Access Token from Plex.tv after the Pin has already been authenticat ### Example Usage ```php -setXPlexClientIdentifier('Postman') ->build(); try { - $response = $sdk->plex->getToken('', 'Postman'); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -146,5 +144,10 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetTokenResponse](../../Models/Operations/GetTokenResponse.md)** +**[?Operations\GetTokenResponse](../../Models/Operations/GetTokenResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\GetTokenResponseBody | 400 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/search/README.md b/docs/sdks/search/README.md index b6d1020..89d4745 100644 --- a/docs/sdks/search/README.md +++ b/docs/sdks/search/README.md @@ -31,15 +31,12 @@ This request is intended to be very fast, and called as the user types. ### Example Usage ```php -accessToken = ''; @@ -49,7 +46,6 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $response = $sdk->search->performSearch('dylan', 1516.53, 5); @@ -72,8 +68,13 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\PerformSearchResponse](../../Models/Operations/PerformSearchResponse.md)** +**[?Operations\PerformSearchResponse](../../Models/Operations/PerformSearchResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\PerformSearchResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## performVoiceSearch @@ -86,15 +87,12 @@ Results, as well as their containing per-type hubs, contain a `distance` attribu ### Example Usage ```php -accessToken = ''; @@ -104,7 +102,6 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $response = $sdk->search->performVoiceSearch('dead+poop', 4094.8, 5); @@ -127,8 +124,13 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\PerformVoiceSearchResponse](../../Models/Operations/PerformVoiceSearchResponse.md)** +**[?Operations\PerformVoiceSearchResponse](../../Models/Operations/PerformVoiceSearchResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\PerformVoiceSearchResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## getSearchResults @@ -137,15 +139,12 @@ This will search the database for the string provided. ### Example Usage ```php -accessToken = ''; @@ -155,11 +154,10 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $response = $sdk->search->getSearchResults('110'); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -176,5 +174,10 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetSearchResultsResponse](../../Models/Operations/GetSearchResultsResponse.md)** +**[?Operations\GetSearchResultsResponse](../../Models/Operations/GetSearchResultsResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\GetSearchResultsResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/server/README.md b/docs/sdks/server/README.md index 3562055..b23d7d6 100644 --- a/docs/sdks/server/README.md +++ b/docs/sdks/server/README.md @@ -24,14 +24,12 @@ Get Server Capabilities ### Example Usage ```php -accessToken = ''; @@ -43,7 +41,7 @@ $sdk = Plex_API\PlexAPI::builder() try { $response = $sdk->server->getServerCapabilities(); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -54,8 +52,13 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetServerCapabilitiesResponse](../../Models/Operations/GetServerCapabilitiesResponse.md)** +**[?Operations\GetServerCapabilitiesResponse](../../Models/Operations/GetServerCapabilitiesResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\GetServerCapabilitiesResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## getServerPreferences @@ -64,14 +67,12 @@ Get Server Preferences ### Example Usage ```php -accessToken = ''; @@ -83,7 +84,7 @@ $sdk = Plex_API\PlexAPI::builder() try { $response = $sdk->server->getServerPreferences(); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -94,8 +95,13 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetServerPreferencesResponse](../../Models/Operations/GetServerPreferencesResponse.md)** +**[?Operations\GetServerPreferencesResponse](../../Models/Operations/GetServerPreferencesResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\GetServerPreferencesResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## getAvailableClients @@ -104,14 +110,12 @@ Get Available Clients ### Example Usage ```php -accessToken = ''; @@ -123,7 +127,7 @@ $sdk = Plex_API\PlexAPI::builder() try { $response = $sdk->server->getAvailableClients(); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -134,8 +138,13 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetAvailableClientsResponse](../../Models/Operations/GetAvailableClientsResponse.md)** +**[?Operations\GetAvailableClientsResponse](../../Models/Operations/GetAvailableClientsResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\GetAvailableClientsResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## getDevices @@ -144,14 +153,12 @@ Get Devices ### Example Usage ```php -accessToken = ''; @@ -163,7 +170,7 @@ $sdk = Plex_API\PlexAPI::builder() try { $response = $sdk->server->getDevices(); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -174,8 +181,13 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetDevicesResponse](../../Models/Operations/GetDevicesResponse.md)** +**[?Operations\GetDevicesResponse](../../Models/Operations/GetDevicesResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\GetDevicesResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## getServerIdentity @@ -184,14 +196,12 @@ Get Server Identity ### Example Usage ```php -accessToken = ''; @@ -203,7 +213,7 @@ $sdk = Plex_API\PlexAPI::builder() try { $response = $sdk->server->getServerIdentity(); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -214,8 +224,13 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetServerIdentityResponse](../../Models/Operations/GetServerIdentityResponse.md)** +**[?Operations\GetServerIdentityResponse](../../Models/Operations/GetServerIdentityResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\GetServerIdentityResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## getMyPlexAccount @@ -224,14 +239,12 @@ Returns MyPlex Account Information ### Example Usage ```php -accessToken = ''; @@ -243,7 +256,7 @@ $sdk = Plex_API\PlexAPI::builder() try { $response = $sdk->server->getMyPlexAccount(); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -254,8 +267,13 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetMyPlexAccountResponse](../../Models/Operations/GetMyPlexAccountResponse.md)** +**[?Operations\GetMyPlexAccountResponse](../../Models/Operations/GetMyPlexAccountResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\GetMyPlexAccountResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## getResizedPhoto @@ -265,15 +283,13 @@ Plex's Photo transcoder is used throughout the service to serve images at specif ### Example Usage ```php -accessToken = ''; @@ -283,15 +299,15 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $request = new Operations\GetResizedPhotoRequest(); - $request->width = 110; - $request->height = 165; - $request->opacity = 643869; - $request->blur = 4000; - $request->minSize = Operations\MinSize::Zero; - $request->upscale = Operations\Upscale::Zero; - $request->url = '/library/metadata/49564/thumb/1654258204';; - + $request = new Operations\GetResizedPhotoRequest( + width: 110, + height: 165, + opacity: 643869, + blur: 4000, + minSize: Operations\MinSize::Zero, + upscale: Operations\Upscale::Zero, + url: '/library/metadata/49564/thumb/1654258204', + ); $response = $sdk->server->getResizedPhoto($request); if ($response->statusCode === 200) { @@ -304,15 +320,20 @@ try { ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | -| `$request` | [\LukeHagar\Plex_API\Models\Operations\GetResizedPhotoRequest](../../Models/Operations/GetResizedPhotoRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `$request` | [Operations\GetResizedPhotoRequest](../../Models/Operations/GetResizedPhotoRequest.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetResizedPhotoResponse](../../Models/Operations/GetResizedPhotoResponse.md)** +**[?Operations\GetResizedPhotoResponse](../../Models/Operations/GetResizedPhotoResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\GetResizedPhotoResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## getServerList @@ -321,14 +342,12 @@ Get Server List ### Example Usage ```php -accessToken = ''; @@ -340,7 +359,7 @@ $sdk = Plex_API\PlexAPI::builder() try { $response = $sdk->server->getServerList(); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -351,5 +370,10 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetServerListResponse](../../Models/Operations/GetServerListResponse.md)** +**[?Operations\GetServerListResponse](../../Models/Operations/GetServerListResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\GetServerListResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/sessions/README.md b/docs/sdks/sessions/README.md index a14027f..2057d98 100644 --- a/docs/sdks/sessions/README.md +++ b/docs/sdks/sessions/README.md @@ -20,14 +20,12 @@ This will retrieve the "Now Playing" Information of the PMS. ### Example Usage ```php -accessToken = ''; @@ -39,7 +37,7 @@ $sdk = Plex_API\PlexAPI::builder() try { $response = $sdk->sessions->getSessions(); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -50,8 +48,13 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetSessionsResponse](../../Models/Operations/GetSessionsResponse.md)** +**[?Operations\GetSessionsResponse](../../Models/Operations/GetSessionsResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\GetSessionsResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## getSessionHistory @@ -60,15 +63,13 @@ This will Retrieve a listing of all history views. ### Example Usage ```php -accessToken = ''; @@ -78,11 +79,12 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $filter = new Operations\Filter(); + $filter = new Operations\Filter( + ); $response = $sdk->sessions->getSessionHistory('', 1, $filter, 12); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -96,14 +98,19 @@ try { | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `sort` | *string* | :heavy_minus_sign: | Sorts the results by the specified field followed by the direction (asc, desc)
| | | `accountId` | *int* | :heavy_minus_sign: | Filter results by those that are related to a specific users id
| 1 | -| `filter` | [\LukeHagar\Plex_API\Models\Operations\Filter](../../Models/Operations/Filter.md) | :heavy_minus_sign: | Filters content by field and direction/equality
(Unknown if viewedAt is the only supported column)
| {
"viewed-at-greater-than": {
"value": "viewedAt\u003e"
},
"viewed-at-greater-than-or-equal-to": {
"value": "viewedAt\u003e=\u003e"
},
"viewed-at-less-than": {
"value": "viewedAt\u003c"
}
} | +| `filter` | [Operations\Filter](../../Models/Operations/Filter.md) | :heavy_minus_sign: | Filters content by field and direction/equality
(Unknown if viewedAt is the only supported column)
| {
"viewed-at-greater-than": {
"value": "viewedAt\u003e"
},
"viewed-at-greater-than-or-equal-to": {
"value": "viewedAt\u003e=\u003e"
},
"viewed-at-less-than": {
"value": "viewedAt\u003c"
}
} | | `librarySectionID` | *int* | :heavy_minus_sign: | Filters the results based on the id of a valid library section
| 12 | ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetSessionHistoryResponse](../../Models/Operations/GetSessionHistoryResponse.md)** +**[?Operations\GetSessionHistoryResponse](../../Models/Operations/GetSessionHistoryResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\GetSessionHistoryResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## getTranscodeSessions @@ -112,14 +119,12 @@ Get Transcode Sessions ### Example Usage ```php -accessToken = ''; @@ -131,7 +136,7 @@ $sdk = Plex_API\PlexAPI::builder() try { $response = $sdk->sessions->getTranscodeSessions(); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -142,8 +147,13 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetTranscodeSessionsResponse](../../Models/Operations/GetTranscodeSessionsResponse.md)** +**[?Operations\GetTranscodeSessionsResponse](../../Models/Operations/GetTranscodeSessionsResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\GetTranscodeSessionsResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## stopTranscodeSession @@ -152,15 +162,12 @@ Stop a Transcode Session ### Example Usage ```php -accessToken = ''; @@ -170,7 +177,6 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $response = $sdk->sessions->stopTranscodeSession('zz7llzqlx8w9vnrsbnwhbmep'); @@ -191,5 +197,10 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\StopTranscodeSessionResponse](../../Models/Operations/StopTranscodeSessionResponse.md)** +**[?Operations\StopTranscodeSessionResponse](../../Models/Operations/StopTranscodeSessionResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\StopTranscodeSessionResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/statistics/README.md b/docs/sdks/statistics/README.md index f73b392..71b8615 100644 --- a/docs/sdks/statistics/README.md +++ b/docs/sdks/statistics/README.md @@ -19,15 +19,12 @@ This will return the media statistics for the server ### Example Usage ```php -accessToken = ''; @@ -37,11 +34,10 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $response = $sdk->statistics->getStatistics(4); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -58,8 +54,13 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetStatisticsResponse](../../Models/Operations/GetStatisticsResponse.md)** +**[?Operations\GetStatisticsResponse](../../Models/Operations/GetStatisticsResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\GetStatisticsResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## getResourcesStatistics @@ -68,15 +69,12 @@ This will return the resources for the server ### Example Usage ```php -accessToken = ''; @@ -86,11 +84,10 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $response = $sdk->statistics->getResourcesStatistics(4); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -107,8 +104,13 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetResourcesStatisticsResponse](../../Models/Operations/GetResourcesStatisticsResponse.md)** +**[?Operations\GetResourcesStatisticsResponse](../../Models/Operations/GetResourcesStatisticsResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\GetResourcesStatisticsResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## getBandwidthStatistics @@ -117,15 +119,12 @@ This will return the bandwidth statistics for the server ### Example Usage ```php -accessToken = ''; @@ -135,11 +134,10 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $response = $sdk->statistics->getBandwidthStatistics(4); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -156,5 +154,10 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetBandwidthStatisticsResponse](../../Models/Operations/GetBandwidthStatisticsResponse.md)** +**[?Operations\GetBandwidthStatisticsResponse](../../Models/Operations/GetBandwidthStatisticsResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\GetBandwidthStatisticsResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/updater/README.md b/docs/sdks/updater/README.md index 59ef361..deb3565 100644 --- a/docs/sdks/updater/README.md +++ b/docs/sdks/updater/README.md @@ -20,14 +20,12 @@ Querying status of updates ### Example Usage ```php -accessToken = ''; @@ -39,7 +37,7 @@ $sdk = Plex_API\PlexAPI::builder() try { $response = $sdk->updater->getUpdateStatus(); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -50,8 +48,13 @@ try { ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetUpdateStatusResponse](../../Models/Operations/GetUpdateStatusResponse.md)** +**[?Operations\GetUpdateStatusResponse](../../Models/Operations/GetUpdateStatusResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\GetUpdateStatusResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## checkForUpdates @@ -60,15 +63,13 @@ Checking for updates ### Example Usage ```php -accessToken = ''; @@ -78,7 +79,6 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $response = $sdk->updater->checkForUpdates(Operations\Download::One); @@ -92,15 +92,20 @@ try { ### Parameters -| Parameter | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `download` | [\LukeHagar\Plex_API\Models\Operations\Download](../../Models/Operations/Download.md) | :heavy_minus_sign: | Indicate that you want to start download any updates found. | 1 | +| Parameter | Type | Required | Description | Example | +| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | +| `download` | [Operations\Download](../../Models/Operations/Download.md) | :heavy_minus_sign: | Indicate that you want to start download any updates found. | 1 | ### Response -**[?\LukeHagar\Plex_API\Models\Operations\CheckForUpdatesResponse](../../Models/Operations/CheckForUpdatesResponse.md)** +**[?Operations\CheckForUpdatesResponse](../../Models/Operations/CheckForUpdatesResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\CheckForUpdatesResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## applyUpdates @@ -110,15 +115,13 @@ Note that these two parameters are effectively mutually exclusive. The `tonight` ### Example Usage ```php -accessToken = ''; @@ -128,7 +131,6 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $response = $sdk->updater->applyUpdates(Operations\Tonight::One, Operations\Skip::Zero); @@ -144,11 +146,16 @@ try { | Parameter | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `tonight` | [\LukeHagar\Plex_API\Models\Operations\Tonight](../../Models/Operations/Tonight.md) | :heavy_minus_sign: | Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install | 1 | -| `skip` | [\LukeHagar\Plex_API\Models\Operations\Skip](../../Models/Operations/Skip.md) | :heavy_minus_sign: | Indicate that the latest version should be marked as skipped. The entry for this version will have the `state` set to `skipped`. | 1 | +| `tonight` | [Operations\Tonight](../../Models/Operations/Tonight.md) | :heavy_minus_sign: | Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install | 1 | +| `skip` | [Operations\Skip](../../Models/Operations/Skip.md) | :heavy_minus_sign: | Indicate that the latest version should be marked as skipped. The entry for this version will have the `state` set to `skipped`. | 1 | ### Response -**[?\LukeHagar\Plex_API\Models\Operations\ApplyUpdatesResponse](../../Models/Operations/ApplyUpdatesResponse.md)** +**[?Operations\ApplyUpdatesResponse](../../Models/Operations/ApplyUpdatesResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\ApplyUpdatesResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/video/README.md b/docs/sdks/video/README.md index febebde..08005c1 100644 --- a/docs/sdks/video/README.md +++ b/docs/sdks/video/README.md @@ -18,15 +18,13 @@ Get the timeline for a media item ### Example Usage ```php -accessToken = ''; @@ -36,18 +34,18 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $request = new Operations\GetTimelineRequest(); - $request->ratingKey = 23409; - $request->key = '/library/metadata/23409'; - $request->state = Operations\State::Playing; - $request->hasMDE = 1; - $request->time = 2000; - $request->duration = 10000; - $request->context = 'home:hub.continueWatching'; - $request->playQueueItemID = 1; - $request->playBackTime = 2000; - $request->row = 1;; - + $request = new Operations\GetTimelineRequest( + ratingKey: 23409, + key: '/library/metadata/23409', + state: Operations\State::Playing, + hasMDE: 1, + time: 2000, + duration: 10000, + context: 'home:hub.continueWatching', + playQueueItemID: 1, + playBackTime: 2000, + row: 1, + ); $response = $sdk->video->getTimeline($request); if ($response->statusCode === 200) { @@ -60,15 +58,20 @@ try { ### Parameters -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | -| `$request` | [\LukeHagar\Plex_API\Models\Operations\GetTimelineRequest](../../Models/Operations/GetTimelineRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `$request` | [Operations\GetTimelineRequest](../../Models/Operations/GetTimelineRequest.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetTimelineResponse](../../Models/Operations/GetTimelineResponse.md)** +**[?Operations\GetTimelineResponse](../../Models/Operations/GetTimelineResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\GetTimelineResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | ## startUniversalTranscode @@ -77,15 +80,13 @@ Begin a Universal Transcode Session ### Example Usage ```php -accessToken = ''; @@ -95,24 +96,17 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $request = new Operations\StartUniversalTranscodeRequest(); - $request->hasMDE = 1; - $request->path = '/library/metadata/23409'; - $request->mediaIndex = 0; - $request->partIndex = 0; - $request->protocol = 'hls'; - $request->fastSeek = 0; - $request->directPlay = 0; - $request->directStream = 0; - $request->subtitleSize = 100; - $request->subtites = 'burn'; - $request->audioBoost = 100; - $request->location = 'lan'; - $request->mediaBufferSize = 102400; - $request->session = 'zvcage8b7rkioqcm8f4uns4c'; - $request->addDebugOverlay = 0; - $request->autoAdjustQuality = 0;; - + $request = new Operations\StartUniversalTranscodeRequest( + hasMDE: 1, + path: '/library/metadata/23409', + protocol: 'hls', + subtitleSize: 100, + subtites: 'burn', + audioBoost: 100, + location: 'lan', + mediaBufferSize: 102400, + session: 'zvcage8b7rkioqcm8f4uns4c', + ); $response = $sdk->video->startUniversalTranscode($request); if ($response->statusCode === 200) { @@ -125,12 +119,17 @@ try { ### Parameters -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | -| `$request` | [\LukeHagar\Plex_API\Models\Operations\StartUniversalTranscodeRequest](../../Models/Operations/StartUniversalTranscodeRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `$request` | [Operations\StartUniversalTranscodeRequest](../../Models/Operations/StartUniversalTranscodeRequest.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[?\LukeHagar\Plex_API\Models\Operations\StartUniversalTranscodeResponse](../../Models/Operations/StartUniversalTranscodeResponse.md)** +**[?Operations\StartUniversalTranscodeResponse](../../Models/Operations/StartUniversalTranscodeResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\StartUniversalTranscodeResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/watchlist/README.md b/docs/sdks/watchlist/README.md index e9825a2..2169111 100644 --- a/docs/sdks/watchlist/README.md +++ b/docs/sdks/watchlist/README.md @@ -17,15 +17,13 @@ Get User Watchlist ### Example Usage ```php -accessToken = ''; @@ -35,20 +33,20 @@ $sdk = Plex_API\PlexAPI::builder() ->setSecurity($security)->build(); try { - $request = new Operations\GetWatchlistRequest(); - $request->filter = Operations\PathParamFilter::Released; - $request->sort = ''; - $request->libtype = Operations\Libtype::Movie; - $request->maxresults = 303056; - $request->includeCollections = Operations\IncludeCollections::Zero; - $request->includeExternalMedia = Operations\IncludeExternalMedia::One; - $request->xPlexToken = ''; - $request->xPlexContainerStart = 406911; - $request->xPlexContainerSize = 958629;; - + $request = new Operations\GetWatchlistRequest( + filter: Operations\PathParamFilter::Released, + xPlexToken: '', + sort: '', + libtype: Operations\Libtype::Movie, + maxresults: 303056, + includeCollections: Operations\IncludeCollections::Zero, + includeExternalMedia: Operations\IncludeExternalMedia::One, + xPlexContainerStart: 406911, + xPlexContainerSize: 958629, + ); $response = $sdk->watchlist->getWatchlist($request); - if ($response->twoHundredApplicationJsonObject !== null) { + if ($response->object !== null) { // handle response } } catch (Throwable $e) { @@ -58,13 +56,18 @@ try { ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `$request` | [\LukeHagar\Plex_API\Models\Operations\GetWatchlistRequest](../../Models/Operations/GetWatchlistRequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `$serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `$request` | [Operations\GetWatchlistRequest](../../Models/Operations/GetWatchlistRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `$serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | ### Response -**[?\LukeHagar\Plex_API\Models\Operations\GetWatchlistResponse](../../Models/Operations/GetWatchlistResponse.md)** +**[?Operations\GetWatchlistResponse](../../Models/Operations/GetWatchlistResponse.md)** +### Errors +| Error Object | Status Code | Content Type | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| Errors\GetWatchlistResponseBody | 401 | application/json | +| LukeHagar\Plex_API\Models\Errors.SDKException | 4xx-5xx | */* | diff --git a/phpstan.neon b/phpstan.neon index 14130c0..f623fd1 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -5,8 +5,7 @@ parameters: reportUnmatchedIgnoredErrors: false - checkGenericClassInNonGenericObjectType: false - ignoreErrors: - '#.*?class ReflectionProperty constructor expects object\|string.*?#' - '#^Strict comparison using === between .*? will always evaluate to false\.$#' + - identifier: missingType.generics diff --git a/phpunit.xml b/phpunit.xml new file mode 100644 index 0000000..d3f71bf --- /dev/null +++ b/phpunit.xml @@ -0,0 +1,17 @@ + + + + + ./Tests + + + + + ./src + + + diff --git a/pint.json b/pint.json index 5b64972..e34fd80 100644 --- a/pint.json +++ b/pint.json @@ -12,6 +12,7 @@ "no_blank_lines_after_class_opening": false, "single_line_after_imports": false, "no_trailing_whitespace_in_comment": false, - "single_line_empty_body": false + "single_line_empty_body": false, + "new_with_parentheses": false } -} \ No newline at end of file +} diff --git a/rector.php b/rector.php index 606164e..40eb9bf 100644 --- a/rector.php +++ b/rector.php @@ -1,7 +1,7 @@ sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/activities'); $options = ['http_errors' => false]; $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\GetServerActivitiesResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetServerActivitiesResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + object: $obj); - $response = new \LukeHagar\Plex_API\Models\Operations\GetServerActivitiesResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200) { + return $response; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->twoHundredApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetServerActivitiesResponseBody', 'json'); - } - } elseif ($httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $response->fourHundredAndOneApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetServerActivitiesActivitiesResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetServerActivitiesResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -66,36 +81,46 @@ class Activities * Cancel Server Activities * * @param string $activityUUID - * @return \LukeHagar\Plex_API\Models\Operations\CancelServerActivitiesResponse + * @return Operations\CancelServerActivitiesResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function cancelServerActivities( string $activityUUID, - ): \LukeHagar\Plex_API\Models\Operations\CancelServerActivitiesResponse { - $request = new \LukeHagar\Plex_API\Models\Operations\CancelServerActivitiesRequest(); - $request->activityUUID = $activityUUID; + ): Operations\CancelServerActivitiesResponse { + $request = new Operations\CancelServerActivitiesRequest( + activityUUID: $activityUUID, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); - $url = Utils\Utils::generateUrl($baseUrl, '/activities/{activityUUID}', \LukeHagar\Plex_API\Models\Operations\CancelServerActivitiesRequest::class, $request, $this->sdkConfiguration->globals); + $url = Utils\Utils::generateUrl($baseUrl, '/activities/{activityUUID}', Operations\CancelServerActivitiesRequest::class, $request, $this->sdkConfiguration->globals); $options = ['http_errors' => false]; $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('DELETE', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('DELETE', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - - $response = new \LukeHagar\Plex_API\Models\Operations\CancelServerActivitiesResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200 or $httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { + if ($statusCode == 200) { + return new Operations\CancelServerActivitiesResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse + ); + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->object = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\CancelServerActivitiesResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\CancelServerActivitiesResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } } \ No newline at end of file diff --git a/src/Authentication.php b/src/Authentication.php index 6869c9e..8606fdb 100644 --- a/src/Authentication.php +++ b/src/Authentication.php @@ -1,13 +1,16 @@ type = $type; - $request->scope = $scope; + Operations\GetTransientTokenQueryParamType $type, + Operations\Scope $scope, + ): Operations\GetTransientTokenResponse { + $request = new Operations\GetTransientTokenRequest( + type: $type, + scope: $scope, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/security/token'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\LukeHagar\Plex_API\Models\Operations\GetTransientTokenRequest::class, $request, $this->sdkConfiguration->globals)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetTransientTokenRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - - $response = new \LukeHagar\Plex_API\Models\Operations\GetTransientTokenResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200 or $httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { + if ($statusCode == 200) { + return new Operations\GetTransientTokenResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse + ); + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->object = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetTransientTokenResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetTransientTokenResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -72,37 +85,47 @@ class Authentication * * * @param string $source - * @return \LukeHagar\Plex_API\Models\Operations\GetSourceConnectionInformationResponse + * @return Operations\GetSourceConnectionInformationResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function getSourceConnectionInformation( string $source, - ): \LukeHagar\Plex_API\Models\Operations\GetSourceConnectionInformationResponse { - $request = new \LukeHagar\Plex_API\Models\Operations\GetSourceConnectionInformationRequest(); - $request->source = $source; + ): Operations\GetSourceConnectionInformationResponse { + $request = new Operations\GetSourceConnectionInformationRequest( + source: $source, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/security/resources'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\LukeHagar\Plex_API\Models\Operations\GetSourceConnectionInformationRequest::class, $request, $this->sdkConfiguration->globals)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetSourceConnectionInformationRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - - $response = new \LukeHagar\Plex_API\Models\Operations\GetSourceConnectionInformationResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200 or $httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { + if ($statusCode == 200) { + return new Operations\GetSourceConnectionInformationResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse + ); + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->object = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetSourceConnectionInformationResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetSourceConnectionInformationResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } } \ No newline at end of file diff --git a/src/Butler.php b/src/Butler.php index 57fcde3..b4061f3 100644 --- a/src/Butler.php +++ b/src/Butler.php @@ -1,13 +1,16 @@ sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/butler'); $options = ['http_errors' => false]; $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\GetButlerTasksResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetButlerTasksResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + object: $obj); - $response = new \LukeHagar\Plex_API\Models\Operations\GetButlerTasksResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200) { + return $response; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->twoHundredApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetButlerTasksResponseBody', 'json'); - } - } elseif ($httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $response->fourHundredAndOneApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetButlerTasksButlerResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetButlerTasksResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -70,34 +85,43 @@ class Butler * 4. If we are outside the configured window, the task will start immediately. * * - * @return \LukeHagar\Plex_API\Models\Operations\StartAllTasksResponse + * @return Operations\StartAllTasksResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function startAllTasks( - ): \LukeHagar\Plex_API\Models\Operations\StartAllTasksResponse { + ): Operations\StartAllTasksResponse { $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/butler'); $options = ['http_errors' => false]; $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('POST', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('POST', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - - $response = new \LukeHagar\Plex_API\Models\Operations\StartAllTasksResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200 or $httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { + if ($statusCode == 200) { + return new Operations\StartAllTasksResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse + ); + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->object = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\StartAllTasksResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\StartAllTasksResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -106,34 +130,43 @@ class Butler * This endpoint will stop all currently running tasks and remove any scheduled tasks from the queue. * * - * @return \LukeHagar\Plex_API\Models\Operations\StopAllTasksResponse + * @return Operations\StopAllTasksResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function stopAllTasks( - ): \LukeHagar\Plex_API\Models\Operations\StopAllTasksResponse { + ): Operations\StopAllTasksResponse { $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/butler'); $options = ['http_errors' => false]; $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('DELETE', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('DELETE', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - - $response = new \LukeHagar\Plex_API\Models\Operations\StopAllTasksResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200 or $httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { + if ($statusCode == 200) { + return new Operations\StopAllTasksResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse + ); + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->object = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\StopAllTasksResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\StopAllTasksResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -146,38 +179,48 @@ class Butler * 4. If we are outside the configured window, the task will start immediately. * * - * @param \LukeHagar\Plex_API\Models\Operations\TaskName $taskName - * @return \LukeHagar\Plex_API\Models\Operations\StartTaskResponse + * @param Operations\TaskName $taskName + * @return Operations\StartTaskResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function startTask( - \LukeHagar\Plex_API\Models\Operations\TaskName $taskName, - ): \LukeHagar\Plex_API\Models\Operations\StartTaskResponse { - $request = new \LukeHagar\Plex_API\Models\Operations\StartTaskRequest(); - $request->taskName = $taskName; + Operations\TaskName $taskName, + ): Operations\StartTaskResponse { + $request = new Operations\StartTaskRequest( + taskName: $taskName, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); - $url = Utils\Utils::generateUrl($baseUrl, '/butler/{taskName}', \LukeHagar\Plex_API\Models\Operations\StartTaskRequest::class, $request, $this->sdkConfiguration->globals); + $url = Utils\Utils::generateUrl($baseUrl, '/butler/{taskName}', Operations\StartTaskRequest::class, $request, $this->sdkConfiguration->globals); $options = ['http_errors' => false]; $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('POST', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('POST', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - - $response = new \LukeHagar\Plex_API\Models\Operations\StartTaskResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200 or $httpResponse->getStatusCode() === 202 or $httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { + if (in_array($statusCode, [200, 202])) { + return new Operations\StartTaskResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse + ); + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->object = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\StartTaskResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\StartTaskResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -186,37 +229,47 @@ class Butler * This endpoint will stop a currently running task by name, or remove it from the list of scheduled tasks if it exists. See the section above for a list of task names for this endpoint. * * - * @param \LukeHagar\Plex_API\Models\Operations\PathParamTaskName $taskName - * @return \LukeHagar\Plex_API\Models\Operations\StopTaskResponse + * @param Operations\PathParamTaskName $taskName + * @return Operations\StopTaskResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function stopTask( - \LukeHagar\Plex_API\Models\Operations\PathParamTaskName $taskName, - ): \LukeHagar\Plex_API\Models\Operations\StopTaskResponse { - $request = new \LukeHagar\Plex_API\Models\Operations\StopTaskRequest(); - $request->taskName = $taskName; + Operations\PathParamTaskName $taskName, + ): Operations\StopTaskResponse { + $request = new Operations\StopTaskRequest( + taskName: $taskName, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); - $url = Utils\Utils::generateUrl($baseUrl, '/butler/{taskName}', \LukeHagar\Plex_API\Models\Operations\StopTaskRequest::class, $request, $this->sdkConfiguration->globals); + $url = Utils\Utils::generateUrl($baseUrl, '/butler/{taskName}', Operations\StopTaskRequest::class, $request, $this->sdkConfiguration->globals); $options = ['http_errors' => false]; $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('DELETE', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('DELETE', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - - $response = new \LukeHagar\Plex_API\Models\Operations\StopTaskResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200 or $httpResponse->getStatusCode() === 400 or $httpResponse->getStatusCode() === 404) { - } elseif ($httpResponse->getStatusCode() === 401) { + if ($statusCode == 200) { + return new Operations\StopTaskResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse + ); + } elseif ($statusCode == 400 || $statusCode == 404 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->object = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\StopTaskResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\StopTaskResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } } \ No newline at end of file diff --git a/src/Hubs.php b/src/Hubs.php index 40539b7..5179c6c 100644 --- a/src/Hubs.php +++ b/src/Hubs.php @@ -1,13 +1,16 @@ count = $count; - $request->onlyTransient = $onlyTransient; + ?Operations\OnlyTransient $onlyTransient = null, + ): Operations\GetGlobalHubsResponse { + $request = new Operations\GetGlobalHubsRequest( + count: $count, + onlyTransient: $onlyTransient, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/hubs'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\LukeHagar\Plex_API\Models\Operations\GetGlobalHubsRequest::class, $request, $this->sdkConfiguration->globals)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetGlobalHubsRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\GetGlobalHubsResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetGlobalHubsResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + object: $obj); - $response = new \LukeHagar\Plex_API\Models\Operations\GetGlobalHubsResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200) { + return $response; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->twoHundredApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetGlobalHubsResponseBody', 'json'); - } - } elseif ($httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $response->fourHundredAndOneApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetGlobalHubsHubsResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetGlobalHubsResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -76,47 +92,60 @@ class Hubs * * @param float $sectionId * @param ?float $count - * @param ?\LukeHagar\Plex_API\Models\Operations\QueryParamOnlyTransient $onlyTransient - * @return \LukeHagar\Plex_API\Models\Operations\GetLibraryHubsResponse + * @param ?Operations\QueryParamOnlyTransient $onlyTransient + * @return Operations\GetLibraryHubsResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function getLibraryHubs( float $sectionId, ?float $count = null, - ?\LukeHagar\Plex_API\Models\Operations\QueryParamOnlyTransient $onlyTransient = null, - ): \LukeHagar\Plex_API\Models\Operations\GetLibraryHubsResponse { - $request = new \LukeHagar\Plex_API\Models\Operations\GetLibraryHubsRequest(); - $request->sectionId = $sectionId; - $request->count = $count; - $request->onlyTransient = $onlyTransient; + ?Operations\QueryParamOnlyTransient $onlyTransient = null, + ): Operations\GetLibraryHubsResponse { + $request = new Operations\GetLibraryHubsRequest( + sectionId: $sectionId, + count: $count, + onlyTransient: $onlyTransient, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); - $url = Utils\Utils::generateUrl($baseUrl, '/hubs/sections/{sectionId}', \LukeHagar\Plex_API\Models\Operations\GetLibraryHubsRequest::class, $request, $this->sdkConfiguration->globals); + $url = Utils\Utils::generateUrl($baseUrl, '/hubs/sections/{sectionId}', Operations\GetLibraryHubsRequest::class, $request, $this->sdkConfiguration->globals); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\LukeHagar\Plex_API\Models\Operations\GetLibraryHubsRequest::class, $request, $this->sdkConfiguration->globals)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetLibraryHubsRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\GetLibraryHubsResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetLibraryHubsResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + object: $obj); - $response = new \LukeHagar\Plex_API\Models\Operations\GetLibraryHubsResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200) { + return $response; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->twoHundredApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetLibraryHubsResponseBody', 'json'); - } - } elseif ($httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $response->fourHundredAndOneApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetLibraryHubsHubsResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetLibraryHubsResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } } \ No newline at end of file diff --git a/src/Library.php b/src/Library.php index 3a06faf..87d7763 100644 --- a/src/Library.php +++ b/src/Library.php @@ -1,13 +1,16 @@ url = $url; - $request->type = $type; + ): Operations\GetFileHashResponse { + $request = new Operations\GetFileHashRequest( + url: $url, + type: $type, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/library/hashes'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\LukeHagar\Plex_API\Models\Operations\GetFileHashRequest::class, $request, $this->sdkConfiguration->globals)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetFileHashRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - - $response = new \LukeHagar\Plex_API\Models\Operations\GetFileHashResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200 or $httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { + if ($statusCode == 200) { + return new Operations\GetFileHashResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse + ); + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->object = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetFileHashResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetFileHashResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -69,39 +82,51 @@ class Library * This endpoint will return the recently added content. * * - * @return \LukeHagar\Plex_API\Models\Operations\GetRecentlyAddedResponse + * @return Operations\GetRecentlyAddedResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function getRecentlyAdded( - ): \LukeHagar\Plex_API\Models\Operations\GetRecentlyAddedResponse { + ): Operations\GetRecentlyAddedResponse { $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/library/recentlyAdded'); $options = ['http_errors' => false]; $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\GetRecentlyAddedResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetRecentlyAddedResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + object: $obj); - $response = new \LukeHagar\Plex_API\Models\Operations\GetRecentlyAddedResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200) { + return $response; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->twoHundredApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetRecentlyAddedResponseBody', 'json'); - } - } elseif ($httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $response->fourHundredAndOneApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetRecentlyAddedLibraryResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetRecentlyAddedResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -115,39 +140,51 @@ class Library * This allows a client to provide a rich interface around the media (e.g. allow sorting movies by release year). * * - * @return \LukeHagar\Plex_API\Models\Operations\GetLibrariesResponse + * @return Operations\GetLibrariesResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function getLibraries( - ): \LukeHagar\Plex_API\Models\Operations\GetLibrariesResponse { + ): Operations\GetLibrariesResponse { $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/library/sections'); $options = ['http_errors' => false]; $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\GetLibrariesResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetLibrariesResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + object: $obj); - $response = new \LukeHagar\Plex_API\Models\Operations\GetLibrariesResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200) { + return $response; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->twoHundredApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetLibrariesResponseBody', 'json'); - } - } elseif ($httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $response->fourHundredAndOneApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetLibrariesLibraryResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetLibrariesResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -195,46 +232,59 @@ class Library * * * @param float $sectionId - * @param ?\LukeHagar\Plex_API\Models\Operations\IncludeDetails $includeDetails - * @return \LukeHagar\Plex_API\Models\Operations\GetLibraryResponse + * @param ?Operations\IncludeDetails $includeDetails + * @return Operations\GetLibraryResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function getLibrary( float $sectionId, - ?\LukeHagar\Plex_API\Models\Operations\IncludeDetails $includeDetails = null, - ): \LukeHagar\Plex_API\Models\Operations\GetLibraryResponse { - $request = new \LukeHagar\Plex_API\Models\Operations\GetLibraryRequest(); - $request->sectionId = $sectionId; - $request->includeDetails = $includeDetails; + ?Operations\IncludeDetails $includeDetails = null, + ): Operations\GetLibraryResponse { + $request = new Operations\GetLibraryRequest( + sectionId: $sectionId, + includeDetails: $includeDetails, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); - $url = Utils\Utils::generateUrl($baseUrl, '/library/sections/{sectionId}', \LukeHagar\Plex_API\Models\Operations\GetLibraryRequest::class, $request, $this->sdkConfiguration->globals); + $url = Utils\Utils::generateUrl($baseUrl, '/library/sections/{sectionId}', Operations\GetLibraryRequest::class, $request, $this->sdkConfiguration->globals); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\LukeHagar\Plex_API\Models\Operations\GetLibraryRequest::class, $request, $this->sdkConfiguration->globals)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetLibraryRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\GetLibraryResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetLibraryResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + object: $obj); - $response = new \LukeHagar\Plex_API\Models\Operations\GetLibraryResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200) { + return $response; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->twoHundredApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetLibraryResponseBody', 'json'); - } - } elseif ($httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $response->fourHundredAndOneApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetLibraryLibraryResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetLibraryResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -243,37 +293,47 @@ class Library * Delate a library using a specific section * * @param float $sectionId - * @return \LukeHagar\Plex_API\Models\Operations\DeleteLibraryResponse + * @return Operations\DeleteLibraryResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function deleteLibrary( float $sectionId, - ): \LukeHagar\Plex_API\Models\Operations\DeleteLibraryResponse { - $request = new \LukeHagar\Plex_API\Models\Operations\DeleteLibraryRequest(); - $request->sectionId = $sectionId; + ): Operations\DeleteLibraryResponse { + $request = new Operations\DeleteLibraryRequest( + sectionId: $sectionId, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); - $url = Utils\Utils::generateUrl($baseUrl, '/library/sections/{sectionId}', \LukeHagar\Plex_API\Models\Operations\DeleteLibraryRequest::class, $request, $this->sdkConfiguration->globals); + $url = Utils\Utils::generateUrl($baseUrl, '/library/sections/{sectionId}', Operations\DeleteLibraryRequest::class, $request, $this->sdkConfiguration->globals); $options = ['http_errors' => false]; $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('DELETE', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('DELETE', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - - $response = new \LukeHagar\Plex_API\Models\Operations\DeleteLibraryResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200 or $httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { + if ($statusCode == 200) { + return new Operations\DeleteLibraryResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse + ); + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->object = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\DeleteLibraryResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\DeleteLibraryResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -302,49 +362,62 @@ class Library * * * @param mixed $sectionId - * @param \LukeHagar\Plex_API\Models\Operations\Tag $tag + * @param Operations\Tag $tag * @param ?int $includeGuids - * @return \LukeHagar\Plex_API\Models\Operations\GetLibraryItemsResponse + * @return Operations\GetLibraryItemsResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function getLibraryItems( mixed $sectionId, - \LukeHagar\Plex_API\Models\Operations\Tag $tag, + Operations\Tag $tag, ?int $includeGuids = null, - ): \LukeHagar\Plex_API\Models\Operations\GetLibraryItemsResponse { - $request = new \LukeHagar\Plex_API\Models\Operations\GetLibraryItemsRequest(); - $request->sectionId = $sectionId; - $request->tag = $tag; - $request->includeGuids = $includeGuids; + ): Operations\GetLibraryItemsResponse { + $request = new Operations\GetLibraryItemsRequest( + sectionId: $sectionId, + tag: $tag, + includeGuids: $includeGuids, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); - $url = Utils\Utils::generateUrl($baseUrl, '/library/sections/{sectionId}/{tag}', \LukeHagar\Plex_API\Models\Operations\GetLibraryItemsRequest::class, $request, $this->sdkConfiguration->globals); + $url = Utils\Utils::generateUrl($baseUrl, '/library/sections/{sectionId}/{tag}', Operations\GetLibraryItemsRequest::class, $request, $this->sdkConfiguration->globals); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\LukeHagar\Plex_API\Models\Operations\GetLibraryItemsRequest::class, $request, $this->sdkConfiguration->globals)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetLibraryItemsRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\GetLibraryItemsResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetLibraryItemsResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + object: $obj); - $response = new \LukeHagar\Plex_API\Models\Operations\GetLibraryItemsResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200) { + return $response; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->twoHundredApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetLibraryItemsResponseBody', 'json'); - } - } elseif ($httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $response->fourHundredAndOneApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetLibraryItemsLibraryResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetLibraryItemsResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -354,37 +427,47 @@ class Library * * * @param float $sectionId - * @return \LukeHagar\Plex_API\Models\Operations\RefreshLibraryResponse + * @return Operations\RefreshLibraryResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function refreshLibrary( float $sectionId, - ): \LukeHagar\Plex_API\Models\Operations\RefreshLibraryResponse { - $request = new \LukeHagar\Plex_API\Models\Operations\RefreshLibraryRequest(); - $request->sectionId = $sectionId; + ): Operations\RefreshLibraryResponse { + $request = new Operations\RefreshLibraryRequest( + sectionId: $sectionId, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); - $url = Utils\Utils::generateUrl($baseUrl, '/library/sections/{sectionId}/refresh', \LukeHagar\Plex_API\Models\Operations\RefreshLibraryRequest::class, $request, $this->sdkConfiguration->globals); + $url = Utils\Utils::generateUrl($baseUrl, '/library/sections/{sectionId}/refresh', Operations\RefreshLibraryRequest::class, $request, $this->sdkConfiguration->globals); $options = ['http_errors' => false]; $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - - $response = new \LukeHagar\Plex_API\Models\Operations\RefreshLibraryResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200 or $httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { + if ($statusCode == 200) { + return new Operations\RefreshLibraryResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse + ); + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->object = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\RefreshLibraryResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\RefreshLibraryResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -411,46 +494,59 @@ class Library * * * @param int $sectionId - * @param \LukeHagar\Plex_API\Models\Operations\Type $type - * @return \LukeHagar\Plex_API\Models\Operations\SearchLibraryResponse + * @param Operations\Type $type + * @return Operations\SearchLibraryResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function searchLibrary( int $sectionId, - \LukeHagar\Plex_API\Models\Operations\Type $type, - ): \LukeHagar\Plex_API\Models\Operations\SearchLibraryResponse { - $request = new \LukeHagar\Plex_API\Models\Operations\SearchLibraryRequest(); - $request->sectionId = $sectionId; - $request->type = $type; + Operations\Type $type, + ): Operations\SearchLibraryResponse { + $request = new Operations\SearchLibraryRequest( + sectionId: $sectionId, + type: $type, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); - $url = Utils\Utils::generateUrl($baseUrl, '/library/sections/{sectionId}/search', \LukeHagar\Plex_API\Models\Operations\SearchLibraryRequest::class, $request, $this->sdkConfiguration->globals); + $url = Utils\Utils::generateUrl($baseUrl, '/library/sections/{sectionId}/search', Operations\SearchLibraryRequest::class, $request, $this->sdkConfiguration->globals); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\LukeHagar\Plex_API\Models\Operations\SearchLibraryRequest::class, $request, $this->sdkConfiguration->globals)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\SearchLibraryRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\SearchLibraryResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\SearchLibraryResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + object: $obj); - $response = new \LukeHagar\Plex_API\Models\Operations\SearchLibraryResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200) { + return $response; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->twoHundredApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\SearchLibraryResponseBody', 'json'); - } - } elseif ($httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $response->fourHundredAndOneApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\SearchLibraryLibraryResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\SearchLibraryResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -460,42 +556,55 @@ class Library * * * @param float $ratingKey - * @return \LukeHagar\Plex_API\Models\Operations\GetMetadataResponse + * @return Operations\GetMetadataResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function getMetadata( float $ratingKey, - ): \LukeHagar\Plex_API\Models\Operations\GetMetadataResponse { - $request = new \LukeHagar\Plex_API\Models\Operations\GetMetadataRequest(); - $request->ratingKey = $ratingKey; + ): Operations\GetMetadataResponse { + $request = new Operations\GetMetadataRequest( + ratingKey: $ratingKey, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); - $url = Utils\Utils::generateUrl($baseUrl, '/library/metadata/{ratingKey}', \LukeHagar\Plex_API\Models\Operations\GetMetadataRequest::class, $request, $this->sdkConfiguration->globals); + $url = Utils\Utils::generateUrl($baseUrl, '/library/metadata/{ratingKey}', Operations\GetMetadataRequest::class, $request, $this->sdkConfiguration->globals); $options = ['http_errors' => false]; $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\GetMetadataResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetMetadataResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + object: $obj); - $response = new \LukeHagar\Plex_API\Models\Operations\GetMetadataResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200) { + return $response; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->twoHundredApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetMetadataResponseBody', 'json'); - } - } elseif ($httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $response->fourHundredAndOneApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetMetadataLibraryResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetMetadataResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -506,45 +615,58 @@ class Library * * @param float $ratingKey * @param ?string $includeElements - * @return \LukeHagar\Plex_API\Models\Operations\GetMetadataChildrenResponse + * @return Operations\GetMetadataChildrenResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function getMetadataChildren( float $ratingKey, ?string $includeElements = null, - ): \LukeHagar\Plex_API\Models\Operations\GetMetadataChildrenResponse { - $request = new \LukeHagar\Plex_API\Models\Operations\GetMetadataChildrenRequest(); - $request->ratingKey = $ratingKey; - $request->includeElements = $includeElements; + ): Operations\GetMetadataChildrenResponse { + $request = new Operations\GetMetadataChildrenRequest( + ratingKey: $ratingKey, + includeElements: $includeElements, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); - $url = Utils\Utils::generateUrl($baseUrl, '/library/metadata/{ratingKey}/children', \LukeHagar\Plex_API\Models\Operations\GetMetadataChildrenRequest::class, $request, $this->sdkConfiguration->globals); + $url = Utils\Utils::generateUrl($baseUrl, '/library/metadata/{ratingKey}/children', Operations\GetMetadataChildrenRequest::class, $request, $this->sdkConfiguration->globals); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\LukeHagar\Plex_API\Models\Operations\GetMetadataChildrenRequest::class, $request, $this->sdkConfiguration->globals)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetMetadataChildrenRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\GetMetadataChildrenResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetMetadataChildrenResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + object: $obj); - $response = new \LukeHagar\Plex_API\Models\Operations\GetMetadataChildrenResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200) { + return $response; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->twoHundredApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetMetadataChildrenResponseBody', 'json'); - } - } elseif ($httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $response->fourHundredAndOneApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetMetadataChildrenLibraryResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetMetadataChildrenResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -555,39 +677,49 @@ class Library * * @param int $type * @param ?int $includeGuids - * @return \LukeHagar\Plex_API\Models\Operations\GetTopWatchedContentResponse + * @return Operations\GetTopWatchedContentResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function getTopWatchedContent( int $type, ?int $includeGuids = null, - ): \LukeHagar\Plex_API\Models\Operations\GetTopWatchedContentResponse { - $request = new \LukeHagar\Plex_API\Models\Operations\GetTopWatchedContentRequest(); - $request->type = $type; - $request->includeGuids = $includeGuids; + ): Operations\GetTopWatchedContentResponse { + $request = new Operations\GetTopWatchedContentRequest( + type: $type, + includeGuids: $includeGuids, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/library/all/top'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\LukeHagar\Plex_API\Models\Operations\GetTopWatchedContentRequest::class, $request, $this->sdkConfiguration->globals)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetTopWatchedContentRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - - $response = new \LukeHagar\Plex_API\Models\Operations\GetTopWatchedContentResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200) { + if ($statusCode == 200) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->object = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetTopWatchedContentResponseBody', 'json'); - } - } + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\GetTopWatchedContentResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetTopWatchedContentResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + object: $obj); - return $response; + return $response; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } } /** @@ -596,38 +728,50 @@ class Library * This endpoint will return the on deck content. * * - * @return \LukeHagar\Plex_API\Models\Operations\GetOnDeckResponse + * @return Operations\GetOnDeckResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function getOnDeck( - ): \LukeHagar\Plex_API\Models\Operations\GetOnDeckResponse { + ): Operations\GetOnDeckResponse { $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/library/onDeck'); $options = ['http_errors' => false]; $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\GetOnDeckResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetOnDeckResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + object: $obj); - $response = new \LukeHagar\Plex_API\Models\Operations\GetOnDeckResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200) { + return $response; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->twoHundredApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetOnDeckResponseBody', 'json'); - } - } elseif ($httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $response->fourHundredAndOneApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetOnDeckLibraryResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetOnDeckResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } } \ No newline at end of file diff --git a/src/Log.php b/src/Log.php index fa5e490..379f8d1 100644 --- a/src/Log.php +++ b/src/Log.php @@ -1,13 +1,16 @@ level = $level; - $request->message = $message; - $request->source = $source; + ): Operations\LogLineResponse { + $request = new Operations\LogLineRequest( + level: $level, + message: $message, + source: $source, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/log'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\LukeHagar\Plex_API\Models\Operations\LogLineRequest::class, $request, $this->sdkConfiguration->globals)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\LogLineRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - - $response = new \LukeHagar\Plex_API\Models\Operations\LogLineResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200 or $httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { + if ($statusCode == 200) { + return new Operations\LogLineResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse + ); + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->object = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\LogLineResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\LogLineResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -94,11 +107,12 @@ class Log * * * @param string $request - * @return \LukeHagar\Plex_API\Models\Operations\LogMultiLineResponse + * @return Operations\LogMultiLineResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function logMultiLine( string $request, - ): \LukeHagar\Plex_API\Models\Operations\LogMultiLineResponse { + ): Operations\LogMultiLineResponse { $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/log'); $options = ['http_errors' => false]; @@ -109,25 +123,33 @@ class Log $options = array_merge_recursive($options, $body); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('POST', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('POST', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - - $response = new \LukeHagar\Plex_API\Models\Operations\LogMultiLineResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200 or $httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { + if ($statusCode == 200) { + return new Operations\LogMultiLineResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse + ); + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->object = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\LogMultiLineResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\LogMultiLineResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -136,33 +158,42 @@ class Log * This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail networked logging site for a period of time. * * - * @return \LukeHagar\Plex_API\Models\Operations\EnablePaperTrailResponse + * @return Operations\EnablePaperTrailResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function enablePaperTrail( - ): \LukeHagar\Plex_API\Models\Operations\EnablePaperTrailResponse { + ): Operations\EnablePaperTrailResponse { $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/log/networked'); $options = ['http_errors' => false]; $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - - $response = new \LukeHagar\Plex_API\Models\Operations\EnablePaperTrailResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200 or $httpResponse->getStatusCode() === 400 or $httpResponse->getStatusCode() === 403) { - } elseif ($httpResponse->getStatusCode() === 401) { + if ($statusCode == 200) { + return new Operations\EnablePaperTrailResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse + ); + } elseif ($statusCode == 400 || $statusCode == 403 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->object = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\EnablePaperTrailResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\EnablePaperTrailResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } } \ No newline at end of file diff --git a/src/Media.php b/src/Media.php index 9d4e01d..26865ca 100644 --- a/src/Media.php +++ b/src/Media.php @@ -1,13 +1,16 @@ key = $key; + ): Operations\MarkPlayedResponse { + $request = new Operations\MarkPlayedRequest( + key: $key, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/:/scrobble'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\LukeHagar\Plex_API\Models\Operations\MarkPlayedRequest::class, $request, $this->sdkConfiguration->globals)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\MarkPlayedRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - - $response = new \LukeHagar\Plex_API\Models\Operations\MarkPlayedResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200 or $httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { + if ($statusCode == 200) { + return new Operations\MarkPlayedResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse + ); + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->object = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\MarkPlayedResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\MarkPlayedResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -66,38 +79,48 @@ class Media * This will mark the provided media key as Unplayed. * * @param float $key - * @return \LukeHagar\Plex_API\Models\Operations\MarkUnplayedResponse + * @return Operations\MarkUnplayedResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function markUnplayed( float $key, - ): \LukeHagar\Plex_API\Models\Operations\MarkUnplayedResponse { - $request = new \LukeHagar\Plex_API\Models\Operations\MarkUnplayedRequest(); - $request->key = $key; + ): Operations\MarkUnplayedResponse { + $request = new Operations\MarkUnplayedRequest( + key: $key, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/:/unscrobble'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\LukeHagar\Plex_API\Models\Operations\MarkUnplayedRequest::class, $request, $this->sdkConfiguration->globals)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\MarkUnplayedRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - - $response = new \LukeHagar\Plex_API\Models\Operations\MarkUnplayedResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200 or $httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { + if ($statusCode == 200) { + return new Operations\MarkUnplayedResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse + ); + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->object = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\MarkUnplayedResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\MarkUnplayedResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -109,41 +132,51 @@ class Media * @param string $key * @param float $time * @param string $state - * @return \LukeHagar\Plex_API\Models\Operations\UpdatePlayProgressResponse + * @return Operations\UpdatePlayProgressResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function updatePlayProgress( string $key, float $time, string $state, - ): \LukeHagar\Plex_API\Models\Operations\UpdatePlayProgressResponse { - $request = new \LukeHagar\Plex_API\Models\Operations\UpdatePlayProgressRequest(); - $request->key = $key; - $request->time = $time; - $request->state = $state; + ): Operations\UpdatePlayProgressResponse { + $request = new Operations\UpdatePlayProgressRequest( + key: $key, + time: $time, + state: $state, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/:/progress'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\LukeHagar\Plex_API\Models\Operations\UpdatePlayProgressRequest::class, $request, $this->sdkConfiguration->globals)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\UpdatePlayProgressRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('POST', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('POST', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - - $response = new \LukeHagar\Plex_API\Models\Operations\UpdatePlayProgressResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200 or $httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { + if ($statusCode == 200) { + return new Operations\UpdatePlayProgressResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse + ); + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->object = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\UpdatePlayProgressResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\UpdatePlayProgressResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } } \ No newline at end of file diff --git a/src/Models/Components/Security.php b/src/Models/Components/Security.php index d35ddc8..f6d08e3 100644 --- a/src/Models/Components/Security.php +++ b/src/Models/Components/Security.php @@ -1,7 +1,7 @@ accessToken = ''; + $this->accessToken = $accessToken; } } \ No newline at end of file diff --git a/src/Models/Errors/AddPlaylistContentsErrors.php b/src/Models/Errors/AddPlaylistContentsErrors.php new file mode 100644 index 0000000..adb19ab --- /dev/null +++ b/src/Models/Errors/AddPlaylistContentsErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/AddPlaylistContentsResponseBody.php b/src/Models/Errors/AddPlaylistContentsResponseBody.php new file mode 100644 index 0000000..95524c9 --- /dev/null +++ b/src/Models/Errors/AddPlaylistContentsResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\AddPlaylistContentsErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ApplyUpdatesErrors.php b/src/Models/Errors/ApplyUpdatesErrors.php new file mode 100644 index 0000000..705dc62 --- /dev/null +++ b/src/Models/Errors/ApplyUpdatesErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ApplyUpdatesResponseBody.php b/src/Models/Errors/ApplyUpdatesResponseBody.php new file mode 100644 index 0000000..73bccac --- /dev/null +++ b/src/Models/Errors/ApplyUpdatesResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\ApplyUpdatesErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/CancelServerActivitiesErrors.php b/src/Models/Errors/CancelServerActivitiesErrors.php new file mode 100644 index 0000000..8ff8f73 --- /dev/null +++ b/src/Models/Errors/CancelServerActivitiesErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/CancelServerActivitiesResponseBody.php b/src/Models/Errors/CancelServerActivitiesResponseBody.php new file mode 100644 index 0000000..46fe803 --- /dev/null +++ b/src/Models/Errors/CancelServerActivitiesResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\CancelServerActivitiesErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/CheckForUpdatesErrors.php b/src/Models/Errors/CheckForUpdatesErrors.php new file mode 100644 index 0000000..9592e94 --- /dev/null +++ b/src/Models/Errors/CheckForUpdatesErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/CheckForUpdatesResponseBody.php b/src/Models/Errors/CheckForUpdatesResponseBody.php new file mode 100644 index 0000000..007a01f --- /dev/null +++ b/src/Models/Errors/CheckForUpdatesResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\CheckForUpdatesErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClearPlaylistContentsErrors.php b/src/Models/Errors/ClearPlaylistContentsErrors.php new file mode 100644 index 0000000..7f68b31 --- /dev/null +++ b/src/Models/Errors/ClearPlaylistContentsErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClearPlaylistContentsResponseBody.php b/src/Models/Errors/ClearPlaylistContentsResponseBody.php new file mode 100644 index 0000000..a0124de --- /dev/null +++ b/src/Models/Errors/ClearPlaylistContentsResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\ClearPlaylistContentsErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/CreatePlaylistErrors.php b/src/Models/Errors/CreatePlaylistErrors.php new file mode 100644 index 0000000..f5de957 --- /dev/null +++ b/src/Models/Errors/CreatePlaylistErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/CreatePlaylistResponseBody.php b/src/Models/Errors/CreatePlaylistResponseBody.php new file mode 100644 index 0000000..068896e --- /dev/null +++ b/src/Models/Errors/CreatePlaylistResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\CreatePlaylistErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/DeleteLibraryErrors.php b/src/Models/Errors/DeleteLibraryErrors.php new file mode 100644 index 0000000..3750d96 --- /dev/null +++ b/src/Models/Errors/DeleteLibraryErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/DeleteLibraryResponseBody.php b/src/Models/Errors/DeleteLibraryResponseBody.php new file mode 100644 index 0000000..f0668f4 --- /dev/null +++ b/src/Models/Errors/DeleteLibraryResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\DeleteLibraryErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/DeletePlaylistErrors.php b/src/Models/Errors/DeletePlaylistErrors.php new file mode 100644 index 0000000..7bd5239 --- /dev/null +++ b/src/Models/Errors/DeletePlaylistErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/DeletePlaylistResponseBody.php b/src/Models/Errors/DeletePlaylistResponseBody.php new file mode 100644 index 0000000..ea8d2f8 --- /dev/null +++ b/src/Models/Errors/DeletePlaylistResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\DeletePlaylistErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/EnablePaperTrailErrors.php b/src/Models/Errors/EnablePaperTrailErrors.php new file mode 100644 index 0000000..86558de --- /dev/null +++ b/src/Models/Errors/EnablePaperTrailErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/EnablePaperTrailResponseBody.php b/src/Models/Errors/EnablePaperTrailResponseBody.php new file mode 100644 index 0000000..c865ad1 --- /dev/null +++ b/src/Models/Errors/EnablePaperTrailResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\EnablePaperTrailErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/Errors.php b/src/Models/Errors/Errors.php new file mode 100644 index 0000000..8be1c9d --- /dev/null +++ b/src/Models/Errors/Errors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetAvailableClientsErrors.php b/src/Models/Errors/GetAvailableClientsErrors.php new file mode 100644 index 0000000..15bd2e8 --- /dev/null +++ b/src/Models/Errors/GetAvailableClientsErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetAvailableClientsResponseBody.php b/src/Models/Errors/GetAvailableClientsResponseBody.php new file mode 100644 index 0000000..7c97e3d --- /dev/null +++ b/src/Models/Errors/GetAvailableClientsResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\GetAvailableClientsErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetBandwidthStatisticsErrors.php b/src/Models/Errors/GetBandwidthStatisticsErrors.php new file mode 100644 index 0000000..15e59a1 --- /dev/null +++ b/src/Models/Errors/GetBandwidthStatisticsErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetBandwidthStatisticsResponseBody.php b/src/Models/Errors/GetBandwidthStatisticsResponseBody.php new file mode 100644 index 0000000..bee84c5 --- /dev/null +++ b/src/Models/Errors/GetBandwidthStatisticsResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\GetBandwidthStatisticsErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetButlerTasksErrors.php b/src/Models/Errors/GetButlerTasksErrors.php new file mode 100644 index 0000000..3edcc07 --- /dev/null +++ b/src/Models/Errors/GetButlerTasksErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetButlerTasksResponseBody.php b/src/Models/Errors/GetButlerTasksResponseBody.php new file mode 100644 index 0000000..8c5df0d --- /dev/null +++ b/src/Models/Errors/GetButlerTasksResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\GetButlerTasksErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetDevicesErrors.php b/src/Models/Errors/GetDevicesErrors.php new file mode 100644 index 0000000..d4f3fc3 --- /dev/null +++ b/src/Models/Errors/GetDevicesErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetDevicesResponseBody.php b/src/Models/Errors/GetDevicesResponseBody.php new file mode 100644 index 0000000..0ac4409 --- /dev/null +++ b/src/Models/Errors/GetDevicesResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\GetDevicesErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetFileHashErrors.php b/src/Models/Errors/GetFileHashErrors.php new file mode 100644 index 0000000..ad0f184 --- /dev/null +++ b/src/Models/Errors/GetFileHashErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetFileHashResponseBody.php b/src/Models/Errors/GetFileHashResponseBody.php new file mode 100644 index 0000000..68163f9 --- /dev/null +++ b/src/Models/Errors/GetFileHashResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\GetFileHashErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetGlobalHubsErrors.php b/src/Models/Errors/GetGlobalHubsErrors.php new file mode 100644 index 0000000..0102886 --- /dev/null +++ b/src/Models/Errors/GetGlobalHubsErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetGlobalHubsResponseBody.php b/src/Models/Errors/GetGlobalHubsResponseBody.php new file mode 100644 index 0000000..50aeba5 --- /dev/null +++ b/src/Models/Errors/GetGlobalHubsResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\GetGlobalHubsErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetHomeDataErrors.php b/src/Models/Errors/GetHomeDataErrors.php new file mode 100644 index 0000000..0ede460 --- /dev/null +++ b/src/Models/Errors/GetHomeDataErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetHomeDataResponseBody.php b/src/Models/Errors/GetHomeDataResponseBody.php new file mode 100644 index 0000000..943a8fa --- /dev/null +++ b/src/Models/Errors/GetHomeDataResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\GetHomeDataErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetLibrariesErrors.php b/src/Models/Errors/GetLibrariesErrors.php new file mode 100644 index 0000000..3190f65 --- /dev/null +++ b/src/Models/Errors/GetLibrariesErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetLibrariesResponseBody.php b/src/Models/Errors/GetLibrariesResponseBody.php new file mode 100644 index 0000000..a11a687 --- /dev/null +++ b/src/Models/Errors/GetLibrariesResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\GetLibrariesErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetLibraryErrors.php b/src/Models/Errors/GetLibraryErrors.php new file mode 100644 index 0000000..66ebb26 --- /dev/null +++ b/src/Models/Errors/GetLibraryErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetLibraryHubsErrors.php b/src/Models/Errors/GetLibraryHubsErrors.php new file mode 100644 index 0000000..38ef2f2 --- /dev/null +++ b/src/Models/Errors/GetLibraryHubsErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetLibraryHubsResponseBody.php b/src/Models/Errors/GetLibraryHubsResponseBody.php new file mode 100644 index 0000000..39e32d0 --- /dev/null +++ b/src/Models/Errors/GetLibraryHubsResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\GetLibraryHubsErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetLibraryItemsErrors.php b/src/Models/Errors/GetLibraryItemsErrors.php new file mode 100644 index 0000000..42efafd --- /dev/null +++ b/src/Models/Errors/GetLibraryItemsErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetLibraryItemsResponseBody.php b/src/Models/Errors/GetLibraryItemsResponseBody.php new file mode 100644 index 0000000..bce02d4 --- /dev/null +++ b/src/Models/Errors/GetLibraryItemsResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\GetLibraryItemsErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetLibraryResponseBody.php b/src/Models/Errors/GetLibraryResponseBody.php new file mode 100644 index 0000000..38ccd68 --- /dev/null +++ b/src/Models/Errors/GetLibraryResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\GetLibraryErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetMetadataChildrenErrors.php b/src/Models/Errors/GetMetadataChildrenErrors.php new file mode 100644 index 0000000..ab799e3 --- /dev/null +++ b/src/Models/Errors/GetMetadataChildrenErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetMetadataChildrenResponseBody.php b/src/Models/Errors/GetMetadataChildrenResponseBody.php new file mode 100644 index 0000000..23894d7 --- /dev/null +++ b/src/Models/Errors/GetMetadataChildrenResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\GetMetadataChildrenErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetMetadataErrors.php b/src/Models/Errors/GetMetadataErrors.php new file mode 100644 index 0000000..9081198 --- /dev/null +++ b/src/Models/Errors/GetMetadataErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetMetadataResponseBody.php b/src/Models/Errors/GetMetadataResponseBody.php new file mode 100644 index 0000000..4369385 --- /dev/null +++ b/src/Models/Errors/GetMetadataResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\GetMetadataErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetMyPlexAccountErrors.php b/src/Models/Errors/GetMyPlexAccountErrors.php new file mode 100644 index 0000000..196662e --- /dev/null +++ b/src/Models/Errors/GetMyPlexAccountErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetMyPlexAccountResponseBody.php b/src/Models/Errors/GetMyPlexAccountResponseBody.php new file mode 100644 index 0000000..b54f926 --- /dev/null +++ b/src/Models/Errors/GetMyPlexAccountResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\GetMyPlexAccountErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetOnDeckErrors.php b/src/Models/Errors/GetOnDeckErrors.php new file mode 100644 index 0000000..406fd57 --- /dev/null +++ b/src/Models/Errors/GetOnDeckErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetOnDeckResponseBody.php b/src/Models/Errors/GetOnDeckResponseBody.php new file mode 100644 index 0000000..c9fe6a1 --- /dev/null +++ b/src/Models/Errors/GetOnDeckResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\GetOnDeckErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetPinErrors.php b/src/Models/Errors/GetPinErrors.php new file mode 100644 index 0000000..21b2df7 --- /dev/null +++ b/src/Models/Errors/GetPinErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetPinResponseBody.php b/src/Models/Errors/GetPinResponseBody.php new file mode 100644 index 0000000..78362e2 --- /dev/null +++ b/src/Models/Errors/GetPinResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\GetPinErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetPlaylistContentsErrors.php b/src/Models/Errors/GetPlaylistContentsErrors.php new file mode 100644 index 0000000..01b8f7e --- /dev/null +++ b/src/Models/Errors/GetPlaylistContentsErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetPlaylistContentsResponseBody.php b/src/Models/Errors/GetPlaylistContentsResponseBody.php new file mode 100644 index 0000000..b3cd4c9 --- /dev/null +++ b/src/Models/Errors/GetPlaylistContentsResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\GetPlaylistContentsErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetPlaylistErrors.php b/src/Models/Errors/GetPlaylistErrors.php new file mode 100644 index 0000000..3ae770e --- /dev/null +++ b/src/Models/Errors/GetPlaylistErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetPlaylistResponseBody.php b/src/Models/Errors/GetPlaylistResponseBody.php new file mode 100644 index 0000000..deb814a --- /dev/null +++ b/src/Models/Errors/GetPlaylistResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\GetPlaylistErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetPlaylistsErrors.php b/src/Models/Errors/GetPlaylistsErrors.php new file mode 100644 index 0000000..c054ef1 --- /dev/null +++ b/src/Models/Errors/GetPlaylistsErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetPlaylistsResponseBody.php b/src/Models/Errors/GetPlaylistsResponseBody.php new file mode 100644 index 0000000..f965465 --- /dev/null +++ b/src/Models/Errors/GetPlaylistsResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\GetPlaylistsErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetRecentlyAddedErrors.php b/src/Models/Errors/GetRecentlyAddedErrors.php new file mode 100644 index 0000000..a2a4676 --- /dev/null +++ b/src/Models/Errors/GetRecentlyAddedErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetRecentlyAddedResponseBody.php b/src/Models/Errors/GetRecentlyAddedResponseBody.php new file mode 100644 index 0000000..ddfd492 --- /dev/null +++ b/src/Models/Errors/GetRecentlyAddedResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\GetRecentlyAddedErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetResizedPhotoErrors.php b/src/Models/Errors/GetResizedPhotoErrors.php new file mode 100644 index 0000000..49f9cc4 --- /dev/null +++ b/src/Models/Errors/GetResizedPhotoErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetResizedPhotoResponseBody.php b/src/Models/Errors/GetResizedPhotoResponseBody.php new file mode 100644 index 0000000..c48b33d --- /dev/null +++ b/src/Models/Errors/GetResizedPhotoResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\GetResizedPhotoErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetResourcesStatisticsErrors.php b/src/Models/Errors/GetResourcesStatisticsErrors.php new file mode 100644 index 0000000..c6f5b02 --- /dev/null +++ b/src/Models/Errors/GetResourcesStatisticsErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetResourcesStatisticsResponseBody.php b/src/Models/Errors/GetResourcesStatisticsResponseBody.php new file mode 100644 index 0000000..1758478 --- /dev/null +++ b/src/Models/Errors/GetResourcesStatisticsResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\GetResourcesStatisticsErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetSearchResultsErrors.php b/src/Models/Errors/GetSearchResultsErrors.php new file mode 100644 index 0000000..19f7d10 --- /dev/null +++ b/src/Models/Errors/GetSearchResultsErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetSearchResultsResponseBody.php b/src/Models/Errors/GetSearchResultsResponseBody.php new file mode 100644 index 0000000..cd8149a --- /dev/null +++ b/src/Models/Errors/GetSearchResultsResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\GetSearchResultsErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetServerActivitiesErrors.php b/src/Models/Errors/GetServerActivitiesErrors.php new file mode 100644 index 0000000..a9d9b12 --- /dev/null +++ b/src/Models/Errors/GetServerActivitiesErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetServerActivitiesResponseBody.php b/src/Models/Errors/GetServerActivitiesResponseBody.php new file mode 100644 index 0000000..dcca7f4 --- /dev/null +++ b/src/Models/Errors/GetServerActivitiesResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\GetServerActivitiesErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetServerCapabilitiesResponseBody.php b/src/Models/Errors/GetServerCapabilitiesResponseBody.php new file mode 100644 index 0000000..28be336 --- /dev/null +++ b/src/Models/Errors/GetServerCapabilitiesResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\Errors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetServerIdentityErrors.php b/src/Models/Errors/GetServerIdentityErrors.php new file mode 100644 index 0000000..6da8b1f --- /dev/null +++ b/src/Models/Errors/GetServerIdentityErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetServerIdentityResponseBody.php b/src/Models/Errors/GetServerIdentityResponseBody.php new file mode 100644 index 0000000..7e7075a --- /dev/null +++ b/src/Models/Errors/GetServerIdentityResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\GetServerIdentityErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetServerListErrors.php b/src/Models/Errors/GetServerListErrors.php new file mode 100644 index 0000000..54fa603 --- /dev/null +++ b/src/Models/Errors/GetServerListErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetServerListResponseBody.php b/src/Models/Errors/GetServerListResponseBody.php new file mode 100644 index 0000000..0e7b12b --- /dev/null +++ b/src/Models/Errors/GetServerListResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\GetServerListErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetServerPreferencesErrors.php b/src/Models/Errors/GetServerPreferencesErrors.php new file mode 100644 index 0000000..93c235e --- /dev/null +++ b/src/Models/Errors/GetServerPreferencesErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetServerPreferencesResponseBody.php b/src/Models/Errors/GetServerPreferencesResponseBody.php new file mode 100644 index 0000000..ee189b6 --- /dev/null +++ b/src/Models/Errors/GetServerPreferencesResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\GetServerPreferencesErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetSessionHistoryErrors.php b/src/Models/Errors/GetSessionHistoryErrors.php new file mode 100644 index 0000000..74342c7 --- /dev/null +++ b/src/Models/Errors/GetSessionHistoryErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetSessionHistoryResponseBody.php b/src/Models/Errors/GetSessionHistoryResponseBody.php new file mode 100644 index 0000000..c3096d0 --- /dev/null +++ b/src/Models/Errors/GetSessionHistoryResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\GetSessionHistoryErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetSessionsErrors.php b/src/Models/Errors/GetSessionsErrors.php new file mode 100644 index 0000000..3af1b30 --- /dev/null +++ b/src/Models/Errors/GetSessionsErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetSessionsResponseBody.php b/src/Models/Errors/GetSessionsResponseBody.php new file mode 100644 index 0000000..458369a --- /dev/null +++ b/src/Models/Errors/GetSessionsResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\GetSessionsErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetSourceConnectionInformationErrors.php b/src/Models/Errors/GetSourceConnectionInformationErrors.php new file mode 100644 index 0000000..5ac1662 --- /dev/null +++ b/src/Models/Errors/GetSourceConnectionInformationErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetSourceConnectionInformationResponseBody.php b/src/Models/Errors/GetSourceConnectionInformationResponseBody.php new file mode 100644 index 0000000..94bfa12 --- /dev/null +++ b/src/Models/Errors/GetSourceConnectionInformationResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\GetSourceConnectionInformationErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetStatisticsErrors.php b/src/Models/Errors/GetStatisticsErrors.php new file mode 100644 index 0000000..57bd126 --- /dev/null +++ b/src/Models/Errors/GetStatisticsErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetStatisticsResponseBody.php b/src/Models/Errors/GetStatisticsResponseBody.php new file mode 100644 index 0000000..9c676e9 --- /dev/null +++ b/src/Models/Errors/GetStatisticsResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\GetStatisticsErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetTimelineErrors.php b/src/Models/Errors/GetTimelineErrors.php new file mode 100644 index 0000000..eafb4eb --- /dev/null +++ b/src/Models/Errors/GetTimelineErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetTimelineResponseBody.php b/src/Models/Errors/GetTimelineResponseBody.php new file mode 100644 index 0000000..093362d --- /dev/null +++ b/src/Models/Errors/GetTimelineResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\GetTimelineErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetTokenErrors.php b/src/Models/Errors/GetTokenErrors.php new file mode 100644 index 0000000..8aecd98 --- /dev/null +++ b/src/Models/Errors/GetTokenErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetTokenResponseBody.php b/src/Models/Errors/GetTokenResponseBody.php new file mode 100644 index 0000000..f27d131 --- /dev/null +++ b/src/Models/Errors/GetTokenResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\GetTokenErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetTranscodeSessionsErrors.php b/src/Models/Errors/GetTranscodeSessionsErrors.php new file mode 100644 index 0000000..d05b166 --- /dev/null +++ b/src/Models/Errors/GetTranscodeSessionsErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetTranscodeSessionsResponseBody.php b/src/Models/Errors/GetTranscodeSessionsResponseBody.php new file mode 100644 index 0000000..64207db --- /dev/null +++ b/src/Models/Errors/GetTranscodeSessionsResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\GetTranscodeSessionsErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetTransientTokenErrors.php b/src/Models/Errors/GetTransientTokenErrors.php new file mode 100644 index 0000000..bf41850 --- /dev/null +++ b/src/Models/Errors/GetTransientTokenErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetTransientTokenResponseBody.php b/src/Models/Errors/GetTransientTokenResponseBody.php new file mode 100644 index 0000000..6b20f49 --- /dev/null +++ b/src/Models/Errors/GetTransientTokenResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\GetTransientTokenErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetUpdateStatusErrors.php b/src/Models/Errors/GetUpdateStatusErrors.php new file mode 100644 index 0000000..a16ba2f --- /dev/null +++ b/src/Models/Errors/GetUpdateStatusErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetUpdateStatusResponseBody.php b/src/Models/Errors/GetUpdateStatusResponseBody.php new file mode 100644 index 0000000..c04e30e --- /dev/null +++ b/src/Models/Errors/GetUpdateStatusResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\GetUpdateStatusErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetWatchlistErrors.php b/src/Models/Errors/GetWatchlistErrors.php new file mode 100644 index 0000000..8533fd4 --- /dev/null +++ b/src/Models/Errors/GetWatchlistErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/GetWatchlistResponseBody.php b/src/Models/Errors/GetWatchlistResponseBody.php new file mode 100644 index 0000000..54fa07e --- /dev/null +++ b/src/Models/Errors/GetWatchlistResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\GetWatchlistErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/LogLineErrors.php b/src/Models/Errors/LogLineErrors.php new file mode 100644 index 0000000..5ff1a81 --- /dev/null +++ b/src/Models/Errors/LogLineErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/LogLineResponseBody.php b/src/Models/Errors/LogLineResponseBody.php new file mode 100644 index 0000000..639d870 --- /dev/null +++ b/src/Models/Errors/LogLineResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\LogLineErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/LogMultiLineErrors.php b/src/Models/Errors/LogMultiLineErrors.php new file mode 100644 index 0000000..e74a08f --- /dev/null +++ b/src/Models/Errors/LogMultiLineErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/LogMultiLineResponseBody.php b/src/Models/Errors/LogMultiLineResponseBody.php new file mode 100644 index 0000000..213a1b1 --- /dev/null +++ b/src/Models/Errors/LogMultiLineResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\LogMultiLineErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/MarkPlayedErrors.php b/src/Models/Errors/MarkPlayedErrors.php new file mode 100644 index 0000000..bf343c2 --- /dev/null +++ b/src/Models/Errors/MarkPlayedErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/MarkPlayedResponseBody.php b/src/Models/Errors/MarkPlayedResponseBody.php new file mode 100644 index 0000000..05299d0 --- /dev/null +++ b/src/Models/Errors/MarkPlayedResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\MarkPlayedErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/MarkUnplayedErrors.php b/src/Models/Errors/MarkUnplayedErrors.php new file mode 100644 index 0000000..923f71b --- /dev/null +++ b/src/Models/Errors/MarkUnplayedErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/MarkUnplayedResponseBody.php b/src/Models/Errors/MarkUnplayedResponseBody.php new file mode 100644 index 0000000..0ac2c29 --- /dev/null +++ b/src/Models/Errors/MarkUnplayedResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\MarkUnplayedErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/PerformSearchErrors.php b/src/Models/Errors/PerformSearchErrors.php new file mode 100644 index 0000000..8defa9a --- /dev/null +++ b/src/Models/Errors/PerformSearchErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/PerformSearchResponseBody.php b/src/Models/Errors/PerformSearchResponseBody.php new file mode 100644 index 0000000..235f819 --- /dev/null +++ b/src/Models/Errors/PerformSearchResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\PerformSearchErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/PerformVoiceSearchErrors.php b/src/Models/Errors/PerformVoiceSearchErrors.php new file mode 100644 index 0000000..4013a05 --- /dev/null +++ b/src/Models/Errors/PerformVoiceSearchErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/PerformVoiceSearchResponseBody.php b/src/Models/Errors/PerformVoiceSearchResponseBody.php new file mode 100644 index 0000000..283c3c6 --- /dev/null +++ b/src/Models/Errors/PerformVoiceSearchResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\PerformVoiceSearchErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/RefreshLibraryErrors.php b/src/Models/Errors/RefreshLibraryErrors.php new file mode 100644 index 0000000..e140585 --- /dev/null +++ b/src/Models/Errors/RefreshLibraryErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/RefreshLibraryResponseBody.php b/src/Models/Errors/RefreshLibraryResponseBody.php new file mode 100644 index 0000000..3be01e5 --- /dev/null +++ b/src/Models/Errors/RefreshLibraryResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\RefreshLibraryErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/SDKException.php b/src/Models/Errors/SDKException.php new file mode 100644 index 0000000..7bddac3 --- /dev/null +++ b/src/Models/Errors/SDKException.php @@ -0,0 +1,32 @@ +message = $message; + $code = $statusCode; + $this->statusCode = $statusCode; + $this->body = $body; + $this->rawResponse = $rawResponse; + parent::__construct($message, $code, null); + } + + public function __toString(): string + { + return "$this->message: Status $this->statusCode $this->body"; + } + +} \ No newline at end of file diff --git a/src/Models/Errors/SearchLibraryErrors.php b/src/Models/Errors/SearchLibraryErrors.php new file mode 100644 index 0000000..7a99027 --- /dev/null +++ b/src/Models/Errors/SearchLibraryErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/SearchLibraryResponseBody.php b/src/Models/Errors/SearchLibraryResponseBody.php new file mode 100644 index 0000000..cd5f400 --- /dev/null +++ b/src/Models/Errors/SearchLibraryResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\SearchLibraryErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/StartAllTasksErrors.php b/src/Models/Errors/StartAllTasksErrors.php new file mode 100644 index 0000000..73569ea --- /dev/null +++ b/src/Models/Errors/StartAllTasksErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/StartAllTasksResponseBody.php b/src/Models/Errors/StartAllTasksResponseBody.php new file mode 100644 index 0000000..e33e9a0 --- /dev/null +++ b/src/Models/Errors/StartAllTasksResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\StartAllTasksErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/StartTaskErrors.php b/src/Models/Errors/StartTaskErrors.php new file mode 100644 index 0000000..7ba45ae --- /dev/null +++ b/src/Models/Errors/StartTaskErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/StartTaskResponseBody.php b/src/Models/Errors/StartTaskResponseBody.php new file mode 100644 index 0000000..7d1d2a6 --- /dev/null +++ b/src/Models/Errors/StartTaskResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\StartTaskErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/StartUniversalTranscodeErrors.php b/src/Models/Errors/StartUniversalTranscodeErrors.php new file mode 100644 index 0000000..cf547b3 --- /dev/null +++ b/src/Models/Errors/StartUniversalTranscodeErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/StartUniversalTranscodeResponseBody.php b/src/Models/Errors/StartUniversalTranscodeResponseBody.php new file mode 100644 index 0000000..1c4cc78 --- /dev/null +++ b/src/Models/Errors/StartUniversalTranscodeResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\StartUniversalTranscodeErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/StopAllTasksErrors.php b/src/Models/Errors/StopAllTasksErrors.php new file mode 100644 index 0000000..9900491 --- /dev/null +++ b/src/Models/Errors/StopAllTasksErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/StopAllTasksResponseBody.php b/src/Models/Errors/StopAllTasksResponseBody.php new file mode 100644 index 0000000..d73266a --- /dev/null +++ b/src/Models/Errors/StopAllTasksResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\StopAllTasksErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/StopTaskErrors.php b/src/Models/Errors/StopTaskErrors.php new file mode 100644 index 0000000..43b6055 --- /dev/null +++ b/src/Models/Errors/StopTaskErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/StopTaskResponseBody.php b/src/Models/Errors/StopTaskResponseBody.php new file mode 100644 index 0000000..9a3c0a7 --- /dev/null +++ b/src/Models/Errors/StopTaskResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\StopTaskErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/StopTranscodeSessionErrors.php b/src/Models/Errors/StopTranscodeSessionErrors.php new file mode 100644 index 0000000..95f76fd --- /dev/null +++ b/src/Models/Errors/StopTranscodeSessionErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/StopTranscodeSessionResponseBody.php b/src/Models/Errors/StopTranscodeSessionResponseBody.php new file mode 100644 index 0000000..5092544 --- /dev/null +++ b/src/Models/Errors/StopTranscodeSessionResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\StopTranscodeSessionErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/UpdatePlayProgressErrors.php b/src/Models/Errors/UpdatePlayProgressErrors.php new file mode 100644 index 0000000..c340ea9 --- /dev/null +++ b/src/Models/Errors/UpdatePlayProgressErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/UpdatePlayProgressResponseBody.php b/src/Models/Errors/UpdatePlayProgressResponseBody.php new file mode 100644 index 0000000..52ea2ab --- /dev/null +++ b/src/Models/Errors/UpdatePlayProgressResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\UpdatePlayProgressErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/UpdatePlaylistErrors.php b/src/Models/Errors/UpdatePlaylistErrors.php new file mode 100644 index 0000000..7279408 --- /dev/null +++ b/src/Models/Errors/UpdatePlaylistErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/UpdatePlaylistResponseBody.php b/src/Models/Errors/UpdatePlaylistResponseBody.php new file mode 100644 index 0000000..241b006 --- /dev/null +++ b/src/Models/Errors/UpdatePlaylistResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\UpdatePlaylistErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Errors/UploadPlaylistErrors.php b/src/Models/Errors/UploadPlaylistErrors.php new file mode 100644 index 0000000..38c35c8 --- /dev/null +++ b/src/Models/Errors/UploadPlaylistErrors.php @@ -0,0 +1,49 @@ +code = $code; + $this->message = $message; + $this->status = $status; + } +} \ No newline at end of file diff --git a/src/Models/Errors/UploadPlaylistResponseBody.php b/src/Models/Errors/UploadPlaylistResponseBody.php new file mode 100644 index 0000000..4ea216e --- /dev/null +++ b/src/Models/Errors/UploadPlaylistResponseBody.php @@ -0,0 +1,43 @@ + $errors + */ + #[\JMS\Serializer\Annotation\SerializedName('errors')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Errors\UploadPlaylistErrors>')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?array $errors = null; + + /** + * Raw HTTP response; suitable for custom response parsing + * + * @var ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + #[\JMS\Serializer\Annotation\SerializedName('-')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\Psr\Http\Message\ResponseInterface $rawResponse = null; + + /** + * @param ?array $errors + * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + */ + public function __construct(?array $errors = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + { + $this->errors = $errors; + $this->rawResponse = $rawResponse; + } +} \ No newline at end of file diff --git a/src/Models/Operations/Account.php b/src/Models/Operations/Account.php index f95b8e6..b550996 100644 --- a/src/Models/Operations/Account.php +++ b/src/Models/Operations/Account.php @@ -1,7 +1,7 @@ id = null; - $this->key = null; - $this->name = null; - $this->defaultAudioLanguage = null; - $this->autoSelectAudio = null; - $this->defaultSubtitleLanguage = null; - $this->subtitleMode = null; - $this->thumb = null; + $this->id = $id; + $this->key = $key; + $this->name = $name; + $this->defaultAudioLanguage = $defaultAudioLanguage; + $this->autoSelectAudio = $autoSelectAudio; + $this->defaultSubtitleLanguage = $defaultSubtitleLanguage; + $this->subtitleMode = $subtitleMode; + $this->thumb = $thumb; } } \ No newline at end of file diff --git a/src/Models/Operations/Activity.php b/src/Models/Operations/Activity.php index 1953c35..189b858 100644 --- a/src/Models/Operations/Activity.php +++ b/src/Models/Operations/Activity.php @@ -1,7 +1,7 @@ uuid = null; - $this->type = null; - $this->cancellable = null; - $this->userID = null; - $this->title = null; - $this->subtitle = null; - $this->progress = null; - $this->context = null; + $this->uuid = $uuid; + $this->type = $type; + $this->cancellable = $cancellable; + $this->userID = $userID; + $this->title = $title; + $this->subtitle = $subtitle; + $this->progress = $progress; + $this->context = $context; } } \ No newline at end of file diff --git a/src/Models/Operations/AddPlaylistContentsErrors.php b/src/Models/Operations/AddPlaylistContentsErrors.php deleted file mode 100644 index 95f6a12..0000000 --- a/src/Models/Operations/AddPlaylistContentsErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/AddPlaylistContentsMediaContainer.php b/src/Models/Operations/AddPlaylistContentsMediaContainer.php index eb0a248..2e3469a 100644 --- a/src/Models/Operations/AddPlaylistContentsMediaContainer.php +++ b/src/Models/Operations/AddPlaylistContentsMediaContainer.php @@ -1,7 +1,7 @@ $metadata + * @var ?array $metadata */ #[\JMS\Serializer\Annotation\SerializedName('Metadata')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\AddPlaylistContentsMetadata>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $metadata = null; - public function __construct() + /** + * @param ?int $size + * @param ?int $leafCountAdded + * @param ?int $leafCountRequested + * @param ?array $metadata + */ + public function __construct(?int $size = null, ?int $leafCountAdded = null, ?int $leafCountRequested = null, ?array $metadata = null) { - $this->size = null; - $this->leafCountAdded = null; - $this->leafCountRequested = null; - $this->metadata = null; + $this->size = $size; + $this->leafCountAdded = $leafCountAdded; + $this->leafCountRequested = $leafCountRequested; + $this->metadata = $metadata; } } \ No newline at end of file diff --git a/src/Models/Operations/AddPlaylistContentsMetadata.php b/src/Models/Operations/AddPlaylistContentsMetadata.php index f2cca5e..b7babe5 100644 --- a/src/Models/Operations/AddPlaylistContentsMetadata.php +++ b/src/Models/Operations/AddPlaylistContentsMetadata.php @@ -1,7 +1,7 @@ ratingKey = null; - $this->key = null; - $this->guid = null; - $this->type = null; - $this->title = null; - $this->summary = null; - $this->smart = null; - $this->playlistType = null; - $this->composite = null; - $this->duration = null; - $this->leafCount = null; - $this->addedAt = null; - $this->updatedAt = null; + $this->ratingKey = $ratingKey; + $this->key = $key; + $this->guid = $guid; + $this->type = $type; + $this->title = $title; + $this->summary = $summary; + $this->smart = $smart; + $this->playlistType = $playlistType; + $this->composite = $composite; + $this->duration = $duration; + $this->leafCount = $leafCount; + $this->addedAt = $addedAt; + $this->updatedAt = $updatedAt; } } \ No newline at end of file diff --git a/src/Models/Operations/AddPlaylistContentsPlaylistsResponseBody.php b/src/Models/Operations/AddPlaylistContentsPlaylistsResponseBody.php deleted file mode 100644 index adecc52..0000000 --- a/src/Models/Operations/AddPlaylistContentsPlaylistsResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/AddPlaylistContentsRequest.php b/src/Models/Operations/AddPlaylistContentsRequest.php index f358c89..d7d1f73 100644 --- a/src/Models/Operations/AddPlaylistContentsRequest.php +++ b/src/Models/Operations/AddPlaylistContentsRequest.php @@ -1,7 +1,7 @@ playlistID = 0; - $this->uri = ''; - $this->playQueueID = null; + $this->playlistID = $playlistID; + $this->uri = $uri; + $this->playQueueID = $playQueueID; } } \ No newline at end of file diff --git a/src/Models/Operations/AddPlaylistContentsResponse.php b/src/Models/Operations/AddPlaylistContentsResponse.php index 5d8ecfb..13a4050 100644 --- a/src/Models/Operations/AddPlaylistContentsResponse.php +++ b/src/Models/Operations/AddPlaylistContentsResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->twoHundredApplicationJsonObject = null; - $this->fourHundredAndOneApplicationJsonObject = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->object = $object; } } \ No newline at end of file diff --git a/src/Models/Operations/AddPlaylistContentsResponseBody.php b/src/Models/Operations/AddPlaylistContentsResponseBody.php index b2ad8af..a037589 100644 --- a/src/Models/Operations/AddPlaylistContentsResponseBody.php +++ b/src/Models/Operations/AddPlaylistContentsResponseBody.php @@ -1,7 +1,7 @@ mediaContainer = null; + $this->mediaContainer = $mediaContainer; } } \ No newline at end of file diff --git a/src/Models/Operations/ApplyUpdatesErrors.php b/src/Models/Operations/ApplyUpdatesErrors.php deleted file mode 100644 index f062200..0000000 --- a/src/Models/Operations/ApplyUpdatesErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/ApplyUpdatesRequest.php b/src/Models/Operations/ApplyUpdatesRequest.php index 990826c..765b8ab 100644 --- a/src/Models/Operations/ApplyUpdatesRequest.php +++ b/src/Models/Operations/ApplyUpdatesRequest.php @@ -1,7 +1,7 @@ entry for this version will have the `state` set to `skipped`. * - * @var ?\LukeHagar\Plex_API\Models\Operations\Skip $skip + * @var ?Skip $skip */ #[SpeakeasyMetadata('queryParam:style=form,explode=true,name=skip')] public ?Skip $skip = null; - public function __construct() + /** + * @param ?Tonight $tonight + * @param ?Skip $skip + */ + public function __construct(?Tonight $tonight = null, ?Skip $skip = null) { - $this->tonight = null; - $this->skip = null; + $this->tonight = $tonight; + $this->skip = $skip; } } \ No newline at end of file diff --git a/src/Models/Operations/ApplyUpdatesResponse.php b/src/Models/Operations/ApplyUpdatesResponse.php index a214721..cea4487 100644 --- a/src/Models/Operations/ApplyUpdatesResponse.php +++ b/src/Models/Operations/ApplyUpdatesResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->object = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; } } \ No newline at end of file diff --git a/src/Models/Operations/ApplyUpdatesResponseBody.php b/src/Models/Operations/ApplyUpdatesResponseBody.php deleted file mode 100644 index 86ae865..0000000 --- a/src/Models/Operations/ApplyUpdatesResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/ButlerTask.php b/src/Models/Operations/ButlerTask.php index e35e856..80fd233 100644 --- a/src/Models/Operations/ButlerTask.php +++ b/src/Models/Operations/ButlerTask.php @@ -1,7 +1,7 @@ name = null; - $this->interval = null; - $this->scheduleRandomized = null; - $this->enabled = null; - $this->title = null; - $this->description = null; + $this->name = $name; + $this->interval = $interval; + $this->scheduleRandomized = $scheduleRandomized; + $this->enabled = $enabled; + $this->title = $title; + $this->description = $description; } } \ No newline at end of file diff --git a/src/Models/Operations/ButlerTasks.php b/src/Models/Operations/ButlerTasks.php index 0c089ac..cf09a6e 100644 --- a/src/Models/Operations/ButlerTasks.php +++ b/src/Models/Operations/ButlerTasks.php @@ -1,7 +1,7 @@ $butlerTask + * @var ?array $butlerTask */ #[\JMS\Serializer\Annotation\SerializedName('ButlerTask')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\ButlerTask>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $butlerTask = null; - public function __construct() + /** + * @param ?array $butlerTask + */ + public function __construct(?array $butlerTask = null) { - $this->butlerTask = null; + $this->butlerTask = $butlerTask; } } \ No newline at end of file diff --git a/src/Models/Operations/CancelServerActivitiesErrors.php b/src/Models/Operations/CancelServerActivitiesErrors.php deleted file mode 100644 index 3e2a666..0000000 --- a/src/Models/Operations/CancelServerActivitiesErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/CancelServerActivitiesRequest.php b/src/Models/Operations/CancelServerActivitiesRequest.php index 31b8ad3..4db3376 100644 --- a/src/Models/Operations/CancelServerActivitiesRequest.php +++ b/src/Models/Operations/CancelServerActivitiesRequest.php @@ -1,7 +1,7 @@ activityUUID = ''; + $this->activityUUID = $activityUUID; } } \ No newline at end of file diff --git a/src/Models/Operations/CancelServerActivitiesResponse.php b/src/Models/Operations/CancelServerActivitiesResponse.php index c42d30e..8fbe29f 100644 --- a/src/Models/Operations/CancelServerActivitiesResponse.php +++ b/src/Models/Operations/CancelServerActivitiesResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->object = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; } } \ No newline at end of file diff --git a/src/Models/Operations/CancelServerActivitiesResponseBody.php b/src/Models/Operations/CancelServerActivitiesResponseBody.php deleted file mode 100644 index 6008480..0000000 --- a/src/Models/Operations/CancelServerActivitiesResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/CheckForUpdatesErrors.php b/src/Models/Operations/CheckForUpdatesErrors.php deleted file mode 100644 index 9396b81..0000000 --- a/src/Models/Operations/CheckForUpdatesErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/CheckForUpdatesRequest.php b/src/Models/Operations/CheckForUpdatesRequest.php index 18b29b0..ebc607d 100644 --- a/src/Models/Operations/CheckForUpdatesRequest.php +++ b/src/Models/Operations/CheckForUpdatesRequest.php @@ -1,7 +1,7 @@ download = null; + $this->download = $download; } } \ No newline at end of file diff --git a/src/Models/Operations/CheckForUpdatesResponse.php b/src/Models/Operations/CheckForUpdatesResponse.php index 6a0e26d..bd43b4a 100644 --- a/src/Models/Operations/CheckForUpdatesResponse.php +++ b/src/Models/Operations/CheckForUpdatesResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->object = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; } } \ No newline at end of file diff --git a/src/Models/Operations/CheckForUpdatesResponseBody.php b/src/Models/Operations/CheckForUpdatesResponseBody.php deleted file mode 100644 index bbf4fba..0000000 --- a/src/Models/Operations/CheckForUpdatesResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/ClearPlaylistContentsErrors.php b/src/Models/Operations/ClearPlaylistContentsErrors.php deleted file mode 100644 index 361903a..0000000 --- a/src/Models/Operations/ClearPlaylistContentsErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/ClearPlaylistContentsRequest.php b/src/Models/Operations/ClearPlaylistContentsRequest.php index 39be836..dedb7c6 100644 --- a/src/Models/Operations/ClearPlaylistContentsRequest.php +++ b/src/Models/Operations/ClearPlaylistContentsRequest.php @@ -1,7 +1,7 @@ playlistID = 0; + $this->playlistID = $playlistID; } } \ No newline at end of file diff --git a/src/Models/Operations/ClearPlaylistContentsResponse.php b/src/Models/Operations/ClearPlaylistContentsResponse.php index db55548..507a5a7 100644 --- a/src/Models/Operations/ClearPlaylistContentsResponse.php +++ b/src/Models/Operations/ClearPlaylistContentsResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->object = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; } } \ No newline at end of file diff --git a/src/Models/Operations/ClearPlaylistContentsResponseBody.php b/src/Models/Operations/ClearPlaylistContentsResponseBody.php deleted file mode 100644 index 40d0b86..0000000 --- a/src/Models/Operations/ClearPlaylistContentsResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/Context.php b/src/Models/Operations/Context.php index 4a35016..020c9ad 100644 --- a/src/Models/Operations/Context.php +++ b/src/Models/Operations/Context.php @@ -1,7 +1,7 @@ librarySectionID = null; + $this->librarySectionID = $librarySectionID; } } \ No newline at end of file diff --git a/src/Models/Operations/Country.php b/src/Models/Operations/Country.php index ccf7245..3f5df1f 100644 --- a/src/Models/Operations/Country.php +++ b/src/Models/Operations/Country.php @@ -1,7 +1,7 @@ tag = null; + $this->tag = $tag; } } \ No newline at end of file diff --git a/src/Models/Operations/CreatePlaylistErrors.php b/src/Models/Operations/CreatePlaylistErrors.php deleted file mode 100644 index 23547f5..0000000 --- a/src/Models/Operations/CreatePlaylistErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/CreatePlaylistMediaContainer.php b/src/Models/Operations/CreatePlaylistMediaContainer.php index d9b8003..b1e2028 100644 --- a/src/Models/Operations/CreatePlaylistMediaContainer.php +++ b/src/Models/Operations/CreatePlaylistMediaContainer.php @@ -1,7 +1,7 @@ $metadata + * @var ?array $metadata */ #[\JMS\Serializer\Annotation\SerializedName('Metadata')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\CreatePlaylistMetadata>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $metadata = null; - public function __construct() + /** + * @param ?int $size + * @param ?array $metadata + */ + public function __construct(?int $size = null, ?array $metadata = null) { - $this->size = null; - $this->metadata = null; + $this->size = $size; + $this->metadata = $metadata; } } \ No newline at end of file diff --git a/src/Models/Operations/CreatePlaylistMetadata.php b/src/Models/Operations/CreatePlaylistMetadata.php index 5a98a0d..4af2c0a 100644 --- a/src/Models/Operations/CreatePlaylistMetadata.php +++ b/src/Models/Operations/CreatePlaylistMetadata.php @@ -1,7 +1,7 @@ ratingKey = null; - $this->key = null; - $this->guid = null; - $this->type = null; - $this->title = null; - $this->summary = null; - $this->smart = null; - $this->playlistType = null; - $this->icon = null; - $this->viewCount = null; - $this->lastViewedAt = null; - $this->leafCount = null; - $this->addedAt = null; - $this->updatedAt = null; - $this->composite = null; - $this->duration = null; + $this->ratingKey = $ratingKey; + $this->key = $key; + $this->guid = $guid; + $this->type = $type; + $this->title = $title; + $this->summary = $summary; + $this->smart = $smart; + $this->playlistType = $playlistType; + $this->icon = $icon; + $this->viewCount = $viewCount; + $this->lastViewedAt = $lastViewedAt; + $this->leafCount = $leafCount; + $this->addedAt = $addedAt; + $this->updatedAt = $updatedAt; + $this->composite = $composite; + $this->duration = $duration; } } \ No newline at end of file diff --git a/src/Models/Operations/CreatePlaylistPlaylistsResponseBody.php b/src/Models/Operations/CreatePlaylistPlaylistsResponseBody.php deleted file mode 100644 index a26e994..0000000 --- a/src/Models/Operations/CreatePlaylistPlaylistsResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/CreatePlaylistRequest.php b/src/Models/Operations/CreatePlaylistRequest.php index 4c8361b..96da646 100644 --- a/src/Models/Operations/CreatePlaylistRequest.php +++ b/src/Models/Operations/CreatePlaylistRequest.php @@ -1,7 +1,7 @@ title = ''; - $this->type = \LukeHagar\Plex_API\Models\Operations\QueryParamType::Audio; - $this->smart = \LukeHagar\Plex_API\Models\Operations\Smart::Zero; - $this->uri = ''; - $this->playQueueID = null; + $this->title = $title; + $this->type = $type; + $this->smart = $smart; + $this->uri = $uri; + $this->playQueueID = $playQueueID; } } \ No newline at end of file diff --git a/src/Models/Operations/CreatePlaylistResponse.php b/src/Models/Operations/CreatePlaylistResponse.php index 6394bdc..11b86d1 100644 --- a/src/Models/Operations/CreatePlaylistResponse.php +++ b/src/Models/Operations/CreatePlaylistResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->twoHundredApplicationJsonObject = null; - $this->fourHundredAndOneApplicationJsonObject = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->object = $object; } } \ No newline at end of file diff --git a/src/Models/Operations/CreatePlaylistResponseBody.php b/src/Models/Operations/CreatePlaylistResponseBody.php index 950f141..80ef3d9 100644 --- a/src/Models/Operations/CreatePlaylistResponseBody.php +++ b/src/Models/Operations/CreatePlaylistResponseBody.php @@ -1,7 +1,7 @@ mediaContainer = null; + $this->mediaContainer = $mediaContainer; } } \ No newline at end of file diff --git a/src/Models/Operations/DeleteLibraryErrors.php b/src/Models/Operations/DeleteLibraryErrors.php deleted file mode 100644 index 81267e9..0000000 --- a/src/Models/Operations/DeleteLibraryErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/DeleteLibraryRequest.php b/src/Models/Operations/DeleteLibraryRequest.php index 45e7cbc..4204c16 100644 --- a/src/Models/Operations/DeleteLibraryRequest.php +++ b/src/Models/Operations/DeleteLibraryRequest.php @@ -1,7 +1,7 @@ sectionId = 0; + $this->sectionId = $sectionId; } } \ No newline at end of file diff --git a/src/Models/Operations/DeleteLibraryResponse.php b/src/Models/Operations/DeleteLibraryResponse.php index 3d794d8..6158e73 100644 --- a/src/Models/Operations/DeleteLibraryResponse.php +++ b/src/Models/Operations/DeleteLibraryResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->object = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; } } \ No newline at end of file diff --git a/src/Models/Operations/DeleteLibraryResponseBody.php b/src/Models/Operations/DeleteLibraryResponseBody.php deleted file mode 100644 index 452eec2..0000000 --- a/src/Models/Operations/DeleteLibraryResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/DeletePlaylistErrors.php b/src/Models/Operations/DeletePlaylistErrors.php deleted file mode 100644 index fc4d626..0000000 --- a/src/Models/Operations/DeletePlaylistErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/DeletePlaylistRequest.php b/src/Models/Operations/DeletePlaylistRequest.php index 4ab6edf..a2e8a15 100644 --- a/src/Models/Operations/DeletePlaylistRequest.php +++ b/src/Models/Operations/DeletePlaylistRequest.php @@ -1,7 +1,7 @@ playlistID = 0; + $this->playlistID = $playlistID; } } \ No newline at end of file diff --git a/src/Models/Operations/DeletePlaylistResponse.php b/src/Models/Operations/DeletePlaylistResponse.php index c10ac99..a93166e 100644 --- a/src/Models/Operations/DeletePlaylistResponse.php +++ b/src/Models/Operations/DeletePlaylistResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->object = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; } } \ No newline at end of file diff --git a/src/Models/Operations/DeletePlaylistResponseBody.php b/src/Models/Operations/DeletePlaylistResponseBody.php deleted file mode 100644 index 300b29c..0000000 --- a/src/Models/Operations/DeletePlaylistResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/Device.php b/src/Models/Operations/Device.php index 2a55da9..f76a12b 100644 --- a/src/Models/Operations/Device.php +++ b/src/Models/Operations/Device.php @@ -1,7 +1,7 @@ id = null; - $this->name = null; - $this->platform = null; - $this->clientIdentifier = null; - $this->createdAt = null; + $this->id = $id; + $this->name = $name; + $this->platform = $platform; + $this->clientIdentifier = $clientIdentifier; + $this->createdAt = $createdAt; } } \ No newline at end of file diff --git a/src/Models/Operations/Director.php b/src/Models/Operations/Director.php index 9bf6901..feeeb79 100644 --- a/src/Models/Operations/Director.php +++ b/src/Models/Operations/Director.php @@ -1,7 +1,7 @@ tag = null; + $this->tag = $tag; } } \ No newline at end of file diff --git a/src/Models/Operations/Directory.php b/src/Models/Operations/Directory.php index 04e4431..6494e21 100644 --- a/src/Models/Operations/Directory.php +++ b/src/Models/Operations/Directory.php @@ -1,7 +1,7 @@ count = null; - $this->key = null; - $this->title = null; + $this->count = $count; + $this->key = $key; + $this->title = $title; } } \ No newline at end of file diff --git a/src/Models/Operations/Download.php b/src/Models/Operations/Download.php index f127999..83d8b40 100644 --- a/src/Models/Operations/Download.php +++ b/src/Models/Operations/Download.php @@ -1,7 +1,7 @@ code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/EnablePaperTrailResponse.php b/src/Models/Operations/EnablePaperTrailResponse.php index fbf6814..60b2f87 100644 --- a/src/Models/Operations/EnablePaperTrailResponse.php +++ b/src/Models/Operations/EnablePaperTrailResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->object = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; } } \ No newline at end of file diff --git a/src/Models/Operations/EnablePaperTrailResponseBody.php b/src/Models/Operations/EnablePaperTrailResponseBody.php deleted file mode 100644 index 365ada0..0000000 --- a/src/Models/Operations/EnablePaperTrailResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/Errors.php b/src/Models/Operations/Errors.php deleted file mode 100644 index 52242ae..0000000 --- a/src/Models/Operations/Errors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/Field.php b/src/Models/Operations/Field.php index 1bb8134..00ee86b 100644 --- a/src/Models/Operations/Field.php +++ b/src/Models/Operations/Field.php @@ -1,7 +1,7 @@ key = null; - $this->title = null; - $this->type = null; - $this->subType = null; + $this->key = $key; + $this->title = $title; + $this->type = $type; + $this->subType = $subType; } } \ No newline at end of file diff --git a/src/Models/Operations/FieldType.php b/src/Models/Operations/FieldType.php index 76931f8..7d2fc74 100644 --- a/src/Models/Operations/FieldType.php +++ b/src/Models/Operations/FieldType.php @@ -1,7 +1,7 @@ $operator + * @var ?array $operator */ #[\JMS\Serializer\Annotation\SerializedName('Operator')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\Operator>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $operator = null; - public function __construct() + /** + * @param ?string $type + * @param ?array $operator + */ + public function __construct(?string $type = null, ?array $operator = null) { - $this->type = null; - $this->operator = null; + $this->type = $type; + $this->operator = $operator; } } \ No newline at end of file diff --git a/src/Models/Operations/Filter.php b/src/Models/Operations/Filter.php index 57bbacf..f0723e2 100644 --- a/src/Models/Operations/Filter.php +++ b/src/Models/Operations/Filter.php @@ -1,7 +1,7 @@ tag = null; + $this->tag = $tag; } } \ No newline at end of file diff --git a/src/Models/Operations/GetAvailableClientsErrors.php b/src/Models/Operations/GetAvailableClientsErrors.php deleted file mode 100644 index a330bee..0000000 --- a/src/Models/Operations/GetAvailableClientsErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetAvailableClientsMediaContainer.php b/src/Models/Operations/GetAvailableClientsMediaContainer.php index 842d527..b94ee42 100644 --- a/src/Models/Operations/GetAvailableClientsMediaContainer.php +++ b/src/Models/Operations/GetAvailableClientsMediaContainer.php @@ -1,7 +1,7 @@ $server + * @var ?array $server */ #[\JMS\Serializer\Annotation\SerializedName('Server')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\Server>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $server = null; - public function __construct() + /** + * @param ?float $size + * @param ?array $server + */ + public function __construct(?float $size = null, ?array $server = null) { - $this->size = null; - $this->server = null; + $this->size = $size; + $this->server = $server; } } \ No newline at end of file diff --git a/src/Models/Operations/GetAvailableClientsResponse.php b/src/Models/Operations/GetAvailableClientsResponse.php index 7590bba..e35c5dc 100644 --- a/src/Models/Operations/GetAvailableClientsResponse.php +++ b/src/Models/Operations/GetAvailableClientsResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->twoHundredApplicationJsonObject = null; - $this->fourHundredAndOneApplicationJsonObject = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->object = $object; } } \ No newline at end of file diff --git a/src/Models/Operations/GetAvailableClientsResponseBody.php b/src/Models/Operations/GetAvailableClientsResponseBody.php index ea59844..bc5e470 100644 --- a/src/Models/Operations/GetAvailableClientsResponseBody.php +++ b/src/Models/Operations/GetAvailableClientsResponseBody.php @@ -1,7 +1,7 @@ mediaContainer = null; + $this->mediaContainer = $mediaContainer; } } \ No newline at end of file diff --git a/src/Models/Operations/GetAvailableClientsServerResponseBody.php b/src/Models/Operations/GetAvailableClientsServerResponseBody.php deleted file mode 100644 index 2cb81a8..0000000 --- a/src/Models/Operations/GetAvailableClientsServerResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetBandwidthStatisticsAccount.php b/src/Models/Operations/GetBandwidthStatisticsAccount.php index 346cdd8..031ca81 100644 --- a/src/Models/Operations/GetBandwidthStatisticsAccount.php +++ b/src/Models/Operations/GetBandwidthStatisticsAccount.php @@ -1,7 +1,7 @@ id = null; - $this->key = null; - $this->name = null; - $this->defaultAudioLanguage = null; - $this->autoSelectAudio = null; - $this->defaultSubtitleLanguage = null; - $this->subtitleMode = null; - $this->thumb = null; + $this->id = $id; + $this->key = $key; + $this->name = $name; + $this->defaultAudioLanguage = $defaultAudioLanguage; + $this->autoSelectAudio = $autoSelectAudio; + $this->defaultSubtitleLanguage = $defaultSubtitleLanguage; + $this->subtitleMode = $subtitleMode; + $this->thumb = $thumb; } } \ No newline at end of file diff --git a/src/Models/Operations/GetBandwidthStatisticsDevice.php b/src/Models/Operations/GetBandwidthStatisticsDevice.php index bd34740..e384500 100644 --- a/src/Models/Operations/GetBandwidthStatisticsDevice.php +++ b/src/Models/Operations/GetBandwidthStatisticsDevice.php @@ -1,7 +1,7 @@ id = null; - $this->name = null; - $this->platform = null; - $this->clientIdentifier = null; - $this->createdAt = null; + $this->id = $id; + $this->name = $name; + $this->platform = $platform; + $this->clientIdentifier = $clientIdentifier; + $this->createdAt = $createdAt; } } \ No newline at end of file diff --git a/src/Models/Operations/GetBandwidthStatisticsErrors.php b/src/Models/Operations/GetBandwidthStatisticsErrors.php deleted file mode 100644 index f396a67..0000000 --- a/src/Models/Operations/GetBandwidthStatisticsErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetBandwidthStatisticsMediaContainer.php b/src/Models/Operations/GetBandwidthStatisticsMediaContainer.php index 40e3382..4882fff 100644 --- a/src/Models/Operations/GetBandwidthStatisticsMediaContainer.php +++ b/src/Models/Operations/GetBandwidthStatisticsMediaContainer.php @@ -1,7 +1,7 @@ $device + * @var ?array $device */ #[\JMS\Serializer\Annotation\SerializedName('Device')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetBandwidthStatisticsDevice>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $device = null; /** * $account * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetBandwidthStatisticsAccount> $account + * @var ?array $account */ #[\JMS\Serializer\Annotation\SerializedName('Account')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetBandwidthStatisticsAccount>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $account = null; /** * $statisticsBandwidth * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\StatisticsBandwidth> $statisticsBandwidth + * @var ?array $statisticsBandwidth */ #[\JMS\Serializer\Annotation\SerializedName('StatisticsBandwidth')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\StatisticsBandwidth>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $statisticsBandwidth = null; - public function __construct() + /** + * @param ?int $size + * @param ?array $device + * @param ?array $account + * @param ?array $statisticsBandwidth + */ + public function __construct(?int $size = null, ?array $device = null, ?array $account = null, ?array $statisticsBandwidth = null) { - $this->size = null; - $this->device = null; - $this->account = null; - $this->statisticsBandwidth = null; + $this->size = $size; + $this->device = $device; + $this->account = $account; + $this->statisticsBandwidth = $statisticsBandwidth; } } \ No newline at end of file diff --git a/src/Models/Operations/GetBandwidthStatisticsRequest.php b/src/Models/Operations/GetBandwidthStatisticsRequest.php index 87e08fb..b7e4c07 100644 --- a/src/Models/Operations/GetBandwidthStatisticsRequest.php +++ b/src/Models/Operations/GetBandwidthStatisticsRequest.php @@ -1,7 +1,7 @@ timespan = null; + $this->timespan = $timespan; } } \ No newline at end of file diff --git a/src/Models/Operations/GetBandwidthStatisticsResponse.php b/src/Models/Operations/GetBandwidthStatisticsResponse.php index 7e9c554..0a9477c 100644 --- a/src/Models/Operations/GetBandwidthStatisticsResponse.php +++ b/src/Models/Operations/GetBandwidthStatisticsResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->twoHundredApplicationJsonObject = null; - $this->fourHundredAndOneApplicationJsonObject = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->object = $object; } } \ No newline at end of file diff --git a/src/Models/Operations/GetBandwidthStatisticsResponseBody.php b/src/Models/Operations/GetBandwidthStatisticsResponseBody.php index a38e5f5..bc74ccb 100644 --- a/src/Models/Operations/GetBandwidthStatisticsResponseBody.php +++ b/src/Models/Operations/GetBandwidthStatisticsResponseBody.php @@ -1,7 +1,7 @@ mediaContainer = null; + $this->mediaContainer = $mediaContainer; } } \ No newline at end of file diff --git a/src/Models/Operations/GetBandwidthStatisticsStatisticsResponseBody.php b/src/Models/Operations/GetBandwidthStatisticsStatisticsResponseBody.php deleted file mode 100644 index f5c3401..0000000 --- a/src/Models/Operations/GetBandwidthStatisticsStatisticsResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetButlerTasksButlerResponseBody.php b/src/Models/Operations/GetButlerTasksButlerResponseBody.php deleted file mode 100644 index df1e074..0000000 --- a/src/Models/Operations/GetButlerTasksButlerResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetButlerTasksErrors.php b/src/Models/Operations/GetButlerTasksErrors.php deleted file mode 100644 index bd2ef15..0000000 --- a/src/Models/Operations/GetButlerTasksErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetButlerTasksResponse.php b/src/Models/Operations/GetButlerTasksResponse.php index 62a92fd..20f1882 100644 --- a/src/Models/Operations/GetButlerTasksResponse.php +++ b/src/Models/Operations/GetButlerTasksResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->twoHundredApplicationJsonObject = null; - $this->fourHundredAndOneApplicationJsonObject = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->object = $object; } } \ No newline at end of file diff --git a/src/Models/Operations/GetButlerTasksResponseBody.php b/src/Models/Operations/GetButlerTasksResponseBody.php index 94d0b97..e5b452e 100644 --- a/src/Models/Operations/GetButlerTasksResponseBody.php +++ b/src/Models/Operations/GetButlerTasksResponseBody.php @@ -1,7 +1,7 @@ butlerTasks = null; + $this->butlerTasks = $butlerTasks; } } \ No newline at end of file diff --git a/src/Models/Operations/GetDevicesErrors.php b/src/Models/Operations/GetDevicesErrors.php deleted file mode 100644 index 8e4397a..0000000 --- a/src/Models/Operations/GetDevicesErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetDevicesMediaContainer.php b/src/Models/Operations/GetDevicesMediaContainer.php index ed55599..b29cb1b 100644 --- a/src/Models/Operations/GetDevicesMediaContainer.php +++ b/src/Models/Operations/GetDevicesMediaContainer.php @@ -1,7 +1,7 @@ $device + * @var ?array $device */ #[\JMS\Serializer\Annotation\SerializedName('Device')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\Device>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $device = null; - public function __construct() + /** + * @param ?float $size + * @param ?string $identifier + * @param ?array $device + */ + public function __construct(?float $size = null, ?string $identifier = null, ?array $device = null) { - $this->size = null; - $this->identifier = null; - $this->device = null; + $this->size = $size; + $this->identifier = $identifier; + $this->device = $device; } } \ No newline at end of file diff --git a/src/Models/Operations/GetDevicesResponse.php b/src/Models/Operations/GetDevicesResponse.php index c0f6402..b06b1c8 100644 --- a/src/Models/Operations/GetDevicesResponse.php +++ b/src/Models/Operations/GetDevicesResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->twoHundredApplicationJsonObject = null; - $this->fourHundredAndOneApplicationJsonObject = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->object = $object; } } \ No newline at end of file diff --git a/src/Models/Operations/GetDevicesResponseBody.php b/src/Models/Operations/GetDevicesResponseBody.php index 91e556f..82bd6ac 100644 --- a/src/Models/Operations/GetDevicesResponseBody.php +++ b/src/Models/Operations/GetDevicesResponseBody.php @@ -1,7 +1,7 @@ mediaContainer = null; + $this->mediaContainer = $mediaContainer; } } \ No newline at end of file diff --git a/src/Models/Operations/GetDevicesServerResponseBody.php b/src/Models/Operations/GetDevicesServerResponseBody.php deleted file mode 100644 index e2bc4b0..0000000 --- a/src/Models/Operations/GetDevicesServerResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetFileHashErrors.php b/src/Models/Operations/GetFileHashErrors.php deleted file mode 100644 index 3438d7b..0000000 --- a/src/Models/Operations/GetFileHashErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetFileHashRequest.php b/src/Models/Operations/GetFileHashRequest.php index d416baf..90d8efc 100644 --- a/src/Models/Operations/GetFileHashRequest.php +++ b/src/Models/Operations/GetFileHashRequest.php @@ -1,7 +1,7 @@ url = ''; - $this->type = null; + $this->url = $url; + $this->type = $type; } } \ No newline at end of file diff --git a/src/Models/Operations/GetFileHashResponse.php b/src/Models/Operations/GetFileHashResponse.php index cd23174..c8f98a9 100644 --- a/src/Models/Operations/GetFileHashResponse.php +++ b/src/Models/Operations/GetFileHashResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->object = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; } } \ No newline at end of file diff --git a/src/Models/Operations/GetFileHashResponseBody.php b/src/Models/Operations/GetFileHashResponseBody.php deleted file mode 100644 index 86378b5..0000000 --- a/src/Models/Operations/GetFileHashResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetGlobalHubsErrors.php b/src/Models/Operations/GetGlobalHubsErrors.php deleted file mode 100644 index 2be1647..0000000 --- a/src/Models/Operations/GetGlobalHubsErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetGlobalHubsHubsResponseBody.php b/src/Models/Operations/GetGlobalHubsHubsResponseBody.php deleted file mode 100644 index 957a51c..0000000 --- a/src/Models/Operations/GetGlobalHubsHubsResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetGlobalHubsMediaContainer.php b/src/Models/Operations/GetGlobalHubsMediaContainer.php index 1c0e020..ecb3b74 100644 --- a/src/Models/Operations/GetGlobalHubsMediaContainer.php +++ b/src/Models/Operations/GetGlobalHubsMediaContainer.php @@ -1,7 +1,7 @@ $hub + * @var ?array $hub */ #[\JMS\Serializer\Annotation\SerializedName('Hub')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\Hub>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $hub = null; - public function __construct() + /** + * @param ?int $size + * @param ?bool $allowSync + * @param ?string $identifier + * @param ?array $hub + */ + public function __construct(?int $size = null, ?bool $allowSync = null, ?string $identifier = null, ?array $hub = null) { - $this->size = null; - $this->allowSync = null; - $this->identifier = null; - $this->hub = null; + $this->size = $size; + $this->allowSync = $allowSync; + $this->identifier = $identifier; + $this->hub = $hub; } } \ No newline at end of file diff --git a/src/Models/Operations/GetGlobalHubsMetadata.php b/src/Models/Operations/GetGlobalHubsMetadata.php index d5477b4..c602b08 100644 --- a/src/Models/Operations/GetGlobalHubsMetadata.php +++ b/src/Models/Operations/GetGlobalHubsMetadata.php @@ -1,7 +1,7 @@ ratingKey = null; - $this->key = null; - $this->guid = null; - $this->type = null; - $this->title = null; - $this->titleSort = null; - $this->summary = null; - $this->smart = null; - $this->playlistType = null; - $this->composite = null; - $this->icon = null; - $this->viewCount = null; - $this->lastViewedAt = null; - $this->duration = null; - $this->leafCount = null; - $this->addedAt = null; - $this->updatedAt = null; + $this->ratingKey = $ratingKey; + $this->key = $key; + $this->guid = $guid; + $this->type = $type; + $this->title = $title; + $this->titleSort = $titleSort; + $this->summary = $summary; + $this->smart = $smart; + $this->playlistType = $playlistType; + $this->composite = $composite; + $this->icon = $icon; + $this->viewCount = $viewCount; + $this->lastViewedAt = $lastViewedAt; + $this->duration = $duration; + $this->leafCount = $leafCount; + $this->addedAt = $addedAt; + $this->updatedAt = $updatedAt; } } \ No newline at end of file diff --git a/src/Models/Operations/GetGlobalHubsRequest.php b/src/Models/Operations/GetGlobalHubsRequest.php index 662e104..40a20fc 100644 --- a/src/Models/Operations/GetGlobalHubsRequest.php +++ b/src/Models/Operations/GetGlobalHubsRequest.php @@ -1,7 +1,7 @@ count = null; - $this->onlyTransient = null; + $this->count = $count; + $this->onlyTransient = $onlyTransient; } } \ No newline at end of file diff --git a/src/Models/Operations/GetGlobalHubsResponse.php b/src/Models/Operations/GetGlobalHubsResponse.php index 062cb4d..76fb5c7 100644 --- a/src/Models/Operations/GetGlobalHubsResponse.php +++ b/src/Models/Operations/GetGlobalHubsResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->twoHundredApplicationJsonObject = null; - $this->fourHundredAndOneApplicationJsonObject = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->object = $object; } } \ No newline at end of file diff --git a/src/Models/Operations/GetGlobalHubsResponseBody.php b/src/Models/Operations/GetGlobalHubsResponseBody.php index 4be987a..268fd7d 100644 --- a/src/Models/Operations/GetGlobalHubsResponseBody.php +++ b/src/Models/Operations/GetGlobalHubsResponseBody.php @@ -1,7 +1,7 @@ mediaContainer = null; + $this->mediaContainer = $mediaContainer; } } \ No newline at end of file diff --git a/src/Models/Operations/GetHomeDataErrors.php b/src/Models/Operations/GetHomeDataErrors.php deleted file mode 100644 index 2d545b5..0000000 --- a/src/Models/Operations/GetHomeDataErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetHomeDataPlexResponseBody.php b/src/Models/Operations/GetHomeDataPlexResponseBody.php deleted file mode 100644 index 08db584..0000000 --- a/src/Models/Operations/GetHomeDataPlexResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetHomeDataResponse.php b/src/Models/Operations/GetHomeDataResponse.php index b60e76d..6527fee 100644 --- a/src/Models/Operations/GetHomeDataResponse.php +++ b/src/Models/Operations/GetHomeDataResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->twoHundredApplicationJsonObject = null; - $this->fourHundredAndOneApplicationJsonObject = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->object = $object; } } \ No newline at end of file diff --git a/src/Models/Operations/GetHomeDataResponseBody.php b/src/Models/Operations/GetHomeDataResponseBody.php index 5a85eba..839c7e0 100644 --- a/src/Models/Operations/GetHomeDataResponseBody.php +++ b/src/Models/Operations/GetHomeDataResponseBody.php @@ -1,7 +1,7 @@ id = null; - $this->name = null; - $this->guestUserID = null; - $this->guestUserUUID = null; - $this->guestEnabled = null; - $this->subscription = null; + $this->id = $id; + $this->name = $name; + $this->guestUserID = $guestUserID; + $this->guestUserUUID = $guestUserUUID; + $this->guestEnabled = $guestEnabled; + $this->subscription = $subscription; } } \ No newline at end of file diff --git a/src/Models/Operations/GetLibrariesDirectory.php b/src/Models/Operations/GetLibrariesDirectory.php index fed60d6..8c888ad 100644 --- a/src/Models/Operations/GetLibrariesDirectory.php +++ b/src/Models/Operations/GetLibrariesDirectory.php @@ -1,7 +1,7 @@ $location + * @var ?array $location */ #[\JMS\Serializer\Annotation\SerializedName('Location')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetLibrariesLocation>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $location = null; - public function __construct() + /** + * @param ?bool $allowSync + * @param ?string $art + * @param ?string $composite + * @param ?bool $filters + * @param ?bool $refreshing + * @param ?string $thumb + * @param ?string $key + * @param ?string $type + * @param ?string $title + * @param ?string $agent + * @param ?string $scanner + * @param ?string $language + * @param ?string $uuid + * @param ?int $updatedAt + * @param ?int $createdAt + * @param ?int $scannedAt + * @param ?bool $content + * @param ?bool $directory + * @param ?int $contentChangedAt + * @param ?int $hidden + * @param ?array $location + */ + public function __construct(?bool $allowSync = null, ?string $art = null, ?string $composite = null, ?bool $filters = null, ?bool $refreshing = null, ?string $thumb = null, ?string $key = null, ?string $type = null, ?string $title = null, ?string $agent = null, ?string $scanner = null, ?string $language = null, ?string $uuid = null, ?int $updatedAt = null, ?int $createdAt = null, ?int $scannedAt = null, ?bool $content = null, ?bool $directory = null, ?int $contentChangedAt = null, ?int $hidden = null, ?array $location = null) { - $this->allowSync = null; - $this->art = null; - $this->composite = null; - $this->filters = null; - $this->refreshing = null; - $this->thumb = null; - $this->key = null; - $this->type = null; - $this->title = null; - $this->agent = null; - $this->scanner = null; - $this->language = null; - $this->uuid = null; - $this->updatedAt = null; - $this->createdAt = null; - $this->scannedAt = null; - $this->content = null; - $this->directory = null; - $this->contentChangedAt = null; - $this->hidden = null; - $this->location = null; + $this->allowSync = $allowSync; + $this->art = $art; + $this->composite = $composite; + $this->filters = $filters; + $this->refreshing = $refreshing; + $this->thumb = $thumb; + $this->key = $key; + $this->type = $type; + $this->title = $title; + $this->agent = $agent; + $this->scanner = $scanner; + $this->language = $language; + $this->uuid = $uuid; + $this->updatedAt = $updatedAt; + $this->createdAt = $createdAt; + $this->scannedAt = $scannedAt; + $this->content = $content; + $this->directory = $directory; + $this->contentChangedAt = $contentChangedAt; + $this->hidden = $hidden; + $this->location = $location; } } \ No newline at end of file diff --git a/src/Models/Operations/GetLibrariesErrors.php b/src/Models/Operations/GetLibrariesErrors.php deleted file mode 100644 index 63c0c89..0000000 --- a/src/Models/Operations/GetLibrariesErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetLibrariesLibraryResponseBody.php b/src/Models/Operations/GetLibrariesLibraryResponseBody.php deleted file mode 100644 index acba533..0000000 --- a/src/Models/Operations/GetLibrariesLibraryResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetLibrariesLocation.php b/src/Models/Operations/GetLibrariesLocation.php index ca5ef46..23861e2 100644 --- a/src/Models/Operations/GetLibrariesLocation.php +++ b/src/Models/Operations/GetLibrariesLocation.php @@ -1,7 +1,7 @@ id = null; - $this->path = null; + $this->id = $id; + $this->path = $path; } } \ No newline at end of file diff --git a/src/Models/Operations/GetLibrariesMediaContainer.php b/src/Models/Operations/GetLibrariesMediaContainer.php index 071dc7f..b8a18cf 100644 --- a/src/Models/Operations/GetLibrariesMediaContainer.php +++ b/src/Models/Operations/GetLibrariesMediaContainer.php @@ -1,7 +1,7 @@ $directory + * @var ?array $directory */ #[\JMS\Serializer\Annotation\SerializedName('Directory')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetLibrariesDirectory>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $directory = null; - public function __construct() + /** + * @param ?int $size + * @param ?bool $allowSync + * @param ?string $title1 + * @param ?array $directory + */ + public function __construct(?int $size = null, ?bool $allowSync = null, ?string $title1 = null, ?array $directory = null) { - $this->size = null; - $this->allowSync = null; - $this->title1 = null; - $this->directory = null; + $this->size = $size; + $this->allowSync = $allowSync; + $this->title1 = $title1; + $this->directory = $directory; } } \ No newline at end of file diff --git a/src/Models/Operations/GetLibrariesResponse.php b/src/Models/Operations/GetLibrariesResponse.php index 453e637..ac826cb 100644 --- a/src/Models/Operations/GetLibrariesResponse.php +++ b/src/Models/Operations/GetLibrariesResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->twoHundredApplicationJsonObject = null; - $this->fourHundredAndOneApplicationJsonObject = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->object = $object; } } \ No newline at end of file diff --git a/src/Models/Operations/GetLibrariesResponseBody.php b/src/Models/Operations/GetLibrariesResponseBody.php index 3acae99..5d2ad1f 100644 --- a/src/Models/Operations/GetLibrariesResponseBody.php +++ b/src/Models/Operations/GetLibrariesResponseBody.php @@ -1,7 +1,7 @@ mediaContainer = null; + $this->mediaContainer = $mediaContainer; } } \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryDirectory.php b/src/Models/Operations/GetLibraryDirectory.php index 7ff7506..160e6f7 100644 --- a/src/Models/Operations/GetLibraryDirectory.php +++ b/src/Models/Operations/GetLibraryDirectory.php @@ -1,7 +1,7 @@ key = null; - $this->title = null; - $this->secondary = null; - $this->prompt = null; - $this->search = null; + $this->key = $key; + $this->title = $title; + $this->secondary = $secondary; + $this->prompt = $prompt; + $this->search = $search; } } \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryErrors.php b/src/Models/Operations/GetLibraryErrors.php deleted file mode 100644 index fb28821..0000000 --- a/src/Models/Operations/GetLibraryErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryFilter.php b/src/Models/Operations/GetLibraryFilter.php index adadece..a19c8d0 100644 --- a/src/Models/Operations/GetLibraryFilter.php +++ b/src/Models/Operations/GetLibraryFilter.php @@ -1,7 +1,7 @@ filter = null; - $this->filterType = null; - $this->key = null; - $this->title = null; - $this->type = null; + $this->filter = $filter; + $this->filterType = $filterType; + $this->key = $key; + $this->title = $title; + $this->type = $type; } } \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryHubsCountry.php b/src/Models/Operations/GetLibraryHubsCountry.php index 8e40b51..47cb53f 100644 --- a/src/Models/Operations/GetLibraryHubsCountry.php +++ b/src/Models/Operations/GetLibraryHubsCountry.php @@ -1,7 +1,7 @@ tag = null; + $this->tag = $tag; } } \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryHubsDirector.php b/src/Models/Operations/GetLibraryHubsDirector.php index cd22185..bae6faa 100644 --- a/src/Models/Operations/GetLibraryHubsDirector.php +++ b/src/Models/Operations/GetLibraryHubsDirector.php @@ -1,7 +1,7 @@ tag = null; + $this->tag = $tag; } } \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryHubsErrors.php b/src/Models/Operations/GetLibraryHubsErrors.php deleted file mode 100644 index 550e0a5..0000000 --- a/src/Models/Operations/GetLibraryHubsErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryHubsGenre.php b/src/Models/Operations/GetLibraryHubsGenre.php index 92a50c5..8466495 100644 --- a/src/Models/Operations/GetLibraryHubsGenre.php +++ b/src/Models/Operations/GetLibraryHubsGenre.php @@ -1,7 +1,7 @@ tag = null; + $this->tag = $tag; } } \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryHubsHub.php b/src/Models/Operations/GetLibraryHubsHub.php index c95f748..17d11e1 100644 --- a/src/Models/Operations/GetLibraryHubsHub.php +++ b/src/Models/Operations/GetLibraryHubsHub.php @@ -1,7 +1,7 @@ $metadata + * @var ?array $metadata */ #[\JMS\Serializer\Annotation\SerializedName('Metadata')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetLibraryHubsMetadata>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $metadata = null; + /** + * + * @var ?bool $promoted + */ #[\JMS\Serializer\Annotation\SerializedName('promoted')] - #[\JMS\Serializer\Annotation\Type('bool')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?bool $promoted = null; + /** + * + * @var ?bool $random + */ #[\JMS\Serializer\Annotation\SerializedName('random')] - #[\JMS\Serializer\Annotation\Type('bool')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?bool $random = null; - public function __construct() + /** + * @param ?string $key + * @param ?string $title + * @param ?string $type + * @param ?string $hubIdentifier + * @param ?string $context + * @param ?int $size + * @param ?bool $more + * @param ?string $style + * @param ?string $hubKey + * @param ?array $metadata + * @param ?bool $promoted + * @param ?bool $random + */ + public function __construct(?string $key = null, ?string $title = null, ?string $type = null, ?string $hubIdentifier = null, ?string $context = null, ?int $size = null, ?bool $more = null, ?string $style = null, ?string $hubKey = null, ?array $metadata = null, ?bool $promoted = null, ?bool $random = null) { - $this->key = null; - $this->title = null; - $this->type = null; - $this->hubIdentifier = null; - $this->context = null; - $this->size = null; - $this->more = null; - $this->style = null; - $this->hubKey = null; - $this->metadata = null; - $this->promoted = null; - $this->random = null; + $this->key = $key; + $this->title = $title; + $this->type = $type; + $this->hubIdentifier = $hubIdentifier; + $this->context = $context; + $this->size = $size; + $this->more = $more; + $this->style = $style; + $this->hubKey = $hubKey; + $this->metadata = $metadata; + $this->promoted = $promoted; + $this->random = $random; } } \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryHubsHubsResponseBody.php b/src/Models/Operations/GetLibraryHubsHubsResponseBody.php deleted file mode 100644 index d5acd02..0000000 --- a/src/Models/Operations/GetLibraryHubsHubsResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryHubsMedia.php b/src/Models/Operations/GetLibraryHubsMedia.php index 669966e..3fe0fb3 100644 --- a/src/Models/Operations/GetLibraryHubsMedia.php +++ b/src/Models/Operations/GetLibraryHubsMedia.php @@ -1,7 +1,7 @@ $part + * @var ?array $part */ #[\JMS\Serializer\Annotation\SerializedName('Part')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetLibraryHubsPart>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $part = null; - public function __construct() + /** + * @param ?int $id + * @param ?int $duration + * @param ?int $bitrate + * @param ?int $width + * @param ?int $height + * @param ?float $aspectRatio + * @param ?int $audioChannels + * @param ?string $audioCodec + * @param ?string $videoCodec + * @param ?string $videoResolution + * @param ?string $container + * @param ?string $videoFrameRate + * @param ?int $optimizedForStreaming + * @param ?string $audioProfile + * @param ?bool $has64bitOffsets + * @param ?string $videoProfile + * @param ?array $part + */ + public function __construct(?int $id = null, ?int $duration = null, ?int $bitrate = null, ?int $width = null, ?int $height = null, ?float $aspectRatio = null, ?int $audioChannels = null, ?string $audioCodec = null, ?string $videoCodec = null, ?string $videoResolution = null, ?string $container = null, ?string $videoFrameRate = null, ?int $optimizedForStreaming = null, ?string $audioProfile = null, ?bool $has64bitOffsets = null, ?string $videoProfile = null, ?array $part = null) { - $this->id = null; - $this->duration = null; - $this->bitrate = null; - $this->width = null; - $this->height = null; - $this->aspectRatio = null; - $this->audioChannels = null; - $this->audioCodec = null; - $this->videoCodec = null; - $this->videoResolution = null; - $this->container = null; - $this->videoFrameRate = null; - $this->optimizedForStreaming = null; - $this->audioProfile = null; - $this->has64bitOffsets = null; - $this->videoProfile = null; - $this->part = null; + $this->id = $id; + $this->duration = $duration; + $this->bitrate = $bitrate; + $this->width = $width; + $this->height = $height; + $this->aspectRatio = $aspectRatio; + $this->audioChannels = $audioChannels; + $this->audioCodec = $audioCodec; + $this->videoCodec = $videoCodec; + $this->videoResolution = $videoResolution; + $this->container = $container; + $this->videoFrameRate = $videoFrameRate; + $this->optimizedForStreaming = $optimizedForStreaming; + $this->audioProfile = $audioProfile; + $this->has64bitOffsets = $has64bitOffsets; + $this->videoProfile = $videoProfile; + $this->part = $part; } } \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryHubsMediaContainer.php b/src/Models/Operations/GetLibraryHubsMediaContainer.php index 2fc3d63..fc05645 100644 --- a/src/Models/Operations/GetLibraryHubsMediaContainer.php +++ b/src/Models/Operations/GetLibraryHubsMediaContainer.php @@ -1,7 +1,7 @@ $hub + * @var ?array $hub */ #[\JMS\Serializer\Annotation\SerializedName('Hub')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetLibraryHubsHub>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $hub = null; - public function __construct() + /** + * @param ?int $size + * @param ?bool $allowSync + * @param ?string $identifier + * @param ?int $librarySectionID + * @param ?string $librarySectionTitle + * @param ?string $librarySectionUUID + * @param ?array $hub + */ + public function __construct(?int $size = null, ?bool $allowSync = null, ?string $identifier = null, ?int $librarySectionID = null, ?string $librarySectionTitle = null, ?string $librarySectionUUID = null, ?array $hub = null) { - $this->size = null; - $this->allowSync = null; - $this->identifier = null; - $this->librarySectionID = null; - $this->librarySectionTitle = null; - $this->librarySectionUUID = null; - $this->hub = null; + $this->size = $size; + $this->allowSync = $allowSync; + $this->identifier = $identifier; + $this->librarySectionID = $librarySectionID; + $this->librarySectionTitle = $librarySectionTitle; + $this->librarySectionUUID = $librarySectionUUID; + $this->hub = $hub; } } \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryHubsMetadata.php b/src/Models/Operations/GetLibraryHubsMetadata.php index 87c5d47..fe3d459 100644 --- a/src/Models/Operations/GetLibraryHubsMetadata.php +++ b/src/Models/Operations/GetLibraryHubsMetadata.php @@ -1,251 +1,371 @@ ")] #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?\DateTime $originallyAvailableAt = null; + public ?LocalDate $originallyAvailableAt = null; + /** + * + * @var ?int $addedAt + */ #[\JMS\Serializer\Annotation\SerializedName('addedAt')] - #[\JMS\Serializer\Annotation\Type('int')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?int $addedAt = null; + /** + * + * @var ?int $updatedAt + */ #[\JMS\Serializer\Annotation\SerializedName('updatedAt')] - #[\JMS\Serializer\Annotation\Type('int')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?int $updatedAt = null; + /** + * + * @var ?string $audienceRatingImage + */ #[\JMS\Serializer\Annotation\SerializedName('audienceRatingImage')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $audienceRatingImage = null; + /** + * + * @var ?string $primaryExtraKey + */ #[\JMS\Serializer\Annotation\SerializedName('primaryExtraKey')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $primaryExtraKey = null; + /** + * + * @var ?string $ratingImage + */ #[\JMS\Serializer\Annotation\SerializedName('ratingImage')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $ratingImage = null; /** * $media * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetLibraryHubsMedia> $media + * @var ?array $media */ #[\JMS\Serializer\Annotation\SerializedName('Media')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetLibraryHubsMedia>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $media = null; /** * $genre * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetLibraryHubsGenre> $genre + * @var ?array $genre */ #[\JMS\Serializer\Annotation\SerializedName('Genre')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetLibraryHubsGenre>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $genre = null; /** * $country * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetLibraryHubsCountry> $country + * @var ?array $country */ #[\JMS\Serializer\Annotation\SerializedName('Country')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetLibraryHubsCountry>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $country = null; /** * $director * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetLibraryHubsDirector> $director + * @var ?array $director */ #[\JMS\Serializer\Annotation\SerializedName('Director')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetLibraryHubsDirector>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $director = null; /** * $role * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetLibraryHubsRole> $role + * @var ?array $role */ #[\JMS\Serializer\Annotation\SerializedName('Role')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetLibraryHubsRole>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $role = null; /** * $writer * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetLibraryHubsWriter> $writer + * @var ?array $writer */ #[\JMS\Serializer\Annotation\SerializedName('Writer')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetLibraryHubsWriter>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $writer = null; + /** + * + * @var ?int $skipCount + */ #[\JMS\Serializer\Annotation\SerializedName('skipCount')] - #[\JMS\Serializer\Annotation\Type('int')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?int $skipCount = null; + /** + * + * @var ?string $chapterSource + */ #[\JMS\Serializer\Annotation\SerializedName('chapterSource')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $chapterSource = null; - public function __construct() + /** + * @param ?string $ratingKey + * @param ?string $key + * @param ?string $guid + * @param ?string $studio + * @param ?string $type + * @param ?string $title + * @param ?string $librarySectionTitle + * @param ?int $librarySectionID + * @param ?string $librarySectionKey + * @param ?string $contentRating + * @param ?string $summary + * @param ?float $rating + * @param ?float $audienceRating + * @param ?int $viewCount + * @param ?int $lastViewedAt + * @param ?int $year + * @param ?string $tagline + * @param ?string $thumb + * @param ?string $art + * @param ?int $duration + * @param ?LocalDate $originallyAvailableAt + * @param ?int $addedAt + * @param ?int $updatedAt + * @param ?string $audienceRatingImage + * @param ?string $primaryExtraKey + * @param ?string $ratingImage + * @param ?array $media + * @param ?array $genre + * @param ?array $country + * @param ?array $director + * @param ?array $role + * @param ?array $writer + * @param ?int $skipCount + * @param ?string $chapterSource + */ + public function __construct(?string $ratingKey = null, ?string $key = null, ?string $guid = null, ?string $studio = null, ?string $type = null, ?string $title = null, ?string $librarySectionTitle = null, ?int $librarySectionID = null, ?string $librarySectionKey = null, ?string $contentRating = null, ?string $summary = null, ?float $rating = null, ?float $audienceRating = null, ?int $viewCount = null, ?int $lastViewedAt = null, ?int $year = null, ?string $tagline = null, ?string $thumb = null, ?string $art = null, ?int $duration = null, ?LocalDate $originallyAvailableAt = null, ?int $addedAt = null, ?int $updatedAt = null, ?string $audienceRatingImage = null, ?string $primaryExtraKey = null, ?string $ratingImage = null, ?array $media = null, ?array $genre = null, ?array $country = null, ?array $director = null, ?array $role = null, ?array $writer = null, ?int $skipCount = null, ?string $chapterSource = null) { - $this->ratingKey = null; - $this->key = null; - $this->guid = null; - $this->studio = null; - $this->type = null; - $this->title = null; - $this->librarySectionTitle = null; - $this->librarySectionID = null; - $this->librarySectionKey = null; - $this->contentRating = null; - $this->summary = null; - $this->rating = null; - $this->audienceRating = null; - $this->viewCount = null; - $this->lastViewedAt = null; - $this->year = null; - $this->tagline = null; - $this->thumb = null; - $this->art = null; - $this->duration = null; - $this->originallyAvailableAt = null; - $this->addedAt = null; - $this->updatedAt = null; - $this->audienceRatingImage = null; - $this->primaryExtraKey = null; - $this->ratingImage = null; - $this->media = null; - $this->genre = null; - $this->country = null; - $this->director = null; - $this->role = null; - $this->writer = null; - $this->skipCount = null; - $this->chapterSource = null; + $this->ratingKey = $ratingKey; + $this->key = $key; + $this->guid = $guid; + $this->studio = $studio; + $this->type = $type; + $this->title = $title; + $this->librarySectionTitle = $librarySectionTitle; + $this->librarySectionID = $librarySectionID; + $this->librarySectionKey = $librarySectionKey; + $this->contentRating = $contentRating; + $this->summary = $summary; + $this->rating = $rating; + $this->audienceRating = $audienceRating; + $this->viewCount = $viewCount; + $this->lastViewedAt = $lastViewedAt; + $this->year = $year; + $this->tagline = $tagline; + $this->thumb = $thumb; + $this->art = $art; + $this->duration = $duration; + $this->originallyAvailableAt = $originallyAvailableAt; + $this->addedAt = $addedAt; + $this->updatedAt = $updatedAt; + $this->audienceRatingImage = $audienceRatingImage; + $this->primaryExtraKey = $primaryExtraKey; + $this->ratingImage = $ratingImage; + $this->media = $media; + $this->genre = $genre; + $this->country = $country; + $this->director = $director; + $this->role = $role; + $this->writer = $writer; + $this->skipCount = $skipCount; + $this->chapterSource = $chapterSource; } } \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryHubsPart.php b/src/Models/Operations/GetLibraryHubsPart.php index a423c89..f67f334 100644 --- a/src/Models/Operations/GetLibraryHubsPart.php +++ b/src/Models/Operations/GetLibraryHubsPart.php @@ -1,7 +1,7 @@ id = null; - $this->key = null; - $this->duration = null; - $this->file = null; - $this->size = null; - $this->audioProfile = null; - $this->container = null; - $this->has64bitOffsets = null; - $this->optimizedForStreaming = null; - $this->videoProfile = null; + $this->id = $id; + $this->key = $key; + $this->duration = $duration; + $this->file = $file; + $this->size = $size; + $this->audioProfile = $audioProfile; + $this->container = $container; + $this->has64bitOffsets = $has64bitOffsets; + $this->optimizedForStreaming = $optimizedForStreaming; + $this->videoProfile = $videoProfile; } } \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryHubsRequest.php b/src/Models/Operations/GetLibraryHubsRequest.php index e216c17..ebf5a0e 100644 --- a/src/Models/Operations/GetLibraryHubsRequest.php +++ b/src/Models/Operations/GetLibraryHubsRequest.php @@ -1,7 +1,7 @@ sectionId = 0; - $this->count = null; - $this->onlyTransient = null; + $this->sectionId = $sectionId; + $this->count = $count; + $this->onlyTransient = $onlyTransient; } } \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryHubsResponse.php b/src/Models/Operations/GetLibraryHubsResponse.php index cc8c171..27b8797 100644 --- a/src/Models/Operations/GetLibraryHubsResponse.php +++ b/src/Models/Operations/GetLibraryHubsResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->twoHundredApplicationJsonObject = null; - $this->fourHundredAndOneApplicationJsonObject = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->object = $object; } } \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryHubsResponseBody.php b/src/Models/Operations/GetLibraryHubsResponseBody.php index d092214..9ddb072 100644 --- a/src/Models/Operations/GetLibraryHubsResponseBody.php +++ b/src/Models/Operations/GetLibraryHubsResponseBody.php @@ -1,7 +1,7 @@ mediaContainer = null; + $this->mediaContainer = $mediaContainer; } } \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryHubsRole.php b/src/Models/Operations/GetLibraryHubsRole.php index f5a91ff..cb73f25 100644 --- a/src/Models/Operations/GetLibraryHubsRole.php +++ b/src/Models/Operations/GetLibraryHubsRole.php @@ -1,7 +1,7 @@ tag = null; + $this->tag = $tag; } } \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryHubsWriter.php b/src/Models/Operations/GetLibraryHubsWriter.php index c02fb24..f555d33 100644 --- a/src/Models/Operations/GetLibraryHubsWriter.php +++ b/src/Models/Operations/GetLibraryHubsWriter.php @@ -1,7 +1,7 @@ tag = null; + $this->tag = $tag; } } \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryItemsCountry.php b/src/Models/Operations/GetLibraryItemsCountry.php index e733632..18f69c1 100644 --- a/src/Models/Operations/GetLibraryItemsCountry.php +++ b/src/Models/Operations/GetLibraryItemsCountry.php @@ -1,7 +1,7 @@ tag = null; + $this->tag = $tag; } } \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryItemsDirector.php b/src/Models/Operations/GetLibraryItemsDirector.php index ac459f2..7e15505 100644 --- a/src/Models/Operations/GetLibraryItemsDirector.php +++ b/src/Models/Operations/GetLibraryItemsDirector.php @@ -1,7 +1,7 @@ tag = null; + $this->tag = $tag; } } \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryItemsErrors.php b/src/Models/Operations/GetLibraryItemsErrors.php deleted file mode 100644 index 10f8add..0000000 --- a/src/Models/Operations/GetLibraryItemsErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryItemsGenre.php b/src/Models/Operations/GetLibraryItemsGenre.php index 32937f3..059e23e 100644 --- a/src/Models/Operations/GetLibraryItemsGenre.php +++ b/src/Models/Operations/GetLibraryItemsGenre.php @@ -1,7 +1,7 @@ tag = null; + $this->tag = $tag; } } \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryItemsLibraryResponseBody.php b/src/Models/Operations/GetLibraryItemsLibraryResponseBody.php deleted file mode 100644 index e5e8527..0000000 --- a/src/Models/Operations/GetLibraryItemsLibraryResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryItemsMedia.php b/src/Models/Operations/GetLibraryItemsMedia.php index 638d759..f333293 100644 --- a/src/Models/Operations/GetLibraryItemsMedia.php +++ b/src/Models/Operations/GetLibraryItemsMedia.php @@ -1,7 +1,7 @@ $part + * @var ?array $part */ #[\JMS\Serializer\Annotation\SerializedName('Part')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetLibraryItemsPart>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $part = null; - public function __construct() + /** + * @param ?int $id + * @param ?int $duration + * @param ?int $bitrate + * @param ?int $width + * @param ?int $height + * @param ?float $aspectRatio + * @param ?int $audioChannels + * @param ?string $audioCodec + * @param ?string $videoCodec + * @param ?string $videoResolution + * @param ?string $container + * @param ?string $videoFrameRate + * @param ?string $videoProfile + * @param ?array $part + */ + public function __construct(?int $id = null, ?int $duration = null, ?int $bitrate = null, ?int $width = null, ?int $height = null, ?float $aspectRatio = null, ?int $audioChannels = null, ?string $audioCodec = null, ?string $videoCodec = null, ?string $videoResolution = null, ?string $container = null, ?string $videoFrameRate = null, ?string $videoProfile = null, ?array $part = null) { - $this->id = null; - $this->duration = null; - $this->bitrate = null; - $this->width = null; - $this->height = null; - $this->aspectRatio = null; - $this->audioChannels = null; - $this->audioCodec = null; - $this->videoCodec = null; - $this->videoResolution = null; - $this->container = null; - $this->videoFrameRate = null; - $this->videoProfile = null; - $this->part = null; + $this->id = $id; + $this->duration = $duration; + $this->bitrate = $bitrate; + $this->width = $width; + $this->height = $height; + $this->aspectRatio = $aspectRatio; + $this->audioChannels = $audioChannels; + $this->audioCodec = $audioCodec; + $this->videoCodec = $videoCodec; + $this->videoResolution = $videoResolution; + $this->container = $container; + $this->videoFrameRate = $videoFrameRate; + $this->videoProfile = $videoProfile; + $this->part = $part; } } \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryItemsMediaContainer.php b/src/Models/Operations/GetLibraryItemsMediaContainer.php index 23275f5..3a1d061 100644 --- a/src/Models/Operations/GetLibraryItemsMediaContainer.php +++ b/src/Models/Operations/GetLibraryItemsMediaContainer.php @@ -1,7 +1,7 @@ $metadata + * @var ?array $metadata */ #[\JMS\Serializer\Annotation\SerializedName('Metadata')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetLibraryItemsMetadata>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $metadata = null; - public function __construct() + /** + * @param ?int $size + * @param ?bool $allowSync + * @param ?string $art + * @param ?string $identifier + * @param int|string|null $librarySectionID + * @param ?string $librarySectionTitle + * @param ?string $librarySectionUUID + * @param ?string $mediaTagPrefix + * @param ?int $mediaTagVersion + * @param ?string $thumb + * @param ?string $title1 + * @param ?string $title2 + * @param ?string $viewGroup + * @param ?int $viewMode + * @param ?bool $mixedParents + * @param ?array $metadata + */ + public function __construct(?int $size = null, ?bool $allowSync = null, ?string $art = null, ?string $identifier = null, int|string|null $librarySectionID = null, ?string $librarySectionTitle = null, ?string $librarySectionUUID = null, ?string $mediaTagPrefix = null, ?int $mediaTagVersion = null, ?string $thumb = null, ?string $title1 = null, ?string $title2 = null, ?string $viewGroup = null, ?int $viewMode = null, ?bool $mixedParents = null, ?array $metadata = null) { - $this->size = null; - $this->allowSync = null; - $this->art = null; - $this->identifier = null; - $this->librarySectionID = null; - $this->librarySectionTitle = null; - $this->librarySectionUUID = null; - $this->mediaTagPrefix = null; - $this->mediaTagVersion = null; - $this->thumb = null; - $this->title1 = null; - $this->title2 = null; - $this->viewGroup = null; - $this->viewMode = null; - $this->mixedParents = null; - $this->metadata = null; + $this->size = $size; + $this->allowSync = $allowSync; + $this->art = $art; + $this->identifier = $identifier; + $this->librarySectionID = $librarySectionID; + $this->librarySectionTitle = $librarySectionTitle; + $this->librarySectionUUID = $librarySectionUUID; + $this->mediaTagPrefix = $mediaTagPrefix; + $this->mediaTagVersion = $mediaTagVersion; + $this->thumb = $thumb; + $this->title1 = $title1; + $this->title2 = $title2; + $this->viewGroup = $viewGroup; + $this->viewMode = $viewMode; + $this->mixedParents = $mixedParents; + $this->metadata = $metadata; } } \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryItemsMetadata.php b/src/Models/Operations/GetLibraryItemsMetadata.php index 4ae1db1..0584603 100644 --- a/src/Models/Operations/GetLibraryItemsMetadata.php +++ b/src/Models/Operations/GetLibraryItemsMetadata.php @@ -1,389 +1,601 @@ ")] #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?\DateTime $originallyAvailableAt = null; + public ?LocalDate $originallyAvailableAt = null; + /** + * + * @var ?int $addedAt + */ #[\JMS\Serializer\Annotation\SerializedName('addedAt')] - #[\JMS\Serializer\Annotation\Type('int')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?int $addedAt = null; + /** + * + * @var ?int $updatedAt + */ #[\JMS\Serializer\Annotation\SerializedName('updatedAt')] - #[\JMS\Serializer\Annotation\Type('int')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?int $updatedAt = null; + /** + * + * @var ?string $audienceRatingImage + */ #[\JMS\Serializer\Annotation\SerializedName('audienceRatingImage')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $audienceRatingImage = null; + /** + * + * @var ?string $chapterSource + */ #[\JMS\Serializer\Annotation\SerializedName('chapterSource')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $chapterSource = null; + /** + * + * @var ?string $primaryExtraKey + */ #[\JMS\Serializer\Annotation\SerializedName('primaryExtraKey')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $primaryExtraKey = null; + /** + * + * @var ?string $ratingImage + */ #[\JMS\Serializer\Annotation\SerializedName('ratingImage')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $ratingImage = null; + /** + * + * @var ?string $grandparentRatingKey + */ #[\JMS\Serializer\Annotation\SerializedName('grandparentRatingKey')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $grandparentRatingKey = null; + /** + * + * @var ?string $grandparentGuid + */ #[\JMS\Serializer\Annotation\SerializedName('grandparentGuid')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $grandparentGuid = null; + /** + * + * @var ?string $grandparentKey + */ #[\JMS\Serializer\Annotation\SerializedName('grandparentKey')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $grandparentKey = null; + /** + * + * @var ?string $grandparentTitle + */ #[\JMS\Serializer\Annotation\SerializedName('grandparentTitle')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $grandparentTitle = null; + /** + * + * @var ?string $grandparentThumb + */ #[\JMS\Serializer\Annotation\SerializedName('grandparentThumb')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $grandparentThumb = null; + /** + * + * @var ?string $grandparentArt + */ #[\JMS\Serializer\Annotation\SerializedName('grandparentArt')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $grandparentArt = null; + /** + * + * @var ?string $grandparentTheme + */ #[\JMS\Serializer\Annotation\SerializedName('grandparentTheme')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $grandparentTheme = null; /** * $media * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetLibraryItemsMedia> $media + * @var ?array $media */ #[\JMS\Serializer\Annotation\SerializedName('Media')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetLibraryItemsMedia>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $media = null; /** * $genre * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetLibraryItemsGenre> $genre + * @var ?array $genre */ #[\JMS\Serializer\Annotation\SerializedName('Genre')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetLibraryItemsGenre>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $genre = null; /** * $country * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetLibraryItemsCountry> $country + * @var ?array $country */ #[\JMS\Serializer\Annotation\SerializedName('Country')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetLibraryItemsCountry>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $country = null; /** * $director * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetLibraryItemsDirector> $director + * @var ?array $director */ #[\JMS\Serializer\Annotation\SerializedName('Director')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetLibraryItemsDirector>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $director = null; /** * $writer * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetLibraryItemsWriter> $writer + * @var ?array $writer */ #[\JMS\Serializer\Annotation\SerializedName('Writer')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetLibraryItemsWriter>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $writer = null; /** * $role * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetLibraryItemsRole> $role + * @var ?array $role */ #[\JMS\Serializer\Annotation\SerializedName('Role')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetLibraryItemsRole>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $role = null; + /** + * + * @var ?string $titleSort + */ #[\JMS\Serializer\Annotation\SerializedName('titleSort')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $titleSort = null; + /** + * + * @var ?int $viewCount + */ #[\JMS\Serializer\Annotation\SerializedName('viewCount')] - #[\JMS\Serializer\Annotation\Type('int')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?int $viewCount = null; + /** + * + * @var ?int $lastViewedAt + */ #[\JMS\Serializer\Annotation\SerializedName('lastViewedAt')] - #[\JMS\Serializer\Annotation\Type('int')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?int $lastViewedAt = null; + /** + * + * @var ?string $originalTitle + */ #[\JMS\Serializer\Annotation\SerializedName('originalTitle')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $originalTitle = null; + /** + * + * @var ?int $viewOffset + */ #[\JMS\Serializer\Annotation\SerializedName('viewOffset')] - #[\JMS\Serializer\Annotation\Type('int')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?int $viewOffset = null; + /** + * + * @var ?int $skipCount + */ #[\JMS\Serializer\Annotation\SerializedName('skipCount')] - #[\JMS\Serializer\Annotation\Type('int')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?int $skipCount = null; + /** + * + * @var ?int $index + */ #[\JMS\Serializer\Annotation\SerializedName('index')] - #[\JMS\Serializer\Annotation\Type('int')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?int $index = null; + /** + * + * @var ?string $theme + */ #[\JMS\Serializer\Annotation\SerializedName('theme')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $theme = null; + /** + * + * @var ?int $leafCount + */ #[\JMS\Serializer\Annotation\SerializedName('leafCount')] - #[\JMS\Serializer\Annotation\Type('int')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?int $leafCount = null; + /** + * + * @var ?int $viewedLeafCount + */ #[\JMS\Serializer\Annotation\SerializedName('viewedLeafCount')] - #[\JMS\Serializer\Annotation\Type('int')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?int $viewedLeafCount = null; + /** + * + * @var ?int $childCount + */ #[\JMS\Serializer\Annotation\SerializedName('childCount')] - #[\JMS\Serializer\Annotation\Type('int')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?int $childCount = null; + /** + * + * @var ?string $hasPremiumExtras + */ #[\JMS\Serializer\Annotation\SerializedName('hasPremiumExtras')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $hasPremiumExtras = null; + /** + * + * @var ?string $hasPremiumPrimaryExtra + */ #[\JMS\Serializer\Annotation\SerializedName('hasPremiumPrimaryExtra')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $hasPremiumPrimaryExtra = null; + /** + * + * @var ?string $parentRatingKey + */ #[\JMS\Serializer\Annotation\SerializedName('parentRatingKey')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $parentRatingKey = null; + /** + * + * @var ?string $parentGuid + */ #[\JMS\Serializer\Annotation\SerializedName('parentGuid')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $parentGuid = null; + /** + * + * @var ?string $parentStudio + */ #[\JMS\Serializer\Annotation\SerializedName('parentStudio')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $parentStudio = null; + /** + * + * @var ?string $parentKey + */ #[\JMS\Serializer\Annotation\SerializedName('parentKey')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $parentKey = null; + /** + * + * @var ?string $parentTitle + */ #[\JMS\Serializer\Annotation\SerializedName('parentTitle')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $parentTitle = null; + /** + * + * @var ?int $parentIndex + */ #[\JMS\Serializer\Annotation\SerializedName('parentIndex')] - #[\JMS\Serializer\Annotation\Type('int')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?int $parentIndex = null; + /** + * + * @var ?int $parentYear + */ #[\JMS\Serializer\Annotation\SerializedName('parentYear')] - #[\JMS\Serializer\Annotation\Type('int')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?int $parentYear = null; + /** + * + * @var ?string $parentThumb + */ #[\JMS\Serializer\Annotation\SerializedName('parentThumb')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $parentThumb = null; + /** + * + * @var ?string $parentTheme + */ #[\JMS\Serializer\Annotation\SerializedName('parentTheme')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $parentTheme = null; - public function __construct() + /** + * @param ?string $ratingKey + * @param ?string $key + * @param ?string $guid + * @param ?string $studio + * @param ?string $type + * @param ?string $title + * @param ?string $contentRating + * @param ?string $summary + * @param ?float $rating + * @param ?float $audienceRating + * @param ?int $year + * @param ?string $tagline + * @param ?string $thumb + * @param ?string $art + * @param ?int $duration + * @param ?LocalDate $originallyAvailableAt + * @param ?int $addedAt + * @param ?int $updatedAt + * @param ?string $audienceRatingImage + * @param ?string $chapterSource + * @param ?string $primaryExtraKey + * @param ?string $ratingImage + * @param ?string $grandparentRatingKey + * @param ?string $grandparentGuid + * @param ?string $grandparentKey + * @param ?string $grandparentTitle + * @param ?string $grandparentThumb + * @param ?string $grandparentArt + * @param ?string $grandparentTheme + * @param ?array $media + * @param ?array $genre + * @param ?array $country + * @param ?array $director + * @param ?array $writer + * @param ?array $role + * @param ?string $titleSort + * @param ?int $viewCount + * @param ?int $lastViewedAt + * @param ?string $originalTitle + * @param ?int $viewOffset + * @param ?int $skipCount + * @param ?int $index + * @param ?string $theme + * @param ?int $leafCount + * @param ?int $viewedLeafCount + * @param ?int $childCount + * @param ?string $hasPremiumExtras + * @param ?string $hasPremiumPrimaryExtra + * @param ?string $parentRatingKey + * @param ?string $parentGuid + * @param ?string $parentStudio + * @param ?string $parentKey + * @param ?string $parentTitle + * @param ?int $parentIndex + * @param ?int $parentYear + * @param ?string $parentThumb + * @param ?string $parentTheme + */ + public function __construct(?string $ratingKey = null, ?string $key = null, ?string $guid = null, ?string $studio = null, ?string $type = null, ?string $title = null, ?string $contentRating = null, ?string $summary = null, ?float $rating = null, ?float $audienceRating = null, ?int $year = null, ?string $tagline = null, ?string $thumb = null, ?string $art = null, ?int $duration = null, ?LocalDate $originallyAvailableAt = null, ?int $addedAt = null, ?int $updatedAt = null, ?string $audienceRatingImage = null, ?string $chapterSource = null, ?string $primaryExtraKey = null, ?string $ratingImage = null, ?string $grandparentRatingKey = null, ?string $grandparentGuid = null, ?string $grandparentKey = null, ?string $grandparentTitle = null, ?string $grandparentThumb = null, ?string $grandparentArt = null, ?string $grandparentTheme = null, ?array $media = null, ?array $genre = null, ?array $country = null, ?array $director = null, ?array $writer = null, ?array $role = null, ?string $titleSort = null, ?int $viewCount = null, ?int $lastViewedAt = null, ?string $originalTitle = null, ?int $viewOffset = null, ?int $skipCount = null, ?int $index = null, ?string $theme = null, ?int $leafCount = null, ?int $viewedLeafCount = null, ?int $childCount = null, ?string $hasPremiumExtras = null, ?string $hasPremiumPrimaryExtra = null, ?string $parentRatingKey = null, ?string $parentGuid = null, ?string $parentStudio = null, ?string $parentKey = null, ?string $parentTitle = null, ?int $parentIndex = null, ?int $parentYear = null, ?string $parentThumb = null, ?string $parentTheme = null) { - $this->ratingKey = null; - $this->key = null; - $this->guid = null; - $this->studio = null; - $this->type = null; - $this->title = null; - $this->contentRating = null; - $this->summary = null; - $this->rating = null; - $this->audienceRating = null; - $this->year = null; - $this->tagline = null; - $this->thumb = null; - $this->art = null; - $this->duration = null; - $this->originallyAvailableAt = null; - $this->addedAt = null; - $this->updatedAt = null; - $this->audienceRatingImage = null; - $this->chapterSource = null; - $this->primaryExtraKey = null; - $this->ratingImage = null; - $this->grandparentRatingKey = null; - $this->grandparentGuid = null; - $this->grandparentKey = null; - $this->grandparentTitle = null; - $this->grandparentThumb = null; - $this->grandparentArt = null; - $this->grandparentTheme = null; - $this->media = null; - $this->genre = null; - $this->country = null; - $this->director = null; - $this->writer = null; - $this->role = null; - $this->titleSort = null; - $this->viewCount = null; - $this->lastViewedAt = null; - $this->originalTitle = null; - $this->viewOffset = null; - $this->skipCount = null; - $this->index = null; - $this->theme = null; - $this->leafCount = null; - $this->viewedLeafCount = null; - $this->childCount = null; - $this->hasPremiumExtras = null; - $this->hasPremiumPrimaryExtra = null; - $this->parentRatingKey = null; - $this->parentGuid = null; - $this->parentStudio = null; - $this->parentKey = null; - $this->parentTitle = null; - $this->parentIndex = null; - $this->parentYear = null; - $this->parentThumb = null; - $this->parentTheme = null; + $this->ratingKey = $ratingKey; + $this->key = $key; + $this->guid = $guid; + $this->studio = $studio; + $this->type = $type; + $this->title = $title; + $this->contentRating = $contentRating; + $this->summary = $summary; + $this->rating = $rating; + $this->audienceRating = $audienceRating; + $this->year = $year; + $this->tagline = $tagline; + $this->thumb = $thumb; + $this->art = $art; + $this->duration = $duration; + $this->originallyAvailableAt = $originallyAvailableAt; + $this->addedAt = $addedAt; + $this->updatedAt = $updatedAt; + $this->audienceRatingImage = $audienceRatingImage; + $this->chapterSource = $chapterSource; + $this->primaryExtraKey = $primaryExtraKey; + $this->ratingImage = $ratingImage; + $this->grandparentRatingKey = $grandparentRatingKey; + $this->grandparentGuid = $grandparentGuid; + $this->grandparentKey = $grandparentKey; + $this->grandparentTitle = $grandparentTitle; + $this->grandparentThumb = $grandparentThumb; + $this->grandparentArt = $grandparentArt; + $this->grandparentTheme = $grandparentTheme; + $this->media = $media; + $this->genre = $genre; + $this->country = $country; + $this->director = $director; + $this->writer = $writer; + $this->role = $role; + $this->titleSort = $titleSort; + $this->viewCount = $viewCount; + $this->lastViewedAt = $lastViewedAt; + $this->originalTitle = $originalTitle; + $this->viewOffset = $viewOffset; + $this->skipCount = $skipCount; + $this->index = $index; + $this->theme = $theme; + $this->leafCount = $leafCount; + $this->viewedLeafCount = $viewedLeafCount; + $this->childCount = $childCount; + $this->hasPremiumExtras = $hasPremiumExtras; + $this->hasPremiumPrimaryExtra = $hasPremiumPrimaryExtra; + $this->parentRatingKey = $parentRatingKey; + $this->parentGuid = $parentGuid; + $this->parentStudio = $parentStudio; + $this->parentKey = $parentKey; + $this->parentTitle = $parentTitle; + $this->parentIndex = $parentIndex; + $this->parentYear = $parentYear; + $this->parentThumb = $parentThumb; + $this->parentTheme = $parentTheme; } } \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryItemsPart.php b/src/Models/Operations/GetLibraryItemsPart.php index 856bbac..0f7b684 100644 --- a/src/Models/Operations/GetLibraryItemsPart.php +++ b/src/Models/Operations/GetLibraryItemsPart.php @@ -1,7 +1,7 @@ id = null; - $this->key = null; - $this->duration = null; - $this->file = null; - $this->size = null; - $this->container = null; - $this->videoProfile = null; + $this->id = $id; + $this->key = $key; + $this->duration = $duration; + $this->file = $file; + $this->size = $size; + $this->container = $container; + $this->videoProfile = $videoProfile; } } \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryItemsRequest.php b/src/Models/Operations/GetLibraryItemsRequest.php index e558372..f77da5d 100644 --- a/src/Models/Operations/GetLibraryItemsRequest.php +++ b/src/Models/Operations/GetLibraryItemsRequest.php @@ -1,7 +1,7 @@ sectionId = null; - $this->tag = \LukeHagar\Plex_API\Models\Operations\Tag::All; - $this->includeGuids = null; + $this->sectionId = $sectionId; + $this->tag = $tag; + $this->includeGuids = $includeGuids; } } \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryItemsResponse.php b/src/Models/Operations/GetLibraryItemsResponse.php index 5c26316..43502a6 100644 --- a/src/Models/Operations/GetLibraryItemsResponse.php +++ b/src/Models/Operations/GetLibraryItemsResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->twoHundredApplicationJsonObject = null; - $this->fourHundredAndOneApplicationJsonObject = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->object = $object; } } \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryItemsResponseBody.php b/src/Models/Operations/GetLibraryItemsResponseBody.php index 5a3f0a2..97b9c48 100644 --- a/src/Models/Operations/GetLibraryItemsResponseBody.php +++ b/src/Models/Operations/GetLibraryItemsResponseBody.php @@ -1,7 +1,7 @@ mediaContainer = null; + $this->mediaContainer = $mediaContainer; } } \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryItemsRole.php b/src/Models/Operations/GetLibraryItemsRole.php index 40ad9f9..6f41760 100644 --- a/src/Models/Operations/GetLibraryItemsRole.php +++ b/src/Models/Operations/GetLibraryItemsRole.php @@ -1,7 +1,7 @@ tag = null; + $this->tag = $tag; } } \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryItemsWriter.php b/src/Models/Operations/GetLibraryItemsWriter.php index a4c71d0..12ff63d 100644 --- a/src/Models/Operations/GetLibraryItemsWriter.php +++ b/src/Models/Operations/GetLibraryItemsWriter.php @@ -1,7 +1,7 @@ tag = null; + $this->tag = $tag; } } \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryLibraryResponseBody.php b/src/Models/Operations/GetLibraryLibraryResponseBody.php deleted file mode 100644 index d7f45de..0000000 --- a/src/Models/Operations/GetLibraryLibraryResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryMediaContainer.php b/src/Models/Operations/GetLibraryMediaContainer.php index 5ee0909..4fb8387 100644 --- a/src/Models/Operations/GetLibraryMediaContainer.php +++ b/src/Models/Operations/GetLibraryMediaContainer.php @@ -1,7 +1,7 @@ $directory + * @var ?array $directory */ #[\JMS\Serializer\Annotation\SerializedName('Directory')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetLibraryDirectory>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $directory = null; /** * $type * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetLibraryType> $type + * @var ?array $type */ #[\JMS\Serializer\Annotation\SerializedName('Type')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetLibraryType>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $type = null; /** * $fieldType * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\FieldType> $fieldType + * @var ?array $fieldType */ #[\JMS\Serializer\Annotation\SerializedName('FieldType')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\FieldType>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $fieldType = null; - public function __construct() + /** + * @param ?int $size + * @param ?bool $allowSync + * @param ?string $art + * @param ?string $content + * @param ?string $identifier + * @param ?int $librarySectionID + * @param ?string $mediaTagPrefix + * @param ?int $mediaTagVersion + * @param ?string $thumb + * @param ?string $title1 + * @param ?string $viewGroup + * @param ?int $viewMode + * @param ?array $directory + * @param ?array $type + * @param ?array $fieldType + */ + public function __construct(?int $size = null, ?bool $allowSync = null, ?string $art = null, ?string $content = null, ?string $identifier = null, ?int $librarySectionID = null, ?string $mediaTagPrefix = null, ?int $mediaTagVersion = null, ?string $thumb = null, ?string $title1 = null, ?string $viewGroup = null, ?int $viewMode = null, ?array $directory = null, ?array $type = null, ?array $fieldType = null) { - $this->size = null; - $this->allowSync = null; - $this->art = null; - $this->content = null; - $this->identifier = null; - $this->librarySectionID = null; - $this->mediaTagPrefix = null; - $this->mediaTagVersion = null; - $this->thumb = null; - $this->title1 = null; - $this->viewGroup = null; - $this->viewMode = null; - $this->directory = null; - $this->type = null; - $this->fieldType = null; + $this->size = $size; + $this->allowSync = $allowSync; + $this->art = $art; + $this->content = $content; + $this->identifier = $identifier; + $this->librarySectionID = $librarySectionID; + $this->mediaTagPrefix = $mediaTagPrefix; + $this->mediaTagVersion = $mediaTagVersion; + $this->thumb = $thumb; + $this->title1 = $title1; + $this->viewGroup = $viewGroup; + $this->viewMode = $viewMode; + $this->directory = $directory; + $this->type = $type; + $this->fieldType = $fieldType; } } \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryRequest.php b/src/Models/Operations/GetLibraryRequest.php index 067f8a4..1bcb0cb 100644 --- a/src/Models/Operations/GetLibraryRequest.php +++ b/src/Models/Operations/GetLibraryRequest.php @@ -1,7 +1,7 @@ sectionId = 0; - $this->includeDetails = null; + $this->sectionId = $sectionId; + $this->includeDetails = $includeDetails; } } \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryResponse.php b/src/Models/Operations/GetLibraryResponse.php index 32f1526..dc2dde2 100644 --- a/src/Models/Operations/GetLibraryResponse.php +++ b/src/Models/Operations/GetLibraryResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->twoHundredApplicationJsonObject = null; - $this->fourHundredAndOneApplicationJsonObject = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->object = $object; } } \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryResponseBody.php b/src/Models/Operations/GetLibraryResponseBody.php index 305b7f6..b19c64e 100644 --- a/src/Models/Operations/GetLibraryResponseBody.php +++ b/src/Models/Operations/GetLibraryResponseBody.php @@ -1,7 +1,7 @@ mediaContainer = null; + $this->mediaContainer = $mediaContainer; } } \ No newline at end of file diff --git a/src/Models/Operations/GetLibraryType.php b/src/Models/Operations/GetLibraryType.php index 70d44fe..f572deb 100644 --- a/src/Models/Operations/GetLibraryType.php +++ b/src/Models/Operations/GetLibraryType.php @@ -1,7 +1,7 @@ $filter + * @var ?array $filter */ #[\JMS\Serializer\Annotation\SerializedName('Filter')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetLibraryFilter>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $filter = null; /** * $sort * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\Sort> $sort + * @var ?array $sort */ #[\JMS\Serializer\Annotation\SerializedName('Sort')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\Sort>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $sort = null; /** * $field * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\Field> $field + * @var ?array $field */ #[\JMS\Serializer\Annotation\SerializedName('Field')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\Field>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $field = null; - public function __construct() + /** + * @param ?string $key + * @param ?string $type + * @param ?string $title + * @param ?bool $active + * @param ?array $filter + * @param ?array $sort + * @param ?array $field + */ + public function __construct(?string $key = null, ?string $type = null, ?string $title = null, ?bool $active = null, ?array $filter = null, ?array $sort = null, ?array $field = null) { - $this->key = null; - $this->type = null; - $this->title = null; - $this->active = null; - $this->filter = null; - $this->sort = null; - $this->field = null; + $this->key = $key; + $this->type = $type; + $this->title = $title; + $this->active = $active; + $this->filter = $filter; + $this->sort = $sort; + $this->field = $field; } } \ No newline at end of file diff --git a/src/Models/Operations/GetMetadataChildrenDirectory.php b/src/Models/Operations/GetMetadataChildrenDirectory.php index cf9fff6..f6fd863 100644 --- a/src/Models/Operations/GetMetadataChildrenDirectory.php +++ b/src/Models/Operations/GetMetadataChildrenDirectory.php @@ -1,7 +1,7 @@ leafCount = null; - $this->thumb = null; - $this->viewedLeafCount = null; - $this->key = null; - $this->title = null; + $this->leafCount = $leafCount; + $this->thumb = $thumb; + $this->viewedLeafCount = $viewedLeafCount; + $this->key = $key; + $this->title = $title; } } \ No newline at end of file diff --git a/src/Models/Operations/GetMetadataChildrenErrors.php b/src/Models/Operations/GetMetadataChildrenErrors.php deleted file mode 100644 index 6be820a..0000000 --- a/src/Models/Operations/GetMetadataChildrenErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetMetadataChildrenLibraryResponseBody.php b/src/Models/Operations/GetMetadataChildrenLibraryResponseBody.php deleted file mode 100644 index 0fa57a5..0000000 --- a/src/Models/Operations/GetMetadataChildrenLibraryResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetMetadataChildrenMediaContainer.php b/src/Models/Operations/GetMetadataChildrenMediaContainer.php index fd5b6da..4fba1ab 100644 --- a/src/Models/Operations/GetMetadataChildrenMediaContainer.php +++ b/src/Models/Operations/GetMetadataChildrenMediaContainer.php @@ -1,7 +1,7 @@ $directory + * @var ?array $directory */ #[\JMS\Serializer\Annotation\SerializedName('Directory')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetMetadataChildrenDirectory>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $directory = null; /** * $metadata * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetMetadataChildrenMetadata> $metadata + * @var ?array $metadata */ #[\JMS\Serializer\Annotation\SerializedName('Metadata')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetMetadataChildrenMetadata>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $metadata = null; - public function __construct() + /** + * @param ?int $size + * @param ?bool $allowSync + * @param ?string $art + * @param ?string $identifier + * @param ?string $key + * @param ?int $librarySectionID + * @param ?string $librarySectionTitle + * @param ?string $librarySectionUUID + * @param ?string $mediaTagPrefix + * @param ?int $mediaTagVersion + * @param ?bool $nocache + * @param ?int $parentIndex + * @param ?string $parentTitle + * @param ?int $parentYear + * @param ?string $summary + * @param ?string $theme + * @param ?string $thumb + * @param ?string $title1 + * @param ?string $title2 + * @param ?string $viewGroup + * @param ?int $viewMode + * @param ?array $directory + * @param ?array $metadata + */ + public function __construct(?int $size = null, ?bool $allowSync = null, ?string $art = null, ?string $identifier = null, ?string $key = null, ?int $librarySectionID = null, ?string $librarySectionTitle = null, ?string $librarySectionUUID = null, ?string $mediaTagPrefix = null, ?int $mediaTagVersion = null, ?bool $nocache = null, ?int $parentIndex = null, ?string $parentTitle = null, ?int $parentYear = null, ?string $summary = null, ?string $theme = null, ?string $thumb = null, ?string $title1 = null, ?string $title2 = null, ?string $viewGroup = null, ?int $viewMode = null, ?array $directory = null, ?array $metadata = null) { - $this->size = null; - $this->allowSync = null; - $this->art = null; - $this->identifier = null; - $this->key = null; - $this->librarySectionID = null; - $this->librarySectionTitle = null; - $this->librarySectionUUID = null; - $this->mediaTagPrefix = null; - $this->mediaTagVersion = null; - $this->nocache = null; - $this->parentIndex = null; - $this->parentTitle = null; - $this->parentYear = null; - $this->summary = null; - $this->theme = null; - $this->thumb = null; - $this->title1 = null; - $this->title2 = null; - $this->viewGroup = null; - $this->viewMode = null; - $this->directory = null; - $this->metadata = null; + $this->size = $size; + $this->allowSync = $allowSync; + $this->art = $art; + $this->identifier = $identifier; + $this->key = $key; + $this->librarySectionID = $librarySectionID; + $this->librarySectionTitle = $librarySectionTitle; + $this->librarySectionUUID = $librarySectionUUID; + $this->mediaTagPrefix = $mediaTagPrefix; + $this->mediaTagVersion = $mediaTagVersion; + $this->nocache = $nocache; + $this->parentIndex = $parentIndex; + $this->parentTitle = $parentTitle; + $this->parentYear = $parentYear; + $this->summary = $summary; + $this->theme = $theme; + $this->thumb = $thumb; + $this->title1 = $title1; + $this->title2 = $title2; + $this->viewGroup = $viewGroup; + $this->viewMode = $viewMode; + $this->directory = $directory; + $this->metadata = $metadata; } } \ No newline at end of file diff --git a/src/Models/Operations/GetMetadataChildrenMetadata.php b/src/Models/Operations/GetMetadataChildrenMetadata.php index 8f0881a..4b29c2e 100644 --- a/src/Models/Operations/GetMetadataChildrenMetadata.php +++ b/src/Models/Operations/GetMetadataChildrenMetadata.php @@ -1,7 +1,7 @@ ratingKey = null; - $this->key = null; - $this->parentRatingKey = null; - $this->guid = null; - $this->parentGuid = null; - $this->parentStudio = null; - $this->type = null; - $this->title = null; - $this->parentKey = null; - $this->parentTitle = null; - $this->summary = null; - $this->index = null; - $this->parentIndex = null; - $this->viewCount = null; - $this->lastViewedAt = null; - $this->parentYear = null; - $this->thumb = null; - $this->art = null; - $this->parentThumb = null; - $this->parentTheme = null; - $this->leafCount = null; - $this->viewedLeafCount = null; - $this->addedAt = null; - $this->updatedAt = null; - $this->userRating = null; - $this->skipCount = null; - $this->lastRatedAt = null; + $this->ratingKey = $ratingKey; + $this->key = $key; + $this->parentRatingKey = $parentRatingKey; + $this->guid = $guid; + $this->parentGuid = $parentGuid; + $this->parentStudio = $parentStudio; + $this->type = $type; + $this->title = $title; + $this->parentKey = $parentKey; + $this->parentTitle = $parentTitle; + $this->summary = $summary; + $this->index = $index; + $this->parentIndex = $parentIndex; + $this->viewCount = $viewCount; + $this->lastViewedAt = $lastViewedAt; + $this->parentYear = $parentYear; + $this->thumb = $thumb; + $this->art = $art; + $this->parentThumb = $parentThumb; + $this->parentTheme = $parentTheme; + $this->leafCount = $leafCount; + $this->viewedLeafCount = $viewedLeafCount; + $this->addedAt = $addedAt; + $this->updatedAt = $updatedAt; + $this->userRating = $userRating; + $this->skipCount = $skipCount; + $this->lastRatedAt = $lastRatedAt; } } \ No newline at end of file diff --git a/src/Models/Operations/GetMetadataChildrenRequest.php b/src/Models/Operations/GetMetadataChildrenRequest.php index d1c584c..06aca1b 100644 --- a/src/Models/Operations/GetMetadataChildrenRequest.php +++ b/src/Models/Operations/GetMetadataChildrenRequest.php @@ -1,7 +1,7 @@ ratingKey = 0; - $this->includeElements = null; + $this->ratingKey = $ratingKey; + $this->includeElements = $includeElements; } } \ No newline at end of file diff --git a/src/Models/Operations/GetMetadataChildrenResponse.php b/src/Models/Operations/GetMetadataChildrenResponse.php index 0ddc132..16abd4f 100644 --- a/src/Models/Operations/GetMetadataChildrenResponse.php +++ b/src/Models/Operations/GetMetadataChildrenResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->twoHundredApplicationJsonObject = null; - $this->fourHundredAndOneApplicationJsonObject = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->object = $object; } } \ No newline at end of file diff --git a/src/Models/Operations/GetMetadataChildrenResponseBody.php b/src/Models/Operations/GetMetadataChildrenResponseBody.php index fe527e0..0ba8d08 100644 --- a/src/Models/Operations/GetMetadataChildrenResponseBody.php +++ b/src/Models/Operations/GetMetadataChildrenResponseBody.php @@ -1,7 +1,7 @@ mediaContainer = null; + $this->mediaContainer = $mediaContainer; } } \ No newline at end of file diff --git a/src/Models/Operations/GetMetadataCountry.php b/src/Models/Operations/GetMetadataCountry.php index c1036ce..01bc2a3 100644 --- a/src/Models/Operations/GetMetadataCountry.php +++ b/src/Models/Operations/GetMetadataCountry.php @@ -1,7 +1,7 @@ id = null; - $this->filter = null; - $this->tag = null; + $this->id = $id; + $this->filter = $filter; + $this->tag = $tag; } } \ No newline at end of file diff --git a/src/Models/Operations/GetMetadataDirector.php b/src/Models/Operations/GetMetadataDirector.php index 88eef2e..7254d28 100644 --- a/src/Models/Operations/GetMetadataDirector.php +++ b/src/Models/Operations/GetMetadataDirector.php @@ -1,7 +1,7 @@ id = null; - $this->filter = null; - $this->tag = null; - $this->tagKey = null; - $this->thumb = null; + $this->id = $id; + $this->filter = $filter; + $this->tag = $tag; + $this->tagKey = $tagKey; + $this->thumb = $thumb; } } \ No newline at end of file diff --git a/src/Models/Operations/GetMetadataErrors.php b/src/Models/Operations/GetMetadataErrors.php deleted file mode 100644 index ee2b52a..0000000 --- a/src/Models/Operations/GetMetadataErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetMetadataGenre.php b/src/Models/Operations/GetMetadataGenre.php index 635a2f1..b4b06c2 100644 --- a/src/Models/Operations/GetMetadataGenre.php +++ b/src/Models/Operations/GetMetadataGenre.php @@ -1,7 +1,7 @@ id = null; - $this->filter = null; - $this->tag = null; + $this->id = $id; + $this->filter = $filter; + $this->tag = $tag; } } \ No newline at end of file diff --git a/src/Models/Operations/GetMetadataLibraryResponseBody.php b/src/Models/Operations/GetMetadataLibraryResponseBody.php deleted file mode 100644 index 73feecf..0000000 --- a/src/Models/Operations/GetMetadataLibraryResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetMetadataMedia.php b/src/Models/Operations/GetMetadataMedia.php index dd9016e..24a41b8 100644 --- a/src/Models/Operations/GetMetadataMedia.php +++ b/src/Models/Operations/GetMetadataMedia.php @@ -1,7 +1,7 @@ $part + * @var ?array $part */ #[\JMS\Serializer\Annotation\SerializedName('Part')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetMetadataPart>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $part = null; - public function __construct() + /** + * @param ?int $id + * @param ?int $duration + * @param ?int $bitrate + * @param ?int $width + * @param ?int $height + * @param ?float $aspectRatio + * @param ?int $audioChannels + * @param ?string $audioCodec + * @param ?string $videoCodec + * @param ?string $videoResolution + * @param ?string $container + * @param ?string $videoFrameRate + * @param ?int $optimizedForStreaming + * @param ?string $audioProfile + * @param ?bool $has64bitOffsets + * @param ?string $videoProfile + * @param ?array $part + */ + public function __construct(?int $id = null, ?int $duration = null, ?int $bitrate = null, ?int $width = null, ?int $height = null, ?float $aspectRatio = null, ?int $audioChannels = null, ?string $audioCodec = null, ?string $videoCodec = null, ?string $videoResolution = null, ?string $container = null, ?string $videoFrameRate = null, ?int $optimizedForStreaming = null, ?string $audioProfile = null, ?bool $has64bitOffsets = null, ?string $videoProfile = null, ?array $part = null) { - $this->id = null; - $this->duration = null; - $this->bitrate = null; - $this->width = null; - $this->height = null; - $this->aspectRatio = null; - $this->audioChannels = null; - $this->audioCodec = null; - $this->videoCodec = null; - $this->videoResolution = null; - $this->container = null; - $this->videoFrameRate = null; - $this->optimizedForStreaming = null; - $this->audioProfile = null; - $this->has64bitOffsets = null; - $this->videoProfile = null; - $this->part = null; + $this->id = $id; + $this->duration = $duration; + $this->bitrate = $bitrate; + $this->width = $width; + $this->height = $height; + $this->aspectRatio = $aspectRatio; + $this->audioChannels = $audioChannels; + $this->audioCodec = $audioCodec; + $this->videoCodec = $videoCodec; + $this->videoResolution = $videoResolution; + $this->container = $container; + $this->videoFrameRate = $videoFrameRate; + $this->optimizedForStreaming = $optimizedForStreaming; + $this->audioProfile = $audioProfile; + $this->has64bitOffsets = $has64bitOffsets; + $this->videoProfile = $videoProfile; + $this->part = $part; } } \ No newline at end of file diff --git a/src/Models/Operations/GetMetadataMediaContainer.php b/src/Models/Operations/GetMetadataMediaContainer.php index 39987bd..c3e2cf2 100644 --- a/src/Models/Operations/GetMetadataMediaContainer.php +++ b/src/Models/Operations/GetMetadataMediaContainer.php @@ -1,7 +1,7 @@ $metadata + * @var ?array $metadata */ #[\JMS\Serializer\Annotation\SerializedName('Metadata')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetMetadataMetadata>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $metadata = null; - public function __construct() + /** + * @param ?int $size + * @param ?bool $allowSync + * @param ?string $identifier + * @param ?int $librarySectionID + * @param ?string $librarySectionTitle + * @param ?string $librarySectionUUID + * @param ?string $mediaTagPrefix + * @param ?int $mediaTagVersion + * @param ?array $metadata + */ + public function __construct(?int $size = null, ?bool $allowSync = null, ?string $identifier = null, ?int $librarySectionID = null, ?string $librarySectionTitle = null, ?string $librarySectionUUID = null, ?string $mediaTagPrefix = null, ?int $mediaTagVersion = null, ?array $metadata = null) { - $this->size = null; - $this->allowSync = null; - $this->identifier = null; - $this->librarySectionID = null; - $this->librarySectionTitle = null; - $this->librarySectionUUID = null; - $this->mediaTagPrefix = null; - $this->mediaTagVersion = null; - $this->metadata = null; + $this->size = $size; + $this->allowSync = $allowSync; + $this->identifier = $identifier; + $this->librarySectionID = $librarySectionID; + $this->librarySectionTitle = $librarySectionTitle; + $this->librarySectionUUID = $librarySectionUUID; + $this->mediaTagPrefix = $mediaTagPrefix; + $this->mediaTagVersion = $mediaTagVersion; + $this->metadata = $metadata; } } \ No newline at end of file diff --git a/src/Models/Operations/GetMetadataMetadata.php b/src/Models/Operations/GetMetadataMetadata.php index 0570055..b8c0ed2 100644 --- a/src/Models/Operations/GetMetadataMetadata.php +++ b/src/Models/Operations/GetMetadataMetadata.php @@ -1,260 +1,367 @@ ")] #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?\DateTime $originallyAvailableAt = null; + public ?LocalDate $originallyAvailableAt = null; + /** + * + * @var ?int $addedAt + */ #[\JMS\Serializer\Annotation\SerializedName('addedAt')] - #[\JMS\Serializer\Annotation\Type('int')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?int $addedAt = null; + /** + * + * @var ?int $updatedAt + */ #[\JMS\Serializer\Annotation\SerializedName('updatedAt')] - #[\JMS\Serializer\Annotation\Type('int')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?int $updatedAt = null; + /** + * + * @var ?string $audienceRatingImage + */ #[\JMS\Serializer\Annotation\SerializedName('audienceRatingImage')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $audienceRatingImage = null; + /** + * + * @var ?string $hasPremiumPrimaryExtra + */ #[\JMS\Serializer\Annotation\SerializedName('hasPremiumPrimaryExtra')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $hasPremiumPrimaryExtra = null; + /** + * + * @var ?string $ratingImage + */ #[\JMS\Serializer\Annotation\SerializedName('ratingImage')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $ratingImage = null; /** * $media * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetMetadataMedia> $media + * @var ?array $media */ #[\JMS\Serializer\Annotation\SerializedName('Media')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetMetadataMedia>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $media = null; /** * $genre * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetMetadataGenre> $genre + * @var ?array $genre */ #[\JMS\Serializer\Annotation\SerializedName('Genre')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetMetadataGenre>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $genre = null; /** * $country * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetMetadataCountry> $country + * @var ?array $country */ #[\JMS\Serializer\Annotation\SerializedName('Country')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetMetadataCountry>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $country = null; /** * $guids * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\Guids> $guids + * @var ?array $guids */ #[\JMS\Serializer\Annotation\SerializedName('Guid')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\Guids>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $guids = null; /** * $ratings * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\Ratings> $ratings + * @var ?array $ratings */ #[\JMS\Serializer\Annotation\SerializedName('Rating')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\Ratings>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $ratings = null; /** * $director * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetMetadataDirector> $director + * @var ?array $director */ #[\JMS\Serializer\Annotation\SerializedName('Director')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetMetadataDirector>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $director = null; /** * $writer * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetMetadataWriter> $writer + * @var ?array $writer */ #[\JMS\Serializer\Annotation\SerializedName('Writer')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetMetadataWriter>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $writer = null; /** * $role * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetMetadataRole> $role + * @var ?array $role */ #[\JMS\Serializer\Annotation\SerializedName('Role')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetMetadataRole>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $role = null; /** * $producer * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\Producer> $producer + * @var ?array $producer */ #[\JMS\Serializer\Annotation\SerializedName('Producer')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\Producer>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $producer = null; - public function __construct() + /** + * @param ?string $ratingKey + * @param ?string $key + * @param ?string $guid + * @param ?string $studio + * @param ?string $type + * @param ?string $title + * @param ?string $librarySectionTitle + * @param ?int $librarySectionID + * @param ?string $librarySectionKey + * @param ?string $contentRating + * @param ?string $summary + * @param ?float $rating + * @param ?float $audienceRating + * @param ?int $year + * @param ?string $tagline + * @param ?string $thumb + * @param ?string $art + * @param ?int $duration + * @param ?LocalDate $originallyAvailableAt + * @param ?int $addedAt + * @param ?int $updatedAt + * @param ?string $audienceRatingImage + * @param ?string $hasPremiumPrimaryExtra + * @param ?string $ratingImage + * @param ?array $media + * @param ?array $genre + * @param ?array $country + * @param ?array $guids + * @param ?array $ratings + * @param ?array $director + * @param ?array $writer + * @param ?array $role + * @param ?array $producer + */ + public function __construct(?string $ratingKey = null, ?string $key = null, ?string $guid = null, ?string $studio = null, ?string $type = null, ?string $title = null, ?string $librarySectionTitle = null, ?int $librarySectionID = null, ?string $librarySectionKey = null, ?string $contentRating = null, ?string $summary = null, ?float $rating = null, ?float $audienceRating = null, ?int $year = null, ?string $tagline = null, ?string $thumb = null, ?string $art = null, ?int $duration = null, ?LocalDate $originallyAvailableAt = null, ?int $addedAt = null, ?int $updatedAt = null, ?string $audienceRatingImage = null, ?string $hasPremiumPrimaryExtra = null, ?string $ratingImage = null, ?array $media = null, ?array $genre = null, ?array $country = null, ?array $guids = null, ?array $ratings = null, ?array $director = null, ?array $writer = null, ?array $role = null, ?array $producer = null) { - $this->ratingKey = null; - $this->key = null; - $this->guid = null; - $this->studio = null; - $this->type = null; - $this->title = null; - $this->librarySectionTitle = null; - $this->librarySectionID = null; - $this->librarySectionKey = null; - $this->contentRating = null; - $this->summary = null; - $this->rating = null; - $this->audienceRating = null; - $this->year = null; - $this->tagline = null; - $this->thumb = null; - $this->art = null; - $this->duration = null; - $this->originallyAvailableAt = null; - $this->addedAt = null; - $this->updatedAt = null; - $this->audienceRatingImage = null; - $this->hasPremiumPrimaryExtra = null; - $this->ratingImage = null; - $this->media = null; - $this->genre = null; - $this->country = null; - $this->guids = null; - $this->ratings = null; - $this->director = null; - $this->writer = null; - $this->role = null; - $this->producer = null; + $this->ratingKey = $ratingKey; + $this->key = $key; + $this->guid = $guid; + $this->studio = $studio; + $this->type = $type; + $this->title = $title; + $this->librarySectionTitle = $librarySectionTitle; + $this->librarySectionID = $librarySectionID; + $this->librarySectionKey = $librarySectionKey; + $this->contentRating = $contentRating; + $this->summary = $summary; + $this->rating = $rating; + $this->audienceRating = $audienceRating; + $this->year = $year; + $this->tagline = $tagline; + $this->thumb = $thumb; + $this->art = $art; + $this->duration = $duration; + $this->originallyAvailableAt = $originallyAvailableAt; + $this->addedAt = $addedAt; + $this->updatedAt = $updatedAt; + $this->audienceRatingImage = $audienceRatingImage; + $this->hasPremiumPrimaryExtra = $hasPremiumPrimaryExtra; + $this->ratingImage = $ratingImage; + $this->media = $media; + $this->genre = $genre; + $this->country = $country; + $this->guids = $guids; + $this->ratings = $ratings; + $this->director = $director; + $this->writer = $writer; + $this->role = $role; + $this->producer = $producer; } } \ No newline at end of file diff --git a/src/Models/Operations/GetMetadataPart.php b/src/Models/Operations/GetMetadataPart.php index d837e91..8575833 100644 --- a/src/Models/Operations/GetMetadataPart.php +++ b/src/Models/Operations/GetMetadataPart.php @@ -1,7 +1,7 @@ $stream + * @var ?array $stream */ #[\JMS\Serializer\Annotation\SerializedName('Stream')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\Stream>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $stream = null; - public function __construct() + /** + * @param ?int $id + * @param ?string $key + * @param ?int $duration + * @param ?string $file + * @param ?int $size + * @param ?string $audioProfile + * @param ?string $container + * @param ?bool $has64bitOffsets + * @param ?bool $optimizedForStreaming + * @param ?string $videoProfile + * @param ?array $stream + */ + public function __construct(?int $id = null, ?string $key = null, ?int $duration = null, ?string $file = null, ?int $size = null, ?string $audioProfile = null, ?string $container = null, ?bool $has64bitOffsets = null, ?bool $optimizedForStreaming = null, ?string $videoProfile = null, ?array $stream = null) { - $this->id = null; - $this->key = null; - $this->duration = null; - $this->file = null; - $this->size = null; - $this->audioProfile = null; - $this->container = null; - $this->has64bitOffsets = null; - $this->optimizedForStreaming = null; - $this->videoProfile = null; - $this->stream = null; + $this->id = $id; + $this->key = $key; + $this->duration = $duration; + $this->file = $file; + $this->size = $size; + $this->audioProfile = $audioProfile; + $this->container = $container; + $this->has64bitOffsets = $has64bitOffsets; + $this->optimizedForStreaming = $optimizedForStreaming; + $this->videoProfile = $videoProfile; + $this->stream = $stream; } } \ No newline at end of file diff --git a/src/Models/Operations/GetMetadataRequest.php b/src/Models/Operations/GetMetadataRequest.php index 818eb8d..2c7e20f 100644 --- a/src/Models/Operations/GetMetadataRequest.php +++ b/src/Models/Operations/GetMetadataRequest.php @@ -1,7 +1,7 @@ ratingKey = 0; + $this->ratingKey = $ratingKey; } } \ No newline at end of file diff --git a/src/Models/Operations/GetMetadataResponse.php b/src/Models/Operations/GetMetadataResponse.php index 38a97e4..88dee3a 100644 --- a/src/Models/Operations/GetMetadataResponse.php +++ b/src/Models/Operations/GetMetadataResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->twoHundredApplicationJsonObject = null; - $this->fourHundredAndOneApplicationJsonObject = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->object = $object; } } \ No newline at end of file diff --git a/src/Models/Operations/GetMetadataResponseBody.php b/src/Models/Operations/GetMetadataResponseBody.php index bc2a747..d04f525 100644 --- a/src/Models/Operations/GetMetadataResponseBody.php +++ b/src/Models/Operations/GetMetadataResponseBody.php @@ -1,7 +1,7 @@ mediaContainer = null; + $this->mediaContainer = $mediaContainer; } } \ No newline at end of file diff --git a/src/Models/Operations/GetMetadataRole.php b/src/Models/Operations/GetMetadataRole.php index c853712..8fb66d5 100644 --- a/src/Models/Operations/GetMetadataRole.php +++ b/src/Models/Operations/GetMetadataRole.php @@ -1,7 +1,7 @@ id = null; - $this->filter = null; - $this->tag = null; - $this->tagKey = null; - $this->role = null; - $this->thumb = null; + $this->id = $id; + $this->filter = $filter; + $this->tag = $tag; + $this->tagKey = $tagKey; + $this->role = $role; + $this->thumb = $thumb; } } \ No newline at end of file diff --git a/src/Models/Operations/GetMetadataWriter.php b/src/Models/Operations/GetMetadataWriter.php index 1d15712..8d736f7 100644 --- a/src/Models/Operations/GetMetadataWriter.php +++ b/src/Models/Operations/GetMetadataWriter.php @@ -1,7 +1,7 @@ id = null; - $this->filter = null; - $this->tag = null; - $this->tagKey = null; - $this->thumb = null; + $this->id = $id; + $this->filter = $filter; + $this->tag = $tag; + $this->tagKey = $tagKey; + $this->thumb = $thumb; } } \ No newline at end of file diff --git a/src/Models/Operations/GetMyPlexAccountErrors.php b/src/Models/Operations/GetMyPlexAccountErrors.php deleted file mode 100644 index f426efc..0000000 --- a/src/Models/Operations/GetMyPlexAccountErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetMyPlexAccountResponse.php b/src/Models/Operations/GetMyPlexAccountResponse.php index 7793fbc..de7286f 100644 --- a/src/Models/Operations/GetMyPlexAccountResponse.php +++ b/src/Models/Operations/GetMyPlexAccountResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->twoHundredApplicationJsonObject = null; - $this->fourHundredAndOneApplicationJsonObject = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->object = $object; } } \ No newline at end of file diff --git a/src/Models/Operations/GetMyPlexAccountResponseBody.php b/src/Models/Operations/GetMyPlexAccountResponseBody.php index 940af63..a9e37a1 100644 --- a/src/Models/Operations/GetMyPlexAccountResponseBody.php +++ b/src/Models/Operations/GetMyPlexAccountResponseBody.php @@ -1,7 +1,7 @@ myPlex = null; + $this->myPlex = $myPlex; } } \ No newline at end of file diff --git a/src/Models/Operations/GetMyPlexAccountServerResponseBody.php b/src/Models/Operations/GetMyPlexAccountServerResponseBody.php deleted file mode 100644 index 3139062..0000000 --- a/src/Models/Operations/GetMyPlexAccountServerResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetOnDeckErrors.php b/src/Models/Operations/GetOnDeckErrors.php deleted file mode 100644 index 105d447..0000000 --- a/src/Models/Operations/GetOnDeckErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetOnDeckGuids.php b/src/Models/Operations/GetOnDeckGuids.php index 7611efd..90cbcf5 100644 --- a/src/Models/Operations/GetOnDeckGuids.php +++ b/src/Models/Operations/GetOnDeckGuids.php @@ -1,7 +1,7 @@ id = null; + $this->id = $id; } } \ No newline at end of file diff --git a/src/Models/Operations/GetOnDeckLibraryResponseBody.php b/src/Models/Operations/GetOnDeckLibraryResponseBody.php deleted file mode 100644 index 86494d6..0000000 --- a/src/Models/Operations/GetOnDeckLibraryResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetOnDeckMedia.php b/src/Models/Operations/GetOnDeckMedia.php index 9581a0b..c94b84e 100644 --- a/src/Models/Operations/GetOnDeckMedia.php +++ b/src/Models/Operations/GetOnDeckMedia.php @@ -1,7 +1,7 @@ $part + * @var ?array $part */ #[\JMS\Serializer\Annotation\SerializedName('Part')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetOnDeckPart>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $part = null; - public function __construct() + /** + * @param ?float $id + * @param ?float $duration + * @param ?float $bitrate + * @param ?float $width + * @param ?float $height + * @param ?float $aspectRatio + * @param ?float $audioChannels + * @param ?string $audioCodec + * @param ?string $videoCodec + * @param ?string $videoResolution + * @param ?string $container + * @param ?string $videoFrameRate + * @param ?string $audioProfile + * @param ?string $videoProfile + * @param ?array $part + */ + public function __construct(?float $id = null, ?float $duration = null, ?float $bitrate = null, ?float $width = null, ?float $height = null, ?float $aspectRatio = null, ?float $audioChannels = null, ?string $audioCodec = null, ?string $videoCodec = null, ?string $videoResolution = null, ?string $container = null, ?string $videoFrameRate = null, ?string $audioProfile = null, ?string $videoProfile = null, ?array $part = null) { - $this->id = null; - $this->duration = null; - $this->bitrate = null; - $this->width = null; - $this->height = null; - $this->aspectRatio = null; - $this->audioChannels = null; - $this->audioCodec = null; - $this->videoCodec = null; - $this->videoResolution = null; - $this->container = null; - $this->videoFrameRate = null; - $this->audioProfile = null; - $this->videoProfile = null; - $this->part = null; + $this->id = $id; + $this->duration = $duration; + $this->bitrate = $bitrate; + $this->width = $width; + $this->height = $height; + $this->aspectRatio = $aspectRatio; + $this->audioChannels = $audioChannels; + $this->audioCodec = $audioCodec; + $this->videoCodec = $videoCodec; + $this->videoResolution = $videoResolution; + $this->container = $container; + $this->videoFrameRate = $videoFrameRate; + $this->audioProfile = $audioProfile; + $this->videoProfile = $videoProfile; + $this->part = $part; } } \ No newline at end of file diff --git a/src/Models/Operations/GetOnDeckMediaContainer.php b/src/Models/Operations/GetOnDeckMediaContainer.php index 3041cad..536ba97 100644 --- a/src/Models/Operations/GetOnDeckMediaContainer.php +++ b/src/Models/Operations/GetOnDeckMediaContainer.php @@ -1,7 +1,7 @@ $metadata + * @var ?array $metadata */ #[\JMS\Serializer\Annotation\SerializedName('Metadata')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetOnDeckMetadata>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $metadata = null; - public function __construct() + /** + * @param ?float $size + * @param ?bool $allowSync + * @param ?string $identifier + * @param ?string $mediaTagPrefix + * @param ?float $mediaTagVersion + * @param ?bool $mixedParents + * @param ?array $metadata + */ + public function __construct(?float $size = null, ?bool $allowSync = null, ?string $identifier = null, ?string $mediaTagPrefix = null, ?float $mediaTagVersion = null, ?bool $mixedParents = null, ?array $metadata = null) { - $this->size = null; - $this->allowSync = null; - $this->identifier = null; - $this->mediaTagPrefix = null; - $this->mediaTagVersion = null; - $this->mixedParents = null; - $this->metadata = null; + $this->size = $size; + $this->allowSync = $allowSync; + $this->identifier = $identifier; + $this->mediaTagPrefix = $mediaTagPrefix; + $this->mediaTagVersion = $mediaTagVersion; + $this->mixedParents = $mixedParents; + $this->metadata = $metadata; } } \ No newline at end of file diff --git a/src/Models/Operations/GetOnDeckMetadata.php b/src/Models/Operations/GetOnDeckMetadata.php index c26bd1a..cc23284 100644 --- a/src/Models/Operations/GetOnDeckMetadata.php +++ b/src/Models/Operations/GetOnDeckMetadata.php @@ -1,7 +1,7 @@ ")] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?\DateTime $originallyAvailableAt = null; + /** + * + * @var ?float $addedAt + */ #[\JMS\Serializer\Annotation\SerializedName('addedAt')] - #[\JMS\Serializer\Annotation\Type('float')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?float $addedAt = null; + /** + * + * @var ?float $updatedAt + */ #[\JMS\Serializer\Annotation\SerializedName('updatedAt')] - #[\JMS\Serializer\Annotation\Type('float')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?float $updatedAt = null; /** * $media * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetOnDeckMedia> $media + * @var ?array $media */ #[\JMS\Serializer\Annotation\SerializedName('Media')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetOnDeckMedia>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $media = null; /** * $guids * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetOnDeckGuids> $guids + * @var ?array $guids */ #[\JMS\Serializer\Annotation\SerializedName('Guid')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetOnDeckGuids>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $guids = null; - public function __construct() + /** + * @param ?bool $allowSync + * @param ?float $librarySectionID + * @param ?string $librarySectionTitle + * @param ?string $librarySectionUUID + * @param ?float $ratingKey + * @param ?string $key + * @param ?float $parentRatingKey + * @param ?float $grandparentRatingKey + * @param ?string $guid + * @param ?string $parentGuid + * @param ?string $grandparentGuid + * @param ?string $type + * @param ?string $title + * @param ?string $grandparentKey + * @param ?string $parentKey + * @param ?string $librarySectionKey + * @param ?string $grandparentTitle + * @param ?string $parentTitle + * @param ?string $contentRating + * @param ?string $summary + * @param ?float $index + * @param ?float $parentIndex + * @param ?float $lastViewedAt + * @param ?float $year + * @param ?string $thumb + * @param ?string $art + * @param ?string $parentThumb + * @param ?string $grandparentThumb + * @param ?string $grandparentArt + * @param ?string $grandparentTheme + * @param ?float $duration + * @param ?\DateTime $originallyAvailableAt + * @param ?float $addedAt + * @param ?float $updatedAt + * @param ?array $media + * @param ?array $guids + */ + public function __construct(?bool $allowSync = null, ?float $librarySectionID = null, ?string $librarySectionTitle = null, ?string $librarySectionUUID = null, ?float $ratingKey = null, ?string $key = null, ?float $parentRatingKey = null, ?float $grandparentRatingKey = null, ?string $guid = null, ?string $parentGuid = null, ?string $grandparentGuid = null, ?string $type = null, ?string $title = null, ?string $grandparentKey = null, ?string $parentKey = null, ?string $librarySectionKey = null, ?string $grandparentTitle = null, ?string $parentTitle = null, ?string $contentRating = null, ?string $summary = null, ?float $index = null, ?float $parentIndex = null, ?float $lastViewedAt = null, ?float $year = null, ?string $thumb = null, ?string $art = null, ?string $parentThumb = null, ?string $grandparentThumb = null, ?string $grandparentArt = null, ?string $grandparentTheme = null, ?float $duration = null, ?\DateTime $originallyAvailableAt = null, ?float $addedAt = null, ?float $updatedAt = null, ?array $media = null, ?array $guids = null) { - $this->allowSync = null; - $this->librarySectionID = null; - $this->librarySectionTitle = null; - $this->librarySectionUUID = null; - $this->ratingKey = null; - $this->key = null; - $this->parentRatingKey = null; - $this->grandparentRatingKey = null; - $this->guid = null; - $this->parentGuid = null; - $this->grandparentGuid = null; - $this->type = null; - $this->title = null; - $this->grandparentKey = null; - $this->parentKey = null; - $this->librarySectionKey = null; - $this->grandparentTitle = null; - $this->parentTitle = null; - $this->contentRating = null; - $this->summary = null; - $this->index = null; - $this->parentIndex = null; - $this->lastViewedAt = null; - $this->year = null; - $this->thumb = null; - $this->art = null; - $this->parentThumb = null; - $this->grandparentThumb = null; - $this->grandparentArt = null; - $this->grandparentTheme = null; - $this->duration = null; - $this->originallyAvailableAt = null; - $this->addedAt = null; - $this->updatedAt = null; - $this->media = null; - $this->guids = null; + $this->allowSync = $allowSync; + $this->librarySectionID = $librarySectionID; + $this->librarySectionTitle = $librarySectionTitle; + $this->librarySectionUUID = $librarySectionUUID; + $this->ratingKey = $ratingKey; + $this->key = $key; + $this->parentRatingKey = $parentRatingKey; + $this->grandparentRatingKey = $grandparentRatingKey; + $this->guid = $guid; + $this->parentGuid = $parentGuid; + $this->grandparentGuid = $grandparentGuid; + $this->type = $type; + $this->title = $title; + $this->grandparentKey = $grandparentKey; + $this->parentKey = $parentKey; + $this->librarySectionKey = $librarySectionKey; + $this->grandparentTitle = $grandparentTitle; + $this->parentTitle = $parentTitle; + $this->contentRating = $contentRating; + $this->summary = $summary; + $this->index = $index; + $this->parentIndex = $parentIndex; + $this->lastViewedAt = $lastViewedAt; + $this->year = $year; + $this->thumb = $thumb; + $this->art = $art; + $this->parentThumb = $parentThumb; + $this->grandparentThumb = $grandparentThumb; + $this->grandparentArt = $grandparentArt; + $this->grandparentTheme = $grandparentTheme; + $this->duration = $duration; + $this->originallyAvailableAt = $originallyAvailableAt; + $this->addedAt = $addedAt; + $this->updatedAt = $updatedAt; + $this->media = $media; + $this->guids = $guids; } } \ No newline at end of file diff --git a/src/Models/Operations/GetOnDeckPart.php b/src/Models/Operations/GetOnDeckPart.php index d30ac78..f2e2d21 100644 --- a/src/Models/Operations/GetOnDeckPart.php +++ b/src/Models/Operations/GetOnDeckPart.php @@ -1,7 +1,7 @@ $stream + * @var ?array $stream */ #[\JMS\Serializer\Annotation\SerializedName('Stream')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetOnDeckStream>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $stream = null; - public function __construct() + /** + * @param ?float $id + * @param ?string $key + * @param ?float $duration + * @param ?string $file + * @param ?float $size + * @param ?string $audioProfile + * @param ?string $container + * @param ?string $videoProfile + * @param ?array $stream + */ + public function __construct(?float $id = null, ?string $key = null, ?float $duration = null, ?string $file = null, ?float $size = null, ?string $audioProfile = null, ?string $container = null, ?string $videoProfile = null, ?array $stream = null) { - $this->id = null; - $this->key = null; - $this->duration = null; - $this->file = null; - $this->size = null; - $this->audioProfile = null; - $this->container = null; - $this->videoProfile = null; - $this->stream = null; + $this->id = $id; + $this->key = $key; + $this->duration = $duration; + $this->file = $file; + $this->size = $size; + $this->audioProfile = $audioProfile; + $this->container = $container; + $this->videoProfile = $videoProfile; + $this->stream = $stream; } } \ No newline at end of file diff --git a/src/Models/Operations/GetOnDeckResponse.php b/src/Models/Operations/GetOnDeckResponse.php index 539039b..1c6e47f 100644 --- a/src/Models/Operations/GetOnDeckResponse.php +++ b/src/Models/Operations/GetOnDeckResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->twoHundredApplicationJsonObject = null; - $this->fourHundredAndOneApplicationJsonObject = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->object = $object; } } \ No newline at end of file diff --git a/src/Models/Operations/GetOnDeckResponseBody.php b/src/Models/Operations/GetOnDeckResponseBody.php index 1139031..fb4938a 100644 --- a/src/Models/Operations/GetOnDeckResponseBody.php +++ b/src/Models/Operations/GetOnDeckResponseBody.php @@ -1,7 +1,7 @@ mediaContainer = null; + $this->mediaContainer = $mediaContainer; } } \ No newline at end of file diff --git a/src/Models/Operations/GetOnDeckStream.php b/src/Models/Operations/GetOnDeckStream.php index 5b11d48..05cc724 100644 --- a/src/Models/Operations/GetOnDeckStream.php +++ b/src/Models/Operations/GetOnDeckStream.php @@ -1,7 +1,7 @@ id = null; - $this->streamType = null; - $this->default = null; - $this->codec = null; - $this->index = null; - $this->bitrate = null; - $this->language = null; - $this->languageTag = null; - $this->languageCode = null; - $this->bitDepth = null; - $this->chromaLocation = null; - $this->chromaSubsampling = null; - $this->codedHeight = null; - $this->codedWidth = null; - $this->colorRange = null; - $this->frameRate = null; - $this->height = null; - $this->level = null; - $this->profile = null; - $this->refFrames = null; - $this->width = null; - $this->displayTitle = null; - $this->extendedDisplayTitle = null; + $this->id = $id; + $this->streamType = $streamType; + $this->default = $default; + $this->codec = $codec; + $this->index = $index; + $this->bitrate = $bitrate; + $this->language = $language; + $this->languageTag = $languageTag; + $this->languageCode = $languageCode; + $this->bitDepth = $bitDepth; + $this->chromaLocation = $chromaLocation; + $this->chromaSubsampling = $chromaSubsampling; + $this->codedHeight = $codedHeight; + $this->codedWidth = $codedWidth; + $this->colorRange = $colorRange; + $this->frameRate = $frameRate; + $this->height = $height; + $this->level = $level; + $this->profile = $profile; + $this->refFrames = $refFrames; + $this->width = $width; + $this->displayTitle = $displayTitle; + $this->extendedDisplayTitle = $extendedDisplayTitle; } } \ No newline at end of file diff --git a/src/Models/Operations/GetPinErrors.php b/src/Models/Operations/GetPinErrors.php deleted file mode 100644 index f137745..0000000 --- a/src/Models/Operations/GetPinErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetPinPlexResponseBody.php b/src/Models/Operations/GetPinPlexResponseBody.php deleted file mode 100644 index 00a5b3e..0000000 --- a/src/Models/Operations/GetPinPlexResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetPinRequest.php b/src/Models/Operations/GetPinRequest.php index 55851ff..44383be 100644 --- a/src/Models/Operations/GetPinRequest.php +++ b/src/Models/Operations/GetPinRequest.php @@ -1,7 +1,7 @@ xPlexProduct = ''; - $this->strong = null; - $this->xPlexClientIdentifier = null; + $this->xPlexProduct = $xPlexProduct; + $this->strong = $strong; + $this->xPlexClientIdentifier = $xPlexClientIdentifier; } } \ No newline at end of file diff --git a/src/Models/Operations/GetPinResponse.php b/src/Models/Operations/GetPinResponse.php index 1769ada..2201381 100644 --- a/src/Models/Operations/GetPinResponse.php +++ b/src/Models/Operations/GetPinResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->twoHundredAndOneApplicationJsonObject = null; - $this->fourHundredApplicationJsonObject = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->object = $object; } } \ No newline at end of file diff --git a/src/Models/Operations/GetPinResponseBody.php b/src/Models/Operations/GetPinResponseBody.php index a7ee30b..00da849 100644 --- a/src/Models/Operations/GetPinResponseBody.php +++ b/src/Models/Operations/GetPinResponseBody.php @@ -1,7 +1,7 @@ ")] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?\DateTime $createdAt = null; + /** + * + * @var ?\DateTime $expiresAt + */ #[\JMS\Serializer\Annotation\SerializedName('expiresAt')] - #[\JMS\Serializer\Annotation\Type("DateTime<'Y-m-d\TH:i:s.up'>")] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?\DateTime $expiresAt = null; + /** + * + * @var ?string $authToken + */ #[\JMS\Serializer\Annotation\SerializedName('authToken')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $authToken = null; + /** + * + * @var ?bool $newRegistration + */ #[\JMS\Serializer\Annotation\SerializedName('newRegistration')] - #[\JMS\Serializer\Annotation\Type('bool')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?bool $newRegistration = null; - public function __construct() + /** + * @param ?float $id + * @param ?string $code + * @param ?string $product + * @param ?bool $trusted + * @param ?string $qr + * @param ?string $clientIdentifier + * @param ?Location $location + * @param ?float $expiresIn + * @param ?\DateTime $createdAt + * @param ?\DateTime $expiresAt + * @param ?string $authToken + * @param ?bool $newRegistration + */ + public function __construct(?float $id = null, ?string $code = null, ?string $product = null, ?bool $trusted = null, ?string $qr = null, ?string $clientIdentifier = null, ?Location $location = null, ?float $expiresIn = null, ?\DateTime $createdAt = null, ?\DateTime $expiresAt = null, ?string $authToken = null, ?bool $newRegistration = null) { - $this->id = null; - $this->code = null; - $this->product = null; - $this->trusted = null; - $this->qr = null; - $this->clientIdentifier = null; - $this->location = null; - $this->expiresIn = null; - $this->createdAt = null; - $this->expiresAt = null; - $this->authToken = null; - $this->newRegistration = null; + $this->id = $id; + $this->code = $code; + $this->product = $product; + $this->trusted = $trusted; + $this->qr = $qr; + $this->clientIdentifier = $clientIdentifier; + $this->location = $location; + $this->expiresIn = $expiresIn; + $this->createdAt = $createdAt; + $this->expiresAt = $expiresAt; + $this->authToken = $authToken; + $this->newRegistration = $newRegistration; } } \ No newline at end of file diff --git a/src/Models/Operations/GetPlaylistContentsCountry.php b/src/Models/Operations/GetPlaylistContentsCountry.php index 673b259..a410a4a 100644 --- a/src/Models/Operations/GetPlaylistContentsCountry.php +++ b/src/Models/Operations/GetPlaylistContentsCountry.php @@ -1,7 +1,7 @@ tag = null; + $this->tag = $tag; } } \ No newline at end of file diff --git a/src/Models/Operations/GetPlaylistContentsDirector.php b/src/Models/Operations/GetPlaylistContentsDirector.php index 5199d25..99e1e21 100644 --- a/src/Models/Operations/GetPlaylistContentsDirector.php +++ b/src/Models/Operations/GetPlaylistContentsDirector.php @@ -1,7 +1,7 @@ tag = null; + $this->tag = $tag; } } \ No newline at end of file diff --git a/src/Models/Operations/GetPlaylistContentsErrors.php b/src/Models/Operations/GetPlaylistContentsErrors.php deleted file mode 100644 index 7fecf5b..0000000 --- a/src/Models/Operations/GetPlaylistContentsErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetPlaylistContentsGenre.php b/src/Models/Operations/GetPlaylistContentsGenre.php index 7ef1f23..0f59353 100644 --- a/src/Models/Operations/GetPlaylistContentsGenre.php +++ b/src/Models/Operations/GetPlaylistContentsGenre.php @@ -1,7 +1,7 @@ tag = null; + $this->tag = $tag; } } \ No newline at end of file diff --git a/src/Models/Operations/GetPlaylistContentsMedia.php b/src/Models/Operations/GetPlaylistContentsMedia.php index 15e3797..24ece3d 100644 --- a/src/Models/Operations/GetPlaylistContentsMedia.php +++ b/src/Models/Operations/GetPlaylistContentsMedia.php @@ -1,7 +1,7 @@ $part + * @var ?array $part */ #[\JMS\Serializer\Annotation\SerializedName('Part')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetPlaylistContentsPart>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $part = null; - public function __construct() + /** + * @param ?int $id + * @param ?int $duration + * @param ?int $bitrate + * @param ?int $width + * @param ?int $height + * @param ?float $aspectRatio + * @param ?int $audioChannels + * @param ?string $audioCodec + * @param ?string $videoCodec + * @param ?string $videoResolution + * @param ?string $container + * @param ?string $videoFrameRate + * @param ?int $optimizedForStreaming + * @param ?string $audioProfile + * @param ?bool $has64bitOffsets + * @param ?string $videoProfile + * @param ?array $part + */ + public function __construct(?int $id = null, ?int $duration = null, ?int $bitrate = null, ?int $width = null, ?int $height = null, ?float $aspectRatio = null, ?int $audioChannels = null, ?string $audioCodec = null, ?string $videoCodec = null, ?string $videoResolution = null, ?string $container = null, ?string $videoFrameRate = null, ?int $optimizedForStreaming = null, ?string $audioProfile = null, ?bool $has64bitOffsets = null, ?string $videoProfile = null, ?array $part = null) { - $this->id = null; - $this->duration = null; - $this->bitrate = null; - $this->width = null; - $this->height = null; - $this->aspectRatio = null; - $this->audioChannels = null; - $this->audioCodec = null; - $this->videoCodec = null; - $this->videoResolution = null; - $this->container = null; - $this->videoFrameRate = null; - $this->optimizedForStreaming = null; - $this->audioProfile = null; - $this->has64bitOffsets = null; - $this->videoProfile = null; - $this->part = null; + $this->id = $id; + $this->duration = $duration; + $this->bitrate = $bitrate; + $this->width = $width; + $this->height = $height; + $this->aspectRatio = $aspectRatio; + $this->audioChannels = $audioChannels; + $this->audioCodec = $audioCodec; + $this->videoCodec = $videoCodec; + $this->videoResolution = $videoResolution; + $this->container = $container; + $this->videoFrameRate = $videoFrameRate; + $this->optimizedForStreaming = $optimizedForStreaming; + $this->audioProfile = $audioProfile; + $this->has64bitOffsets = $has64bitOffsets; + $this->videoProfile = $videoProfile; + $this->part = $part; } } \ No newline at end of file diff --git a/src/Models/Operations/GetPlaylistContentsMediaContainer.php b/src/Models/Operations/GetPlaylistContentsMediaContainer.php index 9a05a5a..3fec2ef 100644 --- a/src/Models/Operations/GetPlaylistContentsMediaContainer.php +++ b/src/Models/Operations/GetPlaylistContentsMediaContainer.php @@ -1,7 +1,7 @@ $metadata + * @var ?array $metadata */ #[\JMS\Serializer\Annotation\SerializedName('Metadata')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetPlaylistContentsMetadata>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $metadata = null; - public function __construct() + /** + * @param ?int $size + * @param ?string $composite + * @param ?int $duration + * @param ?int $leafCount + * @param ?string $playlistType + * @param ?string $ratingKey + * @param ?bool $smart + * @param ?string $title + * @param ?array $metadata + */ + public function __construct(?int $size = null, ?string $composite = null, ?int $duration = null, ?int $leafCount = null, ?string $playlistType = null, ?string $ratingKey = null, ?bool $smart = null, ?string $title = null, ?array $metadata = null) { - $this->size = null; - $this->composite = null; - $this->duration = null; - $this->leafCount = null; - $this->playlistType = null; - $this->ratingKey = null; - $this->smart = null; - $this->title = null; - $this->metadata = null; + $this->size = $size; + $this->composite = $composite; + $this->duration = $duration; + $this->leafCount = $leafCount; + $this->playlistType = $playlistType; + $this->ratingKey = $ratingKey; + $this->smart = $smart; + $this->title = $title; + $this->metadata = $metadata; } } \ No newline at end of file diff --git a/src/Models/Operations/GetPlaylistContentsMetadata.php b/src/Models/Operations/GetPlaylistContentsMetadata.php index 5d61ca7..03f6714 100644 --- a/src/Models/Operations/GetPlaylistContentsMetadata.php +++ b/src/Models/Operations/GetPlaylistContentsMetadata.php @@ -1,239 +1,351 @@ ")] #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?\DateTime $originallyAvailableAt = null; + public ?LocalDate $originallyAvailableAt = null; + /** + * + * @var ?int $addedAt + */ #[\JMS\Serializer\Annotation\SerializedName('addedAt')] - #[\JMS\Serializer\Annotation\Type('int')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?int $addedAt = null; + /** + * + * @var ?int $updatedAt + */ #[\JMS\Serializer\Annotation\SerializedName('updatedAt')] - #[\JMS\Serializer\Annotation\Type('int')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?int $updatedAt = null; + /** + * + * @var ?string $audienceRatingImage + */ #[\JMS\Serializer\Annotation\SerializedName('audienceRatingImage')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $audienceRatingImage = null; + /** + * + * @var ?string $hasPremiumExtras + */ #[\JMS\Serializer\Annotation\SerializedName('hasPremiumExtras')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $hasPremiumExtras = null; + /** + * + * @var ?string $hasPremiumPrimaryExtra + */ #[\JMS\Serializer\Annotation\SerializedName('hasPremiumPrimaryExtra')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $hasPremiumPrimaryExtra = null; + /** + * + * @var ?string $ratingImage + */ #[\JMS\Serializer\Annotation\SerializedName('ratingImage')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $ratingImage = null; /** * $media * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetPlaylistContentsMedia> $media + * @var ?array $media */ #[\JMS\Serializer\Annotation\SerializedName('Media')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetPlaylistContentsMedia>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $media = null; /** * $genre * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetPlaylistContentsGenre> $genre + * @var ?array $genre */ #[\JMS\Serializer\Annotation\SerializedName('Genre')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetPlaylistContentsGenre>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $genre = null; /** * $country * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetPlaylistContentsCountry> $country + * @var ?array $country */ #[\JMS\Serializer\Annotation\SerializedName('Country')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetPlaylistContentsCountry>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $country = null; /** * $director * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetPlaylistContentsDirector> $director + * @var ?array $director */ #[\JMS\Serializer\Annotation\SerializedName('Director')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetPlaylistContentsDirector>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $director = null; /** * $writer * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetPlaylistContentsWriter> $writer + * @var ?array $writer */ #[\JMS\Serializer\Annotation\SerializedName('Writer')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetPlaylistContentsWriter>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $writer = null; /** * $role * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetPlaylistContentsRole> $role + * @var ?array $role */ #[\JMS\Serializer\Annotation\SerializedName('Role')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetPlaylistContentsRole>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $role = null; - public function __construct() + /** + * @param ?string $ratingKey + * @param ?string $key + * @param ?string $guid + * @param ?string $studio + * @param ?string $type + * @param ?string $title + * @param ?string $titleSort + * @param ?string $librarySectionTitle + * @param ?int $librarySectionID + * @param ?string $librarySectionKey + * @param ?string $contentRating + * @param ?string $summary + * @param ?float $rating + * @param ?float $audienceRating + * @param ?int $year + * @param ?string $tagline + * @param ?string $thumb + * @param ?string $art + * @param ?int $duration + * @param ?LocalDate $originallyAvailableAt + * @param ?int $addedAt + * @param ?int $updatedAt + * @param ?string $audienceRatingImage + * @param ?string $hasPremiumExtras + * @param ?string $hasPremiumPrimaryExtra + * @param ?string $ratingImage + * @param ?array $media + * @param ?array $genre + * @param ?array $country + * @param ?array $director + * @param ?array $writer + * @param ?array $role + */ + public function __construct(?string $ratingKey = null, ?string $key = null, ?string $guid = null, ?string $studio = null, ?string $type = null, ?string $title = null, ?string $titleSort = null, ?string $librarySectionTitle = null, ?int $librarySectionID = null, ?string $librarySectionKey = null, ?string $contentRating = null, ?string $summary = null, ?float $rating = null, ?float $audienceRating = null, ?int $year = null, ?string $tagline = null, ?string $thumb = null, ?string $art = null, ?int $duration = null, ?LocalDate $originallyAvailableAt = null, ?int $addedAt = null, ?int $updatedAt = null, ?string $audienceRatingImage = null, ?string $hasPremiumExtras = null, ?string $hasPremiumPrimaryExtra = null, ?string $ratingImage = null, ?array $media = null, ?array $genre = null, ?array $country = null, ?array $director = null, ?array $writer = null, ?array $role = null) { - $this->ratingKey = null; - $this->key = null; - $this->guid = null; - $this->studio = null; - $this->type = null; - $this->title = null; - $this->titleSort = null; - $this->librarySectionTitle = null; - $this->librarySectionID = null; - $this->librarySectionKey = null; - $this->contentRating = null; - $this->summary = null; - $this->rating = null; - $this->audienceRating = null; - $this->year = null; - $this->tagline = null; - $this->thumb = null; - $this->art = null; - $this->duration = null; - $this->originallyAvailableAt = null; - $this->addedAt = null; - $this->updatedAt = null; - $this->audienceRatingImage = null; - $this->hasPremiumExtras = null; - $this->hasPremiumPrimaryExtra = null; - $this->ratingImage = null; - $this->media = null; - $this->genre = null; - $this->country = null; - $this->director = null; - $this->writer = null; - $this->role = null; + $this->ratingKey = $ratingKey; + $this->key = $key; + $this->guid = $guid; + $this->studio = $studio; + $this->type = $type; + $this->title = $title; + $this->titleSort = $titleSort; + $this->librarySectionTitle = $librarySectionTitle; + $this->librarySectionID = $librarySectionID; + $this->librarySectionKey = $librarySectionKey; + $this->contentRating = $contentRating; + $this->summary = $summary; + $this->rating = $rating; + $this->audienceRating = $audienceRating; + $this->year = $year; + $this->tagline = $tagline; + $this->thumb = $thumb; + $this->art = $art; + $this->duration = $duration; + $this->originallyAvailableAt = $originallyAvailableAt; + $this->addedAt = $addedAt; + $this->updatedAt = $updatedAt; + $this->audienceRatingImage = $audienceRatingImage; + $this->hasPremiumExtras = $hasPremiumExtras; + $this->hasPremiumPrimaryExtra = $hasPremiumPrimaryExtra; + $this->ratingImage = $ratingImage; + $this->media = $media; + $this->genre = $genre; + $this->country = $country; + $this->director = $director; + $this->writer = $writer; + $this->role = $role; } } \ No newline at end of file diff --git a/src/Models/Operations/GetPlaylistContentsPart.php b/src/Models/Operations/GetPlaylistContentsPart.php index 43255be..9ebf409 100644 --- a/src/Models/Operations/GetPlaylistContentsPart.php +++ b/src/Models/Operations/GetPlaylistContentsPart.php @@ -1,7 +1,7 @@ id = null; - $this->key = null; - $this->duration = null; - $this->file = null; - $this->size = null; - $this->audioProfile = null; - $this->container = null; - $this->has64bitOffsets = null; - $this->optimizedForStreaming = null; - $this->videoProfile = null; + $this->id = $id; + $this->key = $key; + $this->duration = $duration; + $this->file = $file; + $this->size = $size; + $this->audioProfile = $audioProfile; + $this->container = $container; + $this->has64bitOffsets = $has64bitOffsets; + $this->optimizedForStreaming = $optimizedForStreaming; + $this->videoProfile = $videoProfile; } } \ No newline at end of file diff --git a/src/Models/Operations/GetPlaylistContentsPlaylistsResponseBody.php b/src/Models/Operations/GetPlaylistContentsPlaylistsResponseBody.php deleted file mode 100644 index 956250d..0000000 --- a/src/Models/Operations/GetPlaylistContentsPlaylistsResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetPlaylistContentsRequest.php b/src/Models/Operations/GetPlaylistContentsRequest.php index 0e2721c..b315cb8 100644 --- a/src/Models/Operations/GetPlaylistContentsRequest.php +++ b/src/Models/Operations/GetPlaylistContentsRequest.php @@ -1,7 +1,7 @@ playlistID = 0; - $this->type = 0; + $this->playlistID = $playlistID; + $this->type = $type; } } \ No newline at end of file diff --git a/src/Models/Operations/GetPlaylistContentsResponse.php b/src/Models/Operations/GetPlaylistContentsResponse.php index 9e28849..08d865d 100644 --- a/src/Models/Operations/GetPlaylistContentsResponse.php +++ b/src/Models/Operations/GetPlaylistContentsResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->twoHundredApplicationJsonObject = null; - $this->fourHundredAndOneApplicationJsonObject = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->object = $object; } } \ No newline at end of file diff --git a/src/Models/Operations/GetPlaylistContentsResponseBody.php b/src/Models/Operations/GetPlaylistContentsResponseBody.php index fe79d5c..561f2aa 100644 --- a/src/Models/Operations/GetPlaylistContentsResponseBody.php +++ b/src/Models/Operations/GetPlaylistContentsResponseBody.php @@ -1,7 +1,7 @@ mediaContainer = null; + $this->mediaContainer = $mediaContainer; } } \ No newline at end of file diff --git a/src/Models/Operations/GetPlaylistContentsRole.php b/src/Models/Operations/GetPlaylistContentsRole.php index 8ad640a..d0d2167 100644 --- a/src/Models/Operations/GetPlaylistContentsRole.php +++ b/src/Models/Operations/GetPlaylistContentsRole.php @@ -1,7 +1,7 @@ tag = null; + $this->tag = $tag; } } \ No newline at end of file diff --git a/src/Models/Operations/GetPlaylistContentsWriter.php b/src/Models/Operations/GetPlaylistContentsWriter.php index fc757f9..c6a1d4c 100644 --- a/src/Models/Operations/GetPlaylistContentsWriter.php +++ b/src/Models/Operations/GetPlaylistContentsWriter.php @@ -1,7 +1,7 @@ tag = null; + $this->tag = $tag; } } \ No newline at end of file diff --git a/src/Models/Operations/GetPlaylistErrors.php b/src/Models/Operations/GetPlaylistErrors.php deleted file mode 100644 index 66d39c5..0000000 --- a/src/Models/Operations/GetPlaylistErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetPlaylistMediaContainer.php b/src/Models/Operations/GetPlaylistMediaContainer.php index 8fceaf8..0801af8 100644 --- a/src/Models/Operations/GetPlaylistMediaContainer.php +++ b/src/Models/Operations/GetPlaylistMediaContainer.php @@ -1,7 +1,7 @@ $metadata + * @var ?array $metadata */ #[\JMS\Serializer\Annotation\SerializedName('Metadata')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetPlaylistMetadata>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $metadata = null; - public function __construct() + /** + * @param ?int $size + * @param ?array $metadata + */ + public function __construct(?int $size = null, ?array $metadata = null) { - $this->size = null; - $this->metadata = null; + $this->size = $size; + $this->metadata = $metadata; } } \ No newline at end of file diff --git a/src/Models/Operations/GetPlaylistMetadata.php b/src/Models/Operations/GetPlaylistMetadata.php index a250e0d..8bf289a 100644 --- a/src/Models/Operations/GetPlaylistMetadata.php +++ b/src/Models/Operations/GetPlaylistMetadata.php @@ -1,7 +1,7 @@ content = null; - $this->ratingKey = null; - $this->key = null; - $this->guid = null; - $this->type = null; - $this->title = null; - $this->summary = null; - $this->smart = null; - $this->playlistType = null; - $this->composite = null; - $this->icon = null; - $this->duration = null; - $this->leafCount = null; - $this->addedAt = null; - $this->updatedAt = null; + $this->content = $content; + $this->ratingKey = $ratingKey; + $this->key = $key; + $this->guid = $guid; + $this->type = $type; + $this->title = $title; + $this->summary = $summary; + $this->smart = $smart; + $this->playlistType = $playlistType; + $this->composite = $composite; + $this->icon = $icon; + $this->duration = $duration; + $this->leafCount = $leafCount; + $this->addedAt = $addedAt; + $this->updatedAt = $updatedAt; } } \ No newline at end of file diff --git a/src/Models/Operations/GetPlaylistPlaylistsResponseBody.php b/src/Models/Operations/GetPlaylistPlaylistsResponseBody.php deleted file mode 100644 index 28cfe64..0000000 --- a/src/Models/Operations/GetPlaylistPlaylistsResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetPlaylistRequest.php b/src/Models/Operations/GetPlaylistRequest.php index 439c936..640bba7 100644 --- a/src/Models/Operations/GetPlaylistRequest.php +++ b/src/Models/Operations/GetPlaylistRequest.php @@ -1,7 +1,7 @@ playlistID = 0; + $this->playlistID = $playlistID; } } \ No newline at end of file diff --git a/src/Models/Operations/GetPlaylistResponse.php b/src/Models/Operations/GetPlaylistResponse.php index d5bb494..efacb7d 100644 --- a/src/Models/Operations/GetPlaylistResponse.php +++ b/src/Models/Operations/GetPlaylistResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->twoHundredApplicationJsonObject = null; - $this->fourHundredAndOneApplicationJsonObject = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->object = $object; } } \ No newline at end of file diff --git a/src/Models/Operations/GetPlaylistResponseBody.php b/src/Models/Operations/GetPlaylistResponseBody.php index a8b60fd..842d9ad 100644 --- a/src/Models/Operations/GetPlaylistResponseBody.php +++ b/src/Models/Operations/GetPlaylistResponseBody.php @@ -1,7 +1,7 @@ mediaContainer = null; + $this->mediaContainer = $mediaContainer; } } \ No newline at end of file diff --git a/src/Models/Operations/GetPlaylistsErrors.php b/src/Models/Operations/GetPlaylistsErrors.php deleted file mode 100644 index d5756d2..0000000 --- a/src/Models/Operations/GetPlaylistsErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetPlaylistsMediaContainer.php b/src/Models/Operations/GetPlaylistsMediaContainer.php index 5230382..ee94d46 100644 --- a/src/Models/Operations/GetPlaylistsMediaContainer.php +++ b/src/Models/Operations/GetPlaylistsMediaContainer.php @@ -1,7 +1,7 @@ $metadata + * @var ?array $metadata */ #[\JMS\Serializer\Annotation\SerializedName('Metadata')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetPlaylistsMetadata>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $metadata = null; - public function __construct() + /** + * @param ?int $size + * @param ?array $metadata + */ + public function __construct(?int $size = null, ?array $metadata = null) { - $this->size = null; - $this->metadata = null; + $this->size = $size; + $this->metadata = $metadata; } } \ No newline at end of file diff --git a/src/Models/Operations/GetPlaylistsMetadata.php b/src/Models/Operations/GetPlaylistsMetadata.php index 18ad451..20595ac 100644 --- a/src/Models/Operations/GetPlaylistsMetadata.php +++ b/src/Models/Operations/GetPlaylistsMetadata.php @@ -1,7 +1,7 @@ ratingKey = null; - $this->key = null; - $this->guid = null; - $this->type = null; - $this->title = null; - $this->summary = null; - $this->smart = null; - $this->playlistType = null; - $this->composite = null; - $this->icon = null; - $this->viewCount = null; - $this->lastViewedAt = null; - $this->duration = null; - $this->leafCount = null; - $this->addedAt = null; - $this->updatedAt = null; + $this->ratingKey = $ratingKey; + $this->key = $key; + $this->guid = $guid; + $this->type = $type; + $this->title = $title; + $this->summary = $summary; + $this->smart = $smart; + $this->playlistType = $playlistType; + $this->composite = $composite; + $this->icon = $icon; + $this->viewCount = $viewCount; + $this->lastViewedAt = $lastViewedAt; + $this->duration = $duration; + $this->leafCount = $leafCount; + $this->addedAt = $addedAt; + $this->updatedAt = $updatedAt; } } \ No newline at end of file diff --git a/src/Models/Operations/GetPlaylistsPlaylistsResponseBody.php b/src/Models/Operations/GetPlaylistsPlaylistsResponseBody.php deleted file mode 100644 index c2106e4..0000000 --- a/src/Models/Operations/GetPlaylistsPlaylistsResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetPlaylistsRequest.php b/src/Models/Operations/GetPlaylistsRequest.php index 6ef508c..3bd3d7a 100644 --- a/src/Models/Operations/GetPlaylistsRequest.php +++ b/src/Models/Operations/GetPlaylistsRequest.php @@ -1,7 +1,7 @@ playlistType = null; - $this->smart = null; + $this->playlistType = $playlistType; + $this->smart = $smart; } } \ No newline at end of file diff --git a/src/Models/Operations/GetPlaylistsResponse.php b/src/Models/Operations/GetPlaylistsResponse.php index 20780d0..d81c21a 100644 --- a/src/Models/Operations/GetPlaylistsResponse.php +++ b/src/Models/Operations/GetPlaylistsResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->twoHundredApplicationJsonObject = null; - $this->fourHundredAndOneApplicationJsonObject = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->object = $object; } } \ No newline at end of file diff --git a/src/Models/Operations/GetPlaylistsResponseBody.php b/src/Models/Operations/GetPlaylistsResponseBody.php index 1698b91..7705317 100644 --- a/src/Models/Operations/GetPlaylistsResponseBody.php +++ b/src/Models/Operations/GetPlaylistsResponseBody.php @@ -1,7 +1,7 @@ mediaContainer = null; + $this->mediaContainer = $mediaContainer; } } \ No newline at end of file diff --git a/src/Models/Operations/GetRecentlyAddedErrors.php b/src/Models/Operations/GetRecentlyAddedErrors.php deleted file mode 100644 index 8afbc41..0000000 --- a/src/Models/Operations/GetRecentlyAddedErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetRecentlyAddedLibraryResponseBody.php b/src/Models/Operations/GetRecentlyAddedLibraryResponseBody.php deleted file mode 100644 index ab6feea..0000000 --- a/src/Models/Operations/GetRecentlyAddedLibraryResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetRecentlyAddedMediaContainer.php b/src/Models/Operations/GetRecentlyAddedMediaContainer.php index 151b6e3..3ef488b 100644 --- a/src/Models/Operations/GetRecentlyAddedMediaContainer.php +++ b/src/Models/Operations/GetRecentlyAddedMediaContainer.php @@ -1,7 +1,7 @@ $metadata + * @var ?array $metadata */ #[\JMS\Serializer\Annotation\SerializedName('Metadata')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetRecentlyAddedMetadata>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $metadata = null; - public function __construct() + /** + * @param ?float $size + * @param ?bool $allowSync + * @param ?string $identifier + * @param ?string $mediaTagPrefix + * @param ?float $mediaTagVersion + * @param ?bool $mixedParents + * @param ?array $metadata + */ + public function __construct(?float $size = null, ?bool $allowSync = null, ?string $identifier = null, ?string $mediaTagPrefix = null, ?float $mediaTagVersion = null, ?bool $mixedParents = null, ?array $metadata = null) { - $this->size = null; - $this->allowSync = null; - $this->identifier = null; - $this->mediaTagPrefix = null; - $this->mediaTagVersion = null; - $this->mixedParents = null; - $this->metadata = null; + $this->size = $size; + $this->allowSync = $allowSync; + $this->identifier = $identifier; + $this->mediaTagPrefix = $mediaTagPrefix; + $this->mediaTagVersion = $mediaTagVersion; + $this->mixedParents = $mixedParents; + $this->metadata = $metadata; } } \ No newline at end of file diff --git a/src/Models/Operations/GetRecentlyAddedMetadata.php b/src/Models/Operations/GetRecentlyAddedMetadata.php index 89c05a3..f566e93 100644 --- a/src/Models/Operations/GetRecentlyAddedMetadata.php +++ b/src/Models/Operations/GetRecentlyAddedMetadata.php @@ -1,7 +1,7 @@ ")] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?\DateTime $originallyAvailableAt = null; + /** + * + * @var ?float $addedAt + */ #[\JMS\Serializer\Annotation\SerializedName('addedAt')] - #[\JMS\Serializer\Annotation\Type('float')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?float $addedAt = null; + /** + * + * @var ?float $updatedAt + */ #[\JMS\Serializer\Annotation\SerializedName('updatedAt')] - #[\JMS\Serializer\Annotation\Type('float')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?float $updatedAt = null; + /** + * + * @var ?string $audienceRatingImage + */ #[\JMS\Serializer\Annotation\SerializedName('audienceRatingImage')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $audienceRatingImage = null; + /** + * + * @var ?string $chapterSource + */ #[\JMS\Serializer\Annotation\SerializedName('chapterSource')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $chapterSource = null; + /** + * + * @var ?string $primaryExtraKey + */ #[\JMS\Serializer\Annotation\SerializedName('primaryExtraKey')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $primaryExtraKey = null; + /** + * + * @var ?string $ratingImage + */ #[\JMS\Serializer\Annotation\SerializedName('ratingImage')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $ratingImage = null; /** * $media * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\Media> $media + * @var ?array $media */ #[\JMS\Serializer\Annotation\SerializedName('Media')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\Media>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $media = null; /** * $genre * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\Genre> $genre + * @var ?array $genre */ #[\JMS\Serializer\Annotation\SerializedName('Genre')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\Genre>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $genre = null; /** * $director * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\Director> $director + * @var ?array $director */ #[\JMS\Serializer\Annotation\SerializedName('Director')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\Director>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $director = null; /** * $writer * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\Writer> $writer + * @var ?array $writer */ #[\JMS\Serializer\Annotation\SerializedName('Writer')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\Writer>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $writer = null; /** * $country * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\Country> $country + * @var ?array $country */ #[\JMS\Serializer\Annotation\SerializedName('Country')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\Country>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $country = null; /** * $role * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\Role> $role + * @var ?array $role */ #[\JMS\Serializer\Annotation\SerializedName('Role')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\Role>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $role = null; - public function __construct() + /** + * @param ?bool $allowSync + * @param ?float $librarySectionID + * @param ?string $librarySectionTitle + * @param ?string $librarySectionUUID + * @param ?float $ratingKey + * @param ?string $key + * @param ?string $guid + * @param ?string $studio + * @param ?string $type + * @param ?string $title + * @param ?string $contentRating + * @param ?string $summary + * @param ?float $rating + * @param ?float $audienceRating + * @param ?float $year + * @param ?string $tagline + * @param ?string $thumb + * @param ?string $art + * @param ?float $duration + * @param ?\DateTime $originallyAvailableAt + * @param ?float $addedAt + * @param ?float $updatedAt + * @param ?string $audienceRatingImage + * @param ?string $chapterSource + * @param ?string $primaryExtraKey + * @param ?string $ratingImage + * @param ?array $media + * @param ?array $genre + * @param ?array $director + * @param ?array $writer + * @param ?array $country + * @param ?array $role + */ + public function __construct(?bool $allowSync = null, ?float $librarySectionID = null, ?string $librarySectionTitle = null, ?string $librarySectionUUID = null, ?float $ratingKey = null, ?string $key = null, ?string $guid = null, ?string $studio = null, ?string $type = null, ?string $title = null, ?string $contentRating = null, ?string $summary = null, ?float $rating = null, ?float $audienceRating = null, ?float $year = null, ?string $tagline = null, ?string $thumb = null, ?string $art = null, ?float $duration = null, ?\DateTime $originallyAvailableAt = null, ?float $addedAt = null, ?float $updatedAt = null, ?string $audienceRatingImage = null, ?string $chapterSource = null, ?string $primaryExtraKey = null, ?string $ratingImage = null, ?array $media = null, ?array $genre = null, ?array $director = null, ?array $writer = null, ?array $country = null, ?array $role = null) { - $this->allowSync = null; - $this->librarySectionID = null; - $this->librarySectionTitle = null; - $this->librarySectionUUID = null; - $this->ratingKey = null; - $this->key = null; - $this->guid = null; - $this->studio = null; - $this->type = null; - $this->title = null; - $this->contentRating = null; - $this->summary = null; - $this->rating = null; - $this->audienceRating = null; - $this->year = null; - $this->tagline = null; - $this->thumb = null; - $this->art = null; - $this->duration = null; - $this->originallyAvailableAt = null; - $this->addedAt = null; - $this->updatedAt = null; - $this->audienceRatingImage = null; - $this->chapterSource = null; - $this->primaryExtraKey = null; - $this->ratingImage = null; - $this->media = null; - $this->genre = null; - $this->director = null; - $this->writer = null; - $this->country = null; - $this->role = null; + $this->allowSync = $allowSync; + $this->librarySectionID = $librarySectionID; + $this->librarySectionTitle = $librarySectionTitle; + $this->librarySectionUUID = $librarySectionUUID; + $this->ratingKey = $ratingKey; + $this->key = $key; + $this->guid = $guid; + $this->studio = $studio; + $this->type = $type; + $this->title = $title; + $this->contentRating = $contentRating; + $this->summary = $summary; + $this->rating = $rating; + $this->audienceRating = $audienceRating; + $this->year = $year; + $this->tagline = $tagline; + $this->thumb = $thumb; + $this->art = $art; + $this->duration = $duration; + $this->originallyAvailableAt = $originallyAvailableAt; + $this->addedAt = $addedAt; + $this->updatedAt = $updatedAt; + $this->audienceRatingImage = $audienceRatingImage; + $this->chapterSource = $chapterSource; + $this->primaryExtraKey = $primaryExtraKey; + $this->ratingImage = $ratingImage; + $this->media = $media; + $this->genre = $genre; + $this->director = $director; + $this->writer = $writer; + $this->country = $country; + $this->role = $role; } } \ No newline at end of file diff --git a/src/Models/Operations/GetRecentlyAddedResponse.php b/src/Models/Operations/GetRecentlyAddedResponse.php index 5a49ce0..cebf8f5 100644 --- a/src/Models/Operations/GetRecentlyAddedResponse.php +++ b/src/Models/Operations/GetRecentlyAddedResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->twoHundredApplicationJsonObject = null; - $this->fourHundredAndOneApplicationJsonObject = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->object = $object; } } \ No newline at end of file diff --git a/src/Models/Operations/GetRecentlyAddedResponseBody.php b/src/Models/Operations/GetRecentlyAddedResponseBody.php index fd3d2b0..9e6f862 100644 --- a/src/Models/Operations/GetRecentlyAddedResponseBody.php +++ b/src/Models/Operations/GetRecentlyAddedResponseBody.php @@ -1,7 +1,7 @@ mediaContainer = null; + $this->mediaContainer = $mediaContainer; } } \ No newline at end of file diff --git a/src/Models/Operations/GetResizedPhotoErrors.php b/src/Models/Operations/GetResizedPhotoErrors.php deleted file mode 100644 index ca23b0f..0000000 --- a/src/Models/Operations/GetResizedPhotoErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetResizedPhotoRequest.php b/src/Models/Operations/GetResizedPhotoRequest.php index 1f04d6d..3482a2f 100644 --- a/src/Models/Operations/GetResizedPhotoRequest.php +++ b/src/Models/Operations/GetResizedPhotoRequest.php @@ -1,7 +1,7 @@ width = 0; - $this->height = 0; - $this->opacity = 0; - $this->blur = 0; - $this->minSize = \LukeHagar\Plex_API\Models\Operations\MinSize::Zero; - $this->upscale = \LukeHagar\Plex_API\Models\Operations\Upscale::Zero; - $this->url = ''; + $this->width = $width; + $this->height = $height; + $this->opacity = $opacity; + $this->blur = $blur; + $this->minSize = $minSize; + $this->upscale = $upscale; + $this->url = $url; } } \ No newline at end of file diff --git a/src/Models/Operations/GetResizedPhotoResponse.php b/src/Models/Operations/GetResizedPhotoResponse.php index 32e5440..dc60da5 100644 --- a/src/Models/Operations/GetResizedPhotoResponse.php +++ b/src/Models/Operations/GetResizedPhotoResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->object = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; } } \ No newline at end of file diff --git a/src/Models/Operations/GetResizedPhotoResponseBody.php b/src/Models/Operations/GetResizedPhotoResponseBody.php deleted file mode 100644 index 4c3fd04..0000000 --- a/src/Models/Operations/GetResizedPhotoResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetResourcesStatisticsErrors.php b/src/Models/Operations/GetResourcesStatisticsErrors.php deleted file mode 100644 index 78e114f..0000000 --- a/src/Models/Operations/GetResourcesStatisticsErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetResourcesStatisticsMediaContainer.php b/src/Models/Operations/GetResourcesStatisticsMediaContainer.php index 0eb1c38..c20508a 100644 --- a/src/Models/Operations/GetResourcesStatisticsMediaContainer.php +++ b/src/Models/Operations/GetResourcesStatisticsMediaContainer.php @@ -1,7 +1,7 @@ $statisticsResources + * @var ?array $statisticsResources */ #[\JMS\Serializer\Annotation\SerializedName('StatisticsResources')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\StatisticsResources>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $statisticsResources = null; - public function __construct() + /** + * @param ?int $size + * @param ?array $statisticsResources + */ + public function __construct(?int $size = null, ?array $statisticsResources = null) { - $this->size = null; - $this->statisticsResources = null; + $this->size = $size; + $this->statisticsResources = $statisticsResources; } } \ No newline at end of file diff --git a/src/Models/Operations/GetResourcesStatisticsRequest.php b/src/Models/Operations/GetResourcesStatisticsRequest.php index 3e9c552..94d9eab 100644 --- a/src/Models/Operations/GetResourcesStatisticsRequest.php +++ b/src/Models/Operations/GetResourcesStatisticsRequest.php @@ -1,7 +1,7 @@ timespan = null; + $this->timespan = $timespan; } } \ No newline at end of file diff --git a/src/Models/Operations/GetResourcesStatisticsResponse.php b/src/Models/Operations/GetResourcesStatisticsResponse.php index f2f265a..e4eb308 100644 --- a/src/Models/Operations/GetResourcesStatisticsResponse.php +++ b/src/Models/Operations/GetResourcesStatisticsResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->twoHundredApplicationJsonObject = null; - $this->fourHundredAndOneApplicationJsonObject = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->object = $object; } } \ No newline at end of file diff --git a/src/Models/Operations/GetResourcesStatisticsResponseBody.php b/src/Models/Operations/GetResourcesStatisticsResponseBody.php index 4e1499e..7d3a93f 100644 --- a/src/Models/Operations/GetResourcesStatisticsResponseBody.php +++ b/src/Models/Operations/GetResourcesStatisticsResponseBody.php @@ -1,7 +1,7 @@ mediaContainer = null; + $this->mediaContainer = $mediaContainer; } } \ No newline at end of file diff --git a/src/Models/Operations/GetResourcesStatisticsStatisticsResponseBody.php b/src/Models/Operations/GetResourcesStatisticsStatisticsResponseBody.php deleted file mode 100644 index 2ec63ce..0000000 --- a/src/Models/Operations/GetResourcesStatisticsStatisticsResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetSearchResultsCountry.php b/src/Models/Operations/GetSearchResultsCountry.php index 48134c7..0b230c4 100644 --- a/src/Models/Operations/GetSearchResultsCountry.php +++ b/src/Models/Operations/GetSearchResultsCountry.php @@ -1,7 +1,7 @@ tag = null; + $this->tag = $tag; } } \ No newline at end of file diff --git a/src/Models/Operations/GetSearchResultsDirector.php b/src/Models/Operations/GetSearchResultsDirector.php index da780c6..e33e8e1 100644 --- a/src/Models/Operations/GetSearchResultsDirector.php +++ b/src/Models/Operations/GetSearchResultsDirector.php @@ -1,7 +1,7 @@ tag = null; + $this->tag = $tag; } } \ No newline at end of file diff --git a/src/Models/Operations/GetSearchResultsErrors.php b/src/Models/Operations/GetSearchResultsErrors.php deleted file mode 100644 index f2bccf0..0000000 --- a/src/Models/Operations/GetSearchResultsErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetSearchResultsGenre.php b/src/Models/Operations/GetSearchResultsGenre.php index b672c8b..0e781d0 100644 --- a/src/Models/Operations/GetSearchResultsGenre.php +++ b/src/Models/Operations/GetSearchResultsGenre.php @@ -1,7 +1,7 @@ tag = null; + $this->tag = $tag; } } \ No newline at end of file diff --git a/src/Models/Operations/GetSearchResultsMedia.php b/src/Models/Operations/GetSearchResultsMedia.php index be1d01c..12753ba 100644 --- a/src/Models/Operations/GetSearchResultsMedia.php +++ b/src/Models/Operations/GetSearchResultsMedia.php @@ -1,7 +1,7 @@ $part + * @var ?array $part */ #[\JMS\Serializer\Annotation\SerializedName('Part')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetSearchResultsPart>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $part = null; - public function __construct() + /** + * @param ?float $id + * @param ?float $duration + * @param ?float $bitrate + * @param ?float $width + * @param ?float $height + * @param ?float $aspectRatio + * @param ?float $audioChannels + * @param ?string $audioCodec + * @param ?string $videoCodec + * @param ?float $videoResolution + * @param ?string $container + * @param ?string $videoFrameRate + * @param ?string $audioProfile + * @param ?string $videoProfile + * @param ?array $part + */ + public function __construct(?float $id = null, ?float $duration = null, ?float $bitrate = null, ?float $width = null, ?float $height = null, ?float $aspectRatio = null, ?float $audioChannels = null, ?string $audioCodec = null, ?string $videoCodec = null, ?float $videoResolution = null, ?string $container = null, ?string $videoFrameRate = null, ?string $audioProfile = null, ?string $videoProfile = null, ?array $part = null) { - $this->id = null; - $this->duration = null; - $this->bitrate = null; - $this->width = null; - $this->height = null; - $this->aspectRatio = null; - $this->audioChannels = null; - $this->audioCodec = null; - $this->videoCodec = null; - $this->videoResolution = null; - $this->container = null; - $this->videoFrameRate = null; - $this->audioProfile = null; - $this->videoProfile = null; - $this->part = null; + $this->id = $id; + $this->duration = $duration; + $this->bitrate = $bitrate; + $this->width = $width; + $this->height = $height; + $this->aspectRatio = $aspectRatio; + $this->audioChannels = $audioChannels; + $this->audioCodec = $audioCodec; + $this->videoCodec = $videoCodec; + $this->videoResolution = $videoResolution; + $this->container = $container; + $this->videoFrameRate = $videoFrameRate; + $this->audioProfile = $audioProfile; + $this->videoProfile = $videoProfile; + $this->part = $part; } } \ No newline at end of file diff --git a/src/Models/Operations/GetSearchResultsMediaContainer.php b/src/Models/Operations/GetSearchResultsMediaContainer.php index 8ac7033..5586fec 100644 --- a/src/Models/Operations/GetSearchResultsMediaContainer.php +++ b/src/Models/Operations/GetSearchResultsMediaContainer.php @@ -1,7 +1,7 @@ $metadata + * @var ?array $metadata */ #[\JMS\Serializer\Annotation\SerializedName('Metadata')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetSearchResultsMetadata>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $metadata = null; /** * $provider * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\Provider> $provider + * @var ?array $provider */ #[\JMS\Serializer\Annotation\SerializedName('Provider')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\Provider>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $provider = null; - public function __construct() + /** + * @param ?float $size + * @param ?string $identifier + * @param ?string $mediaTagPrefix + * @param ?float $mediaTagVersion + * @param ?array $metadata + * @param ?array $provider + */ + public function __construct(?float $size = null, ?string $identifier = null, ?string $mediaTagPrefix = null, ?float $mediaTagVersion = null, ?array $metadata = null, ?array $provider = null) { - $this->size = null; - $this->identifier = null; - $this->mediaTagPrefix = null; - $this->mediaTagVersion = null; - $this->metadata = null; - $this->provider = null; + $this->size = $size; + $this->identifier = $identifier; + $this->mediaTagPrefix = $mediaTagPrefix; + $this->mediaTagVersion = $mediaTagVersion; + $this->metadata = $metadata; + $this->provider = $provider; } } \ No newline at end of file diff --git a/src/Models/Operations/GetSearchResultsMetadata.php b/src/Models/Operations/GetSearchResultsMetadata.php index 1dbf671..6ea84f1 100644 --- a/src/Models/Operations/GetSearchResultsMetadata.php +++ b/src/Models/Operations/GetSearchResultsMetadata.php @@ -1,7 +1,7 @@ ")] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?\DateTime $originallyAvailableAt = null; + /** + * + * @var ?float $addedAt + */ #[\JMS\Serializer\Annotation\SerializedName('addedAt')] - #[\JMS\Serializer\Annotation\Type('float')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?float $addedAt = null; + /** + * + * @var ?float $updatedAt + */ #[\JMS\Serializer\Annotation\SerializedName('updatedAt')] - #[\JMS\Serializer\Annotation\Type('float')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?float $updatedAt = null; + /** + * + * @var ?string $audienceRatingImage + */ #[\JMS\Serializer\Annotation\SerializedName('audienceRatingImage')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $audienceRatingImage = null; + /** + * + * @var ?string $chapterSource + */ #[\JMS\Serializer\Annotation\SerializedName('chapterSource')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $chapterSource = null; + /** + * + * @var ?string $primaryExtraKey + */ #[\JMS\Serializer\Annotation\SerializedName('primaryExtraKey')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $primaryExtraKey = null; + /** + * + * @var ?string $ratingImage + */ #[\JMS\Serializer\Annotation\SerializedName('ratingImage')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $ratingImage = null; /** * $media * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetSearchResultsMedia> $media + * @var ?array $media */ #[\JMS\Serializer\Annotation\SerializedName('Media')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetSearchResultsMedia>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $media = null; /** * $genre * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetSearchResultsGenre> $genre + * @var ?array $genre */ #[\JMS\Serializer\Annotation\SerializedName('Genre')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetSearchResultsGenre>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $genre = null; /** * $director * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetSearchResultsDirector> $director + * @var ?array $director */ #[\JMS\Serializer\Annotation\SerializedName('Director')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetSearchResultsDirector>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $director = null; /** * $writer * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetSearchResultsWriter> $writer + * @var ?array $writer */ #[\JMS\Serializer\Annotation\SerializedName('Writer')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetSearchResultsWriter>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $writer = null; /** * $country * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetSearchResultsCountry> $country + * @var ?array $country */ #[\JMS\Serializer\Annotation\SerializedName('Country')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetSearchResultsCountry>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $country = null; /** * $role * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetSearchResultsRole> $role + * @var ?array $role */ #[\JMS\Serializer\Annotation\SerializedName('Role')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetSearchResultsRole>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $role = null; - public function __construct() + /** + * @param ?bool $allowSync + * @param ?float $librarySectionID + * @param ?string $librarySectionTitle + * @param ?string $librarySectionUUID + * @param ?bool $personal + * @param ?string $sourceTitle + * @param ?float $ratingKey + * @param ?string $key + * @param ?string $guid + * @param ?string $studio + * @param ?string $type + * @param ?string $title + * @param ?string $contentRating + * @param ?string $summary + * @param ?float $rating + * @param ?float $audienceRating + * @param ?float $year + * @param ?string $tagline + * @param ?string $thumb + * @param ?string $art + * @param ?float $duration + * @param ?\DateTime $originallyAvailableAt + * @param ?float $addedAt + * @param ?float $updatedAt + * @param ?string $audienceRatingImage + * @param ?string $chapterSource + * @param ?string $primaryExtraKey + * @param ?string $ratingImage + * @param ?array $media + * @param ?array $genre + * @param ?array $director + * @param ?array $writer + * @param ?array $country + * @param ?array $role + */ + public function __construct(?bool $allowSync = null, ?float $librarySectionID = null, ?string $librarySectionTitle = null, ?string $librarySectionUUID = null, ?bool $personal = null, ?string $sourceTitle = null, ?float $ratingKey = null, ?string $key = null, ?string $guid = null, ?string $studio = null, ?string $type = null, ?string $title = null, ?string $contentRating = null, ?string $summary = null, ?float $rating = null, ?float $audienceRating = null, ?float $year = null, ?string $tagline = null, ?string $thumb = null, ?string $art = null, ?float $duration = null, ?\DateTime $originallyAvailableAt = null, ?float $addedAt = null, ?float $updatedAt = null, ?string $audienceRatingImage = null, ?string $chapterSource = null, ?string $primaryExtraKey = null, ?string $ratingImage = null, ?array $media = null, ?array $genre = null, ?array $director = null, ?array $writer = null, ?array $country = null, ?array $role = null) { - $this->allowSync = null; - $this->librarySectionID = null; - $this->librarySectionTitle = null; - $this->librarySectionUUID = null; - $this->personal = null; - $this->sourceTitle = null; - $this->ratingKey = null; - $this->key = null; - $this->guid = null; - $this->studio = null; - $this->type = null; - $this->title = null; - $this->contentRating = null; - $this->summary = null; - $this->rating = null; - $this->audienceRating = null; - $this->year = null; - $this->tagline = null; - $this->thumb = null; - $this->art = null; - $this->duration = null; - $this->originallyAvailableAt = null; - $this->addedAt = null; - $this->updatedAt = null; - $this->audienceRatingImage = null; - $this->chapterSource = null; - $this->primaryExtraKey = null; - $this->ratingImage = null; - $this->media = null; - $this->genre = null; - $this->director = null; - $this->writer = null; - $this->country = null; - $this->role = null; + $this->allowSync = $allowSync; + $this->librarySectionID = $librarySectionID; + $this->librarySectionTitle = $librarySectionTitle; + $this->librarySectionUUID = $librarySectionUUID; + $this->personal = $personal; + $this->sourceTitle = $sourceTitle; + $this->ratingKey = $ratingKey; + $this->key = $key; + $this->guid = $guid; + $this->studio = $studio; + $this->type = $type; + $this->title = $title; + $this->contentRating = $contentRating; + $this->summary = $summary; + $this->rating = $rating; + $this->audienceRating = $audienceRating; + $this->year = $year; + $this->tagline = $tagline; + $this->thumb = $thumb; + $this->art = $art; + $this->duration = $duration; + $this->originallyAvailableAt = $originallyAvailableAt; + $this->addedAt = $addedAt; + $this->updatedAt = $updatedAt; + $this->audienceRatingImage = $audienceRatingImage; + $this->chapterSource = $chapterSource; + $this->primaryExtraKey = $primaryExtraKey; + $this->ratingImage = $ratingImage; + $this->media = $media; + $this->genre = $genre; + $this->director = $director; + $this->writer = $writer; + $this->country = $country; + $this->role = $role; } } \ No newline at end of file diff --git a/src/Models/Operations/GetSearchResultsPart.php b/src/Models/Operations/GetSearchResultsPart.php index ed976a5..8e72b0e 100644 --- a/src/Models/Operations/GetSearchResultsPart.php +++ b/src/Models/Operations/GetSearchResultsPart.php @@ -1,7 +1,7 @@ id = null; - $this->key = null; - $this->duration = null; - $this->file = null; - $this->size = null; - $this->audioProfile = null; - $this->container = null; - $this->videoProfile = null; + $this->id = $id; + $this->key = $key; + $this->duration = $duration; + $this->file = $file; + $this->size = $size; + $this->audioProfile = $audioProfile; + $this->container = $container; + $this->videoProfile = $videoProfile; } } \ No newline at end of file diff --git a/src/Models/Operations/GetSearchResultsRequest.php b/src/Models/Operations/GetSearchResultsRequest.php index 7cf4008..f6bde3d 100644 --- a/src/Models/Operations/GetSearchResultsRequest.php +++ b/src/Models/Operations/GetSearchResultsRequest.php @@ -1,7 +1,7 @@ query = ''; + $this->query = $query; } } \ No newline at end of file diff --git a/src/Models/Operations/GetSearchResultsResponse.php b/src/Models/Operations/GetSearchResultsResponse.php index 3f797ae..143c135 100644 --- a/src/Models/Operations/GetSearchResultsResponse.php +++ b/src/Models/Operations/GetSearchResultsResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->twoHundredApplicationJsonObject = null; - $this->fourHundredAndOneApplicationJsonObject = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->object = $object; } } \ No newline at end of file diff --git a/src/Models/Operations/GetSearchResultsResponseBody.php b/src/Models/Operations/GetSearchResultsResponseBody.php index 06923ac..4456c3a 100644 --- a/src/Models/Operations/GetSearchResultsResponseBody.php +++ b/src/Models/Operations/GetSearchResultsResponseBody.php @@ -1,7 +1,7 @@ mediaContainer = null; + $this->mediaContainer = $mediaContainer; } } \ No newline at end of file diff --git a/src/Models/Operations/GetSearchResultsRole.php b/src/Models/Operations/GetSearchResultsRole.php index c4e9121..da352c1 100644 --- a/src/Models/Operations/GetSearchResultsRole.php +++ b/src/Models/Operations/GetSearchResultsRole.php @@ -1,7 +1,7 @@ tag = null; + $this->tag = $tag; } } \ No newline at end of file diff --git a/src/Models/Operations/GetSearchResultsSearchResponseBody.php b/src/Models/Operations/GetSearchResultsSearchResponseBody.php deleted file mode 100644 index 9a4ec76..0000000 --- a/src/Models/Operations/GetSearchResultsSearchResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetSearchResultsWriter.php b/src/Models/Operations/GetSearchResultsWriter.php index 3f3391a..aea21a5 100644 --- a/src/Models/Operations/GetSearchResultsWriter.php +++ b/src/Models/Operations/GetSearchResultsWriter.php @@ -1,7 +1,7 @@ tag = null; + $this->tag = $tag; } } \ No newline at end of file diff --git a/src/Models/Operations/GetServerActivitiesActivitiesResponseBody.php b/src/Models/Operations/GetServerActivitiesActivitiesResponseBody.php deleted file mode 100644 index 35d69c0..0000000 --- a/src/Models/Operations/GetServerActivitiesActivitiesResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetServerActivitiesErrors.php b/src/Models/Operations/GetServerActivitiesErrors.php deleted file mode 100644 index beb6680..0000000 --- a/src/Models/Operations/GetServerActivitiesErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetServerActivitiesMediaContainer.php b/src/Models/Operations/GetServerActivitiesMediaContainer.php index 1ddaef6..4937e5e 100644 --- a/src/Models/Operations/GetServerActivitiesMediaContainer.php +++ b/src/Models/Operations/GetServerActivitiesMediaContainer.php @@ -1,7 +1,7 @@ $activity + * @var ?array $activity */ #[\JMS\Serializer\Annotation\SerializedName('Activity')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\Activity>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $activity = null; - public function __construct() + /** + * @param ?float $size + * @param ?array $activity + */ + public function __construct(?float $size = null, ?array $activity = null) { - $this->size = null; - $this->activity = null; + $this->size = $size; + $this->activity = $activity; } } \ No newline at end of file diff --git a/src/Models/Operations/GetServerActivitiesResponse.php b/src/Models/Operations/GetServerActivitiesResponse.php index de77062..de59a92 100644 --- a/src/Models/Operations/GetServerActivitiesResponse.php +++ b/src/Models/Operations/GetServerActivitiesResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->twoHundredApplicationJsonObject = null; - $this->fourHundredAndOneApplicationJsonObject = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->object = $object; } } \ No newline at end of file diff --git a/src/Models/Operations/GetServerActivitiesResponseBody.php b/src/Models/Operations/GetServerActivitiesResponseBody.php index f728fda..1bf4043 100644 --- a/src/Models/Operations/GetServerActivitiesResponseBody.php +++ b/src/Models/Operations/GetServerActivitiesResponseBody.php @@ -1,7 +1,7 @@ mediaContainer = null; + $this->mediaContainer = $mediaContainer; } } \ No newline at end of file diff --git a/src/Models/Operations/GetServerCapabilitiesResponse.php b/src/Models/Operations/GetServerCapabilitiesResponse.php index c4d54cc..7b14d49 100644 --- a/src/Models/Operations/GetServerCapabilitiesResponse.php +++ b/src/Models/Operations/GetServerCapabilitiesResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->twoHundredApplicationJsonObject = null; - $this->fourHundredAndOneApplicationJsonObject = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->object = $object; } } \ No newline at end of file diff --git a/src/Models/Operations/GetServerCapabilitiesResponseBody.php b/src/Models/Operations/GetServerCapabilitiesResponseBody.php index 7f5a9a3..0d8f39b 100644 --- a/src/Models/Operations/GetServerCapabilitiesResponseBody.php +++ b/src/Models/Operations/GetServerCapabilitiesResponseBody.php @@ -1,7 +1,7 @@ mediaContainer = null; + $this->mediaContainer = $mediaContainer; } } \ No newline at end of file diff --git a/src/Models/Operations/GetServerCapabilitiesServerResponseBody.php b/src/Models/Operations/GetServerCapabilitiesServerResponseBody.php deleted file mode 100644 index 86ae770..0000000 --- a/src/Models/Operations/GetServerCapabilitiesServerResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetServerIdentityErrors.php b/src/Models/Operations/GetServerIdentityErrors.php deleted file mode 100644 index 93d7801..0000000 --- a/src/Models/Operations/GetServerIdentityErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetServerIdentityMediaContainer.php b/src/Models/Operations/GetServerIdentityMediaContainer.php index 72f6472..31797c5 100644 --- a/src/Models/Operations/GetServerIdentityMediaContainer.php +++ b/src/Models/Operations/GetServerIdentityMediaContainer.php @@ -1,7 +1,7 @@ size = null; - $this->claimed = null; - $this->machineIdentifier = null; - $this->version = null; + $this->size = $size; + $this->claimed = $claimed; + $this->machineIdentifier = $machineIdentifier; + $this->version = $version; } } \ No newline at end of file diff --git a/src/Models/Operations/GetServerIdentityResponse.php b/src/Models/Operations/GetServerIdentityResponse.php index 6ef6a2b..7f159f5 100644 --- a/src/Models/Operations/GetServerIdentityResponse.php +++ b/src/Models/Operations/GetServerIdentityResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->twoHundredApplicationJsonObject = null; - $this->fourHundredAndOneApplicationJsonObject = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->object = $object; } } \ No newline at end of file diff --git a/src/Models/Operations/GetServerIdentityResponseBody.php b/src/Models/Operations/GetServerIdentityResponseBody.php index 95470aa..867f423 100644 --- a/src/Models/Operations/GetServerIdentityResponseBody.php +++ b/src/Models/Operations/GetServerIdentityResponseBody.php @@ -1,7 +1,7 @@ mediaContainer = null; + $this->mediaContainer = $mediaContainer; } } \ No newline at end of file diff --git a/src/Models/Operations/GetServerIdentityServerResponseBody.php b/src/Models/Operations/GetServerIdentityServerResponseBody.php deleted file mode 100644 index e36b241..0000000 --- a/src/Models/Operations/GetServerIdentityServerResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetServerListErrors.php b/src/Models/Operations/GetServerListErrors.php deleted file mode 100644 index cc321e5..0000000 --- a/src/Models/Operations/GetServerListErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetServerListMediaContainer.php b/src/Models/Operations/GetServerListMediaContainer.php index 0494eb6..38990d0 100644 --- a/src/Models/Operations/GetServerListMediaContainer.php +++ b/src/Models/Operations/GetServerListMediaContainer.php @@ -1,7 +1,7 @@ $server + * @var ?array $server */ #[\JMS\Serializer\Annotation\SerializedName('Server')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetServerListServer>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $server = null; - public function __construct() + /** + * @param ?float $size + * @param ?array $server + */ + public function __construct(?float $size = null, ?array $server = null) { - $this->size = null; - $this->server = null; + $this->size = $size; + $this->server = $server; } } \ No newline at end of file diff --git a/src/Models/Operations/GetServerListResponse.php b/src/Models/Operations/GetServerListResponse.php index 422de6c..02bb066 100644 --- a/src/Models/Operations/GetServerListResponse.php +++ b/src/Models/Operations/GetServerListResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->twoHundredApplicationJsonObject = null; - $this->fourHundredAndOneApplicationJsonObject = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->object = $object; } } \ No newline at end of file diff --git a/src/Models/Operations/GetServerListResponseBody.php b/src/Models/Operations/GetServerListResponseBody.php index 6af4007..6c6a6b2 100644 --- a/src/Models/Operations/GetServerListResponseBody.php +++ b/src/Models/Operations/GetServerListResponseBody.php @@ -1,7 +1,7 @@ mediaContainer = null; + $this->mediaContainer = $mediaContainer; } } \ No newline at end of file diff --git a/src/Models/Operations/GetServerListServer.php b/src/Models/Operations/GetServerListServer.php index 11c1f25..dc09fe0 100644 --- a/src/Models/Operations/GetServerListServer.php +++ b/src/Models/Operations/GetServerListServer.php @@ -1,7 +1,7 @@ name = null; - $this->host = null; - $this->address = null; - $this->port = null; - $this->machineIdentifier = null; - $this->version = null; + $this->name = $name; + $this->host = $host; + $this->address = $address; + $this->port = $port; + $this->machineIdentifier = $machineIdentifier; + $this->version = $version; } } \ No newline at end of file diff --git a/src/Models/Operations/GetServerListServerResponseBody.php b/src/Models/Operations/GetServerListServerResponseBody.php deleted file mode 100644 index 01f35fd..0000000 --- a/src/Models/Operations/GetServerListServerResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetServerPreferencesErrors.php b/src/Models/Operations/GetServerPreferencesErrors.php deleted file mode 100644 index 2326ed5..0000000 --- a/src/Models/Operations/GetServerPreferencesErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetServerPreferencesMediaContainer.php b/src/Models/Operations/GetServerPreferencesMediaContainer.php index a34f38f..519f587 100644 --- a/src/Models/Operations/GetServerPreferencesMediaContainer.php +++ b/src/Models/Operations/GetServerPreferencesMediaContainer.php @@ -1,7 +1,7 @@ $setting + * @var ?array $setting */ #[\JMS\Serializer\Annotation\SerializedName('Setting')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\Setting>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $setting = null; - public function __construct() + /** + * @param ?int $size + * @param ?array $setting + */ + public function __construct(?int $size = null, ?array $setting = null) { - $this->size = null; - $this->setting = null; + $this->size = $size; + $this->setting = $setting; } } \ No newline at end of file diff --git a/src/Models/Operations/GetServerPreferencesResponse.php b/src/Models/Operations/GetServerPreferencesResponse.php index a2ae9d0..6a6bdbe 100644 --- a/src/Models/Operations/GetServerPreferencesResponse.php +++ b/src/Models/Operations/GetServerPreferencesResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->twoHundredApplicationJsonObject = null; - $this->fourHundredAndOneApplicationJsonObject = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->object = $object; } } \ No newline at end of file diff --git a/src/Models/Operations/GetServerPreferencesResponseBody.php b/src/Models/Operations/GetServerPreferencesResponseBody.php index ce01c30..9f70414 100644 --- a/src/Models/Operations/GetServerPreferencesResponseBody.php +++ b/src/Models/Operations/GetServerPreferencesResponseBody.php @@ -1,7 +1,7 @@ mediaContainer = null; + $this->mediaContainer = $mediaContainer; } } \ No newline at end of file diff --git a/src/Models/Operations/GetServerPreferencesServerResponseBody.php b/src/Models/Operations/GetServerPreferencesServerResponseBody.php deleted file mode 100644 index c23c455..0000000 --- a/src/Models/Operations/GetServerPreferencesServerResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetSessionHistoryErrors.php b/src/Models/Operations/GetSessionHistoryErrors.php deleted file mode 100644 index 519fac9..0000000 --- a/src/Models/Operations/GetSessionHistoryErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetSessionHistoryMediaContainer.php b/src/Models/Operations/GetSessionHistoryMediaContainer.php index 41e0518..f8e9d54 100644 --- a/src/Models/Operations/GetSessionHistoryMediaContainer.php +++ b/src/Models/Operations/GetSessionHistoryMediaContainer.php @@ -1,7 +1,7 @@ $metadata + * @var ?array $metadata */ #[\JMS\Serializer\Annotation\SerializedName('Metadata')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetSessionHistoryMetadata>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $metadata = null; - public function __construct() + /** + * @param ?int $size + * @param ?array $metadata + */ + public function __construct(?int $size = null, ?array $metadata = null) { - $this->size = null; - $this->metadata = null; + $this->size = $size; + $this->metadata = $metadata; } } \ No newline at end of file diff --git a/src/Models/Operations/GetSessionHistoryMetadata.php b/src/Models/Operations/GetSessionHistoryMetadata.php index dd9da20..f1edb53 100644 --- a/src/Models/Operations/GetSessionHistoryMetadata.php +++ b/src/Models/Operations/GetSessionHistoryMetadata.php @@ -1,131 +1,209 @@ ")] #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?\DateTime $originallyAvailableAt = null; + public ?LocalDate $originallyAvailableAt = null; + /** + * + * @var ?int $viewedAt + */ #[\JMS\Serializer\Annotation\SerializedName('viewedAt')] - #[\JMS\Serializer\Annotation\Type('int')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?int $viewedAt = null; + /** + * + * @var ?int $accountID + */ #[\JMS\Serializer\Annotation\SerializedName('accountID')] - #[\JMS\Serializer\Annotation\Type('int')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?int $accountID = null; + /** + * + * @var ?int $deviceID + */ #[\JMS\Serializer\Annotation\SerializedName('deviceID')] - #[\JMS\Serializer\Annotation\Type('int')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?int $deviceID = null; - public function __construct() + /** + * @param ?string $historyKey + * @param ?string $key + * @param ?string $ratingKey + * @param ?string $librarySectionID + * @param ?string $parentKey + * @param ?string $grandparentKey + * @param ?string $title + * @param ?string $grandparentTitle + * @param ?string $type + * @param ?string $thumb + * @param ?string $parentThumb + * @param ?string $grandparentThumb + * @param ?string $grandparentArt + * @param ?int $index + * @param ?int $parentIndex + * @param ?LocalDate $originallyAvailableAt + * @param ?int $viewedAt + * @param ?int $accountID + * @param ?int $deviceID + */ + public function __construct(?string $historyKey = null, ?string $key = null, ?string $ratingKey = null, ?string $librarySectionID = null, ?string $parentKey = null, ?string $grandparentKey = null, ?string $title = null, ?string $grandparentTitle = null, ?string $type = null, ?string $thumb = null, ?string $parentThumb = null, ?string $grandparentThumb = null, ?string $grandparentArt = null, ?int $index = null, ?int $parentIndex = null, ?LocalDate $originallyAvailableAt = null, ?int $viewedAt = null, ?int $accountID = null, ?int $deviceID = null) { - $this->historyKey = null; - $this->key = null; - $this->ratingKey = null; - $this->librarySectionID = null; - $this->parentKey = null; - $this->grandparentKey = null; - $this->title = null; - $this->grandparentTitle = null; - $this->type = null; - $this->thumb = null; - $this->parentThumb = null; - $this->grandparentThumb = null; - $this->grandparentArt = null; - $this->index = null; - $this->parentIndex = null; - $this->originallyAvailableAt = null; - $this->viewedAt = null; - $this->accountID = null; - $this->deviceID = null; + $this->historyKey = $historyKey; + $this->key = $key; + $this->ratingKey = $ratingKey; + $this->librarySectionID = $librarySectionID; + $this->parentKey = $parentKey; + $this->grandparentKey = $grandparentKey; + $this->title = $title; + $this->grandparentTitle = $grandparentTitle; + $this->type = $type; + $this->thumb = $thumb; + $this->parentThumb = $parentThumb; + $this->grandparentThumb = $grandparentThumb; + $this->grandparentArt = $grandparentArt; + $this->index = $index; + $this->parentIndex = $parentIndex; + $this->originallyAvailableAt = $originallyAvailableAt; + $this->viewedAt = $viewedAt; + $this->accountID = $accountID; + $this->deviceID = $deviceID; } } \ No newline at end of file diff --git a/src/Models/Operations/GetSessionHistoryRequest.php b/src/Models/Operations/GetSessionHistoryRequest.php index 5affae0..010c6f2 100644 --- a/src/Models/Operations/GetSessionHistoryRequest.php +++ b/src/Models/Operations/GetSessionHistoryRequest.php @@ -1,7 +1,7 @@ sort = null; - $this->accountId = null; - $this->filter = null; - $this->librarySectionID = null; + $this->sort = $sort; + $this->accountId = $accountId; + $this->filter = $filter; + $this->librarySectionID = $librarySectionID; } } \ No newline at end of file diff --git a/src/Models/Operations/GetSessionHistoryResponse.php b/src/Models/Operations/GetSessionHistoryResponse.php index b03a5b4..18ee48c 100644 --- a/src/Models/Operations/GetSessionHistoryResponse.php +++ b/src/Models/Operations/GetSessionHistoryResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->twoHundredApplicationJsonObject = null; - $this->fourHundredAndOneApplicationJsonObject = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->object = $object; } } \ No newline at end of file diff --git a/src/Models/Operations/GetSessionHistoryResponseBody.php b/src/Models/Operations/GetSessionHistoryResponseBody.php index 3b47080..1594a1e 100644 --- a/src/Models/Operations/GetSessionHistoryResponseBody.php +++ b/src/Models/Operations/GetSessionHistoryResponseBody.php @@ -1,7 +1,7 @@ mediaContainer = null; + $this->mediaContainer = $mediaContainer; } } \ No newline at end of file diff --git a/src/Models/Operations/GetSessionHistorySessionsResponseBody.php b/src/Models/Operations/GetSessionHistorySessionsResponseBody.php deleted file mode 100644 index 006ab57..0000000 --- a/src/Models/Operations/GetSessionHistorySessionsResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetSessionsErrors.php b/src/Models/Operations/GetSessionsErrors.php deleted file mode 100644 index ac9240c..0000000 --- a/src/Models/Operations/GetSessionsErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetSessionsMedia.php b/src/Models/Operations/GetSessionsMedia.php index 108fe94..4aaff1e 100644 --- a/src/Models/Operations/GetSessionsMedia.php +++ b/src/Models/Operations/GetSessionsMedia.php @@ -1,7 +1,7 @@ $part + * @var ?array $part */ #[\JMS\Serializer\Annotation\SerializedName('Part')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetSessionsPart>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $part = null; - public function __construct() + /** + * @param ?int $audioChannels + * @param ?string $audioCodec + * @param ?int $bitrate + * @param ?string $container + * @param ?int $duration + * @param ?string $id + * @param ?bool $selected + * @param ?array $part + */ + public function __construct(?int $audioChannels = null, ?string $audioCodec = null, ?int $bitrate = null, ?string $container = null, ?int $duration = null, ?string $id = null, ?bool $selected = null, ?array $part = null) { - $this->audioChannels = null; - $this->audioCodec = null; - $this->bitrate = null; - $this->container = null; - $this->duration = null; - $this->id = null; - $this->selected = null; - $this->part = null; + $this->audioChannels = $audioChannels; + $this->audioCodec = $audioCodec; + $this->bitrate = $bitrate; + $this->container = $container; + $this->duration = $duration; + $this->id = $id; + $this->selected = $selected; + $this->part = $part; } } \ No newline at end of file diff --git a/src/Models/Operations/GetSessionsMediaContainer.php b/src/Models/Operations/GetSessionsMediaContainer.php index e9f177b..2fcf9f7 100644 --- a/src/Models/Operations/GetSessionsMediaContainer.php +++ b/src/Models/Operations/GetSessionsMediaContainer.php @@ -1,7 +1,7 @@ $metadata + * @var ?array $metadata */ #[\JMS\Serializer\Annotation\SerializedName('Metadata')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetSessionsMetadata>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $metadata = null; - public function __construct() + /** + * @param ?int $size + * @param ?array $metadata + */ + public function __construct(?int $size = null, ?array $metadata = null) { - $this->size = null; - $this->metadata = null; + $this->size = $size; + $this->metadata = $metadata; } } \ No newline at end of file diff --git a/src/Models/Operations/GetSessionsMetadata.php b/src/Models/Operations/GetSessionsMetadata.php index 7af6713..5d4da38 100644 --- a/src/Models/Operations/GetSessionsMetadata.php +++ b/src/Models/Operations/GetSessionsMetadata.php @@ -1,7 +1,7 @@ $media + * @var ?array $media */ #[\JMS\Serializer\Annotation\SerializedName('Media')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetSessionsMedia>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $media = null; + /** + * + * @var ?GetSessionsUser $user + */ #[\JMS\Serializer\Annotation\SerializedName('User')] - #[\JMS\Serializer\Annotation\Type('LukeHagar\Plex_API\Models\Operations\GetSessionsUser')] + #[\JMS\Serializer\Annotation\Type('\LukeHagar\Plex_API\Models\Operations\GetSessionsUser')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?GetSessionsUser $user = null; + /** + * + * @var ?Player $player + */ #[\JMS\Serializer\Annotation\SerializedName('Player')] - #[\JMS\Serializer\Annotation\Type('LukeHagar\Plex_API\Models\Operations\Player')] + #[\JMS\Serializer\Annotation\Type('\LukeHagar\Plex_API\Models\Operations\Player')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?Player $player = null; + /** + * + * @var ?Session $session + */ #[\JMS\Serializer\Annotation\SerializedName('Session')] - #[\JMS\Serializer\Annotation\Type('LukeHagar\Plex_API\Models\Operations\Session')] + #[\JMS\Serializer\Annotation\Type('\LukeHagar\Plex_API\Models\Operations\Session')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?Session $session = null; - public function __construct() + /** + * @param ?int $addedAt + * @param ?string $art + * @param ?int $duration + * @param ?string $grandparentArt + * @param ?string $grandparentGuid + * @param ?string $grandparentKey + * @param ?string $grandparentRatingKey + * @param ?string $grandparentThumb + * @param ?string $grandparentTitle + * @param ?string $guid + * @param ?int $index + * @param ?string $key + * @param ?string $librarySectionID + * @param ?string $librarySectionKey + * @param ?string $librarySectionTitle + * @param ?string $musicAnalysisVersion + * @param ?string $parentGuid + * @param ?int $parentIndex + * @param ?string $parentKey + * @param ?string $parentRatingKey + * @param ?string $parentStudio + * @param ?string $parentThumb + * @param ?string $parentTitle + * @param ?int $parentYear + * @param ?int $ratingCount + * @param ?string $ratingKey + * @param ?string $sessionKey + * @param ?string $thumb + * @param ?string $title + * @param ?string $titleSort + * @param ?string $type + * @param ?int $updatedAt + * @param ?int $viewOffset + * @param ?array $media + * @param ?GetSessionsUser $user + * @param ?Player $player + * @param ?Session $session + */ + public function __construct(?int $addedAt = null, ?string $art = null, ?int $duration = null, ?string $grandparentArt = null, ?string $grandparentGuid = null, ?string $grandparentKey = null, ?string $grandparentRatingKey = null, ?string $grandparentThumb = null, ?string $grandparentTitle = null, ?string $guid = null, ?int $index = null, ?string $key = null, ?string $librarySectionID = null, ?string $librarySectionKey = null, ?string $librarySectionTitle = null, ?string $musicAnalysisVersion = null, ?string $parentGuid = null, ?int $parentIndex = null, ?string $parentKey = null, ?string $parentRatingKey = null, ?string $parentStudio = null, ?string $parentThumb = null, ?string $parentTitle = null, ?int $parentYear = null, ?int $ratingCount = null, ?string $ratingKey = null, ?string $sessionKey = null, ?string $thumb = null, ?string $title = null, ?string $titleSort = null, ?string $type = null, ?int $updatedAt = null, ?int $viewOffset = null, ?array $media = null, ?GetSessionsUser $user = null, ?Player $player = null, ?Session $session = null) { - $this->addedAt = null; - $this->art = null; - $this->duration = null; - $this->grandparentArt = null; - $this->grandparentGuid = null; - $this->grandparentKey = null; - $this->grandparentRatingKey = null; - $this->grandparentThumb = null; - $this->grandparentTitle = null; - $this->guid = null; - $this->index = null; - $this->key = null; - $this->librarySectionID = null; - $this->librarySectionKey = null; - $this->librarySectionTitle = null; - $this->musicAnalysisVersion = null; - $this->parentGuid = null; - $this->parentIndex = null; - $this->parentKey = null; - $this->parentRatingKey = null; - $this->parentStudio = null; - $this->parentThumb = null; - $this->parentTitle = null; - $this->parentYear = null; - $this->ratingCount = null; - $this->ratingKey = null; - $this->sessionKey = null; - $this->thumb = null; - $this->title = null; - $this->titleSort = null; - $this->type = null; - $this->updatedAt = null; - $this->viewOffset = null; - $this->media = null; - $this->user = null; - $this->player = null; - $this->session = null; + $this->addedAt = $addedAt; + $this->art = $art; + $this->duration = $duration; + $this->grandparentArt = $grandparentArt; + $this->grandparentGuid = $grandparentGuid; + $this->grandparentKey = $grandparentKey; + $this->grandparentRatingKey = $grandparentRatingKey; + $this->grandparentThumb = $grandparentThumb; + $this->grandparentTitle = $grandparentTitle; + $this->guid = $guid; + $this->index = $index; + $this->key = $key; + $this->librarySectionID = $librarySectionID; + $this->librarySectionKey = $librarySectionKey; + $this->librarySectionTitle = $librarySectionTitle; + $this->musicAnalysisVersion = $musicAnalysisVersion; + $this->parentGuid = $parentGuid; + $this->parentIndex = $parentIndex; + $this->parentKey = $parentKey; + $this->parentRatingKey = $parentRatingKey; + $this->parentStudio = $parentStudio; + $this->parentThumb = $parentThumb; + $this->parentTitle = $parentTitle; + $this->parentYear = $parentYear; + $this->ratingCount = $ratingCount; + $this->ratingKey = $ratingKey; + $this->sessionKey = $sessionKey; + $this->thumb = $thumb; + $this->title = $title; + $this->titleSort = $titleSort; + $this->type = $type; + $this->updatedAt = $updatedAt; + $this->viewOffset = $viewOffset; + $this->media = $media; + $this->user = $user; + $this->player = $player; + $this->session = $session; } } \ No newline at end of file diff --git a/src/Models/Operations/GetSessionsPart.php b/src/Models/Operations/GetSessionsPart.php index 7493a57..d2e5cdb 100644 --- a/src/Models/Operations/GetSessionsPart.php +++ b/src/Models/Operations/GetSessionsPart.php @@ -1,7 +1,7 @@ $stream + * @var ?array $stream */ #[\JMS\Serializer\Annotation\SerializedName('Stream')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetSessionsStream>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $stream = null; - public function __construct() + /** + * @param ?string $container + * @param ?int $duration + * @param ?string $file + * @param ?string $hasThumbnail + * @param ?string $id + * @param ?string $key + * @param ?int $size + * @param ?string $decision + * @param ?bool $selected + * @param ?array $stream + */ + public function __construct(?string $container = null, ?int $duration = null, ?string $file = null, ?string $hasThumbnail = null, ?string $id = null, ?string $key = null, ?int $size = null, ?string $decision = null, ?bool $selected = null, ?array $stream = null) { - $this->container = null; - $this->duration = null; - $this->file = null; - $this->hasThumbnail = null; - $this->id = null; - $this->key = null; - $this->size = null; - $this->decision = null; - $this->selected = null; - $this->stream = null; + $this->container = $container; + $this->duration = $duration; + $this->file = $file; + $this->hasThumbnail = $hasThumbnail; + $this->id = $id; + $this->key = $key; + $this->size = $size; + $this->decision = $decision; + $this->selected = $selected; + $this->stream = $stream; } } \ No newline at end of file diff --git a/src/Models/Operations/GetSessionsResponse.php b/src/Models/Operations/GetSessionsResponse.php index e6865a2..bf5adc9 100644 --- a/src/Models/Operations/GetSessionsResponse.php +++ b/src/Models/Operations/GetSessionsResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->twoHundredApplicationJsonObject = null; - $this->fourHundredAndOneApplicationJsonObject = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->object = $object; } } \ No newline at end of file diff --git a/src/Models/Operations/GetSessionsResponseBody.php b/src/Models/Operations/GetSessionsResponseBody.php index 0b21846..21e8891 100644 --- a/src/Models/Operations/GetSessionsResponseBody.php +++ b/src/Models/Operations/GetSessionsResponseBody.php @@ -1,7 +1,7 @@ mediaContainer = null; + $this->mediaContainer = $mediaContainer; } } \ No newline at end of file diff --git a/src/Models/Operations/GetSessionsSessionsResponseBody.php b/src/Models/Operations/GetSessionsSessionsResponseBody.php deleted file mode 100644 index a4868c0..0000000 --- a/src/Models/Operations/GetSessionsSessionsResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetSessionsStream.php b/src/Models/Operations/GetSessionsStream.php index 5824b2a..642c8db 100644 --- a/src/Models/Operations/GetSessionsStream.php +++ b/src/Models/Operations/GetSessionsStream.php @@ -1,7 +1,7 @@ albumGain = null; - $this->albumPeak = null; - $this->albumRange = null; - $this->audioChannelLayout = null; - $this->bitDepth = null; - $this->bitrate = null; - $this->channels = null; - $this->codec = null; - $this->displayTitle = null; - $this->extendedDisplayTitle = null; - $this->gain = null; - $this->id = null; - $this->index = null; - $this->loudness = null; - $this->lra = null; - $this->peak = null; - $this->samplingRate = null; - $this->selected = null; - $this->streamType = null; - $this->location = null; + $this->albumGain = $albumGain; + $this->albumPeak = $albumPeak; + $this->albumRange = $albumRange; + $this->audioChannelLayout = $audioChannelLayout; + $this->bitDepth = $bitDepth; + $this->bitrate = $bitrate; + $this->channels = $channels; + $this->codec = $codec; + $this->displayTitle = $displayTitle; + $this->extendedDisplayTitle = $extendedDisplayTitle; + $this->gain = $gain; + $this->id = $id; + $this->index = $index; + $this->loudness = $loudness; + $this->lra = $lra; + $this->peak = $peak; + $this->samplingRate = $samplingRate; + $this->selected = $selected; + $this->streamType = $streamType; + $this->location = $location; } } \ No newline at end of file diff --git a/src/Models/Operations/GetSessionsUser.php b/src/Models/Operations/GetSessionsUser.php index 3c4087e..73441c6 100644 --- a/src/Models/Operations/GetSessionsUser.php +++ b/src/Models/Operations/GetSessionsUser.php @@ -1,7 +1,7 @@ id = null; - $this->thumb = null; - $this->title = null; + $this->id = $id; + $this->thumb = $thumb; + $this->title = $title; } } \ No newline at end of file diff --git a/src/Models/Operations/GetSourceConnectionInformationErrors.php b/src/Models/Operations/GetSourceConnectionInformationErrors.php deleted file mode 100644 index 3572eeb..0000000 --- a/src/Models/Operations/GetSourceConnectionInformationErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetSourceConnectionInformationRequest.php b/src/Models/Operations/GetSourceConnectionInformationRequest.php index 5c2df94..cfd8369 100644 --- a/src/Models/Operations/GetSourceConnectionInformationRequest.php +++ b/src/Models/Operations/GetSourceConnectionInformationRequest.php @@ -1,7 +1,7 @@ source = ''; + $this->source = $source; } } \ No newline at end of file diff --git a/src/Models/Operations/GetSourceConnectionInformationResponse.php b/src/Models/Operations/GetSourceConnectionInformationResponse.php index 3dc81a7..01d4587 100644 --- a/src/Models/Operations/GetSourceConnectionInformationResponse.php +++ b/src/Models/Operations/GetSourceConnectionInformationResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->object = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; } } \ No newline at end of file diff --git a/src/Models/Operations/GetSourceConnectionInformationResponseBody.php b/src/Models/Operations/GetSourceConnectionInformationResponseBody.php deleted file mode 100644 index 8164d67..0000000 --- a/src/Models/Operations/GetSourceConnectionInformationResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetStatisticsDevice.php b/src/Models/Operations/GetStatisticsDevice.php index b258abb..b04d632 100644 --- a/src/Models/Operations/GetStatisticsDevice.php +++ b/src/Models/Operations/GetStatisticsDevice.php @@ -1,7 +1,7 @@ id = null; - $this->name = null; - $this->platform = null; - $this->clientIdentifier = null; - $this->createdAt = null; + $this->id = $id; + $this->name = $name; + $this->platform = $platform; + $this->clientIdentifier = $clientIdentifier; + $this->createdAt = $createdAt; } } \ No newline at end of file diff --git a/src/Models/Operations/GetStatisticsErrors.php b/src/Models/Operations/GetStatisticsErrors.php deleted file mode 100644 index b0a38de..0000000 --- a/src/Models/Operations/GetStatisticsErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetStatisticsMediaContainer.php b/src/Models/Operations/GetStatisticsMediaContainer.php index 25492fc..09203f3 100644 --- a/src/Models/Operations/GetStatisticsMediaContainer.php +++ b/src/Models/Operations/GetStatisticsMediaContainer.php @@ -1,7 +1,7 @@ $device + * @var ?array $device */ #[\JMS\Serializer\Annotation\SerializedName('Device')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetStatisticsDevice>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $device = null; /** * $account * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\Account> $account + * @var ?array $account */ #[\JMS\Serializer\Annotation\SerializedName('Account')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\Account>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $account = null; /** * $statisticsMedia * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\StatisticsMedia> $statisticsMedia + * @var ?array $statisticsMedia */ #[\JMS\Serializer\Annotation\SerializedName('StatisticsMedia')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\StatisticsMedia>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $statisticsMedia = null; - public function __construct() + /** + * @param ?int $size + * @param ?array $device + * @param ?array $account + * @param ?array $statisticsMedia + */ + public function __construct(?int $size = null, ?array $device = null, ?array $account = null, ?array $statisticsMedia = null) { - $this->size = null; - $this->device = null; - $this->account = null; - $this->statisticsMedia = null; + $this->size = $size; + $this->device = $device; + $this->account = $account; + $this->statisticsMedia = $statisticsMedia; } } \ No newline at end of file diff --git a/src/Models/Operations/GetStatisticsRequest.php b/src/Models/Operations/GetStatisticsRequest.php index a401f26..4a2fede 100644 --- a/src/Models/Operations/GetStatisticsRequest.php +++ b/src/Models/Operations/GetStatisticsRequest.php @@ -1,7 +1,7 @@ timespan = null; + $this->timespan = $timespan; } } \ No newline at end of file diff --git a/src/Models/Operations/GetStatisticsResponse.php b/src/Models/Operations/GetStatisticsResponse.php index 934971f..825bf5a 100644 --- a/src/Models/Operations/GetStatisticsResponse.php +++ b/src/Models/Operations/GetStatisticsResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->twoHundredApplicationJsonObject = null; - $this->fourHundredAndOneApplicationJsonObject = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->object = $object; } } \ No newline at end of file diff --git a/src/Models/Operations/GetStatisticsResponseBody.php b/src/Models/Operations/GetStatisticsResponseBody.php index 11f65f1..4505e32 100644 --- a/src/Models/Operations/GetStatisticsResponseBody.php +++ b/src/Models/Operations/GetStatisticsResponseBody.php @@ -1,7 +1,7 @@ mediaContainer = null; + $this->mediaContainer = $mediaContainer; } } \ No newline at end of file diff --git a/src/Models/Operations/GetStatisticsStatisticsResponseBody.php b/src/Models/Operations/GetStatisticsStatisticsResponseBody.php deleted file mode 100644 index 09da3e4..0000000 --- a/src/Models/Operations/GetStatisticsStatisticsResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetTimelineErrors.php b/src/Models/Operations/GetTimelineErrors.php deleted file mode 100644 index 1215400..0000000 --- a/src/Models/Operations/GetTimelineErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetTimelineRequest.php b/src/Models/Operations/GetTimelineRequest.php index af3affa..c779034 100644 --- a/src/Models/Operations/GetTimelineRequest.php +++ b/src/Models/Operations/GetTimelineRequest.php @@ -1,7 +1,7 @@ ratingKey = 0; - $this->key = ''; - $this->state = \LukeHagar\Plex_API\Models\Operations\State::Playing; - $this->hasMDE = 0; - $this->time = 0; - $this->duration = 0; - $this->context = ''; - $this->playQueueItemID = 0; - $this->playBackTime = 0; - $this->row = 0; + $this->ratingKey = $ratingKey; + $this->key = $key; + $this->state = $state; + $this->hasMDE = $hasMDE; + $this->time = $time; + $this->duration = $duration; + $this->context = $context; + $this->playQueueItemID = $playQueueItemID; + $this->playBackTime = $playBackTime; + $this->row = $row; } } \ No newline at end of file diff --git a/src/Models/Operations/GetTimelineResponse.php b/src/Models/Operations/GetTimelineResponse.php index afd6395..096cfd4 100644 --- a/src/Models/Operations/GetTimelineResponse.php +++ b/src/Models/Operations/GetTimelineResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->object = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; } } \ No newline at end of file diff --git a/src/Models/Operations/GetTimelineResponseBody.php b/src/Models/Operations/GetTimelineResponseBody.php deleted file mode 100644 index 6d4e98e..0000000 --- a/src/Models/Operations/GetTimelineResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetTokenErrors.php b/src/Models/Operations/GetTokenErrors.php deleted file mode 100644 index 3a4f814..0000000 --- a/src/Models/Operations/GetTokenErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetTokenLocation.php b/src/Models/Operations/GetTokenLocation.php index f5a8e2e..e173aa1 100644 --- a/src/Models/Operations/GetTokenLocation.php +++ b/src/Models/Operations/GetTokenLocation.php @@ -1,7 +1,7 @@ code = null; - $this->europeanUnionMember = null; - $this->continentCode = null; - $this->country = null; - $this->city = null; - $this->timeZone = null; - $this->postalCode = null; - $this->inPrivacyRestrictedCountry = null; - $this->subdivisions = null; - $this->coordinates = null; + $this->code = $code; + $this->europeanUnionMember = $europeanUnionMember; + $this->continentCode = $continentCode; + $this->country = $country; + $this->city = $city; + $this->timeZone = $timeZone; + $this->postalCode = $postalCode; + $this->inPrivacyRestrictedCountry = $inPrivacyRestrictedCountry; + $this->subdivisions = $subdivisions; + $this->coordinates = $coordinates; } } \ No newline at end of file diff --git a/src/Models/Operations/GetTokenPlexResponseBody.php b/src/Models/Operations/GetTokenPlexResponseBody.php deleted file mode 100644 index 232851f..0000000 --- a/src/Models/Operations/GetTokenPlexResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetTokenRequest.php b/src/Models/Operations/GetTokenRequest.php index b814d2b..44fe436 100644 --- a/src/Models/Operations/GetTokenRequest.php +++ b/src/Models/Operations/GetTokenRequest.php @@ -1,7 +1,7 @@ pinID = ''; - $this->xPlexClientIdentifier = null; + $this->pinID = $pinID; + $this->xPlexClientIdentifier = $xPlexClientIdentifier; } } \ No newline at end of file diff --git a/src/Models/Operations/GetTokenResponse.php b/src/Models/Operations/GetTokenResponse.php index 9a1619f..809eff7 100644 --- a/src/Models/Operations/GetTokenResponse.php +++ b/src/Models/Operations/GetTokenResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->twoHundredApplicationJsonObject = null; - $this->fourHundredApplicationJsonObject = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->object = $object; } } \ No newline at end of file diff --git a/src/Models/Operations/GetTokenResponseBody.php b/src/Models/Operations/GetTokenResponseBody.php index 40f07dd..2666482 100644 --- a/src/Models/Operations/GetTokenResponseBody.php +++ b/src/Models/Operations/GetTokenResponseBody.php @@ -1,7 +1,7 @@ ")] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?\DateTime $createdAt = null; + /** + * + * @var ?\DateTime $expiresAt + */ #[\JMS\Serializer\Annotation\SerializedName('expiresAt')] - #[\JMS\Serializer\Annotation\Type("DateTime<'Y-m-d\TH:i:s.up'>")] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?\DateTime $expiresAt = null; + /** + * + * @var ?string $authToken + */ #[\JMS\Serializer\Annotation\SerializedName('authToken')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $authToken = null; + /** + * + * @var ?string $newRegistration + */ #[\JMS\Serializer\Annotation\SerializedName('newRegistration')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $newRegistration = null; - public function __construct() + /** + * @param ?float $id + * @param ?string $code + * @param ?string $product + * @param ?bool $trusted + * @param ?string $qr + * @param ?string $clientIdentifier + * @param ?GetTokenLocation $location + * @param ?float $expiresIn + * @param ?\DateTime $createdAt + * @param ?\DateTime $expiresAt + * @param ?string $authToken + * @param ?string $newRegistration + */ + public function __construct(?float $id = null, ?string $code = null, ?string $product = null, ?bool $trusted = null, ?string $qr = null, ?string $clientIdentifier = null, ?GetTokenLocation $location = null, ?float $expiresIn = null, ?\DateTime $createdAt = null, ?\DateTime $expiresAt = null, ?string $authToken = null, ?string $newRegistration = null) { - $this->id = null; - $this->code = null; - $this->product = null; - $this->trusted = null; - $this->qr = null; - $this->clientIdentifier = null; - $this->location = null; - $this->expiresIn = null; - $this->createdAt = null; - $this->expiresAt = null; - $this->authToken = null; - $this->newRegistration = null; + $this->id = $id; + $this->code = $code; + $this->product = $product; + $this->trusted = $trusted; + $this->qr = $qr; + $this->clientIdentifier = $clientIdentifier; + $this->location = $location; + $this->expiresIn = $expiresIn; + $this->createdAt = $createdAt; + $this->expiresAt = $expiresAt; + $this->authToken = $authToken; + $this->newRegistration = $newRegistration; } } \ No newline at end of file diff --git a/src/Models/Operations/GetTopWatchedContentCountry.php b/src/Models/Operations/GetTopWatchedContentCountry.php index 54b952b..61fb534 100644 --- a/src/Models/Operations/GetTopWatchedContentCountry.php +++ b/src/Models/Operations/GetTopWatchedContentCountry.php @@ -1,7 +1,7 @@ id = null; - $this->filter = null; - $this->tag = null; + $this->id = $id; + $this->filter = $filter; + $this->tag = $tag; } } \ No newline at end of file diff --git a/src/Models/Operations/GetTopWatchedContentGenre.php b/src/Models/Operations/GetTopWatchedContentGenre.php index 33b5317..dc09615 100644 --- a/src/Models/Operations/GetTopWatchedContentGenre.php +++ b/src/Models/Operations/GetTopWatchedContentGenre.php @@ -1,7 +1,7 @@ id = null; - $this->filter = null; - $this->tag = null; + $this->id = $id; + $this->filter = $filter; + $this->tag = $tag; } } \ No newline at end of file diff --git a/src/Models/Operations/GetTopWatchedContentGuids.php b/src/Models/Operations/GetTopWatchedContentGuids.php index 8312c55..457cee8 100644 --- a/src/Models/Operations/GetTopWatchedContentGuids.php +++ b/src/Models/Operations/GetTopWatchedContentGuids.php @@ -1,7 +1,7 @@ id = null; + $this->id = $id; } } \ No newline at end of file diff --git a/src/Models/Operations/GetTopWatchedContentMediaContainer.php b/src/Models/Operations/GetTopWatchedContentMediaContainer.php index 2bf93e3..01607e3 100644 --- a/src/Models/Operations/GetTopWatchedContentMediaContainer.php +++ b/src/Models/Operations/GetTopWatchedContentMediaContainer.php @@ -1,7 +1,7 @@ $metadata + * @var ?array $metadata */ #[\JMS\Serializer\Annotation\SerializedName('Metadata')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetTopWatchedContentMetadata>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $metadata = null; - public function __construct() + /** + * @param ?int $size + * @param ?bool $allowSync + * @param ?string $identifier + * @param ?string $mediaTagPrefix + * @param ?int $mediaTagVersion + * @param ?array $metadata + */ + public function __construct(?int $size = null, ?bool $allowSync = null, ?string $identifier = null, ?string $mediaTagPrefix = null, ?int $mediaTagVersion = null, ?array $metadata = null) { - $this->size = null; - $this->allowSync = null; - $this->identifier = null; - $this->mediaTagPrefix = null; - $this->mediaTagVersion = null; - $this->metadata = null; + $this->size = $size; + $this->allowSync = $allowSync; + $this->identifier = $identifier; + $this->mediaTagPrefix = $mediaTagPrefix; + $this->mediaTagVersion = $mediaTagVersion; + $this->metadata = $metadata; } } \ No newline at end of file diff --git a/src/Models/Operations/GetTopWatchedContentMetadata.php b/src/Models/Operations/GetTopWatchedContentMetadata.php index e382253..5cb03f8 100644 --- a/src/Models/Operations/GetTopWatchedContentMetadata.php +++ b/src/Models/Operations/GetTopWatchedContentMetadata.php @@ -1,234 +1,349 @@ ")] #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?\DateTime $originallyAvailableAt = null; + public ?LocalDate $originallyAvailableAt = null; + /** + * + * @var ?int $leafCount + */ #[\JMS\Serializer\Annotation\SerializedName('leafCount')] - #[\JMS\Serializer\Annotation\Type('int')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?int $leafCount = null; + /** + * + * @var ?int $viewedLeafCount + */ #[\JMS\Serializer\Annotation\SerializedName('viewedLeafCount')] - #[\JMS\Serializer\Annotation\Type('int')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?int $viewedLeafCount = null; + /** + * + * @var ?int $childCount + */ #[\JMS\Serializer\Annotation\SerializedName('childCount')] - #[\JMS\Serializer\Annotation\Type('int')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?int $childCount = null; + /** + * + * @var ?int $addedAt + */ #[\JMS\Serializer\Annotation\SerializedName('addedAt')] - #[\JMS\Serializer\Annotation\Type('int')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?int $addedAt = null; + /** + * + * @var ?int $updatedAt + */ #[\JMS\Serializer\Annotation\SerializedName('updatedAt')] - #[\JMS\Serializer\Annotation\Type('int')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?int $updatedAt = null; + /** + * + * @var ?int $globalViewCount + */ #[\JMS\Serializer\Annotation\SerializedName('globalViewCount')] - #[\JMS\Serializer\Annotation\Type('int')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?int $globalViewCount = null; + /** + * + * @var ?string $audienceRatingImage + */ #[\JMS\Serializer\Annotation\SerializedName('audienceRatingImage')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $audienceRatingImage = null; /** * $genre * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetTopWatchedContentGenre> $genre + * @var ?array $genre */ #[\JMS\Serializer\Annotation\SerializedName('Genre')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetTopWatchedContentGenre>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $genre = null; /** * $country * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetTopWatchedContentCountry> $country + * @var ?array $country */ #[\JMS\Serializer\Annotation\SerializedName('Country')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetTopWatchedContentCountry>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $country = null; /** * $guids * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetTopWatchedContentGuids> $guids + * @var ?array $guids */ #[\JMS\Serializer\Annotation\SerializedName('Guid')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetTopWatchedContentGuids>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $guids = null; /** * $role * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\GetTopWatchedContentRole> $role + * @var ?array $role */ #[\JMS\Serializer\Annotation\SerializedName('Role')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetTopWatchedContentRole>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $role = null; /** * $user * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\User> $user + * @var ?array $user */ #[\JMS\Serializer\Annotation\SerializedName('User')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\User>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $user = null; - public function __construct() + /** + * @param ?string $ratingKey + * @param ?string $key + * @param ?string $guid + * @param ?string $slug + * @param ?string $studio + * @param ?string $type + * @param ?string $title + * @param ?string $librarySectionTitle + * @param ?int $librarySectionID + * @param ?string $librarySectionKey + * @param ?string $contentRating + * @param ?string $summary + * @param ?int $index + * @param ?float $audienceRating + * @param ?int $year + * @param ?string $tagline + * @param ?string $thumb + * @param ?string $art + * @param ?int $duration + * @param ?LocalDate $originallyAvailableAt + * @param ?int $leafCount + * @param ?int $viewedLeafCount + * @param ?int $childCount + * @param ?int $addedAt + * @param ?int $updatedAt + * @param ?int $globalViewCount + * @param ?string $audienceRatingImage + * @param ?array $genre + * @param ?array $country + * @param ?array $guids + * @param ?array $role + * @param ?array $user + */ + public function __construct(?string $ratingKey = null, ?string $key = null, ?string $guid = null, ?string $slug = null, ?string $studio = null, ?string $type = null, ?string $title = null, ?string $librarySectionTitle = null, ?int $librarySectionID = null, ?string $librarySectionKey = null, ?string $contentRating = null, ?string $summary = null, ?int $index = null, ?float $audienceRating = null, ?int $year = null, ?string $tagline = null, ?string $thumb = null, ?string $art = null, ?int $duration = null, ?LocalDate $originallyAvailableAt = null, ?int $leafCount = null, ?int $viewedLeafCount = null, ?int $childCount = null, ?int $addedAt = null, ?int $updatedAt = null, ?int $globalViewCount = null, ?string $audienceRatingImage = null, ?array $genre = null, ?array $country = null, ?array $guids = null, ?array $role = null, ?array $user = null) { - $this->ratingKey = null; - $this->key = null; - $this->guid = null; - $this->slug = null; - $this->studio = null; - $this->type = null; - $this->title = null; - $this->librarySectionTitle = null; - $this->librarySectionID = null; - $this->librarySectionKey = null; - $this->contentRating = null; - $this->summary = null; - $this->index = null; - $this->audienceRating = null; - $this->year = null; - $this->tagline = null; - $this->thumb = null; - $this->art = null; - $this->duration = null; - $this->originallyAvailableAt = null; - $this->leafCount = null; - $this->viewedLeafCount = null; - $this->childCount = null; - $this->addedAt = null; - $this->updatedAt = null; - $this->globalViewCount = null; - $this->audienceRatingImage = null; - $this->genre = null; - $this->country = null; - $this->guids = null; - $this->role = null; - $this->user = null; + $this->ratingKey = $ratingKey; + $this->key = $key; + $this->guid = $guid; + $this->slug = $slug; + $this->studio = $studio; + $this->type = $type; + $this->title = $title; + $this->librarySectionTitle = $librarySectionTitle; + $this->librarySectionID = $librarySectionID; + $this->librarySectionKey = $librarySectionKey; + $this->contentRating = $contentRating; + $this->summary = $summary; + $this->index = $index; + $this->audienceRating = $audienceRating; + $this->year = $year; + $this->tagline = $tagline; + $this->thumb = $thumb; + $this->art = $art; + $this->duration = $duration; + $this->originallyAvailableAt = $originallyAvailableAt; + $this->leafCount = $leafCount; + $this->viewedLeafCount = $viewedLeafCount; + $this->childCount = $childCount; + $this->addedAt = $addedAt; + $this->updatedAt = $updatedAt; + $this->globalViewCount = $globalViewCount; + $this->audienceRatingImage = $audienceRatingImage; + $this->genre = $genre; + $this->country = $country; + $this->guids = $guids; + $this->role = $role; + $this->user = $user; } } \ No newline at end of file diff --git a/src/Models/Operations/GetTopWatchedContentRequest.php b/src/Models/Operations/GetTopWatchedContentRequest.php index 002f9ac..2aa4e87 100644 --- a/src/Models/Operations/GetTopWatchedContentRequest.php +++ b/src/Models/Operations/GetTopWatchedContentRequest.php @@ -1,7 +1,7 @@ type = 0; - $this->includeGuids = null; + $this->type = $type; + $this->includeGuids = $includeGuids; } } \ No newline at end of file diff --git a/src/Models/Operations/GetTopWatchedContentResponse.php b/src/Models/Operations/GetTopWatchedContentResponse.php index fd15951..96ad48f 100644 --- a/src/Models/Operations/GetTopWatchedContentResponse.php +++ b/src/Models/Operations/GetTopWatchedContentResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->object = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->object = $object; } } \ No newline at end of file diff --git a/src/Models/Operations/GetTopWatchedContentResponseBody.php b/src/Models/Operations/GetTopWatchedContentResponseBody.php index a76eed3..bce3218 100644 --- a/src/Models/Operations/GetTopWatchedContentResponseBody.php +++ b/src/Models/Operations/GetTopWatchedContentResponseBody.php @@ -1,7 +1,7 @@ mediaContainer = null; + $this->mediaContainer = $mediaContainer; } } \ No newline at end of file diff --git a/src/Models/Operations/GetTopWatchedContentRole.php b/src/Models/Operations/GetTopWatchedContentRole.php index 65d55d7..28a2ea3 100644 --- a/src/Models/Operations/GetTopWatchedContentRole.php +++ b/src/Models/Operations/GetTopWatchedContentRole.php @@ -1,7 +1,7 @@ id = null; - $this->filter = null; - $this->tag = null; - $this->tagKey = null; - $this->role = null; - $this->thumb = null; + $this->id = $id; + $this->filter = $filter; + $this->tag = $tag; + $this->tagKey = $tagKey; + $this->role = $role; + $this->thumb = $thumb; } } \ No newline at end of file diff --git a/src/Models/Operations/GetTranscodeSessionsErrors.php b/src/Models/Operations/GetTranscodeSessionsErrors.php deleted file mode 100644 index 52af107..0000000 --- a/src/Models/Operations/GetTranscodeSessionsErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetTranscodeSessionsMediaContainer.php b/src/Models/Operations/GetTranscodeSessionsMediaContainer.php index 1cff9b4..1c94bab 100644 --- a/src/Models/Operations/GetTranscodeSessionsMediaContainer.php +++ b/src/Models/Operations/GetTranscodeSessionsMediaContainer.php @@ -1,7 +1,7 @@ $transcodeSession + * @var ?array $transcodeSession */ #[\JMS\Serializer\Annotation\SerializedName('TranscodeSession')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\TranscodeSession>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $transcodeSession = null; - public function __construct() + /** + * @param ?int $size + * @param ?array $transcodeSession + */ + public function __construct(?int $size = null, ?array $transcodeSession = null) { - $this->size = null; - $this->transcodeSession = null; + $this->size = $size; + $this->transcodeSession = $transcodeSession; } } \ No newline at end of file diff --git a/src/Models/Operations/GetTranscodeSessionsResponse.php b/src/Models/Operations/GetTranscodeSessionsResponse.php index 4c6072f..32a2a18 100644 --- a/src/Models/Operations/GetTranscodeSessionsResponse.php +++ b/src/Models/Operations/GetTranscodeSessionsResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->twoHundredApplicationJsonObject = null; - $this->fourHundredAndOneApplicationJsonObject = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->object = $object; } } \ No newline at end of file diff --git a/src/Models/Operations/GetTranscodeSessionsResponseBody.php b/src/Models/Operations/GetTranscodeSessionsResponseBody.php index 25739b0..0f5a282 100644 --- a/src/Models/Operations/GetTranscodeSessionsResponseBody.php +++ b/src/Models/Operations/GetTranscodeSessionsResponseBody.php @@ -1,7 +1,7 @@ mediaContainer = null; + $this->mediaContainer = $mediaContainer; } } \ No newline at end of file diff --git a/src/Models/Operations/GetTranscodeSessionsSessionsResponseBody.php b/src/Models/Operations/GetTranscodeSessionsSessionsResponseBody.php deleted file mode 100644 index c6366b2..0000000 --- a/src/Models/Operations/GetTranscodeSessionsSessionsResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetTransientTokenErrors.php b/src/Models/Operations/GetTransientTokenErrors.php deleted file mode 100644 index 6fb7a1a..0000000 --- a/src/Models/Operations/GetTransientTokenErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetTransientTokenQueryParamType.php b/src/Models/Operations/GetTransientTokenQueryParamType.php index 3cfde4d..c0e8022 100644 --- a/src/Models/Operations/GetTransientTokenQueryParamType.php +++ b/src/Models/Operations/GetTransientTokenQueryParamType.php @@ -1,7 +1,7 @@ type = \LukeHagar\Plex_API\Models\Operations\GetTransientTokenQueryParamType::Delegation; - $this->scope = \LukeHagar\Plex_API\Models\Operations\Scope::All; + $this->type = $type; + $this->scope = $scope; } } \ No newline at end of file diff --git a/src/Models/Operations/GetTransientTokenResponse.php b/src/Models/Operations/GetTransientTokenResponse.php index eba4a3e..b3d6794 100644 --- a/src/Models/Operations/GetTransientTokenResponse.php +++ b/src/Models/Operations/GetTransientTokenResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->object = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; } } \ No newline at end of file diff --git a/src/Models/Operations/GetTransientTokenResponseBody.php b/src/Models/Operations/GetTransientTokenResponseBody.php deleted file mode 100644 index 12b9e05..0000000 --- a/src/Models/Operations/GetTransientTokenResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetUpdateStatusErrors.php b/src/Models/Operations/GetUpdateStatusErrors.php deleted file mode 100644 index 3099993..0000000 --- a/src/Models/Operations/GetUpdateStatusErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetUpdateStatusMediaContainer.php b/src/Models/Operations/GetUpdateStatusMediaContainer.php index af1bca2..90db8d5 100644 --- a/src/Models/Operations/GetUpdateStatusMediaContainer.php +++ b/src/Models/Operations/GetUpdateStatusMediaContainer.php @@ -1,7 +1,7 @@ $release + * @var ?array $release */ #[\JMS\Serializer\Annotation\SerializedName('Release')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\Release>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $release = null; - public function __construct() + /** + * @param ?int $size + * @param ?bool $canInstall + * @param ?int $checkedAt + * @param ?string $downloadURL + * @param ?int $status + * @param ?array $release + */ + public function __construct(?int $size = null, ?bool $canInstall = null, ?int $checkedAt = null, ?string $downloadURL = null, ?int $status = null, ?array $release = null) { - $this->size = null; - $this->canInstall = null; - $this->checkedAt = null; - $this->downloadURL = null; - $this->status = null; - $this->release = null; + $this->size = $size; + $this->canInstall = $canInstall; + $this->checkedAt = $checkedAt; + $this->downloadURL = $downloadURL; + $this->status = $status; + $this->release = $release; } } \ No newline at end of file diff --git a/src/Models/Operations/GetUpdateStatusResponse.php b/src/Models/Operations/GetUpdateStatusResponse.php index 1004d1d..acb2de5 100644 --- a/src/Models/Operations/GetUpdateStatusResponse.php +++ b/src/Models/Operations/GetUpdateStatusResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->twoHundredApplicationJsonObject = null; - $this->fourHundredAndOneApplicationJsonObject = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->object = $object; } } \ No newline at end of file diff --git a/src/Models/Operations/GetUpdateStatusResponseBody.php b/src/Models/Operations/GetUpdateStatusResponseBody.php index d7b2d52..63dcf7f 100644 --- a/src/Models/Operations/GetUpdateStatusResponseBody.php +++ b/src/Models/Operations/GetUpdateStatusResponseBody.php @@ -1,7 +1,7 @@ mediaContainer = null; + $this->mediaContainer = $mediaContainer; } } \ No newline at end of file diff --git a/src/Models/Operations/GetUpdateStatusUpdaterResponseBody.php b/src/Models/Operations/GetUpdateStatusUpdaterResponseBody.php deleted file mode 100644 index 29cf4a9..0000000 --- a/src/Models/Operations/GetUpdateStatusUpdaterResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetWatchlistErrors.php b/src/Models/Operations/GetWatchlistErrors.php deleted file mode 100644 index bb296e6..0000000 --- a/src/Models/Operations/GetWatchlistErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/GetWatchlistRequest.php b/src/Models/Operations/GetWatchlistRequest.php index b2974b3..18e10a6 100644 --- a/src/Models/Operations/GetWatchlistRequest.php +++ b/src/Models/Operations/GetWatchlistRequest.php @@ -1,7 +1,7 @@ filter = \LukeHagar\Plex_API\Models\Operations\PathParamFilter::All; - $this->sort = null; - $this->libtype = null; - $this->maxresults = null; - $this->includeCollections = null; - $this->includeExternalMedia = null; - $this->xPlexToken = ''; - $this->xPlexContainerStart = null; - $this->xPlexContainerSize = null; + $this->filter = $filter; + $this->xPlexToken = $xPlexToken; + $this->sort = $sort; + $this->libtype = $libtype; + $this->maxresults = $maxresults; + $this->includeCollections = $includeCollections; + $this->includeExternalMedia = $includeExternalMedia; + $this->xPlexContainerStart = $xPlexContainerStart; + $this->xPlexContainerSize = $xPlexContainerSize; } } \ No newline at end of file diff --git a/src/Models/Operations/GetWatchlistResponse.php b/src/Models/Operations/GetWatchlistResponse.php index 3526214..24a38e5 100644 --- a/src/Models/Operations/GetWatchlistResponse.php +++ b/src/Models/Operations/GetWatchlistResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->twoHundredApplicationJsonObject = null; - $this->fourHundredAndOneApplicationJsonObject = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->object = $object; } } \ No newline at end of file diff --git a/src/Models/Operations/GetWatchlistResponseBody.php b/src/Models/Operations/GetWatchlistResponseBody.php index 47bfa07..7bd7eec 100644 --- a/src/Models/Operations/GetWatchlistResponseBody.php +++ b/src/Models/Operations/GetWatchlistResponseBody.php @@ -1,7 +1,7 @@ $metadata + * @var ?array $metadata */ #[\JMS\Serializer\Annotation\SerializedName('Metadata')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\Metadata>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $metadata = null; - public function __construct() + /** + * @param ?string $librarySectionID + * @param ?string $librarySectionTitle + * @param ?int $offset + * @param ?int $totalSize + * @param ?string $identifier + * @param ?int $size + * @param ?array $metadata + */ + public function __construct(?string $librarySectionID = null, ?string $librarySectionTitle = null, ?int $offset = null, ?int $totalSize = null, ?string $identifier = null, ?int $size = null, ?array $metadata = null) { - $this->librarySectionID = null; - $this->librarySectionTitle = null; - $this->offset = null; - $this->totalSize = null; - $this->identifier = null; - $this->size = null; - $this->metadata = null; + $this->librarySectionID = $librarySectionID; + $this->librarySectionTitle = $librarySectionTitle; + $this->offset = $offset; + $this->totalSize = $totalSize; + $this->identifier = $identifier; + $this->size = $size; + $this->metadata = $metadata; } } \ No newline at end of file diff --git a/src/Models/Operations/GetWatchlistWatchlistResponseBody.php b/src/Models/Operations/GetWatchlistWatchlistResponseBody.php deleted file mode 100644 index 291487f..0000000 --- a/src/Models/Operations/GetWatchlistWatchlistResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/Guids.php b/src/Models/Operations/Guids.php index 42f69ea..9c67d23 100644 --- a/src/Models/Operations/Guids.php +++ b/src/Models/Operations/Guids.php @@ -1,7 +1,7 @@ id = null; + $this->id = $id; } } \ No newline at end of file diff --git a/src/Models/Operations/Hub.php b/src/Models/Operations/Hub.php index 6d66db0..6324e09 100644 --- a/src/Models/Operations/Hub.php +++ b/src/Models/Operations/Hub.php @@ -1,7 +1,7 @@ $metadata + * @var ?array $metadata */ #[\JMS\Serializer\Annotation\SerializedName('Metadata')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetGlobalHubsMetadata>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $metadata = null; - public function __construct() + /** + * @param ?string $hubKey + * @param ?string $key + * @param ?string $title + * @param ?string $type + * @param ?string $hubIdentifier + * @param ?string $context + * @param ?int $size + * @param ?bool $more + * @param ?string $style + * @param ?bool $promoted + * @param ?array $metadata + */ + public function __construct(?string $hubKey = null, ?string $key = null, ?string $title = null, ?string $type = null, ?string $hubIdentifier = null, ?string $context = null, ?int $size = null, ?bool $more = null, ?string $style = null, ?bool $promoted = null, ?array $metadata = null) { - $this->hubKey = null; - $this->key = null; - $this->title = null; - $this->type = null; - $this->hubIdentifier = null; - $this->context = null; - $this->size = null; - $this->more = null; - $this->style = null; - $this->promoted = null; - $this->metadata = null; + $this->hubKey = $hubKey; + $this->key = $key; + $this->title = $title; + $this->type = $type; + $this->hubIdentifier = $hubIdentifier; + $this->context = $context; + $this->size = $size; + $this->more = $more; + $this->style = $style; + $this->promoted = $promoted; + $this->metadata = $metadata; } } \ No newline at end of file diff --git a/src/Models/Operations/Image.php b/src/Models/Operations/Image.php index 22ff10b..0a21cd4 100644 --- a/src/Models/Operations/Image.php +++ b/src/Models/Operations/Image.php @@ -1,7 +1,7 @@ alt = null; - $this->type = null; - $this->url = null; + $this->alt = $alt; + $this->type = $type; + $this->url = $url; } } \ No newline at end of file diff --git a/src/Models/Operations/IncludeCollections.php b/src/Models/Operations/IncludeCollections.php index 281042b..b32a1a7 100644 --- a/src/Models/Operations/IncludeCollections.php +++ b/src/Models/Operations/IncludeCollections.php @@ -1,7 +1,7 @@ code = null; - $this->europeanUnionMember = null; - $this->continentCode = null; - $this->country = null; - $this->city = null; - $this->timeZone = null; - $this->postalCode = null; - $this->inPrivacyRestrictedCountry = null; - $this->subdivisions = null; - $this->coordinates = null; + $this->code = $code; + $this->europeanUnionMember = $europeanUnionMember; + $this->continentCode = $continentCode; + $this->country = $country; + $this->city = $city; + $this->timeZone = $timeZone; + $this->postalCode = $postalCode; + $this->inPrivacyRestrictedCountry = $inPrivacyRestrictedCountry; + $this->subdivisions = $subdivisions; + $this->coordinates = $coordinates; } } \ No newline at end of file diff --git a/src/Models/Operations/LogLineErrors.php b/src/Models/Operations/LogLineErrors.php deleted file mode 100644 index d79fff8..0000000 --- a/src/Models/Operations/LogLineErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/LogLineRequest.php b/src/Models/Operations/LogLineRequest.php index 8f1f644..7d98323 100644 --- a/src/Models/Operations/LogLineRequest.php +++ b/src/Models/Operations/LogLineRequest.php @@ -1,7 +1,7 @@ level = \LukeHagar\Plex_API\Models\Operations\Level::Zero; - $this->message = ''; - $this->source = ''; + $this->level = $level; + $this->message = $message; + $this->source = $source; } } \ No newline at end of file diff --git a/src/Models/Operations/LogLineResponse.php b/src/Models/Operations/LogLineResponse.php index 4a56492..c7a0a34 100644 --- a/src/Models/Operations/LogLineResponse.php +++ b/src/Models/Operations/LogLineResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->object = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; } } \ No newline at end of file diff --git a/src/Models/Operations/LogLineResponseBody.php b/src/Models/Operations/LogLineResponseBody.php deleted file mode 100644 index f352484..0000000 --- a/src/Models/Operations/LogLineResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/LogMultiLineErrors.php b/src/Models/Operations/LogMultiLineErrors.php deleted file mode 100644 index f24eb5c..0000000 --- a/src/Models/Operations/LogMultiLineErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/LogMultiLineResponse.php b/src/Models/Operations/LogMultiLineResponse.php index 3bb427f..05a76e2 100644 --- a/src/Models/Operations/LogMultiLineResponse.php +++ b/src/Models/Operations/LogMultiLineResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->object = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; } } \ No newline at end of file diff --git a/src/Models/Operations/LogMultiLineResponseBody.php b/src/Models/Operations/LogMultiLineResponseBody.php deleted file mode 100644 index 6e4d5dc..0000000 --- a/src/Models/Operations/LogMultiLineResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/MarkPlayedErrors.php b/src/Models/Operations/MarkPlayedErrors.php deleted file mode 100644 index 44a845f..0000000 --- a/src/Models/Operations/MarkPlayedErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/MarkPlayedRequest.php b/src/Models/Operations/MarkPlayedRequest.php index 5717f11..a4e89a0 100644 --- a/src/Models/Operations/MarkPlayedRequest.php +++ b/src/Models/Operations/MarkPlayedRequest.php @@ -1,7 +1,7 @@ key = 0; + $this->key = $key; } } \ No newline at end of file diff --git a/src/Models/Operations/MarkPlayedResponse.php b/src/Models/Operations/MarkPlayedResponse.php index 1b38025..b7648e7 100644 --- a/src/Models/Operations/MarkPlayedResponse.php +++ b/src/Models/Operations/MarkPlayedResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->object = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; } } \ No newline at end of file diff --git a/src/Models/Operations/MarkPlayedResponseBody.php b/src/Models/Operations/MarkPlayedResponseBody.php deleted file mode 100644 index a99c8fe..0000000 --- a/src/Models/Operations/MarkPlayedResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/MarkUnplayedErrors.php b/src/Models/Operations/MarkUnplayedErrors.php deleted file mode 100644 index 9360172..0000000 --- a/src/Models/Operations/MarkUnplayedErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/MarkUnplayedRequest.php b/src/Models/Operations/MarkUnplayedRequest.php index 495e085..67f7f41 100644 --- a/src/Models/Operations/MarkUnplayedRequest.php +++ b/src/Models/Operations/MarkUnplayedRequest.php @@ -1,7 +1,7 @@ key = 0; + $this->key = $key; } } \ No newline at end of file diff --git a/src/Models/Operations/MarkUnplayedResponse.php b/src/Models/Operations/MarkUnplayedResponse.php index af33290..4d50103 100644 --- a/src/Models/Operations/MarkUnplayedResponse.php +++ b/src/Models/Operations/MarkUnplayedResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->object = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; } } \ No newline at end of file diff --git a/src/Models/Operations/MarkUnplayedResponseBody.php b/src/Models/Operations/MarkUnplayedResponseBody.php deleted file mode 100644 index 1ab484b..0000000 --- a/src/Models/Operations/MarkUnplayedResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/Media.php b/src/Models/Operations/Media.php index 0f74b19..c883492 100644 --- a/src/Models/Operations/Media.php +++ b/src/Models/Operations/Media.php @@ -1,7 +1,7 @@ $part + * @var ?array $part */ #[\JMS\Serializer\Annotation\SerializedName('Part')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\Part>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $part = null; - public function __construct() + /** + * @param ?float $id + * @param ?float $duration + * @param ?float $bitrate + * @param ?float $width + * @param ?float $height + * @param ?float $aspectRatio + * @param ?float $audioChannels + * @param ?string $audioCodec + * @param ?string $videoCodec + * @param ?float $videoResolution + * @param ?string $container + * @param ?string $videoFrameRate + * @param ?float $optimizedForStreaming + * @param ?bool $has64bitOffsets + * @param ?string $videoProfile + * @param ?array $part + */ + public function __construct(?float $id = null, ?float $duration = null, ?float $bitrate = null, ?float $width = null, ?float $height = null, ?float $aspectRatio = null, ?float $audioChannels = null, ?string $audioCodec = null, ?string $videoCodec = null, ?float $videoResolution = null, ?string $container = null, ?string $videoFrameRate = null, ?float $optimizedForStreaming = null, ?bool $has64bitOffsets = null, ?string $videoProfile = null, ?array $part = null) { - $this->id = null; - $this->duration = null; - $this->bitrate = null; - $this->width = null; - $this->height = null; - $this->aspectRatio = null; - $this->audioChannels = null; - $this->audioCodec = null; - $this->videoCodec = null; - $this->videoResolution = null; - $this->container = null; - $this->videoFrameRate = null; - $this->optimizedForStreaming = null; - $this->has64bitOffsets = null; - $this->videoProfile = null; - $this->part = null; + $this->id = $id; + $this->duration = $duration; + $this->bitrate = $bitrate; + $this->width = $width; + $this->height = $height; + $this->aspectRatio = $aspectRatio; + $this->audioChannels = $audioChannels; + $this->audioCodec = $audioCodec; + $this->videoCodec = $videoCodec; + $this->videoResolution = $videoResolution; + $this->container = $container; + $this->videoFrameRate = $videoFrameRate; + $this->optimizedForStreaming = $optimizedForStreaming; + $this->has64bitOffsets = $has64bitOffsets; + $this->videoProfile = $videoProfile; + $this->part = $part; } } \ No newline at end of file diff --git a/src/Models/Operations/MediaContainer.php b/src/Models/Operations/MediaContainer.php index 3f915bb..0046a02 100644 --- a/src/Models/Operations/MediaContainer.php +++ b/src/Models/Operations/MediaContainer.php @@ -1,7 +1,7 @@ $directory + * @var ?array $directory */ #[\JMS\Serializer\Annotation\SerializedName('Directory')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\Directory>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $directory = null; - public function __construct() + /** + * @param ?float $size + * @param ?bool $allowCameraUpload + * @param ?bool $allowChannelAccess + * @param ?bool $allowMediaDeletion + * @param ?bool $allowSharing + * @param ?bool $allowSync + * @param ?bool $allowTuners + * @param ?bool $backgroundProcessing + * @param ?bool $certificate + * @param ?bool $companionProxy + * @param ?string $countryCode + * @param ?string $diagnostics + * @param ?bool $eventStream + * @param ?string $friendlyName + * @param ?bool $hubSearch + * @param ?bool $itemClusters + * @param ?float $livetv + * @param ?string $machineIdentifier + * @param ?bool $mediaProviders + * @param ?bool $multiuser + * @param ?float $musicAnalysis + * @param ?bool $myPlex + * @param ?string $myPlexMappingState + * @param ?string $myPlexSigninState + * @param ?bool $myPlexSubscription + * @param ?string $myPlexUsername + * @param ?float $offlineTranscode + * @param ?string $ownerFeatures + * @param ?bool $photoAutoTag + * @param ?string $platform + * @param ?string $platformVersion + * @param ?bool $pluginHost + * @param ?bool $pushNotifications + * @param ?bool $readOnlyLibraries + * @param ?float $streamingBrainABRVersion + * @param ?float $streamingBrainVersion + * @param ?bool $sync + * @param ?float $transcoderActiveVideoSessions + * @param ?bool $transcoderAudio + * @param ?bool $transcoderLyrics + * @param ?bool $transcoderPhoto + * @param ?bool $transcoderSubtitles + * @param ?bool $transcoderVideo + * @param ?string $transcoderVideoBitrates + * @param ?string $transcoderVideoQualities + * @param ?string $transcoderVideoResolutions + * @param ?float $updatedAt + * @param ?bool $updater + * @param ?string $version + * @param ?bool $voiceSearch + * @param ?array $directory + */ + public function __construct(?float $size = null, ?bool $allowCameraUpload = null, ?bool $allowChannelAccess = null, ?bool $allowMediaDeletion = null, ?bool $allowSharing = null, ?bool $allowSync = null, ?bool $allowTuners = null, ?bool $backgroundProcessing = null, ?bool $certificate = null, ?bool $companionProxy = null, ?string $countryCode = null, ?string $diagnostics = null, ?bool $eventStream = null, ?string $friendlyName = null, ?bool $hubSearch = null, ?bool $itemClusters = null, ?float $livetv = null, ?string $machineIdentifier = null, ?bool $mediaProviders = null, ?bool $multiuser = null, ?float $musicAnalysis = null, ?bool $myPlex = null, ?string $myPlexMappingState = null, ?string $myPlexSigninState = null, ?bool $myPlexSubscription = null, ?string $myPlexUsername = null, ?float $offlineTranscode = null, ?string $ownerFeatures = null, ?bool $photoAutoTag = null, ?string $platform = null, ?string $platformVersion = null, ?bool $pluginHost = null, ?bool $pushNotifications = null, ?bool $readOnlyLibraries = null, ?float $streamingBrainABRVersion = null, ?float $streamingBrainVersion = null, ?bool $sync = null, ?float $transcoderActiveVideoSessions = null, ?bool $transcoderAudio = null, ?bool $transcoderLyrics = null, ?bool $transcoderPhoto = null, ?bool $transcoderSubtitles = null, ?bool $transcoderVideo = null, ?string $transcoderVideoBitrates = null, ?string $transcoderVideoQualities = null, ?string $transcoderVideoResolutions = null, ?float $updatedAt = null, ?bool $updater = null, ?string $version = null, ?bool $voiceSearch = null, ?array $directory = null) { - $this->size = null; - $this->allowCameraUpload = null; - $this->allowChannelAccess = null; - $this->allowMediaDeletion = null; - $this->allowSharing = null; - $this->allowSync = null; - $this->allowTuners = null; - $this->backgroundProcessing = null; - $this->certificate = null; - $this->companionProxy = null; - $this->countryCode = null; - $this->diagnostics = null; - $this->eventStream = null; - $this->friendlyName = null; - $this->hubSearch = null; - $this->itemClusters = null; - $this->livetv = null; - $this->machineIdentifier = null; - $this->mediaProviders = null; - $this->multiuser = null; - $this->musicAnalysis = null; - $this->myPlex = null; - $this->myPlexMappingState = null; - $this->myPlexSigninState = null; - $this->myPlexSubscription = null; - $this->myPlexUsername = null; - $this->offlineTranscode = null; - $this->ownerFeatures = null; - $this->photoAutoTag = null; - $this->platform = null; - $this->platformVersion = null; - $this->pluginHost = null; - $this->pushNotifications = null; - $this->readOnlyLibraries = null; - $this->streamingBrainABRVersion = null; - $this->streamingBrainVersion = null; - $this->sync = null; - $this->transcoderActiveVideoSessions = null; - $this->transcoderAudio = null; - $this->transcoderLyrics = null; - $this->transcoderPhoto = null; - $this->transcoderSubtitles = null; - $this->transcoderVideo = null; - $this->transcoderVideoBitrates = null; - $this->transcoderVideoQualities = null; - $this->transcoderVideoResolutions = null; - $this->updatedAt = null; - $this->updater = null; - $this->version = null; - $this->voiceSearch = null; - $this->directory = null; + $this->size = $size; + $this->allowCameraUpload = $allowCameraUpload; + $this->allowChannelAccess = $allowChannelAccess; + $this->allowMediaDeletion = $allowMediaDeletion; + $this->allowSharing = $allowSharing; + $this->allowSync = $allowSync; + $this->allowTuners = $allowTuners; + $this->backgroundProcessing = $backgroundProcessing; + $this->certificate = $certificate; + $this->companionProxy = $companionProxy; + $this->countryCode = $countryCode; + $this->diagnostics = $diagnostics; + $this->eventStream = $eventStream; + $this->friendlyName = $friendlyName; + $this->hubSearch = $hubSearch; + $this->itemClusters = $itemClusters; + $this->livetv = $livetv; + $this->machineIdentifier = $machineIdentifier; + $this->mediaProviders = $mediaProviders; + $this->multiuser = $multiuser; + $this->musicAnalysis = $musicAnalysis; + $this->myPlex = $myPlex; + $this->myPlexMappingState = $myPlexMappingState; + $this->myPlexSigninState = $myPlexSigninState; + $this->myPlexSubscription = $myPlexSubscription; + $this->myPlexUsername = $myPlexUsername; + $this->offlineTranscode = $offlineTranscode; + $this->ownerFeatures = $ownerFeatures; + $this->photoAutoTag = $photoAutoTag; + $this->platform = $platform; + $this->platformVersion = $platformVersion; + $this->pluginHost = $pluginHost; + $this->pushNotifications = $pushNotifications; + $this->readOnlyLibraries = $readOnlyLibraries; + $this->streamingBrainABRVersion = $streamingBrainABRVersion; + $this->streamingBrainVersion = $streamingBrainVersion; + $this->sync = $sync; + $this->transcoderActiveVideoSessions = $transcoderActiveVideoSessions; + $this->transcoderAudio = $transcoderAudio; + $this->transcoderLyrics = $transcoderLyrics; + $this->transcoderPhoto = $transcoderPhoto; + $this->transcoderSubtitles = $transcoderSubtitles; + $this->transcoderVideo = $transcoderVideo; + $this->transcoderVideoBitrates = $transcoderVideoBitrates; + $this->transcoderVideoQualities = $transcoderVideoQualities; + $this->transcoderVideoResolutions = $transcoderVideoResolutions; + $this->updatedAt = $updatedAt; + $this->updater = $updater; + $this->version = $version; + $this->voiceSearch = $voiceSearch; + $this->directory = $directory; } } \ No newline at end of file diff --git a/src/Models/Operations/Metadata.php b/src/Models/Operations/Metadata.php index ba74277..71315e7 100644 --- a/src/Models/Operations/Metadata.php +++ b/src/Models/Operations/Metadata.php @@ -1,232 +1,371 @@ ")] #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?\DateTime $originallyAvailableAt = null; + public ?LocalDate $originallyAvailableAt = null; + /** + * + * @var ?int $year + */ #[\JMS\Serializer\Annotation\SerializedName('year')] - #[\JMS\Serializer\Annotation\Type('int')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?int $year = null; /** * $image * - * @var ?array<\LukeHagar\Plex_API\Models\Operations\Image> $image + * @var ?array $image */ #[\JMS\Serializer\Annotation\SerializedName('Image')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\Image>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $image = null; + /** + * + * @var ?string $banner + */ #[\JMS\Serializer\Annotation\SerializedName('banner')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $banner = null; + /** + * + * @var ?float $rating + */ #[\JMS\Serializer\Annotation\SerializedName('rating')] - #[\JMS\Serializer\Annotation\Type('float')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?float $rating = null; + /** + * + * @var ?int $expiresAt + */ #[\JMS\Serializer\Annotation\SerializedName('expiresAt')] - #[\JMS\Serializer\Annotation\Type('int')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?int $expiresAt = null; + /** + * + * @var ?string $originalTitle + */ #[\JMS\Serializer\Annotation\SerializedName('originalTitle')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $originalTitle = null; + /** + * + * @var ?float $audienceRating + */ #[\JMS\Serializer\Annotation\SerializedName('audienceRating')] - #[\JMS\Serializer\Annotation\Type('float')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?float $audienceRating = null; + /** + * + * @var ?string $audienceRatingImage + */ #[\JMS\Serializer\Annotation\SerializedName('audienceRatingImage')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $audienceRatingImage = null; + /** + * + * @var ?string $ratingImage + */ #[\JMS\Serializer\Annotation\SerializedName('ratingImage')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $ratingImage = null; + /** + * + * @var ?int $imdbRatingCount + */ #[\JMS\Serializer\Annotation\SerializedName('imdbRatingCount')] - #[\JMS\Serializer\Annotation\Type('int')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?int $imdbRatingCount = null; + /** + * + * @var ?string $subtype + */ #[\JMS\Serializer\Annotation\SerializedName('subtype')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $subtype = null; + /** + * + * @var ?string $theme + */ #[\JMS\Serializer\Annotation\SerializedName('theme')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $theme = null; + /** + * + * @var ?int $leafCount + */ #[\JMS\Serializer\Annotation\SerializedName('leafCount')] - #[\JMS\Serializer\Annotation\Type('int')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?int $leafCount = null; + /** + * + * @var ?int $childCount + */ #[\JMS\Serializer\Annotation\SerializedName('childCount')] - #[\JMS\Serializer\Annotation\Type('int')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?int $childCount = null; + /** + * + * @var ?bool $isContinuingSeries + */ #[\JMS\Serializer\Annotation\SerializedName('isContinuingSeries')] - #[\JMS\Serializer\Annotation\Type('bool')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?bool $isContinuingSeries = null; + /** + * + * @var ?bool $skipChildren + */ #[\JMS\Serializer\Annotation\SerializedName('skipChildren')] - #[\JMS\Serializer\Annotation\Type('bool')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?bool $skipChildren = null; + /** + * + * @var ?string $availabilityId + */ #[\JMS\Serializer\Annotation\SerializedName('availabilityId')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $availabilityId = null; + /** + * + * @var ?string $streamingMediaId + */ #[\JMS\Serializer\Annotation\SerializedName('streamingMediaId')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $streamingMediaId = null; + /** + * + * @var ?string $playableKey + */ #[\JMS\Serializer\Annotation\SerializedName('playableKey')] - #[\JMS\Serializer\Annotation\Type('string')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $playableKey = null; - public function __construct() + /** + * @param ?string $art + * @param ?string $guid + * @param ?string $key + * @param ?string $ratingKey + * @param ?string $studio + * @param ?string $tagline + * @param ?string $type + * @param ?string $thumb + * @param ?int $addedAt + * @param ?int $duration + * @param ?string $publicPagesURL + * @param ?string $slug + * @param ?bool $userState + * @param ?string $title + * @param ?string $contentRating + * @param ?LocalDate $originallyAvailableAt + * @param ?int $year + * @param ?array $image + * @param ?string $banner + * @param ?float $rating + * @param ?int $expiresAt + * @param ?string $originalTitle + * @param ?float $audienceRating + * @param ?string $audienceRatingImage + * @param ?string $ratingImage + * @param ?int $imdbRatingCount + * @param ?string $subtype + * @param ?string $theme + * @param ?int $leafCount + * @param ?int $childCount + * @param ?bool $isContinuingSeries + * @param ?bool $skipChildren + * @param ?string $availabilityId + * @param ?string $streamingMediaId + * @param ?string $playableKey + */ + public function __construct(?string $art = null, ?string $guid = null, ?string $key = null, ?string $ratingKey = null, ?string $studio = null, ?string $tagline = null, ?string $type = null, ?string $thumb = null, ?int $addedAt = null, ?int $duration = null, ?string $publicPagesURL = null, ?string $slug = null, ?bool $userState = null, ?string $title = null, ?string $contentRating = null, ?LocalDate $originallyAvailableAt = null, ?int $year = null, ?array $image = null, ?string $banner = null, ?float $rating = null, ?int $expiresAt = null, ?string $originalTitle = null, ?float $audienceRating = null, ?string $audienceRatingImage = null, ?string $ratingImage = null, ?int $imdbRatingCount = null, ?string $subtype = null, ?string $theme = null, ?int $leafCount = null, ?int $childCount = null, ?bool $isContinuingSeries = null, ?bool $skipChildren = null, ?string $availabilityId = null, ?string $streamingMediaId = null, ?string $playableKey = null) { - $this->art = null; - $this->guid = null; - $this->key = null; - $this->ratingKey = null; - $this->studio = null; - $this->tagline = null; - $this->type = null; - $this->thumb = null; - $this->addedAt = null; - $this->duration = null; - $this->publicPagesURL = null; - $this->slug = null; - $this->userState = null; - $this->title = null; - $this->contentRating = null; - $this->originallyAvailableAt = null; - $this->year = null; - $this->image = null; - $this->banner = null; - $this->rating = null; - $this->expiresAt = null; - $this->originalTitle = null; - $this->audienceRating = null; - $this->audienceRatingImage = null; - $this->ratingImage = null; - $this->imdbRatingCount = null; - $this->subtype = null; - $this->theme = null; - $this->leafCount = null; - $this->childCount = null; - $this->isContinuingSeries = null; - $this->skipChildren = null; - $this->availabilityId = null; - $this->streamingMediaId = null; - $this->playableKey = null; + $this->art = $art; + $this->guid = $guid; + $this->key = $key; + $this->ratingKey = $ratingKey; + $this->studio = $studio; + $this->tagline = $tagline; + $this->type = $type; + $this->thumb = $thumb; + $this->addedAt = $addedAt; + $this->duration = $duration; + $this->publicPagesURL = $publicPagesURL; + $this->slug = $slug; + $this->userState = $userState; + $this->title = $title; + $this->contentRating = $contentRating; + $this->originallyAvailableAt = $originallyAvailableAt; + $this->year = $year; + $this->image = $image; + $this->banner = $banner; + $this->rating = $rating; + $this->expiresAt = $expiresAt; + $this->originalTitle = $originalTitle; + $this->audienceRating = $audienceRating; + $this->audienceRatingImage = $audienceRatingImage; + $this->ratingImage = $ratingImage; + $this->imdbRatingCount = $imdbRatingCount; + $this->subtype = $subtype; + $this->theme = $theme; + $this->leafCount = $leafCount; + $this->childCount = $childCount; + $this->isContinuingSeries = $isContinuingSeries; + $this->skipChildren = $skipChildren; + $this->availabilityId = $availabilityId; + $this->streamingMediaId = $streamingMediaId; + $this->playableKey = $playableKey; } } \ No newline at end of file diff --git a/src/Models/Operations/MinSize.php b/src/Models/Operations/MinSize.php index ee7b02a..f48c86a 100644 --- a/src/Models/Operations/MinSize.php +++ b/src/Models/Operations/MinSize.php @@ -1,7 +1,7 @@ authToken = null; - $this->username = null; - $this->mappingState = null; - $this->mappingError = null; - $this->signInState = null; - $this->publicAddress = null; - $this->publicPort = null; - $this->privateAddress = null; - $this->privatePort = null; - $this->subscriptionFeatures = null; - $this->subscriptionActive = null; - $this->subscriptionState = null; + $this->authToken = $authToken; + $this->username = $username; + $this->mappingState = $mappingState; + $this->mappingError = $mappingError; + $this->signInState = $signInState; + $this->publicAddress = $publicAddress; + $this->publicPort = $publicPort; + $this->privateAddress = $privateAddress; + $this->privatePort = $privatePort; + $this->subscriptionFeatures = $subscriptionFeatures; + $this->subscriptionActive = $subscriptionActive; + $this->subscriptionState = $subscriptionState; } } \ No newline at end of file diff --git a/src/Models/Operations/OnlyTransient.php b/src/Models/Operations/OnlyTransient.php index 672e9ec..eccb842 100644 --- a/src/Models/Operations/OnlyTransient.php +++ b/src/Models/Operations/OnlyTransient.php @@ -1,7 +1,7 @@ key = null; - $this->title = null; + $this->key = $key; + $this->title = $title; } } \ No newline at end of file diff --git a/src/Models/Operations/Part.php b/src/Models/Operations/Part.php index a898daa..47fe33a 100644 --- a/src/Models/Operations/Part.php +++ b/src/Models/Operations/Part.php @@ -1,7 +1,7 @@ id = null; - $this->key = null; - $this->duration = null; - $this->file = null; - $this->size = null; - $this->container = null; - $this->has64bitOffsets = null; - $this->hasThumbnail = null; - $this->optimizedForStreaming = null; - $this->videoProfile = null; + $this->id = $id; + $this->key = $key; + $this->duration = $duration; + $this->file = $file; + $this->size = $size; + $this->container = $container; + $this->has64bitOffsets = $has64bitOffsets; + $this->hasThumbnail = $hasThumbnail; + $this->optimizedForStreaming = $optimizedForStreaming; + $this->videoProfile = $videoProfile; } } \ No newline at end of file diff --git a/src/Models/Operations/PathParamFilter.php b/src/Models/Operations/PathParamFilter.php index 9031d4c..856520e 100644 --- a/src/Models/Operations/PathParamFilter.php +++ b/src/Models/Operations/PathParamFilter.php @@ -1,7 +1,7 @@ code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/PerformSearchRequest.php b/src/Models/Operations/PerformSearchRequest.php index e21b3c0..f10c7d7 100644 --- a/src/Models/Operations/PerformSearchRequest.php +++ b/src/Models/Operations/PerformSearchRequest.php @@ -1,7 +1,7 @@ query = ''; - $this->sectionId = null; - $this->limit = null; + $this->query = $query; + $this->sectionId = $sectionId; + $this->limit = $limit; } } \ No newline at end of file diff --git a/src/Models/Operations/PerformSearchResponse.php b/src/Models/Operations/PerformSearchResponse.php index ed10638..af17b77 100644 --- a/src/Models/Operations/PerformSearchResponse.php +++ b/src/Models/Operations/PerformSearchResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->object = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; } } \ No newline at end of file diff --git a/src/Models/Operations/PerformSearchResponseBody.php b/src/Models/Operations/PerformSearchResponseBody.php deleted file mode 100644 index 6079073..0000000 --- a/src/Models/Operations/PerformSearchResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/PerformVoiceSearchErrors.php b/src/Models/Operations/PerformVoiceSearchErrors.php deleted file mode 100644 index 7c4709a..0000000 --- a/src/Models/Operations/PerformVoiceSearchErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/PerformVoiceSearchRequest.php b/src/Models/Operations/PerformVoiceSearchRequest.php index 46c04f9..b4c5013 100644 --- a/src/Models/Operations/PerformVoiceSearchRequest.php +++ b/src/Models/Operations/PerformVoiceSearchRequest.php @@ -1,7 +1,7 @@ query = ''; - $this->sectionId = null; - $this->limit = null; + $this->query = $query; + $this->sectionId = $sectionId; + $this->limit = $limit; } } \ No newline at end of file diff --git a/src/Models/Operations/PerformVoiceSearchResponse.php b/src/Models/Operations/PerformVoiceSearchResponse.php index 56bb3d7..a99be97 100644 --- a/src/Models/Operations/PerformVoiceSearchResponse.php +++ b/src/Models/Operations/PerformVoiceSearchResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->object = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; } } \ No newline at end of file diff --git a/src/Models/Operations/PerformVoiceSearchResponseBody.php b/src/Models/Operations/PerformVoiceSearchResponseBody.php deleted file mode 100644 index 87e8b16..0000000 --- a/src/Models/Operations/PerformVoiceSearchResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/Player.php b/src/Models/Operations/Player.php index c689a52..2d64145 100644 --- a/src/Models/Operations/Player.php +++ b/src/Models/Operations/Player.php @@ -1,7 +1,7 @@ address = null; - $this->machineIdentifier = null; - $this->model = null; - $this->platform = null; - $this->platformVersion = null; - $this->product = null; - $this->profile = null; - $this->remotePublicAddress = null; - $this->state = null; - $this->title = null; - $this->version = null; - $this->local = null; - $this->relayed = null; - $this->secure = null; - $this->userID = null; + $this->address = $address; + $this->machineIdentifier = $machineIdentifier; + $this->model = $model; + $this->platform = $platform; + $this->platformVersion = $platformVersion; + $this->product = $product; + $this->profile = $profile; + $this->remotePublicAddress = $remotePublicAddress; + $this->state = $state; + $this->title = $title; + $this->version = $version; + $this->local = $local; + $this->relayed = $relayed; + $this->secure = $secure; + $this->userID = $userID; } } \ No newline at end of file diff --git a/src/Models/Operations/PlaylistType.php b/src/Models/Operations/PlaylistType.php index a53d6cd..29d2caa 100644 --- a/src/Models/Operations/PlaylistType.php +++ b/src/Models/Operations/PlaylistType.php @@ -1,7 +1,7 @@ id = null; - $this->filter = null; - $this->tag = null; - $this->tagKey = null; - $this->thumb = null; + $this->id = $id; + $this->filter = $filter; + $this->tag = $tag; + $this->tagKey = $tagKey; + $this->thumb = $thumb; } } \ No newline at end of file diff --git a/src/Models/Operations/Provider.php b/src/Models/Operations/Provider.php index 478c297..8e67c60 100644 --- a/src/Models/Operations/Provider.php +++ b/src/Models/Operations/Provider.php @@ -1,7 +1,7 @@ key = null; - $this->title = null; - $this->type = null; + $this->key = $key; + $this->title = $title; + $this->type = $type; } } \ No newline at end of file diff --git a/src/Models/Operations/QueryParamOnlyTransient.php b/src/Models/Operations/QueryParamOnlyTransient.php index 6454ff8..da072d4 100644 --- a/src/Models/Operations/QueryParamOnlyTransient.php +++ b/src/Models/Operations/QueryParamOnlyTransient.php @@ -1,7 +1,7 @@ image = null; - $this->value = null; - $this->type = null; + $this->image = $image; + $this->value = $value; + $this->type = $type; } } \ No newline at end of file diff --git a/src/Models/Operations/RefreshLibraryErrors.php b/src/Models/Operations/RefreshLibraryErrors.php deleted file mode 100644 index ffd1c72..0000000 --- a/src/Models/Operations/RefreshLibraryErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/RefreshLibraryRequest.php b/src/Models/Operations/RefreshLibraryRequest.php index 59cc107..63adf41 100644 --- a/src/Models/Operations/RefreshLibraryRequest.php +++ b/src/Models/Operations/RefreshLibraryRequest.php @@ -1,7 +1,7 @@ sectionId = 0; + $this->sectionId = $sectionId; } } \ No newline at end of file diff --git a/src/Models/Operations/RefreshLibraryResponse.php b/src/Models/Operations/RefreshLibraryResponse.php index 41ca3e7..aa18ab2 100644 --- a/src/Models/Operations/RefreshLibraryResponse.php +++ b/src/Models/Operations/RefreshLibraryResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->object = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; } } \ No newline at end of file diff --git a/src/Models/Operations/RefreshLibraryResponseBody.php b/src/Models/Operations/RefreshLibraryResponseBody.php deleted file mode 100644 index 2f5f1e1..0000000 --- a/src/Models/Operations/RefreshLibraryResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/Release.php b/src/Models/Operations/Release.php index 6e2a24f..c71d182 100644 --- a/src/Models/Operations/Release.php +++ b/src/Models/Operations/Release.php @@ -1,7 +1,7 @@ key = null; - $this->version = null; - $this->added = null; - $this->fixed = null; - $this->downloadURL = null; - $this->state = null; + $this->key = $key; + $this->version = $version; + $this->added = $added; + $this->fixed = $fixed; + $this->downloadURL = $downloadURL; + $this->state = $state; } } \ No newline at end of file diff --git a/src/Models/Operations/Role.php b/src/Models/Operations/Role.php index d961d69..affa4d2 100644 --- a/src/Models/Operations/Role.php +++ b/src/Models/Operations/Role.php @@ -1,7 +1,7 @@ tag = null; + $this->tag = $tag; } } \ No newline at end of file diff --git a/src/Models/Operations/Scope.php b/src/Models/Operations/Scope.php index 91423e2..9f80765 100644 --- a/src/Models/Operations/Scope.php +++ b/src/Models/Operations/Scope.php @@ -1,7 +1,7 @@ code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/SearchLibraryLibraryResponseBody.php b/src/Models/Operations/SearchLibraryLibraryResponseBody.php deleted file mode 100644 index e1840f0..0000000 --- a/src/Models/Operations/SearchLibraryLibraryResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/SearchLibraryMediaContainer.php b/src/Models/Operations/SearchLibraryMediaContainer.php index cae116c..3979fcc 100644 --- a/src/Models/Operations/SearchLibraryMediaContainer.php +++ b/src/Models/Operations/SearchLibraryMediaContainer.php @@ -1,7 +1,7 @@ $metadata + * @var ?array $metadata */ #[\JMS\Serializer\Annotation\SerializedName('Metadata')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\JMS\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\SearchLibraryMetadata>')] #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?array $metadata = null; - public function __construct() + /** + * @param ?int $size + * @param ?bool $allowSync + * @param ?string $art + * @param ?string $identifier + * @param ?string $mediaTagPrefix + * @param ?int $mediaTagVersion + * @param ?bool $nocache + * @param ?string $thumb + * @param ?string $title1 + * @param ?string $title2 + * @param ?string $viewGroup + * @param ?int $viewMode + * @param ?array $metadata + */ + public function __construct(?int $size = null, ?bool $allowSync = null, ?string $art = null, ?string $identifier = null, ?string $mediaTagPrefix = null, ?int $mediaTagVersion = null, ?bool $nocache = null, ?string $thumb = null, ?string $title1 = null, ?string $title2 = null, ?string $viewGroup = null, ?int $viewMode = null, ?array $metadata = null) { - $this->size = null; - $this->allowSync = null; - $this->art = null; - $this->identifier = null; - $this->mediaTagPrefix = null; - $this->mediaTagVersion = null; - $this->nocache = null; - $this->thumb = null; - $this->title1 = null; - $this->title2 = null; - $this->viewGroup = null; - $this->viewMode = null; - $this->metadata = null; + $this->size = $size; + $this->allowSync = $allowSync; + $this->art = $art; + $this->identifier = $identifier; + $this->mediaTagPrefix = $mediaTagPrefix; + $this->mediaTagVersion = $mediaTagVersion; + $this->nocache = $nocache; + $this->thumb = $thumb; + $this->title1 = $title1; + $this->title2 = $title2; + $this->viewGroup = $viewGroup; + $this->viewMode = $viewMode; + $this->metadata = $metadata; } } \ No newline at end of file diff --git a/src/Models/Operations/SearchLibraryMetadata.php b/src/Models/Operations/SearchLibraryMetadata.php index 87798d5..fc5d0fe 100644 --- a/src/Models/Operations/SearchLibraryMetadata.php +++ b/src/Models/Operations/SearchLibraryMetadata.php @@ -1,7 +1,7 @@ ratingKey = null; - $this->key = null; - $this->parentRatingKey = null; - $this->guid = null; - $this->parentGuid = null; - $this->parentStudio = null; - $this->type = null; - $this->title = null; - $this->parentKey = null; - $this->parentTitle = null; - $this->summary = null; - $this->index = null; - $this->parentIndex = null; - $this->parentYear = null; - $this->thumb = null; - $this->art = null; - $this->parentThumb = null; - $this->parentTheme = null; - $this->addedAt = null; - $this->updatedAt = null; + $this->ratingKey = $ratingKey; + $this->key = $key; + $this->parentRatingKey = $parentRatingKey; + $this->guid = $guid; + $this->parentGuid = $parentGuid; + $this->parentStudio = $parentStudio; + $this->type = $type; + $this->title = $title; + $this->parentKey = $parentKey; + $this->parentTitle = $parentTitle; + $this->summary = $summary; + $this->index = $index; + $this->parentIndex = $parentIndex; + $this->parentYear = $parentYear; + $this->thumb = $thumb; + $this->art = $art; + $this->parentThumb = $parentThumb; + $this->parentTheme = $parentTheme; + $this->addedAt = $addedAt; + $this->updatedAt = $updatedAt; } } \ No newline at end of file diff --git a/src/Models/Operations/SearchLibraryRequest.php b/src/Models/Operations/SearchLibraryRequest.php index dbc298d..4070b29 100644 --- a/src/Models/Operations/SearchLibraryRequest.php +++ b/src/Models/Operations/SearchLibraryRequest.php @@ -1,7 +1,7 @@ sectionId = 0; - $this->type = \LukeHagar\Plex_API\Models\Operations\Type::One; + $this->sectionId = $sectionId; + $this->type = $type; } } \ No newline at end of file diff --git a/src/Models/Operations/SearchLibraryResponse.php b/src/Models/Operations/SearchLibraryResponse.php index 405c37e..cbbc211 100644 --- a/src/Models/Operations/SearchLibraryResponse.php +++ b/src/Models/Operations/SearchLibraryResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->twoHundredApplicationJsonObject = null; - $this->fourHundredAndOneApplicationJsonObject = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->object = $object; } } \ No newline at end of file diff --git a/src/Models/Operations/SearchLibraryResponseBody.php b/src/Models/Operations/SearchLibraryResponseBody.php index 5de4483..720e033 100644 --- a/src/Models/Operations/SearchLibraryResponseBody.php +++ b/src/Models/Operations/SearchLibraryResponseBody.php @@ -1,7 +1,7 @@ mediaContainer = null; + $this->mediaContainer = $mediaContainer; } } \ No newline at end of file diff --git a/src/Models/Operations/Server.php b/src/Models/Operations/Server.php index 5b1090e..e39578d 100644 --- a/src/Models/Operations/Server.php +++ b/src/Models/Operations/Server.php @@ -1,7 +1,7 @@ name = null; - $this->host = null; - $this->address = null; - $this->port = null; - $this->machineIdentifier = null; - $this->version = null; - $this->protocol = null; - $this->product = null; - $this->deviceClass = null; - $this->protocolVersion = null; - $this->protocolCapabilities = null; + $this->name = $name; + $this->host = $host; + $this->address = $address; + $this->port = $port; + $this->machineIdentifier = $machineIdentifier; + $this->version = $version; + $this->protocol = $protocol; + $this->product = $product; + $this->deviceClass = $deviceClass; + $this->protocolVersion = $protocolVersion; + $this->protocolCapabilities = $protocolCapabilities; } } \ No newline at end of file diff --git a/src/Models/Operations/Session.php b/src/Models/Operations/Session.php index 8e8a565..0fbed1d 100644 --- a/src/Models/Operations/Session.php +++ b/src/Models/Operations/Session.php @@ -1,7 +1,7 @@ id = null; - $this->bandwidth = null; - $this->location = null; + $this->id = $id; + $this->bandwidth = $bandwidth; + $this->location = $location; } } \ No newline at end of file diff --git a/src/Models/Operations/Setting.php b/src/Models/Operations/Setting.php index 74a2d4d..6cf19f9 100644 --- a/src/Models/Operations/Setting.php +++ b/src/Models/Operations/Setting.php @@ -1,7 +1,7 @@ id = null; - $this->label = null; - $this->summary = null; - $this->type = null; - $this->default = null; - $this->value = null; - $this->hidden = null; - $this->advanced = null; - $this->group = null; - $this->enumValues = null; + $this->id = $id; + $this->label = $label; + $this->summary = $summary; + $this->type = $type; + $this->default = $default; + $this->value = $value; + $this->hidden = $hidden; + $this->advanced = $advanced; + $this->group = $group; + $this->enumValues = $enumValues; } } \ No newline at end of file diff --git a/src/Models/Operations/Skip.php b/src/Models/Operations/Skip.php index bfe772d..47c2fd3 100644 --- a/src/Models/Operations/Skip.php +++ b/src/Models/Operations/Skip.php @@ -1,7 +1,7 @@ default = null; - $this->defaultDirection = null; - $this->descKey = null; - $this->firstCharacterKey = null; - $this->key = null; - $this->title = null; + $this->default = $default; + $this->defaultDirection = $defaultDirection; + $this->descKey = $descKey; + $this->firstCharacterKey = $firstCharacterKey; + $this->key = $key; + $this->title = $title; } } \ No newline at end of file diff --git a/src/Models/Operations/StartAllTasksErrors.php b/src/Models/Operations/StartAllTasksErrors.php deleted file mode 100644 index e2a44ab..0000000 --- a/src/Models/Operations/StartAllTasksErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/StartAllTasksResponse.php b/src/Models/Operations/StartAllTasksResponse.php index 54c904c..953f88e 100644 --- a/src/Models/Operations/StartAllTasksResponse.php +++ b/src/Models/Operations/StartAllTasksResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->object = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; } } \ No newline at end of file diff --git a/src/Models/Operations/StartAllTasksResponseBody.php b/src/Models/Operations/StartAllTasksResponseBody.php deleted file mode 100644 index 73bcb2f..0000000 --- a/src/Models/Operations/StartAllTasksResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/StartTaskErrors.php b/src/Models/Operations/StartTaskErrors.php deleted file mode 100644 index 9b16f26..0000000 --- a/src/Models/Operations/StartTaskErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/StartTaskRequest.php b/src/Models/Operations/StartTaskRequest.php index 52c1d4d..36ad300 100644 --- a/src/Models/Operations/StartTaskRequest.php +++ b/src/Models/Operations/StartTaskRequest.php @@ -1,7 +1,7 @@ taskName = \LukeHagar\Plex_API\Models\Operations\TaskName::BackupDatabase; + $this->taskName = $taskName; } } \ No newline at end of file diff --git a/src/Models/Operations/StartTaskResponse.php b/src/Models/Operations/StartTaskResponse.php index 368fe66..7a9d0c7 100644 --- a/src/Models/Operations/StartTaskResponse.php +++ b/src/Models/Operations/StartTaskResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->object = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; } } \ No newline at end of file diff --git a/src/Models/Operations/StartTaskResponseBody.php b/src/Models/Operations/StartTaskResponseBody.php deleted file mode 100644 index 9e0f7b4..0000000 --- a/src/Models/Operations/StartTaskResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/StartUniversalTranscodeErrors.php b/src/Models/Operations/StartUniversalTranscodeErrors.php deleted file mode 100644 index 0c10914..0000000 --- a/src/Models/Operations/StartUniversalTranscodeErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/StartUniversalTranscodeRequest.php b/src/Models/Operations/StartUniversalTranscodeRequest.php index 41e0c8b..e07ad94 100644 --- a/src/Models/Operations/StartUniversalTranscodeRequest.php +++ b/src/Models/Operations/StartUniversalTranscodeRequest.php @@ -1,7 +1,7 @@ hasMDE = 0; - $this->path = ''; - $this->mediaIndex = 0; - $this->partIndex = 0; - $this->protocol = ''; - $this->fastSeek = null; - $this->directPlay = null; - $this->directStream = null; - $this->subtitleSize = null; - $this->subtites = null; - $this->audioBoost = null; - $this->location = null; - $this->mediaBufferSize = null; - $this->session = null; - $this->addDebugOverlay = null; - $this->autoAdjustQuality = null; + $this->hasMDE = $hasMDE; + $this->path = $path; + $this->mediaIndex = $mediaIndex; + $this->partIndex = $partIndex; + $this->protocol = $protocol; + $this->fastSeek = $fastSeek; + $this->directPlay = $directPlay; + $this->directStream = $directStream; + $this->subtitleSize = $subtitleSize; + $this->subtites = $subtites; + $this->audioBoost = $audioBoost; + $this->location = $location; + $this->mediaBufferSize = $mediaBufferSize; + $this->session = $session; + $this->addDebugOverlay = $addDebugOverlay; + $this->autoAdjustQuality = $autoAdjustQuality; } } \ No newline at end of file diff --git a/src/Models/Operations/StartUniversalTranscodeResponse.php b/src/Models/Operations/StartUniversalTranscodeResponse.php index 9171bc8..8fab3c0 100644 --- a/src/Models/Operations/StartUniversalTranscodeResponse.php +++ b/src/Models/Operations/StartUniversalTranscodeResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->object = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; } } \ No newline at end of file diff --git a/src/Models/Operations/StartUniversalTranscodeResponseBody.php b/src/Models/Operations/StartUniversalTranscodeResponseBody.php deleted file mode 100644 index 5d6cfb4..0000000 --- a/src/Models/Operations/StartUniversalTranscodeResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/State.php b/src/Models/Operations/State.php index d41c439..b127d8f 100644 --- a/src/Models/Operations/State.php +++ b/src/Models/Operations/State.php @@ -1,7 +1,7 @@ accountID = null; - $this->deviceID = null; - $this->timespan = null; - $this->at = null; - $this->lan = null; - $this->bytes = null; + $this->accountID = $accountID; + $this->deviceID = $deviceID; + $this->timespan = $timespan; + $this->at = $at; + $this->lan = $lan; + $this->bytes = $bytes; } } \ No newline at end of file diff --git a/src/Models/Operations/StatisticsMedia.php b/src/Models/Operations/StatisticsMedia.php index 8e015f7..1c7834d 100644 --- a/src/Models/Operations/StatisticsMedia.php +++ b/src/Models/Operations/StatisticsMedia.php @@ -1,7 +1,7 @@ accountID = null; - $this->deviceID = null; - $this->timespan = null; - $this->at = null; - $this->metadataType = null; - $this->count = null; - $this->duration = null; + $this->accountID = $accountID; + $this->deviceID = $deviceID; + $this->timespan = $timespan; + $this->at = $at; + $this->metadataType = $metadataType; + $this->count = $count; + $this->duration = $duration; } } \ No newline at end of file diff --git a/src/Models/Operations/StatisticsResources.php b/src/Models/Operations/StatisticsResources.php index 2df140e..3d52208 100644 --- a/src/Models/Operations/StatisticsResources.php +++ b/src/Models/Operations/StatisticsResources.php @@ -1,7 +1,7 @@ timespan = null; - $this->at = null; - $this->hostCpuUtilization = null; - $this->processCpuUtilization = null; - $this->hostMemoryUtilization = null; - $this->processMemoryUtilization = null; + $this->timespan = $timespan; + $this->at = $at; + $this->hostCpuUtilization = $hostCpuUtilization; + $this->processCpuUtilization = $processCpuUtilization; + $this->hostMemoryUtilization = $hostMemoryUtilization; + $this->processMemoryUtilization = $processMemoryUtilization; } } \ No newline at end of file diff --git a/src/Models/Operations/StopAllTasksErrors.php b/src/Models/Operations/StopAllTasksErrors.php deleted file mode 100644 index 9c98315..0000000 --- a/src/Models/Operations/StopAllTasksErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/StopAllTasksResponse.php b/src/Models/Operations/StopAllTasksResponse.php index 0e0b6b6..7948e04 100644 --- a/src/Models/Operations/StopAllTasksResponse.php +++ b/src/Models/Operations/StopAllTasksResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->object = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; } } \ No newline at end of file diff --git a/src/Models/Operations/StopAllTasksResponseBody.php b/src/Models/Operations/StopAllTasksResponseBody.php deleted file mode 100644 index 8ce3523..0000000 --- a/src/Models/Operations/StopAllTasksResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/StopTaskErrors.php b/src/Models/Operations/StopTaskErrors.php deleted file mode 100644 index 1bcc0b8..0000000 --- a/src/Models/Operations/StopTaskErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/StopTaskRequest.php b/src/Models/Operations/StopTaskRequest.php index 909e759..c26a0be 100644 --- a/src/Models/Operations/StopTaskRequest.php +++ b/src/Models/Operations/StopTaskRequest.php @@ -1,7 +1,7 @@ taskName = \LukeHagar\Plex_API\Models\Operations\PathParamTaskName::BackupDatabase; + $this->taskName = $taskName; } } \ No newline at end of file diff --git a/src/Models/Operations/StopTaskResponse.php b/src/Models/Operations/StopTaskResponse.php index bd39283..704f790 100644 --- a/src/Models/Operations/StopTaskResponse.php +++ b/src/Models/Operations/StopTaskResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->object = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; } } \ No newline at end of file diff --git a/src/Models/Operations/StopTaskResponseBody.php b/src/Models/Operations/StopTaskResponseBody.php deleted file mode 100644 index a521a75..0000000 --- a/src/Models/Operations/StopTaskResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/StopTranscodeSessionErrors.php b/src/Models/Operations/StopTranscodeSessionErrors.php deleted file mode 100644 index 018fd5d..0000000 --- a/src/Models/Operations/StopTranscodeSessionErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/StopTranscodeSessionRequest.php b/src/Models/Operations/StopTranscodeSessionRequest.php index a4d22fc..67eb210 100644 --- a/src/Models/Operations/StopTranscodeSessionRequest.php +++ b/src/Models/Operations/StopTranscodeSessionRequest.php @@ -1,7 +1,7 @@ sessionKey = ''; + $this->sessionKey = $sessionKey; } } \ No newline at end of file diff --git a/src/Models/Operations/StopTranscodeSessionResponse.php b/src/Models/Operations/StopTranscodeSessionResponse.php index 5525a37..67b95af 100644 --- a/src/Models/Operations/StopTranscodeSessionResponse.php +++ b/src/Models/Operations/StopTranscodeSessionResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->object = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; } } \ No newline at end of file diff --git a/src/Models/Operations/StopTranscodeSessionResponseBody.php b/src/Models/Operations/StopTranscodeSessionResponseBody.php deleted file mode 100644 index f2e4d2a..0000000 --- a/src/Models/Operations/StopTranscodeSessionResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/Stream.php b/src/Models/Operations/Stream.php index c286b73..71565b3 100644 --- a/src/Models/Operations/Stream.php +++ b/src/Models/Operations/Stream.php @@ -1,7 +1,7 @@ id = null; - $this->streamType = null; - $this->default = null; - $this->codec = null; - $this->index = null; - $this->bitrate = null; - $this->bitDepth = null; - $this->chromaLocation = null; - $this->chromaSubsampling = null; - $this->codedHeight = null; - $this->codedWidth = null; - $this->colorPrimaries = null; - $this->colorRange = null; - $this->colorSpace = null; - $this->colorTrc = null; - $this->frameRate = null; - $this->hasScalingMatrix = null; - $this->height = null; - $this->level = null; - $this->profile = null; - $this->refFrames = null; - $this->scanType = null; - $this->streamIdentifier = null; - $this->width = null; - $this->displayTitle = null; - $this->extendedDisplayTitle = null; - $this->selected = null; - $this->channels = null; - $this->language = null; - $this->languageTag = null; - $this->languageCode = null; - $this->samplingRate = null; + $this->id = $id; + $this->streamType = $streamType; + $this->default = $default; + $this->codec = $codec; + $this->index = $index; + $this->bitrate = $bitrate; + $this->bitDepth = $bitDepth; + $this->chromaLocation = $chromaLocation; + $this->chromaSubsampling = $chromaSubsampling; + $this->codedHeight = $codedHeight; + $this->codedWidth = $codedWidth; + $this->colorPrimaries = $colorPrimaries; + $this->colorRange = $colorRange; + $this->colorSpace = $colorSpace; + $this->colorTrc = $colorTrc; + $this->frameRate = $frameRate; + $this->hasScalingMatrix = $hasScalingMatrix; + $this->height = $height; + $this->level = $level; + $this->profile = $profile; + $this->refFrames = $refFrames; + $this->scanType = $scanType; + $this->streamIdentifier = $streamIdentifier; + $this->width = $width; + $this->displayTitle = $displayTitle; + $this->extendedDisplayTitle = $extendedDisplayTitle; + $this->selected = $selected; + $this->channels = $channels; + $this->language = $language; + $this->languageTag = $languageTag; + $this->languageCode = $languageCode; + $this->samplingRate = $samplingRate; } } \ No newline at end of file diff --git a/src/Models/Operations/Tag.php b/src/Models/Operations/Tag.php index 4fd237f..8870cfb 100644 --- a/src/Models/Operations/Tag.php +++ b/src/Models/Operations/Tag.php @@ -1,7 +1,7 @@ key = null; - $this->throttled = null; - $this->complete = null; - $this->progress = null; - $this->size = null; - $this->speed = null; - $this->error = null; - $this->duration = null; - $this->remaining = null; - $this->context = null; - $this->sourceVideoCodec = null; - $this->sourceAudioCodec = null; - $this->videoDecision = null; - $this->audioDecision = null; - $this->subtitleDecision = null; - $this->protocol = null; - $this->container = null; - $this->videoCodec = null; - $this->audioCodec = null; - $this->audioChannels = null; - $this->transcodeHwRequested = null; - $this->timeStamp = null; - $this->maxOffsetAvailable = null; - $this->minOffsetAvailable = null; + $this->key = $key; + $this->throttled = $throttled; + $this->complete = $complete; + $this->progress = $progress; + $this->size = $size; + $this->speed = $speed; + $this->error = $error; + $this->duration = $duration; + $this->remaining = $remaining; + $this->context = $context; + $this->sourceVideoCodec = $sourceVideoCodec; + $this->sourceAudioCodec = $sourceAudioCodec; + $this->videoDecision = $videoDecision; + $this->audioDecision = $audioDecision; + $this->subtitleDecision = $subtitleDecision; + $this->protocol = $protocol; + $this->container = $container; + $this->videoCodec = $videoCodec; + $this->audioCodec = $audioCodec; + $this->audioChannels = $audioChannels; + $this->transcodeHwRequested = $transcodeHwRequested; + $this->timeStamp = $timeStamp; + $this->maxOffsetAvailable = $maxOffsetAvailable; + $this->minOffsetAvailable = $minOffsetAvailable; } } \ No newline at end of file diff --git a/src/Models/Operations/Type.php b/src/Models/Operations/Type.php index 0c162a4..613f9aa 100644 --- a/src/Models/Operations/Type.php +++ b/src/Models/Operations/Type.php @@ -1,7 +1,7 @@ code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/UpdatePlayProgressRequest.php b/src/Models/Operations/UpdatePlayProgressRequest.php index 4d22292..7e23353 100644 --- a/src/Models/Operations/UpdatePlayProgressRequest.php +++ b/src/Models/Operations/UpdatePlayProgressRequest.php @@ -1,7 +1,7 @@ key = ''; - $this->time = 0; - $this->state = ''; + $this->key = $key; + $this->time = $time; + $this->state = $state; } } \ No newline at end of file diff --git a/src/Models/Operations/UpdatePlayProgressResponse.php b/src/Models/Operations/UpdatePlayProgressResponse.php index ac43860..f1b8db6 100644 --- a/src/Models/Operations/UpdatePlayProgressResponse.php +++ b/src/Models/Operations/UpdatePlayProgressResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->object = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; } } \ No newline at end of file diff --git a/src/Models/Operations/UpdatePlayProgressResponseBody.php b/src/Models/Operations/UpdatePlayProgressResponseBody.php deleted file mode 100644 index e258362..0000000 --- a/src/Models/Operations/UpdatePlayProgressResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/UpdatePlaylistErrors.php b/src/Models/Operations/UpdatePlaylistErrors.php deleted file mode 100644 index 1b6b83d..0000000 --- a/src/Models/Operations/UpdatePlaylistErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/UpdatePlaylistRequest.php b/src/Models/Operations/UpdatePlaylistRequest.php index eb24e64..b35448e 100644 --- a/src/Models/Operations/UpdatePlaylistRequest.php +++ b/src/Models/Operations/UpdatePlaylistRequest.php @@ -1,7 +1,7 @@ playlistID = 0; - $this->title = null; - $this->summary = null; + $this->playlistID = $playlistID; + $this->title = $title; + $this->summary = $summary; } } \ No newline at end of file diff --git a/src/Models/Operations/UpdatePlaylistResponse.php b/src/Models/Operations/UpdatePlaylistResponse.php index 7ef05d4..ead2348 100644 --- a/src/Models/Operations/UpdatePlaylistResponse.php +++ b/src/Models/Operations/UpdatePlaylistResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->object = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; } } \ No newline at end of file diff --git a/src/Models/Operations/UpdatePlaylistResponseBody.php b/src/Models/Operations/UpdatePlaylistResponseBody.php deleted file mode 100644 index b37f727..0000000 --- a/src/Models/Operations/UpdatePlaylistResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/UploadPlaylistErrors.php b/src/Models/Operations/UploadPlaylistErrors.php deleted file mode 100644 index 2f94d7f..0000000 --- a/src/Models/Operations/UploadPlaylistErrors.php +++ /dev/null @@ -1,35 +0,0 @@ -code = null; - $this->message = null; - $this->status = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/UploadPlaylistRequest.php b/src/Models/Operations/UploadPlaylistRequest.php index ad67c76..4789884 100644 --- a/src/Models/Operations/UploadPlaylistRequest.php +++ b/src/Models/Operations/UploadPlaylistRequest.php @@ -1,7 +1,7 @@ path = ''; - $this->force = \LukeHagar\Plex_API\Models\Operations\Force::Zero; + $this->path = $path; + $this->force = $force; } } \ No newline at end of file diff --git a/src/Models/Operations/UploadPlaylistResponse.php b/src/Models/Operations/UploadPlaylistResponse.php index 7cd9b44..5bc3fa9 100644 --- a/src/Models/Operations/UploadPlaylistResponse.php +++ b/src/Models/Operations/UploadPlaylistResponse.php @@ -1,7 +1,7 @@ contentType = ''; - $this->statusCode = 0; - $this->rawResponse = null; - $this->object = null; + $this->contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; } } \ No newline at end of file diff --git a/src/Models/Operations/UploadPlaylistResponseBody.php b/src/Models/Operations/UploadPlaylistResponseBody.php deleted file mode 100644 index 2242b7f..0000000 --- a/src/Models/Operations/UploadPlaylistResponseBody.php +++ /dev/null @@ -1,29 +0,0 @@ - $errors - */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] - public ?array $errors = null; - - public function __construct() - { - $this->errors = null; - } -} \ No newline at end of file diff --git a/src/Models/Operations/Upscale.php b/src/Models/Operations/Upscale.php index e8ff92b..8ba66c5 100644 --- a/src/Models/Operations/Upscale.php +++ b/src/Models/Operations/Upscale.php @@ -1,7 +1,7 @@ id = null; + $this->id = $id; } } \ No newline at end of file diff --git a/src/Models/Operations/Writer.php b/src/Models/Operations/Writer.php index 37325a3..6a2f09d 100644 --- a/src/Models/Operations/Writer.php +++ b/src/Models/Operations/Writer.php @@ -1,7 +1,7 @@ tag = null; + $this->tag = $tag; } } \ No newline at end of file diff --git a/src/Playlists.php b/src/Playlists.php index 2bea3e5..d93fa01 100644 --- a/src/Playlists.php +++ b/src/Playlists.php @@ -1,13 +1,16 @@ sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/playlists'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\LukeHagar\Plex_API\Models\Operations\CreatePlaylistRequest::class, $request, $this->sdkConfiguration->globals)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\CreatePlaylistRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('POST', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('POST', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\CreatePlaylistResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\CreatePlaylistResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + object: $obj); - $response = new \LukeHagar\Plex_API\Models\Operations\CreatePlaylistResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200) { + return $response; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->twoHundredApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\CreatePlaylistResponseBody', 'json'); - } - } elseif ($httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $response->fourHundredAndOneApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\CreatePlaylistPlaylistsResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\CreatePlaylistResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -71,47 +86,60 @@ class Playlists * * Get All Playlists given the specified filters. * - * @param ?\LukeHagar\Plex_API\Models\Operations\PlaylistType $playlistType - * @param ?\LukeHagar\Plex_API\Models\Operations\QueryParamSmart $smart - * @return \LukeHagar\Plex_API\Models\Operations\GetPlaylistsResponse + * @param ?Operations\PlaylistType $playlistType + * @param ?Operations\QueryParamSmart $smart + * @return Operations\GetPlaylistsResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function getPlaylists( - ?\LukeHagar\Plex_API\Models\Operations\PlaylistType $playlistType = null, - ?\LukeHagar\Plex_API\Models\Operations\QueryParamSmart $smart = null, - ): \LukeHagar\Plex_API\Models\Operations\GetPlaylistsResponse { - $request = new \LukeHagar\Plex_API\Models\Operations\GetPlaylistsRequest(); - $request->playlistType = $playlistType; - $request->smart = $smart; + ?Operations\PlaylistType $playlistType = null, + ?Operations\QueryParamSmart $smart = null, + ): Operations\GetPlaylistsResponse { + $request = new Operations\GetPlaylistsRequest( + playlistType: $playlistType, + smart: $smart, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/playlists'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\LukeHagar\Plex_API\Models\Operations\GetPlaylistsRequest::class, $request, $this->sdkConfiguration->globals)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetPlaylistsRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\GetPlaylistsResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetPlaylistsResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + object: $obj); - $response = new \LukeHagar\Plex_API\Models\Operations\GetPlaylistsResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200) { + return $response; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->twoHundredApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetPlaylistsResponseBody', 'json'); - } - } elseif ($httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $response->fourHundredAndOneApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetPlaylistsPlaylistsResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetPlaylistsResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -122,42 +150,55 @@ class Playlists * * * @param float $playlistID - * @return \LukeHagar\Plex_API\Models\Operations\GetPlaylistResponse + * @return Operations\GetPlaylistResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function getPlaylist( float $playlistID, - ): \LukeHagar\Plex_API\Models\Operations\GetPlaylistResponse { - $request = new \LukeHagar\Plex_API\Models\Operations\GetPlaylistRequest(); - $request->playlistID = $playlistID; + ): Operations\GetPlaylistResponse { + $request = new Operations\GetPlaylistRequest( + playlistID: $playlistID, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); - $url = Utils\Utils::generateUrl($baseUrl, '/playlists/{playlistID}', \LukeHagar\Plex_API\Models\Operations\GetPlaylistRequest::class, $request, $this->sdkConfiguration->globals); + $url = Utils\Utils::generateUrl($baseUrl, '/playlists/{playlistID}', Operations\GetPlaylistRequest::class, $request, $this->sdkConfiguration->globals); $options = ['http_errors' => false]; $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\GetPlaylistResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetPlaylistResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + object: $obj); - $response = new \LukeHagar\Plex_API\Models\Operations\GetPlaylistResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200) { + return $response; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->twoHundredApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetPlaylistResponseBody', 'json'); - } - } elseif ($httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $response->fourHundredAndOneApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetPlaylistPlaylistsResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetPlaylistResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -167,37 +208,47 @@ class Playlists * * * @param float $playlistID - * @return \LukeHagar\Plex_API\Models\Operations\DeletePlaylistResponse + * @return Operations\DeletePlaylistResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function deletePlaylist( float $playlistID, - ): \LukeHagar\Plex_API\Models\Operations\DeletePlaylistResponse { - $request = new \LukeHagar\Plex_API\Models\Operations\DeletePlaylistRequest(); - $request->playlistID = $playlistID; + ): Operations\DeletePlaylistResponse { + $request = new Operations\DeletePlaylistRequest( + playlistID: $playlistID, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); - $url = Utils\Utils::generateUrl($baseUrl, '/playlists/{playlistID}', \LukeHagar\Plex_API\Models\Operations\DeletePlaylistRequest::class, $request, $this->sdkConfiguration->globals); + $url = Utils\Utils::generateUrl($baseUrl, '/playlists/{playlistID}', Operations\DeletePlaylistRequest::class, $request, $this->sdkConfiguration->globals); $options = ['http_errors' => false]; $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('DELETE', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('DELETE', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - - $response = new \LukeHagar\Plex_API\Models\Operations\DeletePlaylistResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 204 or $httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { + if ($statusCode == 204) { + return new Operations\DeletePlaylistResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse + ); + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->object = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\DeletePlaylistResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\DeletePlaylistResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -209,42 +260,52 @@ class Playlists * @param float $playlistID * @param ?string $title * @param ?string $summary - * @return \LukeHagar\Plex_API\Models\Operations\UpdatePlaylistResponse + * @return Operations\UpdatePlaylistResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function updatePlaylist( float $playlistID, ?string $title = null, ?string $summary = null, - ): \LukeHagar\Plex_API\Models\Operations\UpdatePlaylistResponse { - $request = new \LukeHagar\Plex_API\Models\Operations\UpdatePlaylistRequest(); - $request->playlistID = $playlistID; - $request->title = $title; - $request->summary = $summary; + ): Operations\UpdatePlaylistResponse { + $request = new Operations\UpdatePlaylistRequest( + playlistID: $playlistID, + title: $title, + summary: $summary, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); - $url = Utils\Utils::generateUrl($baseUrl, '/playlists/{playlistID}', \LukeHagar\Plex_API\Models\Operations\UpdatePlaylistRequest::class, $request, $this->sdkConfiguration->globals); + $url = Utils\Utils::generateUrl($baseUrl, '/playlists/{playlistID}', Operations\UpdatePlaylistRequest::class, $request, $this->sdkConfiguration->globals); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\LukeHagar\Plex_API\Models\Operations\UpdatePlaylistRequest::class, $request, $this->sdkConfiguration->globals)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\UpdatePlaylistRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('PUT', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('PUT', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - - $response = new \LukeHagar\Plex_API\Models\Operations\UpdatePlaylistResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200 or $httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { + if ($statusCode == 200) { + return new Operations\UpdatePlaylistResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse + ); + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->object = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\UpdatePlaylistResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\UpdatePlaylistResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -258,45 +319,58 @@ class Playlists * * @param float $playlistID * @param float $type - * @return \LukeHagar\Plex_API\Models\Operations\GetPlaylistContentsResponse + * @return Operations\GetPlaylistContentsResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function getPlaylistContents( float $playlistID, float $type, - ): \LukeHagar\Plex_API\Models\Operations\GetPlaylistContentsResponse { - $request = new \LukeHagar\Plex_API\Models\Operations\GetPlaylistContentsRequest(); - $request->playlistID = $playlistID; - $request->type = $type; + ): Operations\GetPlaylistContentsResponse { + $request = new Operations\GetPlaylistContentsRequest( + playlistID: $playlistID, + type: $type, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); - $url = Utils\Utils::generateUrl($baseUrl, '/playlists/{playlistID}/items', \LukeHagar\Plex_API\Models\Operations\GetPlaylistContentsRequest::class, $request, $this->sdkConfiguration->globals); + $url = Utils\Utils::generateUrl($baseUrl, '/playlists/{playlistID}/items', Operations\GetPlaylistContentsRequest::class, $request, $this->sdkConfiguration->globals); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\LukeHagar\Plex_API\Models\Operations\GetPlaylistContentsRequest::class, $request, $this->sdkConfiguration->globals)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetPlaylistContentsRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\GetPlaylistContentsResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetPlaylistContentsResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + object: $obj); - $response = new \LukeHagar\Plex_API\Models\Operations\GetPlaylistContentsResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200) { + return $response; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->twoHundredApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetPlaylistContentsResponseBody', 'json'); - } - } elseif ($httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $response->fourHundredAndOneApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetPlaylistContentsPlaylistsResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetPlaylistContentsResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -306,37 +380,47 @@ class Playlists * * * @param float $playlistID - * @return \LukeHagar\Plex_API\Models\Operations\ClearPlaylistContentsResponse + * @return Operations\ClearPlaylistContentsResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function clearPlaylistContents( float $playlistID, - ): \LukeHagar\Plex_API\Models\Operations\ClearPlaylistContentsResponse { - $request = new \LukeHagar\Plex_API\Models\Operations\ClearPlaylistContentsRequest(); - $request->playlistID = $playlistID; + ): Operations\ClearPlaylistContentsResponse { + $request = new Operations\ClearPlaylistContentsRequest( + playlistID: $playlistID, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); - $url = Utils\Utils::generateUrl($baseUrl, '/playlists/{playlistID}/items', \LukeHagar\Plex_API\Models\Operations\ClearPlaylistContentsRequest::class, $request, $this->sdkConfiguration->globals); + $url = Utils\Utils::generateUrl($baseUrl, '/playlists/{playlistID}/items', Operations\ClearPlaylistContentsRequest::class, $request, $this->sdkConfiguration->globals); $options = ['http_errors' => false]; $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('DELETE', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('DELETE', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - - $response = new \LukeHagar\Plex_API\Models\Operations\ClearPlaylistContentsResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200 or $httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { + if ($statusCode == 200) { + return new Operations\ClearPlaylistContentsResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse + ); + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->object = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\ClearPlaylistContentsResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\ClearPlaylistContentsResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -349,47 +433,60 @@ class Playlists * @param float $playlistID * @param string $uri * @param ?float $playQueueID - * @return \LukeHagar\Plex_API\Models\Operations\AddPlaylistContentsResponse + * @return Operations\AddPlaylistContentsResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function addPlaylistContents( float $playlistID, string $uri, ?float $playQueueID = null, - ): \LukeHagar\Plex_API\Models\Operations\AddPlaylistContentsResponse { - $request = new \LukeHagar\Plex_API\Models\Operations\AddPlaylistContentsRequest(); - $request->playlistID = $playlistID; - $request->uri = $uri; - $request->playQueueID = $playQueueID; + ): Operations\AddPlaylistContentsResponse { + $request = new Operations\AddPlaylistContentsRequest( + playlistID: $playlistID, + uri: $uri, + playQueueID: $playQueueID, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); - $url = Utils\Utils::generateUrl($baseUrl, '/playlists/{playlistID}/items', \LukeHagar\Plex_API\Models\Operations\AddPlaylistContentsRequest::class, $request, $this->sdkConfiguration->globals); + $url = Utils\Utils::generateUrl($baseUrl, '/playlists/{playlistID}/items', Operations\AddPlaylistContentsRequest::class, $request, $this->sdkConfiguration->globals); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\LukeHagar\Plex_API\Models\Operations\AddPlaylistContentsRequest::class, $request, $this->sdkConfiguration->globals)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\AddPlaylistContentsRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('PUT', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('PUT', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\AddPlaylistContentsResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\AddPlaylistContentsResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + object: $obj); - $response = new \LukeHagar\Plex_API\Models\Operations\AddPlaylistContentsResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200) { + return $response; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->twoHundredApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\AddPlaylistContentsResponseBody', 'json'); - } - } elseif ($httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $response->fourHundredAndOneApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\AddPlaylistContentsPlaylistsResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\AddPlaylistContentsResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -399,40 +496,50 @@ class Playlists * * * @param string $path - * @param \LukeHagar\Plex_API\Models\Operations\Force $force - * @return \LukeHagar\Plex_API\Models\Operations\UploadPlaylistResponse + * @param Operations\Force $force + * @return Operations\UploadPlaylistResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function uploadPlaylist( string $path, - \LukeHagar\Plex_API\Models\Operations\Force $force, - ): \LukeHagar\Plex_API\Models\Operations\UploadPlaylistResponse { - $request = new \LukeHagar\Plex_API\Models\Operations\UploadPlaylistRequest(); - $request->path = $path; - $request->force = $force; + Operations\Force $force, + ): Operations\UploadPlaylistResponse { + $request = new Operations\UploadPlaylistRequest( + path: $path, + force: $force, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/playlists/upload'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\LukeHagar\Plex_API\Models\Operations\UploadPlaylistRequest::class, $request, $this->sdkConfiguration->globals)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\UploadPlaylistRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('POST', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('POST', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - - $response = new \LukeHagar\Plex_API\Models\Operations\UploadPlaylistResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200 or $httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { + if ($statusCode == 200) { + return new Operations\UploadPlaylistResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse + ); + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->object = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\UploadPlaylistResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\UploadPlaylistResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } } \ No newline at end of file diff --git a/src/Plex.php b/src/Plex.php index 3da6612..a12f2f2 100644 --- a/src/Plex.php +++ b/src/Plex.php @@ -1,13 +1,16 @@ sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/home'); $options = ['http_errors' => false]; $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\GetHomeDataResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetHomeDataResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + object: $obj); - $response = new \LukeHagar\Plex_API\Models\Operations\GetHomeDataResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200) { + return $response; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->twoHundredApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetHomeDataResponseBody', 'json'); - } - } elseif ($httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $response->fourHundredAndOneApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetHomeDataPlexResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetHomeDataResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -77,18 +92,20 @@ class Plex * @param ?bool $strong * @param ?string $xPlexClientIdentifier * @param string $serverURL - * @return \LukeHagar\Plex_API\Models\Operations\GetPinResponse + * @return Operations\GetPinResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function getPin( string $xPlexProduct, ?bool $strong = null, ?string $xPlexClientIdentifier = null, ?string $serverURL = null, - ): \LukeHagar\Plex_API\Models\Operations\GetPinResponse { - $request = new \LukeHagar\Plex_API\Models\Operations\GetPinRequest(); - $request->xPlexProduct = $xPlexProduct; - $request->strong = $strong; - $request->xPlexClientIdentifier = $xPlexClientIdentifier; + ): Operations\GetPinResponse { + $request = new Operations\GetPinRequest( + xPlexProduct: $xPlexProduct, + strong: $strong, + xPlexClientIdentifier: $xPlexClientIdentifier, + ); $baseUrl = Utils\Utils::templateUrl(Plex::GET_PIN_SERVERS[0], [ ]); if (! empty($serverURL)) { @@ -96,35 +113,46 @@ class Plex } $url = Utils\Utils::generateUrl($baseUrl, '/pins'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\LukeHagar\Plex_API\Models\Operations\GetPinRequest::class, $request, $this->sdkConfiguration->globals)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetPinRequest::class, $request, $this->sdkConfiguration->globals)); $options = array_merge_recursive($options, Utils\Utils::getHeaders($request, $this->sdkConfiguration->globals)); if (! array_key_exists('headers', $options)) { $options['headers'] = []; } $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; - $httpResponse = $this->sdkConfiguration->defaultClient->request('POST', $url, $options); + $httpRequest = new \GuzzleHttp\Psr7\Request('POST', $url); + $httpResponse = $this->sdkConfiguration->defaultClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 201) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\GetPinResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetPinResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + object: $obj); - $response = new \LukeHagar\Plex_API\Models\Operations\GetPinResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 201) { + return $response; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->twoHundredAndOneApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetPinResponseBody', 'json'); - } - } elseif ($httpResponse->getStatusCode() === 400) { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $response->fourHundredApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetPinPlexResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetPinResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -135,22 +163,24 @@ class Plex * @param string $pinID * @param ?string $xPlexClientIdentifier * @param string $serverURL - * @return \LukeHagar\Plex_API\Models\Operations\GetTokenResponse + * @return Operations\GetTokenResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function getToken( string $pinID, ?string $xPlexClientIdentifier = null, ?string $serverURL = null, - ): \LukeHagar\Plex_API\Models\Operations\GetTokenResponse { - $request = new \LukeHagar\Plex_API\Models\Operations\GetTokenRequest(); - $request->pinID = $pinID; - $request->xPlexClientIdentifier = $xPlexClientIdentifier; + ): Operations\GetTokenResponse { + $request = new Operations\GetTokenRequest( + pinID: $pinID, + xPlexClientIdentifier: $xPlexClientIdentifier, + ); $baseUrl = Utils\Utils::templateUrl(Plex::GET_TOKEN_SERVERS[0], [ ]); if (! empty($serverURL)) { $baseUrl = $serverURL; } - $url = Utils\Utils::generateUrl($baseUrl, '/pins/{pinID}', \LukeHagar\Plex_API\Models\Operations\GetTokenRequest::class, $request, $this->sdkConfiguration->globals); + $url = Utils\Utils::generateUrl($baseUrl, '/pins/{pinID}', Operations\GetTokenRequest::class, $request, $this->sdkConfiguration->globals); $options = ['http_errors' => false]; $options = array_merge_recursive($options, Utils\Utils::getHeaders($request, $this->sdkConfiguration->globals)); if (! array_key_exists('headers', $options)) { @@ -158,27 +188,38 @@ class Plex } $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; - $httpResponse = $this->sdkConfiguration->defaultClient->request('GET', $url, $options); + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); + $httpResponse = $this->sdkConfiguration->defaultClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\GetTokenResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetTokenResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + object: $obj); - $response = new \LukeHagar\Plex_API\Models\Operations\GetTokenResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200) { + return $response; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->twoHundredApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetTokenResponseBody', 'json'); - } - } elseif ($httpResponse->getStatusCode() === 400) { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $response->fourHundredApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetTokenPlexResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetTokenResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } elseif ($statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } } \ No newline at end of file diff --git a/src/PlexAPI.php b/src/PlexAPI.php index 486e098..b877375 100644 --- a/src/PlexAPI.php +++ b/src/PlexAPI.php @@ -1,13 +1,15 @@ accessToken = $accessToken; + $security = new Models\Components\Security( + accessToken: $accessToken + ); $this->sdkConfig->security = $security; return $this; diff --git a/src/SDKConfiguration.php b/src/SDKConfiguration.php index bd2258d..7b8a466 100644 --- a/src/SDKConfiguration.php +++ b/src/SDKConfiguration.php @@ -1,7 +1,7 @@ >> */ public ?array $globals = [ 'parameters' => [], @@ -70,8 +71,9 @@ class SDKConfiguration public function getSecurity(): ?Models\Components\Security { if ($this->securitySource !== null) { - $security = new Models\Components\Security(); - $security->accessToken = $this->securitySource->call($this); + $security = new Models\Components\Security( + accessToken: $this->securitySource->call($this) + ); return $security; } else { diff --git a/src/Search.php b/src/Search.php index 192020d..3a1a5a3 100644 --- a/src/Search.php +++ b/src/Search.php @@ -1,13 +1,16 @@ query = $query; - $request->sectionId = $sectionId; - $request->limit = $limit; + ): Operations\PerformSearchResponse { + $request = new Operations\PerformSearchRequest( + query: $query, + sectionId: $sectionId, + limit: $limit, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/hubs/search'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\LukeHagar\Plex_API\Models\Operations\PerformSearchRequest::class, $request, $this->sdkConfiguration->globals)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\PerformSearchRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - - $response = new \LukeHagar\Plex_API\Models\Operations\PerformSearchResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200 or $httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { + if ($statusCode == 200) { + return new Operations\PerformSearchResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse + ); + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->object = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\PerformSearchResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\PerformSearchResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -90,42 +103,52 @@ class Search * @param string $query * @param ?float $sectionId * @param ?float $limit - * @return \LukeHagar\Plex_API\Models\Operations\PerformVoiceSearchResponse + * @return Operations\PerformVoiceSearchResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function performVoiceSearch( string $query, ?float $sectionId = null, ?float $limit = null, - ): \LukeHagar\Plex_API\Models\Operations\PerformVoiceSearchResponse { - $request = new \LukeHagar\Plex_API\Models\Operations\PerformVoiceSearchRequest(); - $request->query = $query; - $request->sectionId = $sectionId; - $request->limit = $limit; + ): Operations\PerformVoiceSearchResponse { + $request = new Operations\PerformVoiceSearchRequest( + query: $query, + sectionId: $sectionId, + limit: $limit, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/hubs/search/voice'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\LukeHagar\Plex_API\Models\Operations\PerformVoiceSearchRequest::class, $request, $this->sdkConfiguration->globals)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\PerformVoiceSearchRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - - $response = new \LukeHagar\Plex_API\Models\Operations\PerformVoiceSearchResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200 or $httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { + if ($statusCode == 200) { + return new Operations\PerformVoiceSearchResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse + ); + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->object = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\PerformVoiceSearchResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\PerformVoiceSearchResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -134,42 +157,55 @@ class Search * This will search the database for the string provided. * * @param string $query - * @return \LukeHagar\Plex_API\Models\Operations\GetSearchResultsResponse + * @return Operations\GetSearchResultsResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function getSearchResults( string $query, - ): \LukeHagar\Plex_API\Models\Operations\GetSearchResultsResponse { - $request = new \LukeHagar\Plex_API\Models\Operations\GetSearchResultsRequest(); - $request->query = $query; + ): Operations\GetSearchResultsResponse { + $request = new Operations\GetSearchResultsRequest( + query: $query, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/search'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\LukeHagar\Plex_API\Models\Operations\GetSearchResultsRequest::class, $request, $this->sdkConfiguration->globals)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetSearchResultsRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\GetSearchResultsResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetSearchResultsResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + object: $obj); - $response = new \LukeHagar\Plex_API\Models\Operations\GetSearchResultsResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200) { + return $response; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->twoHundredApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetSearchResultsResponseBody', 'json'); - } - } elseif ($httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $response->fourHundredAndOneApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetSearchResultsSearchResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetSearchResultsResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } } \ No newline at end of file diff --git a/src/Server.php b/src/Server.php index d64635b..2a3011c 100644 --- a/src/Server.php +++ b/src/Server.php @@ -1,13 +1,16 @@ sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/'); $options = ['http_errors' => false]; $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\GetServerCapabilitiesResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetServerCapabilitiesResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + object: $obj); - $response = new \LukeHagar\Plex_API\Models\Operations\GetServerCapabilitiesResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200) { + return $response; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->twoHundredApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetServerCapabilitiesResponseBody', 'json'); - } - } elseif ($httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $response->fourHundredAndOneApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetServerCapabilitiesServerResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetServerCapabilitiesResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -65,39 +80,51 @@ class Server * * Get Server Preferences * - * @return \LukeHagar\Plex_API\Models\Operations\GetServerPreferencesResponse + * @return Operations\GetServerPreferencesResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function getServerPreferences( - ): \LukeHagar\Plex_API\Models\Operations\GetServerPreferencesResponse { + ): Operations\GetServerPreferencesResponse { $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/:/prefs'); $options = ['http_errors' => false]; $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\GetServerPreferencesResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetServerPreferencesResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + object: $obj); - $response = new \LukeHagar\Plex_API\Models\Operations\GetServerPreferencesResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200) { + return $response; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->twoHundredApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetServerPreferencesResponseBody', 'json'); - } - } elseif ($httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $response->fourHundredAndOneApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetServerPreferencesServerResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetServerPreferencesResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -105,39 +132,51 @@ class Server * * Get Available Clients * - * @return \LukeHagar\Plex_API\Models\Operations\GetAvailableClientsResponse + * @return Operations\GetAvailableClientsResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function getAvailableClients( - ): \LukeHagar\Plex_API\Models\Operations\GetAvailableClientsResponse { + ): Operations\GetAvailableClientsResponse { $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/clients'); $options = ['http_errors' => false]; $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\GetAvailableClientsResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetAvailableClientsResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + object: $obj); - $response = new \LukeHagar\Plex_API\Models\Operations\GetAvailableClientsResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200) { + return $response; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->twoHundredApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetAvailableClientsResponseBody', 'json'); - } - } elseif ($httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $response->fourHundredAndOneApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetAvailableClientsServerResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetAvailableClientsResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -145,39 +184,51 @@ class Server * * Get Devices * - * @return \LukeHagar\Plex_API\Models\Operations\GetDevicesResponse + * @return Operations\GetDevicesResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function getDevices( - ): \LukeHagar\Plex_API\Models\Operations\GetDevicesResponse { + ): Operations\GetDevicesResponse { $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/devices'); $options = ['http_errors' => false]; $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\GetDevicesResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetDevicesResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + object: $obj); - $response = new \LukeHagar\Plex_API\Models\Operations\GetDevicesResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200) { + return $response; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->twoHundredApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetDevicesResponseBody', 'json'); - } - } elseif ($httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $response->fourHundredAndOneApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetDevicesServerResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetDevicesResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -185,39 +236,51 @@ class Server * * Get Server Identity * - * @return \LukeHagar\Plex_API\Models\Operations\GetServerIdentityResponse + * @return Operations\GetServerIdentityResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function getServerIdentity( - ): \LukeHagar\Plex_API\Models\Operations\GetServerIdentityResponse { + ): Operations\GetServerIdentityResponse { $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/identity'); $options = ['http_errors' => false]; $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\GetServerIdentityResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetServerIdentityResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + object: $obj); - $response = new \LukeHagar\Plex_API\Models\Operations\GetServerIdentityResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200) { + return $response; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->twoHundredApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetServerIdentityResponseBody', 'json'); - } - } elseif ($httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $response->fourHundredAndOneApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetServerIdentityServerResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetServerIdentityResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -225,39 +288,51 @@ class Server * * Returns MyPlex Account Information * - * @return \LukeHagar\Plex_API\Models\Operations\GetMyPlexAccountResponse + * @return Operations\GetMyPlexAccountResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function getMyPlexAccount( - ): \LukeHagar\Plex_API\Models\Operations\GetMyPlexAccountResponse { + ): Operations\GetMyPlexAccountResponse { $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/myplex/account'); $options = ['http_errors' => false]; $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\GetMyPlexAccountResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetMyPlexAccountResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + object: $obj); - $response = new \LukeHagar\Plex_API\Models\Operations\GetMyPlexAccountResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200) { + return $response; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->twoHundredApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetMyPlexAccountResponseBody', 'json'); - } - } elseif ($httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $response->fourHundredAndOneApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetMyPlexAccountServerResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetMyPlexAccountResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -266,37 +341,46 @@ class Server * Plex's Photo transcoder is used throughout the service to serve images at specified sizes. * * - * @param \LukeHagar\Plex_API\Models\Operations\GetResizedPhotoRequest $request - * @return \LukeHagar\Plex_API\Models\Operations\GetResizedPhotoResponse + * @param Operations\GetResizedPhotoRequest $request + * @return Operations\GetResizedPhotoResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function getResizedPhoto( - ?\LukeHagar\Plex_API\Models\Operations\GetResizedPhotoRequest $request, - ): \LukeHagar\Plex_API\Models\Operations\GetResizedPhotoResponse { + ?Operations\GetResizedPhotoRequest $request, + ): Operations\GetResizedPhotoResponse { $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/photo/:/transcode'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\LukeHagar\Plex_API\Models\Operations\GetResizedPhotoRequest::class, $request, $this->sdkConfiguration->globals)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetResizedPhotoRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - - $response = new \LukeHagar\Plex_API\Models\Operations\GetResizedPhotoResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200 or $httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { + if ($statusCode == 200) { + return new Operations\GetResizedPhotoResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse + ); + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->object = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetResizedPhotoResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetResizedPhotoResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -304,38 +388,50 @@ class Server * * Get Server List * - * @return \LukeHagar\Plex_API\Models\Operations\GetServerListResponse + * @return Operations\GetServerListResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function getServerList( - ): \LukeHagar\Plex_API\Models\Operations\GetServerListResponse { + ): Operations\GetServerListResponse { $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/servers'); $options = ['http_errors' => false]; $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\GetServerListResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetServerListResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + object: $obj); - $response = new \LukeHagar\Plex_API\Models\Operations\GetServerListResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200) { + return $response; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->twoHundredApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetServerListResponseBody', 'json'); - } - } elseif ($httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $response->fourHundredAndOneApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetServerListServerResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetServerListResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } } \ No newline at end of file diff --git a/src/ServerProtocol.php b/src/ServerProtocol.php index bb36e39..b13befa 100644 --- a/src/ServerProtocol.php +++ b/src/ServerProtocol.php @@ -1,7 +1,7 @@ sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/status/sessions'); $options = ['http_errors' => false]; $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\GetSessionsResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetSessionsResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + object: $obj); - $response = new \LukeHagar\Plex_API\Models\Operations\GetSessionsResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200) { + return $response; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->twoHundredApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetSessionsResponseBody', 'json'); - } - } elseif ($httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $response->fourHundredAndOneApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetSessionsSessionsResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetSessionsResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -67,51 +82,64 @@ class Sessions * * @param ?string $sort * @param ?int $accountId - * @param ?\LukeHagar\Plex_API\Models\Operations\Filter $filter + * @param ?Operations\Filter $filter * @param ?int $librarySectionID - * @return \LukeHagar\Plex_API\Models\Operations\GetSessionHistoryResponse + * @return Operations\GetSessionHistoryResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function getSessionHistory( ?string $sort = null, ?int $accountId = null, - ?\LukeHagar\Plex_API\Models\Operations\Filter $filter = null, + ?Operations\Filter $filter = null, ?int $librarySectionID = null, - ): \LukeHagar\Plex_API\Models\Operations\GetSessionHistoryResponse { - $request = new \LukeHagar\Plex_API\Models\Operations\GetSessionHistoryRequest(); - $request->sort = $sort; - $request->accountId = $accountId; - $request->filter = $filter; - $request->librarySectionID = $librarySectionID; + ): Operations\GetSessionHistoryResponse { + $request = new Operations\GetSessionHistoryRequest( + sort: $sort, + accountId: $accountId, + filter: $filter, + librarySectionID: $librarySectionID, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/status/sessions/history/all'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\LukeHagar\Plex_API\Models\Operations\GetSessionHistoryRequest::class, $request, $this->sdkConfiguration->globals)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetSessionHistoryRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\GetSessionHistoryResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetSessionHistoryResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + object: $obj); - $response = new \LukeHagar\Plex_API\Models\Operations\GetSessionHistoryResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200) { + return $response; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->twoHundredApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetSessionHistoryResponseBody', 'json'); - } - } elseif ($httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $response->fourHundredAndOneApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetSessionHistorySessionsResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetSessionHistoryResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -119,39 +147,51 @@ class Sessions * * Get Transcode Sessions * - * @return \LukeHagar\Plex_API\Models\Operations\GetTranscodeSessionsResponse + * @return Operations\GetTranscodeSessionsResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function getTranscodeSessions( - ): \LukeHagar\Plex_API\Models\Operations\GetTranscodeSessionsResponse { + ): Operations\GetTranscodeSessionsResponse { $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/transcode/sessions'); $options = ['http_errors' => false]; $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\GetTranscodeSessionsResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetTranscodeSessionsResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + object: $obj); - $response = new \LukeHagar\Plex_API\Models\Operations\GetTranscodeSessionsResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200) { + return $response; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->twoHundredApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetTranscodeSessionsResponseBody', 'json'); - } - } elseif ($httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $response->fourHundredAndOneApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetTranscodeSessionsSessionsResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetTranscodeSessionsResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -160,36 +200,46 @@ class Sessions * Stop a Transcode Session * * @param string $sessionKey - * @return \LukeHagar\Plex_API\Models\Operations\StopTranscodeSessionResponse + * @return Operations\StopTranscodeSessionResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function stopTranscodeSession( string $sessionKey, - ): \LukeHagar\Plex_API\Models\Operations\StopTranscodeSessionResponse { - $request = new \LukeHagar\Plex_API\Models\Operations\StopTranscodeSessionRequest(); - $request->sessionKey = $sessionKey; + ): Operations\StopTranscodeSessionResponse { + $request = new Operations\StopTranscodeSessionRequest( + sessionKey: $sessionKey, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); - $url = Utils\Utils::generateUrl($baseUrl, '/transcode/sessions/{sessionKey}', \LukeHagar\Plex_API\Models\Operations\StopTranscodeSessionRequest::class, $request, $this->sdkConfiguration->globals); + $url = Utils\Utils::generateUrl($baseUrl, '/transcode/sessions/{sessionKey}', Operations\StopTranscodeSessionRequest::class, $request, $this->sdkConfiguration->globals); $options = ['http_errors' => false]; $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('DELETE', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('DELETE', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - - $response = new \LukeHagar\Plex_API\Models\Operations\StopTranscodeSessionResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 204 or $httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { + if ($statusCode == 204) { + return new Operations\StopTranscodeSessionResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse + ); + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->object = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\StopTranscodeSessionResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\StopTranscodeSessionResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } } \ No newline at end of file diff --git a/src/Statistics.php b/src/Statistics.php index c4b2ee5..78e2274 100644 --- a/src/Statistics.php +++ b/src/Statistics.php @@ -1,13 +1,16 @@ timespan = $timespan; + ): Operations\GetStatisticsResponse { + $request = new Operations\GetStatisticsRequest( + timespan: $timespan, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/statistics/media'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\LukeHagar\Plex_API\Models\Operations\GetStatisticsRequest::class, $request, $this->sdkConfiguration->globals)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetStatisticsRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\GetStatisticsResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetStatisticsResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + object: $obj); - $response = new \LukeHagar\Plex_API\Models\Operations\GetStatisticsResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200) { + return $response; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->twoHundredApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetStatisticsResponseBody', 'json'); - } - } elseif ($httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $response->fourHundredAndOneApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetStatisticsStatisticsResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetStatisticsResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -71,43 +87,56 @@ class Statistics * This will return the resources for the server * * @param ?int $timespan - * @return \LukeHagar\Plex_API\Models\Operations\GetResourcesStatisticsResponse + * @return Operations\GetResourcesStatisticsResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function getResourcesStatistics( ?int $timespan = null, - ): \LukeHagar\Plex_API\Models\Operations\GetResourcesStatisticsResponse { - $request = new \LukeHagar\Plex_API\Models\Operations\GetResourcesStatisticsRequest(); - $request->timespan = $timespan; + ): Operations\GetResourcesStatisticsResponse { + $request = new Operations\GetResourcesStatisticsRequest( + timespan: $timespan, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/statistics/resources'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\LukeHagar\Plex_API\Models\Operations\GetResourcesStatisticsRequest::class, $request, $this->sdkConfiguration->globals)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetResourcesStatisticsRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\GetResourcesStatisticsResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetResourcesStatisticsResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + object: $obj); - $response = new \LukeHagar\Plex_API\Models\Operations\GetResourcesStatisticsResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200) { + return $response; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->twoHundredApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetResourcesStatisticsResponseBody', 'json'); - } - } elseif ($httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $response->fourHundredAndOneApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetResourcesStatisticsStatisticsResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetResourcesStatisticsResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -116,42 +145,55 @@ class Statistics * This will return the bandwidth statistics for the server * * @param ?int $timespan - * @return \LukeHagar\Plex_API\Models\Operations\GetBandwidthStatisticsResponse + * @return Operations\GetBandwidthStatisticsResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function getBandwidthStatistics( ?int $timespan = null, - ): \LukeHagar\Plex_API\Models\Operations\GetBandwidthStatisticsResponse { - $request = new \LukeHagar\Plex_API\Models\Operations\GetBandwidthStatisticsRequest(); - $request->timespan = $timespan; + ): Operations\GetBandwidthStatisticsResponse { + $request = new Operations\GetBandwidthStatisticsRequest( + timespan: $timespan, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/statistics/bandwidth'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\LukeHagar\Plex_API\Models\Operations\GetBandwidthStatisticsRequest::class, $request, $this->sdkConfiguration->globals)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetBandwidthStatisticsRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\GetBandwidthStatisticsResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetBandwidthStatisticsResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + object: $obj); - $response = new \LukeHagar\Plex_API\Models\Operations\GetBandwidthStatisticsResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200) { + return $response; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->twoHundredApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetBandwidthStatisticsResponseBody', 'json'); - } - } elseif ($httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $response->fourHundredAndOneApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetBandwidthStatisticsStatisticsResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetBandwidthStatisticsResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } } \ No newline at end of file diff --git a/src/Updater.php b/src/Updater.php index 7b46b74..ea226b3 100644 --- a/src/Updater.php +++ b/src/Updater.php @@ -1,13 +1,16 @@ sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/updater/status'); $options = ['http_errors' => false]; $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\GetUpdateStatusResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetUpdateStatusResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + object: $obj); - $response = new \LukeHagar\Plex_API\Models\Operations\GetUpdateStatusResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200) { + return $response; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->twoHundredApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetUpdateStatusResponseBody', 'json'); - } - } elseif ($httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $response->fourHundredAndOneApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetUpdateStatusUpdaterResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetUpdateStatusResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -65,39 +80,49 @@ class Updater * * Checking for updates * - * @param ?\LukeHagar\Plex_API\Models\Operations\Download $download - * @return \LukeHagar\Plex_API\Models\Operations\CheckForUpdatesResponse + * @param ?Operations\Download $download + * @return Operations\CheckForUpdatesResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function checkForUpdates( - ?\LukeHagar\Plex_API\Models\Operations\Download $download = null, - ): \LukeHagar\Plex_API\Models\Operations\CheckForUpdatesResponse { - $request = new \LukeHagar\Plex_API\Models\Operations\CheckForUpdatesRequest(); - $request->download = $download; + ?Operations\Download $download = null, + ): Operations\CheckForUpdatesResponse { + $request = new Operations\CheckForUpdatesRequest( + download: $download, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/updater/check'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\LukeHagar\Plex_API\Models\Operations\CheckForUpdatesRequest::class, $request, $this->sdkConfiguration->globals)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\CheckForUpdatesRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('PUT', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('PUT', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - - $response = new \LukeHagar\Plex_API\Models\Operations\CheckForUpdatesResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200 or $httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { + if ($statusCode == 200) { + return new Operations\CheckForUpdatesResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse + ); + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->object = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\CheckForUpdatesResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\CheckForUpdatesResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -106,41 +131,51 @@ class Updater * Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed * * - * @param ?\LukeHagar\Plex_API\Models\Operations\Tonight $tonight - * @param ?\LukeHagar\Plex_API\Models\Operations\Skip $skip - * @return \LukeHagar\Plex_API\Models\Operations\ApplyUpdatesResponse + * @param ?Operations\Tonight $tonight + * @param ?Operations\Skip $skip + * @return Operations\ApplyUpdatesResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function applyUpdates( - ?\LukeHagar\Plex_API\Models\Operations\Tonight $tonight = null, - ?\LukeHagar\Plex_API\Models\Operations\Skip $skip = null, - ): \LukeHagar\Plex_API\Models\Operations\ApplyUpdatesResponse { - $request = new \LukeHagar\Plex_API\Models\Operations\ApplyUpdatesRequest(); - $request->tonight = $tonight; - $request->skip = $skip; + ?Operations\Tonight $tonight = null, + ?Operations\Skip $skip = null, + ): Operations\ApplyUpdatesResponse { + $request = new Operations\ApplyUpdatesRequest( + tonight: $tonight, + skip: $skip, + ); $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/updater/apply'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\LukeHagar\Plex_API\Models\Operations\ApplyUpdatesRequest::class, $request, $this->sdkConfiguration->globals)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\ApplyUpdatesRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('PUT', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('PUT', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - - $response = new \LukeHagar\Plex_API\Models\Operations\ApplyUpdatesResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200 or $httpResponse->getStatusCode() === 400 or $httpResponse->getStatusCode() === 500) { - } elseif ($httpResponse->getStatusCode() === 401) { + if ($statusCode == 200) { + return new Operations\ApplyUpdatesResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse + ); + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode == 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->object = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\ApplyUpdatesResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\ApplyUpdatesResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } } \ No newline at end of file diff --git a/src/Utils/DateHandler.php b/src/Utils/DateHandler.php new file mode 100644 index 0000000..a5fbb4d --- /dev/null +++ b/src/Utils/DateHandler.php @@ -0,0 +1,49 @@ + GraphNavigator::DIRECTION_SERIALIZATION, + 'format' => 'json', + 'type' => '\\Brick\\DateTime\\LocalDate', + 'method' => 'serializeDateTimeToJson', + ], + [ + 'direction' => GraphNavigator::DIRECTION_DESERIALIZATION, + 'format' => 'json', + 'type' => '\\Brick\\DateTime\\LocalDate', + 'method' => 'deserializeDateTimeToJson', + ], + ]; + } + + /** @phpstan-ignore-next-line */ + public function serializeDateTimeToJson(JsonSerializationVisitor $visitor, \Brick\DateTime\LocalDate $any, array $type, Context $context): string + { + return $any->jsonSerialize(); + } + + /** @phpstan-ignore-next-line */ + public function deserializeDateTimeToJson(JsonDeserializationVisitor $visitor, string $data, array $type, Context $context): mixed + { + return \Brick\DateTime\LocalDate::parse($data); + } +} diff --git a/src/Utils/DateTimeHandler.php b/src/Utils/DateTimeHandler.php new file mode 100644 index 0000000..a4e10d5 --- /dev/null +++ b/src/Utils/DateTimeHandler.php @@ -0,0 +1,49 @@ + GraphNavigator::DIRECTION_SERIALIZATION, + 'format' => 'json', + 'type' => '\DateTime', + 'method' => 'serializeDateTimeToJson', + ], + [ + 'direction' => GraphNavigator::DIRECTION_DESERIALIZATION, + 'format' => 'json', + 'type' => '\DateTime', + 'method' => 'deserializeDateTimeToJson', + ], + ]; + } + + /** @phpstan-ignore-next-line */ + public function serializeDateTimeToJson(JsonSerializationVisitor $visitor, \DateTime $any, array $type, Context $context): string + { + return $any->format('Y-m-d\TH:i:s.up'); + } + + /** @phpstan-ignore-next-line */ + public function deserializeDateTimeToJson(JsonDeserializationVisitor $visitor, string $data, array $type, Context $context): mixed + { + return new \DateTime($data); + } +} diff --git a/src/Utils/DefaultResponse.php b/src/Utils/DefaultResponse.php new file mode 100644 index 0000000..f2f1cdf --- /dev/null +++ b/src/Utils/DefaultResponse.php @@ -0,0 +1,88 @@ +getMessage()); + } } } diff --git a/src/Utils/FormMetadata.php b/src/Utils/FormMetadata.php index ac11f93..913c73b 100644 --- a/src/Utils/FormMetadata.php +++ b/src/Utils/FormMetadata.php @@ -1,7 +1,7 @@ explode) { - $items[] = $fieldMetadata->name.'='.valToString($fieldValue); + $items[] = $fieldMetadata->name.'='.valToString($fieldValue, $fieldMetadata->dateTimeFormat); } else { $items[] = $fieldMetadata->name; - $items[] = valToString($fieldValue); + $items[] = valToString($fieldValue, $fieldMetadata->dateTimeFormat); } } diff --git a/src/Utils/JSON.php b/src/Utils/JSON.php index f4bc5ae..35bf30e 100644 --- a/src/Utils/JSON.php +++ b/src/Utils/JSON.php @@ -1,25 +1,36 @@ configureHandlers( static function (HandlerRegistry $registry): void { + $registry->registerSubscribingHandler(new StdClassHandler()); + $registry->registerSubscribingHandler(new ArrayCollectionHandler()); + $registry->registerSubscribingHandler(new IteratorHandler()); $registry->registerSubscribingHandler(new MixedJSONHandler()); $registry->registerSubscribingHandler(new EnumHandler()); + $registry->registerSubscribingHandler(new DateTimeHandler()); + $registry->registerSubscribingHandler(new DateHandler()); + $registry->registerSubscribingHandler(new UnionHandler()); }, - )->addDefaultHandlers()->build(); + )->setTypeParser(new PhpDocTypeParser())->build(); } -} \ No newline at end of file +} diff --git a/src/Utils/MixedJSONHandler.php b/src/Utils/MixedJSONHandler.php index 41b70ed..02bf067 100644 --- a/src/Utils/MixedJSONHandler.php +++ b/src/Utils/MixedJSONHandler.php @@ -1,9 +1,10 @@ explode) { - $vals[] = sprintf('%s=%s', $fieldMetadata->name, valToString($fieldValue)); + $vals[] = sprintf('%s=%s', $fieldMetadata->name, valToString($fieldValue, $fieldMetadata->dateTimeFormat)); } else { - $vals[] = sprintf('%s,%s', $fieldMetadata->name, valToString($fieldValue)); + $vals[] = sprintf('%s,%s', $fieldMetadata->name, valToString($fieldValue, $fieldMetadata->dateTimeFormat)); } } diff --git a/src/Utils/PhpDocTypeParser.php b/src/Utils/PhpDocTypeParser.php new file mode 100644 index 0000000..d3093a4 --- /dev/null +++ b/src/Utils/PhpDocTypeParser.php @@ -0,0 +1,95 @@ +typeResolver = new \phpDocumentor\Reflection\TypeResolver(); + } + + /** + * @param string $typeString + * @return array + */ + public function parse(string $typeString): array + { + $type = $this->typeResolver->resolve($typeString); + + return $this->convertRecursive($type); + } + + /** + * @param Type $type + * @return array + */ + public function convertRecursive(Type $type): array + { + if (\is_a($type, \phpDocumentor\Reflection\Types\AggregatedType::class)) { + return [ + 'name' => 'union', + 'params' => \array_map(function ($type) { + return $this->convertRecursive($type); + }, iterator_to_array($type->getIterator())), + ]; + } elseif (\is_a($type, \phpDocumentor\Reflection\Types\Array_::class)) { + $params = []; + $keyType = $type->getKeyType(); + if (\is_a($keyType, \phpDocumentor\Reflection\Types\AggregatedType::class)) { + // The Default key that the phpdoc type system returns for *maps* is string|int, so if we see that, exclude it (which is the JMS/Serializer default). + if (! ($keyType->getIterator()->count() == 2 && $keyType->contains(new \phpDocumentor\Reflection\Types\String_()) && $keyType->contains(new \phpDocumentor\Reflection\Types\Integer()))) { + $params[] = $this->convertRecursive($keyType); + } + } else { + $params[] = $this->convertRecursive($keyType); + } + $valueType = $type->getValueType(); + $params[] = $this->convertRecursive($valueType); + + return [ + 'name' => 'array', + 'params' => $params, + ]; + } elseif (\is_a($type, \phpDocumentor\Reflection\Types\Object_::class)) { + $className = $type->__toString(); + if (class_exists($className)) { + $objectClass = new \ReflectionClass($className); + if ($objectClass->isEnum()) { + return [ + 'name' => 'enum', + 'params' => [ + [ + 'name' => $objectClass->getName(), + 'params' => [], + ], + ], + ]; + } + } + } + + return [ + 'name' => $type->__toString(), + 'params' => [], + ]; + } +} \ No newline at end of file diff --git a/src/Utils/QueryParameters.php b/src/Utils/QueryParameters.php index b4147fd..4786732 100644 --- a/src/Utils/QueryParameters.php +++ b/src/Utils/QueryParameters.php @@ -1,7 +1,7 @@ name] = valToString($value, $dateTimeFormat); break; diff --git a/src/Utils/RequestMetadata.php b/src/Utils/RequestMetadata.php index 5969c04..310c0a6 100644 --- a/src/Utils/RequestMetadata.php +++ b/src/Utils/RequestMetadata.php @@ -1,7 +1,7 @@ > + */ + public static function getSubscribingMethods(): array + { + $methods = []; + $formats = ['json', 'xml']; + + foreach ($formats as $format) { + $methods[] = [ + 'type' => 'union', + 'format' => $format, + 'direction' => GraphNavigatorInterface::DIRECTION_DESERIALIZATION, + 'method' => 'deserializeUnion', + ]; + $methods[] = [ + 'type' => 'union', + 'format' => $format, + 'direction' => GraphNavigatorInterface::DIRECTION_SERIALIZATION, + 'method' => 'serializeUnion', + ]; + } + + return $methods; + } + + /** + * @param SerializationVisitorInterface $visitor + * @param mixed $data + * @param array $type + * @param SerializationContext $context + * @return mixed + */ + public function serializeUnion( + SerializationVisitorInterface $visitor, + mixed $data, + array $type, + SerializationContext $context + ): mixed { + if ($this->isPrimitiveType(gettype($data))) { + return $this->matchSimpleType($data, $type, $context); + } else { + $resolvedType = [ + 'name' => get_class($data), + 'params' => [], + ]; + + return $context->getNavigator()->accept($data, $resolvedType); + } + } + + /** + * @param DeserializationVisitorInterface $visitor + * @param mixed $data + * @param array $type + * @param DeserializationContext $context + * @return mixed + */ + public function deserializeUnion(DeserializationVisitorInterface $visitor, mixed $data, array $type, DeserializationContext $context): mixed + { + if ($data instanceof \SimpleXMLElement) { + throw new RuntimeException('XML deserialisation into union types is not supported yet.'); + } + + + $alternativeName = null; + + foreach ($this->reorderTypes($type)['params'] as $possibleType) { + $propertyMetadata = $context->getMetadataStack()->top(); + $finalType = null; + if ($propertyMetadata->unionDiscriminatorField !== null) { + if (! array_key_exists($propertyMetadata->unionDiscriminatorField, $data)) { + throw new NonVisitableTypeException('Union Discriminator Field \''.$propertyMetadata->unionDiscriminatorField.'\' not found in data'); + } + + $lkup = $data[$propertyMetadata->unionDiscriminatorField]; + if (! empty($propertyMetadata->unionDiscriminatorMap)) { + if (array_key_exists($lkup, $propertyMetadata->unionDiscriminatorMap)) { + $finalType = [ + 'name' => $propertyMetadata->unionDiscriminatorMap[$lkup], + 'params' => [], + ]; + } else { + throw new NonVisitableTypeException('Union Discriminator Map does not contain key \''.$lkup.'\''); + } + } else { + $finalType = [ + 'name' => $lkup, + 'params' => [], + ]; + } + } + + if ($finalType !== null && $finalType['name'] !== null) { + return $context->getNavigator()->accept($data, $finalType); + } else { + $typeToTry = $possibleType['name']; + if ($typeToTry === 'array') { + $typeNames = array_map(fn ($t) => $t['name'], $possibleType['params']); + $typeToTry = 'array<'.implode(', ', $typeNames).'>'; + } + $serializer = JSON::createSerializer(); + try { + if ($this->isPrimitiveType($possibleType['name']) && (is_array($data) || ! $this->testPrimitive($data, $possibleType['name']))) { + continue; + } + + $json_encoded_data = json_encode($data); + if ($json_encoded_data === false) { + throw new RuntimeException('Failed to encode data to JSON: '.json_last_error_msg()); + } + $accept = $serializer->deserialize($json_encoded_data, $typeToTry, 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + + return $accept; + } catch (NonVisitableTypeException $e) { + continue; + } catch (PropertyMissingException $e) { + continue; + } catch (NonStringCastableTypeException $e) { + continue; + } catch (NonIntCastableTypeException $e) { + continue; + } catch (NonFloatCastableTypeException $e) { + continue; + } + } + } + + return null; + } + + /** + * @param mixed $data + * @param array $type + * @param Context $context + */ + private function matchSimpleType(mixed $data, array $type, Context $context): mixed + { + $alternativeName = null; + + foreach ($type['params'] as $possibleType) { + if ($this->isPrimitiveType($possibleType['name']) && ! $this->testPrimitive($data, $possibleType['name'])) { + continue; + } + + try { + return $context->getNavigator()->accept($data, $possibleType); + } catch (NonVisitableTypeException $e) { + continue; + } catch (PropertyMissingException $e) { + continue; + } + } + + return null; + } + + /** + * @param string $type + * @return bool + */ + private function isPrimitiveType(string $type): bool + { + return in_array($type, ['int', 'integer', 'float', 'double', 'bool', 'boolean', 'string']); + } + + /** + * @param mixed $data + * @param string $type + * @return bool + */ + private function testPrimitive(mixed $data, string $type): bool + { + switch ($type) { + case 'integer': + case 'int': + return (string) (int) $data === (string) $data; + + case 'double': + case 'float': + return (string) (float) $data === (string) $data; + + case 'bool': + case 'boolean': + return (string) (bool) $data === (string) $data; + + case 'string': + return (string) $data === (string) $data; + } + + return false; + } + + /** + * @param array $type + * @return array + */ + private function reorderTypes(array $type): array + { + if ($type['params']) { + uasort($type['params'], static function ($a, $b) { + if (\class_exists($a['name']) && \class_exists($b['name'])) { + $aClass = new \ReflectionClass($a['name']); + $bClass = new \ReflectionClass($b['name']); + $aRequiredPropertyCount = 0; + $bRequiredPropertyCount = 0; + foreach ($aClass->getProperties() as $property) { + if (! $property->getType()->allowsNull()) { + $aRequiredPropertyCount++; + } + } + + foreach ($bClass->getProperties() as $property) { + if (! $property->getType()->allowsNull()) { + $bRequiredPropertyCount++; + } + } + + return $bRequiredPropertyCount <=> $aRequiredPropertyCount; + } + + if (\class_exists($a['name'])) { + return 1; + } + + if (\class_exists($b['name'])) { + return -1; + } + + $order = ['null' => 0, 'true' => 1, 'false' => 2, 'bool' => 3, 'int' => 4, 'float' => 5, 'string' => 6]; + + return ($order[$a['name']] ?? 7) <=> ($order[$b['name']] ?? 7); + }); + } + + return $type; + } +} diff --git a/src/Utils/Utils.php b/src/Utils/Utils.php index fe7f0b8..da75e90 100644 --- a/src/Utils/Utils.php +++ b/src/Utils/Utils.php @@ -1,7 +1,7 @@ format($dateTimeFormat); + case 'Brick\DateTime\LocalDate': + return $val->jsonSerialize(); default: if (is_a($val, \BackedEnum::class, true)) { $enumVal = $val->value; diff --git a/src/Video.php b/src/Video.php index 61c3f88..7edae2d 100644 --- a/src/Video.php +++ b/src/Video.php @@ -1,13 +1,16 @@ sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/:/timeline'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\LukeHagar\Plex_API\Models\Operations\GetTimelineRequest::class, $request, $this->sdkConfiguration->globals)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetTimelineRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - - $response = new \LukeHagar\Plex_API\Models\Operations\GetTimelineResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200 or $httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { + if ($statusCode == 200) { + return new Operations\GetTimelineResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse + ); + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->object = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetTimelineResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetTimelineResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } /** @@ -63,36 +75,45 @@ class Video * * Begin a Universal Transcode Session * - * @param \LukeHagar\Plex_API\Models\Operations\StartUniversalTranscodeRequest $request - * @return \LukeHagar\Plex_API\Models\Operations\StartUniversalTranscodeResponse + * @param Operations\StartUniversalTranscodeRequest $request + * @return Operations\StartUniversalTranscodeResponse + * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function startUniversalTranscode( - ?\LukeHagar\Plex_API\Models\Operations\StartUniversalTranscodeRequest $request, - ): \LukeHagar\Plex_API\Models\Operations\StartUniversalTranscodeResponse { + ?Operations\StartUniversalTranscodeRequest $request, + ): Operations\StartUniversalTranscodeResponse { $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); $url = Utils\Utils::generateUrl($baseUrl, '/video/:/transcode/universal/start.mpd'); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\LukeHagar\Plex_API\Models\Operations\StartUniversalTranscodeRequest::class, $request, $this->sdkConfiguration->globals)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\StartUniversalTranscodeRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - - $response = new \LukeHagar\Plex_API\Models\Operations\StartUniversalTranscodeResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200 or $httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { + if ($statusCode == 200) { + return new Operations\StartUniversalTranscodeResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse + ); + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->object = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\StartUniversalTranscodeResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\StartUniversalTranscodeResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } } \ No newline at end of file diff --git a/src/Watchlist.php b/src/Watchlist.php index f3120e2..20fc89f 100644 --- a/src/Watchlist.php +++ b/src/Watchlist.php @@ -1,13 +1,16 @@ sdkConfiguration->globals); + $url = Utils\Utils::generateUrl($baseUrl, '/library/sections/watchlist/{filter}', Operations\GetWatchlistRequest::class, $request, $this->sdkConfiguration->globals); $options = ['http_errors' => false]; - $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\LukeHagar\Plex_API\Models\Operations\GetWatchlistRequest::class, $request, $this->sdkConfiguration->globals)); + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\GetWatchlistRequest::class, $request, $this->sdkConfiguration->globals)); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\GetWatchlistResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\GetWatchlistResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + object: $obj); - $response = new \LukeHagar\Plex_API\Models\Operations\GetWatchlistResponse(); - $response->statusCode = $statusCode; - $response->contentType = $contentType; - $response->rawResponse = $httpResponse; - if ($httpResponse->getStatusCode() === 200) { + return $response; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } elseif ($statusCode == 401) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $response->twoHundredApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetWatchlistResponseBody', 'json'); - } - } elseif ($httpResponse->getStatusCode() === 400) { - } elseif ($httpResponse->getStatusCode() === 401) { - if (Utils\Utils::matchContentType($contentType, 'application/json')) { - $serializer = Utils\JSON::createSerializer(); - $response->fourHundredAndOneApplicationJsonObject = $serializer->deserialize((string) $httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetWatchlistWatchlistResponseBody', 'json'); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Errors\GetWatchlistResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj->rawResponse = $httpResponse; + throw $obj; + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } + } else { + throw new \LukeHagar\Plex_API\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } - - return $response; } } \ No newline at end of file