From e01292f115ad2bc873a82e0971eeaeec30750307 Mon Sep 17 00:00:00 2001 From: Luke Hagar Date: Mon, 1 Jul 2024 16:02:39 +0000 Subject: [PATCH] nuking repo --- .gitattributes | 12 - .gitignore | 9 - .speakeasy/gen.lock | 1072 ------- .speakeasy/workflow.lock | 28 - README.md | 596 ---- USAGE.md | 48 - build-extras.gradle | 4 - build.gradle | 49 - .../errors/AddPlaylistContentsErrors.md | 10 - .../errors/AddPlaylistContentsResponseBody.md | 11 - docs/models/errors/ApplyUpdatesErrors.md | 10 - .../models/errors/ApplyUpdatesResponseBody.md | 11 - .../errors/CancelServerActivitiesErrors.md | 10 - .../CancelServerActivitiesResponseBody.md | 11 - docs/models/errors/CheckForUpdatesErrors.md | 10 - .../errors/CheckForUpdatesResponseBody.md | 11 - .../errors/ClearPlaylistContentsErrors.md | 10 - .../ClearPlaylistContentsResponseBody.md | 11 - docs/models/errors/CreatePlaylistErrors.md | 10 - .../errors/CreatePlaylistResponseBody.md | 11 - docs/models/errors/DeleteLibraryErrors.md | 10 - .../errors/DeleteLibraryResponseBody.md | 11 - docs/models/errors/DeletePlaylistErrors.md | 10 - .../errors/DeletePlaylistResponseBody.md | 11 - docs/models/errors/EnablePaperTrailErrors.md | 10 - .../errors/EnablePaperTrailResponseBody.md | 11 - docs/models/errors/Errors.md | 10 - .../errors/GetAvailableClientsErrors.md | 10 - .../errors/GetAvailableClientsResponseBody.md | 11 - .../errors/GetBandwidthStatisticsErrors.md | 10 - .../GetBandwidthStatisticsResponseBody.md | 11 - docs/models/errors/GetButlerTasksErrors.md | 10 - .../errors/GetButlerTasksResponseBody.md | 11 - docs/models/errors/GetDevicesErrors.md | 10 - docs/models/errors/GetDevicesResponseBody.md | 11 - docs/models/errors/GetFileHashErrors.md | 10 - docs/models/errors/GetFileHashResponseBody.md | 11 - docs/models/errors/GetGlobalHubsErrors.md | 10 - .../errors/GetGlobalHubsResponseBody.md | 11 - docs/models/errors/GetHomeDataErrors.md | 10 - docs/models/errors/GetHomeDataResponseBody.md | 11 - docs/models/errors/GetLibrariesErrors.md | 10 - .../models/errors/GetLibrariesResponseBody.md | 11 - docs/models/errors/GetLibraryErrors.md | 10 - docs/models/errors/GetLibraryHubsErrors.md | 10 - .../errors/GetLibraryHubsResponseBody.md | 11 - docs/models/errors/GetLibraryItemsErrors.md | 10 - .../errors/GetLibraryItemsResponseBody.md | 11 - docs/models/errors/GetLibraryResponseBody.md | 11 - .../errors/GetMetadataChildrenErrors.md | 10 - .../errors/GetMetadataChildrenResponseBody.md | 11 - docs/models/errors/GetMetadataErrors.md | 10 - docs/models/errors/GetMetadataResponseBody.md | 11 - docs/models/errors/GetMyPlexAccountErrors.md | 10 - .../errors/GetMyPlexAccountResponseBody.md | 11 - docs/models/errors/GetOnDeckErrors.md | 10 - docs/models/errors/GetOnDeckResponseBody.md | 11 - docs/models/errors/GetPinErrors.md | 10 - docs/models/errors/GetPinResponseBody.md | 11 - .../errors/GetPlaylistContentsErrors.md | 10 - .../errors/GetPlaylistContentsResponseBody.md | 11 - docs/models/errors/GetPlaylistErrors.md | 10 - docs/models/errors/GetPlaylistResponseBody.md | 11 - docs/models/errors/GetPlaylistsErrors.md | 10 - .../models/errors/GetPlaylistsResponseBody.md | 11 - docs/models/errors/GetRecentlyAddedErrors.md | 10 - .../errors/GetRecentlyAddedResponseBody.md | 11 - docs/models/errors/GetResizedPhotoErrors.md | 10 - .../errors/GetResizedPhotoResponseBody.md | 11 - .../errors/GetResourcesStatisticsErrors.md | 10 - .../GetResourcesStatisticsResponseBody.md | 11 - docs/models/errors/GetSearchResultsErrors.md | 10 - .../errors/GetSearchResultsResponseBody.md | 11 - .../errors/GetServerActivitiesErrors.md | 10 - .../errors/GetServerActivitiesResponseBody.md | 11 - .../GetServerCapabilitiesResponseBody.md | 11 - docs/models/errors/GetServerIdentityErrors.md | 10 - .../errors/GetServerIdentityResponseBody.md | 11 - docs/models/errors/GetServerListErrors.md | 10 - .../errors/GetServerListResponseBody.md | 11 - .../errors/GetServerPreferencesErrors.md | 10 - .../GetServerPreferencesResponseBody.md | 11 - docs/models/errors/GetSessionHistoryErrors.md | 10 - .../errors/GetSessionHistoryResponseBody.md | 11 - docs/models/errors/GetSessionsErrors.md | 10 - docs/models/errors/GetSessionsResponseBody.md | 11 - .../GetSourceConnectionInformationErrors.md | 10 - ...SourceConnectionInformationResponseBody.md | 11 - docs/models/errors/GetStatisticsErrors.md | 10 - .../errors/GetStatisticsResponseBody.md | 11 - docs/models/errors/GetTimelineErrors.md | 10 - docs/models/errors/GetTimelineResponseBody.md | 11 - docs/models/errors/GetTokenErrors.md | 10 - docs/models/errors/GetTokenResponseBody.md | 11 - .../errors/GetTranscodeSessionsErrors.md | 10 - .../GetTranscodeSessionsResponseBody.md | 11 - docs/models/errors/GetTransientTokenErrors.md | 10 - .../errors/GetTransientTokenResponseBody.md | 11 - docs/models/errors/GetUpdateStatusErrors.md | 10 - .../errors/GetUpdateStatusResponseBody.md | 11 - docs/models/errors/GetWatchlistErrors.md | 10 - .../models/errors/GetWatchlistResponseBody.md | 11 - docs/models/errors/LogLineErrors.md | 10 - docs/models/errors/LogLineResponseBody.md | 11 - docs/models/errors/LogMultiLineErrors.md | 10 - .../models/errors/LogMultiLineResponseBody.md | 11 - docs/models/errors/MarkPlayedErrors.md | 10 - docs/models/errors/MarkPlayedResponseBody.md | 11 - docs/models/errors/MarkUnplayedErrors.md | 10 - .../models/errors/MarkUnplayedResponseBody.md | 11 - docs/models/errors/PerformSearchErrors.md | 10 - .../errors/PerformSearchResponseBody.md | 11 - .../models/errors/PerformVoiceSearchErrors.md | 10 - .../errors/PerformVoiceSearchResponseBody.md | 11 - docs/models/errors/RefreshLibraryErrors.md | 10 - .../errors/RefreshLibraryResponseBody.md | 11 - docs/models/errors/SearchLibraryErrors.md | 10 - .../errors/SearchLibraryResponseBody.md | 11 - docs/models/errors/StartAllTasksErrors.md | 10 - .../errors/StartAllTasksResponseBody.md | 11 - docs/models/errors/StartTaskErrors.md | 10 - docs/models/errors/StartTaskResponseBody.md | 11 - .../errors/StartUniversalTranscodeErrors.md | 10 - .../StartUniversalTranscodeResponseBody.md | 11 - docs/models/errors/StopAllTasksErrors.md | 10 - .../models/errors/StopAllTasksResponseBody.md | 11 - docs/models/errors/StopTaskErrors.md | 10 - docs/models/errors/StopTaskResponseBody.md | 11 - .../errors/StopTranscodeSessionErrors.md | 10 - .../StopTranscodeSessionResponseBody.md | 11 - .../models/errors/UpdatePlayProgressErrors.md | 10 - .../errors/UpdatePlayProgressResponseBody.md | 11 - docs/models/errors/UpdatePlaylistErrors.md | 10 - .../errors/UpdatePlaylistResponseBody.md | 11 - docs/models/errors/UploadPlaylistErrors.md | 10 - .../errors/UploadPlaylistResponseBody.md | 11 - docs/models/operations/Account.md | 15 - docs/models/operations/Activity.md | 15 - .../AddPlaylistContentsMediaContainer.md | 11 - .../operations/AddPlaylistContentsMetadata.md | 20 - .../operations/AddPlaylistContentsRequest.md | 10 - .../operations/AddPlaylistContentsResponse.md | 11 - .../AddPlaylistContentsResponseBody.md | 10 - docs/models/operations/ApplyUpdatesRequest.md | 9 - .../models/operations/ApplyUpdatesResponse.md | 10 - docs/models/operations/ButlerTask.md | 13 - docs/models/operations/ButlerTasks.md | 8 - .../CancelServerActivitiesRequest.md | 8 - .../CancelServerActivitiesResponse.md | 10 - .../operations/CheckForUpdatesRequest.md | 8 - .../operations/CheckForUpdatesResponse.md | 10 - .../ClearPlaylistContentsRequest.md | 8 - .../ClearPlaylistContentsResponse.md | 10 - docs/models/operations/Context.md | 8 - docs/models/operations/Country.md | 8 - .../CreatePlaylistMediaContainer.md | 9 - .../operations/CreatePlaylistMetadata.md | 23 - .../operations/CreatePlaylistRequest.md | 12 - .../operations/CreatePlaylistResponse.md | 11 - .../operations/CreatePlaylistResponseBody.md | 10 - .../models/operations/DeleteLibraryRequest.md | 8 - .../operations/DeleteLibraryResponse.md | 10 - .../operations/DeletePlaylistRequest.md | 8 - .../operations/DeletePlaylistResponse.md | 10 - docs/models/operations/Device.md | 12 - docs/models/operations/Director.md | 8 - docs/models/operations/Directory.md | 10 - docs/models/operations/Download.md | 11 - .../operations/EnablePaperTrailResponse.md | 10 - docs/models/operations/Field.md | 11 - docs/models/operations/FieldType.md | 9 - docs/models/operations/Filter.md | 11 - docs/models/operations/Force.md | 15 - docs/models/operations/Genre.md | 8 - .../GetAvailableClientsMediaContainer.md | 9 - .../operations/GetAvailableClientsResponse.md | 11 - .../GetAvailableClientsResponseBody.md | 10 - .../GetBandwidthStatisticsAccount.md | 15 - .../GetBandwidthStatisticsDevice.md | 12 - .../GetBandwidthStatisticsMediaContainer.md | 11 - .../GetBandwidthStatisticsRequest.md | 8 - .../GetBandwidthStatisticsResponse.md | 11 - .../GetBandwidthStatisticsResponseBody.md | 10 - .../operations/GetButlerTasksResponse.md | 11 - .../operations/GetButlerTasksResponseBody.md | 10 - .../operations/GetDevicesMediaContainer.md | 10 - docs/models/operations/GetDevicesResponse.md | 11 - .../operations/GetDevicesResponseBody.md | 10 - docs/models/operations/GetFileHashRequest.md | 9 - docs/models/operations/GetFileHashResponse.md | 10 - .../operations/GetGlobalHubsMediaContainer.md | 11 - .../operations/GetGlobalHubsMetadata.md | 24 - .../models/operations/GetGlobalHubsRequest.md | 9 - .../operations/GetGlobalHubsResponse.md | 11 - .../operations/GetGlobalHubsResponseBody.md | 10 - docs/models/operations/GetHomeDataResponse.md | 11 - .../operations/GetHomeDataResponseBody.md | 15 - .../operations/GetLibrariesDirectory.md | 28 - .../models/operations/GetLibrariesLocation.md | 9 - .../operations/GetLibrariesMediaContainer.md | 11 - .../models/operations/GetLibrariesResponse.md | 11 - .../operations/GetLibrariesResponseBody.md | 10 - docs/models/operations/GetLibraryDirectory.md | 12 - docs/models/operations/GetLibraryFilter.md | 12 - .../operations/GetLibraryHubsCountry.md | 8 - .../operations/GetLibraryHubsDirector.md | 8 - docs/models/operations/GetLibraryHubsGenre.md | 8 - docs/models/operations/GetLibraryHubsHub.md | 19 - docs/models/operations/GetLibraryHubsMedia.md | 24 - .../GetLibraryHubsMediaContainer.md | 14 - .../operations/GetLibraryHubsMetadata.md | 41 - docs/models/operations/GetLibraryHubsPart.md | 17 - .../operations/GetLibraryHubsRequest.md | 10 - .../operations/GetLibraryHubsResponse.md | 11 - .../operations/GetLibraryHubsResponseBody.md | 10 - docs/models/operations/GetLibraryHubsRole.md | 8 - .../models/operations/GetLibraryHubsWriter.md | 8 - .../operations/GetLibraryItemsCountry.md | 8 - .../operations/GetLibraryItemsDirector.md | 8 - .../models/operations/GetLibraryItemsGenre.md | 8 - .../models/operations/GetLibraryItemsMedia.md | 21 - .../GetLibraryItemsMediaContainer.md | 23 - .../operations/GetLibraryItemsMetadata.md | 64 - docs/models/operations/GetLibraryItemsPart.md | 14 - .../operations/GetLibraryItemsRequest.md | 10 - .../operations/GetLibraryItemsResponse.md | 11 - .../operations/GetLibraryItemsResponseBody.md | 10 - docs/models/operations/GetLibraryItemsRole.md | 8 - .../operations/GetLibraryItemsWriter.md | 8 - .../operations/GetLibraryMediaContainer.md | 22 - docs/models/operations/GetLibraryRequest.md | 9 - docs/models/operations/GetLibraryResponse.md | 11 - .../operations/GetLibraryResponseBody.md | 10 - docs/models/operations/GetLibraryType.md | 14 - .../GetMetadataChildrenDirectory.md | 12 - .../GetMetadataChildrenMediaContainer.md | 30 - .../operations/GetMetadataChildrenMetadata.md | 34 - .../operations/GetMetadataChildrenRequest.md | 9 - .../operations/GetMetadataChildrenResponse.md | 11 - .../GetMetadataChildrenResponseBody.md | 10 - docs/models/operations/GetMetadataCountry.md | 10 - docs/models/operations/GetMetadataDirector.md | 12 - docs/models/operations/GetMetadataGenre.md | 10 - docs/models/operations/GetMetadataMedia.md | 24 - .../operations/GetMetadataMediaContainer.md | 16 - docs/models/operations/GetMetadataMetadata.md | 40 - docs/models/operations/GetMetadataPart.md | 18 - docs/models/operations/GetMetadataRequest.md | 8 - docs/models/operations/GetMetadataResponse.md | 11 - .../operations/GetMetadataResponseBody.md | 10 - docs/models/operations/GetMetadataRole.md | 13 - docs/models/operations/GetMetadataWriter.md | 12 - .../operations/GetMyPlexAccountResponse.md | 11 - .../GetMyPlexAccountResponseBody.md | 10 - docs/models/operations/GetOnDeckGuids.md | 8 - docs/models/operations/GetOnDeckMedia.md | 22 - .../operations/GetOnDeckMediaContainer.md | 14 - docs/models/operations/GetOnDeckMetadata.md | 43 - docs/models/operations/GetOnDeckPart.md | 16 - docs/models/operations/GetOnDeckResponse.md | 11 - .../operations/GetOnDeckResponseBody.md | 10 - docs/models/operations/GetOnDeckStream.md | 30 - docs/models/operations/GetPinRequest.md | 10 - docs/models/operations/GetPinResponse.md | 11 - docs/models/operations/GetPinResponseBody.md | 21 - .../operations/GetPlaylistContentsCountry.md | 8 - .../operations/GetPlaylistContentsDirector.md | 8 - .../operations/GetPlaylistContentsGenre.md | 8 - .../operations/GetPlaylistContentsMedia.md | 24 - .../GetPlaylistContentsMediaContainer.md | 16 - .../operations/GetPlaylistContentsMetadata.md | 39 - .../operations/GetPlaylistContentsPart.md | 17 - .../operations/GetPlaylistContentsRequest.md | 9 - .../operations/GetPlaylistContentsResponse.md | 11 - .../GetPlaylistContentsResponseBody.md | 10 - .../operations/GetPlaylistContentsRole.md | 8 - .../operations/GetPlaylistContentsWriter.md | 8 - .../operations/GetPlaylistMediaContainer.md | 9 - docs/models/operations/GetPlaylistMetadata.md | 22 - docs/models/operations/GetPlaylistRequest.md | 8 - docs/models/operations/GetPlaylistResponse.md | 11 - .../operations/GetPlaylistResponseBody.md | 10 - .../operations/GetPlaylistsMediaContainer.md | 9 - .../models/operations/GetPlaylistsMetadata.md | 23 - docs/models/operations/GetPlaylistsRequest.md | 9 - .../models/operations/GetPlaylistsResponse.md | 11 - .../operations/GetPlaylistsResponseBody.md | 10 - .../GetRecentlyAddedMediaContainer.md | 14 - .../operations/GetRecentlyAddedMetadata.md | 39 - .../operations/GetRecentlyAddedResponse.md | 11 - .../GetRecentlyAddedResponseBody.md | 10 - .../operations/GetResizedPhotoRequest.md | 14 - .../operations/GetResizedPhotoResponse.md | 10 - .../GetResourcesStatisticsMediaContainer.md | 9 - .../GetResourcesStatisticsRequest.md | 8 - .../GetResourcesStatisticsResponse.md | 11 - .../GetResourcesStatisticsResponseBody.md | 10 - .../operations/GetSearchResultsCountry.md | 8 - .../operations/GetSearchResultsDirector.md | 8 - .../operations/GetSearchResultsGenre.md | 8 - .../operations/GetSearchResultsMedia.md | 22 - .../GetSearchResultsMediaContainer.md | 13 - .../operations/GetSearchResultsMetadata.md | 41 - .../models/operations/GetSearchResultsPart.md | 15 - .../operations/GetSearchResultsRequest.md | 8 - .../operations/GetSearchResultsResponse.md | 11 - .../GetSearchResultsResponseBody.md | 10 - .../models/operations/GetSearchResultsRole.md | 8 - .../operations/GetSearchResultsWriter.md | 8 - .../GetServerActivitiesMediaContainer.md | 9 - .../operations/GetServerActivitiesResponse.md | 11 - .../GetServerActivitiesResponseBody.md | 10 - .../GetServerCapabilitiesResponse.md | 11 - .../GetServerCapabilitiesResponseBody.md | 10 - .../GetServerIdentityMediaContainer.md | 11 - .../operations/GetServerIdentityResponse.md | 11 - .../GetServerIdentityResponseBody.md | 10 - .../operations/GetServerListMediaContainer.md | 9 - .../operations/GetServerListResponse.md | 11 - .../operations/GetServerListResponseBody.md | 10 - docs/models/operations/GetServerListServer.md | 13 - .../GetServerPreferencesMediaContainer.md | 9 - .../GetServerPreferencesResponse.md | 11 - .../GetServerPreferencesResponseBody.md | 10 - .../GetSessionHistoryMediaContainer.md | 9 - .../operations/GetSessionHistoryMetadata.md | 26 - .../operations/GetSessionHistoryRequest.md | 11 - .../operations/GetSessionHistoryResponse.md | 11 - .../GetSessionHistoryResponseBody.md | 10 - docs/models/operations/GetSessionsMedia.md | 15 - .../operations/GetSessionsMediaContainer.md | 9 - docs/models/operations/GetSessionsMetadata.md | 44 - docs/models/operations/GetSessionsPart.md | 17 - docs/models/operations/GetSessionsResponse.md | 11 - .../operations/GetSessionsResponseBody.md | 10 - docs/models/operations/GetSessionsStream.md | 27 - docs/models/operations/GetSessionsUser.md | 10 - .../GetSourceConnectionInformationRequest.md | 8 - .../GetSourceConnectionInformationResponse.md | 10 - docs/models/operations/GetStatisticsDevice.md | 12 - .../operations/GetStatisticsMediaContainer.md | 11 - .../models/operations/GetStatisticsRequest.md | 8 - .../operations/GetStatisticsResponse.md | 11 - .../operations/GetStatisticsResponseBody.md | 10 - docs/models/operations/GetTimelineRequest.md | 17 - docs/models/operations/GetTimelineResponse.md | 10 - docs/models/operations/GetTokenLocation.md | 17 - docs/models/operations/GetTokenRequest.md | 9 - docs/models/operations/GetTokenResponse.md | 11 - .../models/operations/GetTokenResponseBody.md | 21 - .../operations/GetTopWatchedContentCountry.md | 10 - .../operations/GetTopWatchedContentGenre.md | 10 - .../operations/GetTopWatchedContentGuids.md | 8 - .../GetTopWatchedContentMediaContainer.md | 13 - .../GetTopWatchedContentMetadata.md | 39 - .../operations/GetTopWatchedContentRequest.md | 9 - .../GetTopWatchedContentResponse.md | 11 - .../GetTopWatchedContentResponseBody.md | 10 - .../operations/GetTopWatchedContentRole.md | 13 - .../GetTranscodeSessionsMediaContainer.md | 9 - .../GetTranscodeSessionsResponse.md | 11 - .../GetTranscodeSessionsResponseBody.md | 10 - .../GetTransientTokenQueryParamType.md | 10 - .../operations/GetTransientTokenRequest.md | 9 - .../operations/GetTransientTokenResponse.md | 10 - .../GetUpdateStatusMediaContainer.md | 13 - .../operations/GetUpdateStatusResponse.md | 11 - .../operations/GetUpdateStatusResponseBody.md | 10 - docs/models/operations/GetWatchlistRequest.md | 16 - .../models/operations/GetWatchlistResponse.md | 11 - .../operations/GetWatchlistResponseBody.md | 16 - docs/models/operations/Guids.md | 8 - docs/models/operations/Hub.md | 18 - docs/models/operations/Image.md | 10 - docs/models/operations/IncludeCollections.md | 12 - docs/models/operations/IncludeDetails.md | 13 - .../models/operations/IncludeExternalMedia.md | 12 - docs/models/operations/Level.md | 20 - docs/models/operations/LibrarySectionID.md | 2 - docs/models/operations/Libtype.md | 12 - docs/models/operations/Location.md | 17 - docs/models/operations/LogLineRequest.md | 10 - docs/models/operations/LogLineResponse.md | 10 - .../models/operations/LogMultiLineResponse.md | 10 - docs/models/operations/MarkPlayedRequest.md | 8 - docs/models/operations/MarkPlayedResponse.md | 10 - docs/models/operations/MarkUnplayedRequest.md | 8 - .../models/operations/MarkUnplayedResponse.md | 10 - docs/models/operations/Media.md | 23 - docs/models/operations/MediaContainer.md | 58 - docs/models/operations/Metadata.md | 42 - docs/models/operations/MinSize.md | 11 - docs/models/operations/MyPlex.md | 19 - docs/models/operations/OnlyTransient.md | 11 - docs/models/operations/Operator.md | 9 - docs/models/operations/Part.md | 17 - docs/models/operations/PathParamFilter.md | 12 - docs/models/operations/PathParamTaskName.md | 23 - .../models/operations/PerformSearchRequest.md | 10 - .../operations/PerformSearchResponse.md | 10 - .../operations/PerformVoiceSearchRequest.md | 10 - .../operations/PerformVoiceSearchResponse.md | 10 - docs/models/operations/Player.md | 22 - docs/models/operations/PlaylistType.md | 12 - docs/models/operations/Producer.md | 12 - docs/models/operations/Provider.md | 10 - .../operations/QueryParamOnlyTransient.md | 11 - docs/models/operations/QueryParamSmart.md | 11 - docs/models/operations/QueryParamType.md | 12 - docs/models/operations/Ratings.md | 10 - .../operations/RefreshLibraryRequest.md | 8 - .../operations/RefreshLibraryResponse.md | 10 - docs/models/operations/Release.md | 13 - docs/models/operations/Role.md | 8 - docs/models/operations/Scope.md | 10 - .../operations/SearchLibraryMediaContainer.md | 20 - .../operations/SearchLibraryMetadata.md | 27 - .../models/operations/SearchLibraryRequest.md | 9 - .../operations/SearchLibraryResponse.md | 11 - .../operations/SearchLibraryResponseBody.md | 10 - docs/models/operations/Server.md | 18 - docs/models/operations/Session.md | 10 - docs/models/operations/Setting.md | 17 - docs/models/operations/Skip.md | 11 - docs/models/operations/Smart.md | 11 - docs/models/operations/Sort.md | 13 - .../operations/StartAllTasksResponse.md | 10 - docs/models/operations/StartTaskRequest.md | 8 - docs/models/operations/StartTaskResponse.md | 10 - .../StartUniversalTranscodeRequest.md | 23 - .../StartUniversalTranscodeResponse.md | 10 - docs/models/operations/State.md | 12 - docs/models/operations/StatisticsBandwidth.md | 13 - docs/models/operations/StatisticsMedia.md | 14 - docs/models/operations/StatisticsResources.md | 13 - .../models/operations/StopAllTasksResponse.md | 10 - docs/models/operations/StopTaskRequest.md | 8 - docs/models/operations/StopTaskResponse.md | 10 - .../operations/StopTranscodeSessionRequest.md | 8 - .../StopTranscodeSessionResponse.md | 10 - docs/models/operations/Stream.md | 39 - docs/models/operations/Tag.md | 28 - docs/models/operations/TaskName.md | 23 - docs/models/operations/Tonight.md | 11 - docs/models/operations/TranscodeSession.md | 31 - docs/models/operations/Type.md | 13 - .../operations/UpdatePlayProgressRequest.md | 10 - .../operations/UpdatePlayProgressResponse.md | 10 - .../operations/UpdatePlaylistRequest.md | 10 - .../operations/UpdatePlaylistResponse.md | 10 - .../operations/UploadPlaylistRequest.md | 9 - .../operations/UploadPlaylistResponse.md | 10 - docs/models/operations/Upscale.md | 11 - docs/models/operations/User.md | 8 - docs/models/operations/Writer.md | 8 - docs/models/shared/Security.md | 8 - docs/sdks/activities/README.md | 151 - docs/sdks/authentication/README.md | 155 - docs/sdks/butler/README.md | 353 --- docs/sdks/hubs/README.md | 161 -- docs/sdks/library/README.md | 946 ------- docs/sdks/log/README.md | 244 -- docs/sdks/media/README.md | 225 -- docs/sdks/playlists/README.md | 689 ----- docs/sdks/plex/README.md | 223 -- docs/sdks/plexapi/README.md | 9 - docs/sdks/search/README.md | 246 -- docs/sdks/server/README.md | 546 ---- docs/sdks/sessions/README.md | 289 -- docs/sdks/statistics/README.md | 226 -- docs/sdks/updater/README.md | 219 -- docs/sdks/video/README.md | 182 -- docs/sdks/watchlist/README.md | 88 - gradle/wrapper/gradle-wrapper.jar | Bin 43462 -> 0 bytes gradle/wrapper/gradle-wrapper.properties | 7 - gradlew | 249 -- gradlew.bat | 92 - settings.gradle | 10 - .../lukehagar/plexapi/plexapi/Activities.java | 282 -- .../plexapi/plexapi/Authentication.java | 291 -- .../lukehagar/plexapi/plexapi/Butler.java | 634 ----- .../java/lukehagar/plexapi/plexapi/Hubs.java | 338 --- .../lukehagar/plexapi/plexapi/Library.java | 1857 ------------ .../java/lukehagar/plexapi/plexapi/Log.java | 446 --- .../java/lukehagar/plexapi/plexapi/Media.java | 411 --- .../lukehagar/plexapi/plexapi/Playlists.java | 1275 --------- .../java/lukehagar/plexapi/plexapi/Plex.java | 481 ---- .../lukehagar/plexapi/plexapi/PlexAPI.java | 515 ---- .../plexapi/plexapi/SDKConfiguration.java | 73 - .../lukehagar/plexapi/plexapi/Search.java | 496 ---- .../plexapi/plexapi/SecuritySource.java | 28 - .../lukehagar/plexapi/plexapi/Server.java | 990 ------- .../lukehagar/plexapi/plexapi/Sessions.java | 551 ---- .../lukehagar/plexapi/plexapi/Statistics.java | 469 --- .../lukehagar/plexapi/plexapi/Updater.java | 426 --- .../java/lukehagar/plexapi/plexapi/Video.java | 270 -- .../lukehagar/plexapi/plexapi/Watchlist.java | 193 -- .../plexapi/plexapi/hooks/SDKHooks.java | 26 - .../errors/AddPlaylistContentsErrors.java | 197 -- .../AddPlaylistContentsResponseBody.java | 171 -- .../models/errors/ApplyUpdatesErrors.java | 197 -- .../errors/ApplyUpdatesResponseBody.java | 171 -- .../plexapi/models/errors/AuthException.java | 33 - .../errors/CancelServerActivitiesErrors.java | 197 -- .../CancelServerActivitiesResponseBody.java | 171 -- .../models/errors/CheckForUpdatesErrors.java | 197 -- .../errors/CheckForUpdatesResponseBody.java | 171 -- .../errors/ClearPlaylistContentsErrors.java | 197 -- .../ClearPlaylistContentsResponseBody.java | 171 -- .../models/errors/CreatePlaylistErrors.java | 197 -- .../errors/CreatePlaylistResponseBody.java | 171 -- .../models/errors/DeleteLibraryErrors.java | 197 -- .../errors/DeleteLibraryResponseBody.java | 171 -- .../models/errors/DeletePlaylistErrors.java | 197 -- .../errors/DeletePlaylistResponseBody.java | 171 -- .../models/errors/EnablePaperTrailErrors.java | 197 -- .../errors/EnablePaperTrailResponseBody.java | 171 -- .../plexapi/plexapi/models/errors/Errors.java | 197 -- .../errors/GetAvailableClientsErrors.java | 197 -- .../GetAvailableClientsResponseBody.java | 171 -- .../errors/GetBandwidthStatisticsErrors.java | 197 -- .../GetBandwidthStatisticsResponseBody.java | 171 -- .../models/errors/GetButlerTasksErrors.java | 197 -- .../errors/GetButlerTasksResponseBody.java | 171 -- .../models/errors/GetDevicesErrors.java | 197 -- .../models/errors/GetDevicesResponseBody.java | 171 -- .../models/errors/GetFileHashErrors.java | 197 -- .../errors/GetFileHashResponseBody.java | 171 -- .../models/errors/GetGlobalHubsErrors.java | 197 -- .../errors/GetGlobalHubsResponseBody.java | 171 -- .../models/errors/GetHomeDataErrors.java | 197 -- .../errors/GetHomeDataResponseBody.java | 171 -- .../models/errors/GetLibrariesErrors.java | 197 -- .../errors/GetLibrariesResponseBody.java | 171 -- .../models/errors/GetLibraryErrors.java | 197 -- .../models/errors/GetLibraryHubsErrors.java | 197 -- .../errors/GetLibraryHubsResponseBody.java | 171 -- .../models/errors/GetLibraryItemsErrors.java | 197 -- .../errors/GetLibraryItemsResponseBody.java | 171 -- .../models/errors/GetLibraryResponseBody.java | 171 -- .../errors/GetMetadataChildrenErrors.java | 197 -- .../GetMetadataChildrenResponseBody.java | 171 -- .../models/errors/GetMetadataErrors.java | 197 -- .../errors/GetMetadataResponseBody.java | 171 -- .../models/errors/GetMyPlexAccountErrors.java | 197 -- .../errors/GetMyPlexAccountResponseBody.java | 171 -- .../models/errors/GetOnDeckErrors.java | 197 -- .../models/errors/GetOnDeckResponseBody.java | 171 -- .../plexapi/models/errors/GetPinErrors.java | 197 -- .../models/errors/GetPinResponseBody.java | 171 -- .../errors/GetPlaylistContentsErrors.java | 197 -- .../GetPlaylistContentsResponseBody.java | 171 -- .../models/errors/GetPlaylistErrors.java | 197 -- .../errors/GetPlaylistResponseBody.java | 171 -- .../models/errors/GetPlaylistsErrors.java | 197 -- .../errors/GetPlaylistsResponseBody.java | 171 -- .../models/errors/GetRecentlyAddedErrors.java | 197 -- .../errors/GetRecentlyAddedResponseBody.java | 171 -- .../models/errors/GetResizedPhotoErrors.java | 197 -- .../errors/GetResizedPhotoResponseBody.java | 171 -- .../errors/GetResourcesStatisticsErrors.java | 197 -- .../GetResourcesStatisticsResponseBody.java | 171 -- .../models/errors/GetSearchResultsErrors.java | 197 -- .../errors/GetSearchResultsResponseBody.java | 171 -- .../errors/GetServerActivitiesErrors.java | 197 -- .../GetServerActivitiesResponseBody.java | 171 -- .../GetServerCapabilitiesResponseBody.java | 171 -- .../errors/GetServerIdentityErrors.java | 197 -- .../errors/GetServerIdentityResponseBody.java | 171 -- .../models/errors/GetServerListErrors.java | 197 -- .../errors/GetServerListResponseBody.java | 171 -- .../errors/GetServerPreferencesErrors.java | 197 -- .../GetServerPreferencesResponseBody.java | 171 -- .../errors/GetSessionHistoryErrors.java | 197 -- .../errors/GetSessionHistoryResponseBody.java | 171 -- .../models/errors/GetSessionsErrors.java | 197 -- .../errors/GetSessionsResponseBody.java | 171 -- .../GetSourceConnectionInformationErrors.java | 197 -- ...urceConnectionInformationResponseBody.java | 171 -- .../models/errors/GetStatisticsErrors.java | 197 -- .../errors/GetStatisticsResponseBody.java | 171 -- .../models/errors/GetTimelineErrors.java | 197 -- .../errors/GetTimelineResponseBody.java | 171 -- .../plexapi/models/errors/GetTokenErrors.java | 197 -- .../models/errors/GetTokenResponseBody.java | 171 -- .../errors/GetTranscodeSessionsErrors.java | 197 -- .../GetTranscodeSessionsResponseBody.java | 171 -- .../errors/GetTransientTokenErrors.java | 197 -- .../errors/GetTransientTokenResponseBody.java | 171 -- .../models/errors/GetUpdateStatusErrors.java | 197 -- .../errors/GetUpdateStatusResponseBody.java | 171 -- .../models/errors/GetWatchlistErrors.java | 197 -- .../errors/GetWatchlistResponseBody.java | 171 -- .../plexapi/models/errors/LogLineErrors.java | 197 -- .../models/errors/LogLineResponseBody.java | 171 -- .../models/errors/LogMultiLineErrors.java | 197 -- .../errors/LogMultiLineResponseBody.java | 171 -- .../models/errors/MarkPlayedErrors.java | 197 -- .../models/errors/MarkPlayedResponseBody.java | 171 -- .../models/errors/MarkUnplayedErrors.java | 197 -- .../errors/MarkUnplayedResponseBody.java | 171 -- .../models/errors/PerformSearchErrors.java | 197 -- .../errors/PerformSearchResponseBody.java | 171 -- .../errors/PerformVoiceSearchErrors.java | 197 -- .../PerformVoiceSearchResponseBody.java | 171 -- .../models/errors/RefreshLibraryErrors.java | 197 -- .../errors/RefreshLibraryResponseBody.java | 171 -- .../plexapi/models/errors/SDKError.java | 85 - .../models/errors/SearchLibraryErrors.java | 197 -- .../errors/SearchLibraryResponseBody.java | 171 -- .../models/errors/StartAllTasksErrors.java | 197 -- .../errors/StartAllTasksResponseBody.java | 171 -- .../models/errors/StartTaskErrors.java | 197 -- .../models/errors/StartTaskResponseBody.java | 171 -- .../errors/StartUniversalTranscodeErrors.java | 197 -- .../StartUniversalTranscodeResponseBody.java | 171 -- .../models/errors/StopAllTasksErrors.java | 197 -- .../errors/StopAllTasksResponseBody.java | 171 -- .../plexapi/models/errors/StopTaskErrors.java | 197 -- .../models/errors/StopTaskResponseBody.java | 171 -- .../errors/StopTranscodeSessionErrors.java | 197 -- .../StopTranscodeSessionResponseBody.java | 171 -- .../errors/UpdatePlayProgressErrors.java | 197 -- .../UpdatePlayProgressResponseBody.java | 171 -- .../models/errors/UpdatePlaylistErrors.java | 197 -- .../errors/UpdatePlaylistResponseBody.java | 171 -- .../models/errors/UploadPlaylistErrors.java | 197 -- .../errors/UploadPlaylistResponseBody.java | 171 -- .../plexapi/models/operations/Account.java | 412 --- .../plexapi/models/operations/Activity.java | 412 --- .../AddPlaylistContentsMediaContainer.java | 240 -- .../AddPlaylistContentsMetadata.java | 627 ---- .../AddPlaylistContentsRequest.java | 210 -- .../AddPlaylistContentsRequestBuilder.java | 62 - .../AddPlaylistContentsResponse.java | 248 -- .../AddPlaylistContentsResponseBody.java | 114 - .../operations/ApplyUpdatesRequest.java | 186 -- .../ApplyUpdatesRequestBuilder.java | 60 - .../operations/ApplyUpdatesResponse.java | 181 -- .../plexapi/models/operations/ButlerTask.java | 326 --- .../models/operations/ButlerTasks.java | 111 - .../CancelServerActivitiesRequest.java | 102 - .../CancelServerActivitiesRequestBuilder.java | 40 - .../CancelServerActivitiesResponse.java | 181 -- .../operations/CheckForUpdatesRequest.java | 126 - .../CheckForUpdatesRequestBuilder.java | 46 - .../operations/CheckForUpdatesResponse.java | 181 -- .../ClearPlaylistContentsRequest.java | 102 - .../ClearPlaylistContentsRequestBuilder.java | 40 - .../ClearPlaylistContentsResponse.java | 181 -- .../plexapi/models/operations/Context.java | 111 - .../plexapi/models/operations/Country.java | 111 - .../CreatePlaylistMediaContainer.java | 154 - .../operations/CreatePlaylistMetadata.java | 756 ----- .../operations/CreatePlaylistRequest.java | 294 -- .../CreatePlaylistRequestBuilder.java | 40 - .../operations/CreatePlaylistResponse.java | 248 -- .../CreatePlaylistResponseBody.java | 114 - .../operations/DeleteLibraryRequest.java | 102 - .../DeleteLibraryRequestBuilder.java | 40 - .../operations/DeleteLibraryResponse.java | 181 -- .../operations/DeletePlaylistRequest.java | 102 - .../DeletePlaylistRequestBuilder.java | 40 - .../operations/DeletePlaylistResponse.java | 181 -- .../plexapi/models/operations/Device.java | 283 -- .../plexapi/models/operations/Director.java | 111 - .../plexapi/models/operations/Directory.java | 197 -- .../plexapi/models/operations/Download.java | 35 - .../EnablePaperTrailRequestBuilder.java | 32 - .../operations/EnablePaperTrailResponse.java | 181 -- .../plexapi/models/operations/Field.java | 240 -- .../plexapi/models/operations/FieldType.java | 154 - .../plexapi/models/operations/Filter.java | 68 - .../plexapi/models/operations/Force.java | 39 - .../plexapi/models/operations/Genre.java | 111 - .../GetAvailableClientsMediaContainer.java | 154 - .../GetAvailableClientsRequestBuilder.java | 32 - .../GetAvailableClientsResponse.java | 248 -- .../GetAvailableClientsResponseBody.java | 114 - .../GetBandwidthStatisticsAccount.java | 412 --- .../GetBandwidthStatisticsDevice.java | 283 -- .../GetBandwidthStatisticsMediaContainer.java | 240 -- .../GetBandwidthStatisticsRequest.java | 138 - .../GetBandwidthStatisticsRequestBuilder.java | 46 - .../GetBandwidthStatisticsResponse.java | 248 -- .../GetBandwidthStatisticsResponseBody.java | 114 - .../GetButlerTasksRequestBuilder.java | 32 - .../operations/GetButlerTasksResponse.java | 248 -- .../GetButlerTasksResponseBody.java | 114 - .../operations/GetDevicesMediaContainer.java | 197 -- .../operations/GetDevicesRequestBuilder.java | 32 - .../models/operations/GetDevicesResponse.java | 248 -- .../operations/GetDevicesResponseBody.java | 114 - .../models/operations/GetFileHashRequest.java | 168 -- .../operations/GetFileHashRequestBuilder.java | 54 - .../operations/GetFileHashResponse.java | 181 -- .../GetGlobalHubsMediaContainer.java | 240 -- .../operations/GetGlobalHubsMetadata.java | 799 ------ .../operations/GetGlobalHubsRequest.java | 186 -- .../GetGlobalHubsRequestBuilder.java | 60 - .../operations/GetGlobalHubsResponse.java | 248 -- .../operations/GetGlobalHubsResponseBody.java | 114 - .../operations/GetHomeDataRequestBuilder.java | 32 - .../operations/GetHomeDataResponse.java | 248 -- .../operations/GetHomeDataResponseBody.java | 329 --- .../operations/GetLibrariesDirectory.java | 971 ------- .../operations/GetLibrariesLocation.java | 154 - .../GetLibrariesMediaContainer.java | 240 -- .../GetLibrariesRequestBuilder.java | 32 - .../operations/GetLibrariesResponse.java | 248 -- .../operations/GetLibrariesResponseBody.java | 114 - .../operations/GetLibraryDirectory.java | 283 -- .../models/operations/GetLibraryFilter.java | 283 -- .../operations/GetLibraryHubsCountry.java | 111 - .../operations/GetLibraryHubsDirector.java | 111 - .../operations/GetLibraryHubsGenre.java | 111 - .../models/operations/GetLibraryHubsHub.java | 584 ---- .../operations/GetLibraryHubsMedia.java | 799 ------ .../GetLibraryHubsMediaContainer.java | 369 --- .../operations/GetLibraryHubsMetadata.java | 1531 ---------- .../models/operations/GetLibraryHubsPart.java | 498 ---- .../operations/GetLibraryHubsRequest.java | 228 -- .../GetLibraryHubsRequestBuilder.java | 68 - .../operations/GetLibraryHubsResponse.java | 248 -- .../GetLibraryHubsResponseBody.java | 114 - .../models/operations/GetLibraryHubsRole.java | 111 - .../operations/GetLibraryHubsWriter.java | 111 - .../operations/GetLibraryItemsCountry.java | 111 - .../operations/GetLibraryItemsDirector.java | 111 - .../operations/GetLibraryItemsGenre.java | 111 - .../operations/GetLibraryItemsMedia.java | 670 ----- .../GetLibraryItemsMediaContainer.java | 756 ----- .../operations/GetLibraryItemsMetadata.java | 2520 ----------------- .../operations/GetLibraryItemsPart.java | 369 --- .../operations/GetLibraryItemsRequest.java | 216 -- .../GetLibraryItemsRequestBuilder.java | 62 - .../operations/GetLibraryItemsResponse.java | 248 -- .../GetLibraryItemsResponseBody.java | 114 - .../operations/GetLibraryItemsRole.java | 111 - .../operations/GetLibraryItemsWriter.java | 111 - .../operations/GetLibraryMediaContainer.java | 713 ----- .../models/operations/GetLibraryRequest.java | 190 -- .../operations/GetLibraryRequestBuilder.java | 66 - .../models/operations/GetLibraryResponse.java | 248 -- .../operations/GetLibraryResponseBody.java | 114 - .../models/operations/GetLibraryType.java | 369 --- .../GetMetadataChildrenDirectory.java | 283 -- .../GetMetadataChildrenMediaContainer.java | 1057 ------- .../GetMetadataChildrenMetadata.java | 1229 -------- .../GetMetadataChildrenRequest.java | 174 -- .../GetMetadataChildrenRequestBuilder.java | 54 - .../GetMetadataChildrenResponse.java | 248 -- .../GetMetadataChildrenResponseBody.java | 114 - .../models/operations/GetMetadataCountry.java | 197 -- .../operations/GetMetadataDirector.java | 283 -- .../models/operations/GetMetadataGenre.java | 197 -- .../models/operations/GetMetadataMedia.java | 799 ------ .../operations/GetMetadataMediaContainer.java | 455 --- .../operations/GetMetadataMetadata.java | 1488 ---------- .../models/operations/GetMetadataPart.java | 541 ---- .../models/operations/GetMetadataRequest.java | 102 - .../operations/GetMetadataRequestBuilder.java | 40 - .../operations/GetMetadataResponse.java | 248 -- .../operations/GetMetadataResponseBody.java | 114 - .../models/operations/GetMetadataRole.java | 326 --- .../models/operations/GetMetadataWriter.java | 283 -- .../GetMyPlexAccountRequestBuilder.java | 32 - .../operations/GetMyPlexAccountResponse.java | 248 -- .../GetMyPlexAccountResponseBody.java | 114 - .../models/operations/GetOnDeckGuids.java | 111 - .../models/operations/GetOnDeckMedia.java | 713 ----- .../operations/GetOnDeckMediaContainer.java | 369 --- .../models/operations/GetOnDeckMetadata.java | 1619 ----------- .../models/operations/GetOnDeckPart.java | 455 --- .../operations/GetOnDeckRequestBuilder.java | 32 - .../models/operations/GetOnDeckResponse.java | 248 -- .../operations/GetOnDeckResponseBody.java | 114 - .../models/operations/GetOnDeckStream.java | 1057 ------- .../models/operations/GetPinRequest.java | 278 -- .../operations/GetPinRequestBuilder.java | 94 - .../models/operations/GetPinResponse.java | 248 -- .../models/operations/GetPinResponseBody.java | 645 ----- .../GetPlaylistContentsCountry.java | 111 - .../GetPlaylistContentsDirector.java | 111 - .../operations/GetPlaylistContentsGenre.java | 111 - .../operations/GetPlaylistContentsMedia.java | 799 ------ .../GetPlaylistContentsMediaContainer.java | 455 --- .../GetPlaylistContentsMetadata.java | 1445 ---------- .../operations/GetPlaylistContentsPart.java | 498 ---- .../GetPlaylistContentsRequest.java | 143 - .../GetPlaylistContentsRequestBuilder.java | 48 - .../GetPlaylistContentsResponse.java | 248 -- .../GetPlaylistContentsResponseBody.java | 114 - .../operations/GetPlaylistContentsRole.java | 111 - .../operations/GetPlaylistContentsWriter.java | 111 - .../operations/GetPlaylistMediaContainer.java | 154 - .../operations/GetPlaylistMetadata.java | 713 ----- .../models/operations/GetPlaylistRequest.java | 102 - .../operations/GetPlaylistRequestBuilder.java | 40 - .../operations/GetPlaylistResponse.java | 248 -- .../operations/GetPlaylistResponseBody.java | 114 - .../GetPlaylistsMediaContainer.java | 154 - .../operations/GetPlaylistsMetadata.java | 756 ----- .../operations/GetPlaylistsRequest.java | 186 -- .../GetPlaylistsRequestBuilder.java | 60 - .../operations/GetPlaylistsResponse.java | 248 -- .../operations/GetPlaylistsResponseBody.java | 114 - .../GetRecentlyAddedMediaContainer.java | 369 --- .../operations/GetRecentlyAddedMetadata.java | 1447 ---------- .../GetRecentlyAddedRequestBuilder.java | 32 - .../operations/GetRecentlyAddedResponse.java | 248 -- .../GetRecentlyAddedResponseBody.java | 114 - .../operations/GetResizedPhotoRequest.java | 358 --- .../GetResizedPhotoRequestBuilder.java | 40 - .../operations/GetResizedPhotoResponse.java | 181 -- .../GetResourcesStatisticsMediaContainer.java | 154 - .../GetResourcesStatisticsRequest.java | 138 - .../GetResourcesStatisticsRequestBuilder.java | 46 - .../GetResourcesStatisticsResponse.java | 248 -- .../GetResourcesStatisticsResponseBody.java | 114 - .../operations/GetSearchResultsCountry.java | 111 - .../operations/GetSearchResultsDirector.java | 111 - .../operations/GetSearchResultsGenre.java | 111 - .../operations/GetSearchResultsMedia.java | 713 ----- .../GetSearchResultsMediaContainer.java | 326 --- .../operations/GetSearchResultsMetadata.java | 1533 ---------- .../operations/GetSearchResultsPart.java | 412 --- .../operations/GetSearchResultsRequest.java | 102 - .../GetSearchResultsRequestBuilder.java | 40 - .../operations/GetSearchResultsResponse.java | 248 -- .../GetSearchResultsResponseBody.java | 114 - .../operations/GetSearchResultsRole.java | 111 - .../operations/GetSearchResultsWriter.java | 111 - .../GetServerActivitiesMediaContainer.java | 154 - .../GetServerActivitiesRequestBuilder.java | 32 - .../GetServerActivitiesResponse.java | 248 -- .../GetServerActivitiesResponseBody.java | 114 - .../GetServerCapabilitiesRequestBuilder.java | 32 - .../GetServerCapabilitiesResponse.java | 248 -- .../GetServerCapabilitiesResponseBody.java | 114 - .../GetServerIdentityMediaContainer.java | 240 -- .../GetServerIdentityRequestBuilder.java | 32 - .../operations/GetServerIdentityResponse.java | 248 -- .../GetServerIdentityResponseBody.java | 114 - .../GetServerListMediaContainer.java | 154 - .../GetServerListRequestBuilder.java | 32 - .../operations/GetServerListResponse.java | 248 -- .../operations/GetServerListResponseBody.java | 114 - .../operations/GetServerListServer.java | 326 --- .../GetServerPreferencesMediaContainer.java | 154 - .../GetServerPreferencesRequestBuilder.java | 32 - .../GetServerPreferencesResponse.java | 248 -- .../GetServerPreferencesResponseBody.java | 114 - .../GetSessionHistoryMediaContainer.java | 154 - .../operations/GetSessionHistoryMetadata.java | 886 ------ .../operations/GetSessionHistoryRequest.java | 336 --- .../GetSessionHistoryRequestBuilder.java | 88 - .../operations/GetSessionHistoryResponse.java | 248 -- .../GetSessionHistoryResponseBody.java | 114 - .../models/operations/GetSessionsMedia.java | 412 --- .../operations/GetSessionsMediaContainer.java | 154 - .../operations/GetSessionsMetadata.java | 1659 ----------- .../models/operations/GetSessionsPart.java | 498 ---- .../operations/GetSessionsRequestBuilder.java | 32 - .../operations/GetSessionsResponse.java | 248 -- .../operations/GetSessionsResponseBody.java | 114 - .../models/operations/GetSessionsStream.java | 928 ------ .../models/operations/GetSessionsUser.java | 197 -- ...GetSourceConnectionInformationRequest.java | 102 - ...ceConnectionInformationRequestBuilder.java | 40 - ...etSourceConnectionInformationResponse.java | 181 -- .../operations/GetStatisticsDevice.java | 283 -- .../GetStatisticsMediaContainer.java | 240 -- .../operations/GetStatisticsRequest.java | 138 - .../GetStatisticsRequestBuilder.java | 46 - .../operations/GetStatisticsResponse.java | 248 -- .../operations/GetStatisticsResponseBody.java | 114 - .../models/operations/GetTimelineRequest.java | 471 --- .../operations/GetTimelineRequestBuilder.java | 40 - .../operations/GetTimelineResponse.java | 181 -- .../models/operations/GetTokenLocation.java | 498 ---- .../models/operations/GetTokenRequest.java | 186 -- .../operations/GetTokenRequestBuilder.java | 68 - .../models/operations/GetTokenResponse.java | 248 -- .../operations/GetTokenResponseBody.java | 644 ----- .../GetTopWatchedContentCountry.java | 197 -- .../operations/GetTopWatchedContentGenre.java | 197 -- .../operations/GetTopWatchedContentGuids.java | 111 - .../GetTopWatchedContentMediaContainer.java | 326 --- .../GetTopWatchedContentMetadata.java | 1445 ---------- .../GetTopWatchedContentRequest.java | 174 -- .../GetTopWatchedContentRequestBuilder.java | 54 - .../GetTopWatchedContentResponse.java | 248 -- .../GetTopWatchedContentResponseBody.java | 114 - .../operations/GetTopWatchedContentRole.java | 326 --- .../GetTranscodeSessionsMediaContainer.java | 154 - .../GetTranscodeSessionsRequestBuilder.java | 32 - .../GetTranscodeSessionsResponse.java | 248 -- .../GetTranscodeSessionsResponseBody.java | 114 - .../GetTransientTokenQueryParamType.java | 34 - .../operations/GetTransientTokenRequest.java | 143 - .../GetTransientTokenRequestBuilder.java | 48 - .../operations/GetTransientTokenResponse.java | 181 -- .../GetUpdateStatusMediaContainer.java | 326 --- .../GetUpdateStatusRequestBuilder.java | 32 - .../operations/GetUpdateStatusResponse.java | 248 -- .../GetUpdateStatusResponseBody.java | 114 - .../operations/GetWatchlistRequest.java | 642 ----- .../GetWatchlistRequestBuilder.java | 54 - .../operations/GetWatchlistResponse.java | 248 -- .../operations/GetWatchlistResponseBody.java | 372 --- .../plexapi/models/operations/Guids.java | 111 - .../plexapi/models/operations/Hub.java | 541 ---- .../plexapi/models/operations/Image.java | 197 -- .../models/operations/IncludeCollections.java | 36 - .../models/operations/IncludeDetails.java | 37 - .../operations/IncludeExternalMedia.java | 36 - .../plexapi/models/operations/Level.java | 44 - .../models/operations/LibrarySectionID.java | 100 - .../plexapi/models/operations/Libtype.java | 36 - .../plexapi/models/operations/Location.java | 498 ---- .../models/operations/LogLineRequest.java | 208 -- .../operations/LogLineRequestBuilder.java | 56 - .../models/operations/LogLineResponse.java | 181 -- .../LogMultiLineRequestBuilder.java | 40 - .../operations/LogMultiLineResponse.java | 181 -- .../models/operations/MarkPlayedRequest.java | 102 - .../operations/MarkPlayedRequestBuilder.java | 40 - .../models/operations/MarkPlayedResponse.java | 181 -- .../operations/MarkUnplayedRequest.java | 102 - .../MarkUnplayedRequestBuilder.java | 40 - .../operations/MarkUnplayedResponse.java | 181 -- .../plexapi/models/operations/Media.java | 756 ----- .../models/operations/MediaContainer.java | 2261 --------------- .../plexapi/models/operations/Metadata.java | 1574 ---------- .../plexapi/models/operations/MinSize.java | 35 - .../plexapi/models/operations/MyPlex.java | 584 ---- .../models/operations/OnlyTransient.java | 35 - .../plexapi/models/operations/Operator.java | 154 - .../plexapi/models/operations/Part.java | 498 ---- .../models/operations/PathParamFilter.java | 36 - .../models/operations/PathParamTaskName.java | 47 - .../operations/PerformSearchRequest.java | 238 -- .../PerformSearchRequestBuilder.java | 80 - .../operations/PerformSearchResponse.java | 181 -- .../operations/PerformVoiceSearchRequest.java | 238 -- .../PerformVoiceSearchRequestBuilder.java | 80 - .../PerformVoiceSearchResponse.java | 181 -- .../plexapi/models/operations/Player.java | 713 ----- .../models/operations/PlaylistType.java | 36 - .../plexapi/models/operations/Producer.java | 283 -- .../plexapi/models/operations/Provider.java | 197 -- .../operations/QueryParamOnlyTransient.java | 35 - .../models/operations/QueryParamSmart.java | 35 - .../models/operations/QueryParamType.java | 36 - .../plexapi/models/operations/Ratings.java | 197 -- .../operations/RefreshLibraryRequest.java | 102 - .../RefreshLibraryRequestBuilder.java | 40 - .../operations/RefreshLibraryResponse.java | 181 -- .../plexapi/models/operations/Release.java | 326 --- .../plexapi/models/operations/Role.java | 111 - .../operations/SDKMethodInterfaces.java | 423 --- .../plexapi/models/operations/Scope.java | 34 - .../SearchLibraryMediaContainer.java | 627 ---- .../operations/SearchLibraryMetadata.java | 928 ------ .../operations/SearchLibraryRequest.java | 143 - .../SearchLibraryRequestBuilder.java | 48 - .../operations/SearchLibraryResponse.java | 248 -- .../operations/SearchLibraryResponseBody.java | 114 - .../plexapi/models/operations/Server.java | 541 ---- .../plexapi/models/operations/Session.java | 197 -- .../plexapi/models/operations/Setting.java | 498 ---- .../plexapi/models/operations/Skip.java | 35 - .../plexapi/models/operations/Smart.java | 35 - .../plexapi/models/operations/Sort.java | 326 --- .../StartAllTasksRequestBuilder.java | 32 - .../operations/StartAllTasksResponse.java | 181 -- .../models/operations/StartTaskRequest.java | 102 - .../operations/StartTaskRequestBuilder.java | 40 - .../models/operations/StartTaskResponse.java | 181 -- .../StartUniversalTranscodeRequest.java | 936 ------ ...StartUniversalTranscodeRequestBuilder.java | 40 - .../StartUniversalTranscodeResponse.java | 181 -- .../plexapi/models/operations/State.java | 36 - .../operations/StatisticsBandwidth.java | 326 --- .../models/operations/StatisticsMedia.java | 369 --- .../operations/StatisticsResources.java | 326 --- .../StopAllTasksRequestBuilder.java | 32 - .../operations/StopAllTasksResponse.java | 181 -- .../models/operations/StopTaskRequest.java | 102 - .../operations/StopTaskRequestBuilder.java | 40 - .../models/operations/StopTaskResponse.java | 181 -- .../StopTranscodeSessionRequest.java | 102 - .../StopTranscodeSessionRequestBuilder.java | 40 - .../StopTranscodeSessionResponse.java | 181 -- .../plexapi/models/operations/Stream.java | 1444 ---------- .../plexapi/models/operations/Tag.java | 52 - .../plexapi/models/operations/TaskName.java | 47 - .../plexapi/models/operations/Tonight.java | 35 - .../models/operations/TranscodeSession.java | 1100 ------- .../plexapi/models/operations/Type.java | 37 - .../operations/UpdatePlayProgressRequest.java | 184 -- .../UpdatePlayProgressRequestBuilder.java | 56 - .../UpdatePlayProgressResponse.java | 181 -- .../operations/UpdatePlaylistRequest.java | 228 -- .../UpdatePlaylistRequestBuilder.java | 68 - .../operations/UpdatePlaylistResponse.java | 181 -- .../operations/UploadPlaylistRequest.java | 183 -- .../UploadPlaylistRequestBuilder.java | 48 - .../operations/UploadPlaylistResponse.java | 181 -- .../plexapi/models/operations/Upscale.java | 35 - .../plexapi/models/operations/User.java | 111 - .../plexapi/models/operations/Writer.java | 111 - .../plexapi/models/shared/Security.java | 91 - .../plexapi/utils/BackoffStrategy.java | 250 -- .../plexapi/utils/BigDecimalString.java | 105 - .../plexapi/utils/BigIntegerString.java | 105 - .../plexapi/plexapi/utils/Deserializers.java | 241 -- .../plexapi/plexapi/utils/EventStream.java | 126 - .../plexapi/utils/EventStreamLineReader.java | 71 - .../plexapi/utils/EventStreamMessage.java | 57 - .../plexapi/utils/EventStreamReader.java | 156 - .../plexapi/plexapi/utils/FormMetadata.java | 23 - .../plexapi/plexapi/utils/HTTPClient.java | 32 - .../plexapi/plexapi/utils/HTTPRequest.java | 94 - .../plexapi/plexapi/utils/HeaderMetadata.java | 22 - .../plexapi/plexapi/utils/Helpers.java | 48 - .../lukehagar/plexapi/plexapi/utils/Hook.java | 272 -- .../plexapi/plexapi/utils/Hooks.java | 197 -- .../lukehagar/plexapi/plexapi/utils/JSON.java | 27 - .../plexapi/utils/LazySingletonValue.java | 31 - .../plexapi/plexapi/utils/Metadata.java | 83 - .../plexapi/utils/MultipartFormMetadata.java | 23 - .../plexapi/utils/OneOfDeserializer.java | 251 -- .../plexapi/plexapi/utils/Options.java | 61 - .../plexapi/utils/PathParamsMetadata.java | 23 - .../plexapi/utils/QueryParameters.java | 243 -- .../plexapi/utils/QueryParamsMetadata.java | 23 - .../plexapi/plexapi/utils/RequestBody.java | 352 --- .../plexapi/utils/RequestMetadata.java | 20 - .../plexapi/plexapi/utils/Response.java | 26 - .../plexapi/plexapi/utils/Retries.java | 218 -- .../plexapi/plexapi/utils/RetryConfig.java | 112 - .../plexapi/plexapi/utils/Security.java | 179 -- .../plexapi/utils/SecurityMetadata.java | 24 - .../plexapi/plexapi/utils/SerializedBody.java | 28 - .../plexapi/utils/SpeakeasyHTTPClient.java | 22 - .../plexapi/utils/SpeakeasyMetadata.java | 16 - .../plexapi/plexapi/utils/TypedObject.java | 60 - .../plexapi/plexapi/utils/Types.java | 52 - .../plexapi/plexapi/utils/Utils.java | 1026 ------- 1051 files changed, 152151 deletions(-) delete mode 100644 .gitattributes delete mode 100644 .gitignore delete mode 100755 .speakeasy/gen.lock delete mode 100644 .speakeasy/workflow.lock delete mode 100644 README.md delete mode 100644 USAGE.md delete mode 100644 build-extras.gradle delete mode 100644 build.gradle delete mode 100644 docs/models/errors/AddPlaylistContentsErrors.md delete mode 100644 docs/models/errors/AddPlaylistContentsResponseBody.md delete mode 100644 docs/models/errors/ApplyUpdatesErrors.md delete mode 100644 docs/models/errors/ApplyUpdatesResponseBody.md delete mode 100644 docs/models/errors/CancelServerActivitiesErrors.md delete mode 100644 docs/models/errors/CancelServerActivitiesResponseBody.md delete mode 100644 docs/models/errors/CheckForUpdatesErrors.md delete mode 100644 docs/models/errors/CheckForUpdatesResponseBody.md delete mode 100644 docs/models/errors/ClearPlaylistContentsErrors.md delete mode 100644 docs/models/errors/ClearPlaylistContentsResponseBody.md delete mode 100644 docs/models/errors/CreatePlaylistErrors.md delete mode 100644 docs/models/errors/CreatePlaylistResponseBody.md delete mode 100644 docs/models/errors/DeleteLibraryErrors.md delete mode 100644 docs/models/errors/DeleteLibraryResponseBody.md delete mode 100644 docs/models/errors/DeletePlaylistErrors.md delete mode 100644 docs/models/errors/DeletePlaylistResponseBody.md delete mode 100644 docs/models/errors/EnablePaperTrailErrors.md delete mode 100644 docs/models/errors/EnablePaperTrailResponseBody.md delete mode 100644 docs/models/errors/Errors.md delete mode 100644 docs/models/errors/GetAvailableClientsErrors.md delete mode 100644 docs/models/errors/GetAvailableClientsResponseBody.md delete mode 100644 docs/models/errors/GetBandwidthStatisticsErrors.md delete mode 100644 docs/models/errors/GetBandwidthStatisticsResponseBody.md delete mode 100644 docs/models/errors/GetButlerTasksErrors.md delete mode 100644 docs/models/errors/GetButlerTasksResponseBody.md delete mode 100644 docs/models/errors/GetDevicesErrors.md delete mode 100644 docs/models/errors/GetDevicesResponseBody.md delete mode 100644 docs/models/errors/GetFileHashErrors.md delete mode 100644 docs/models/errors/GetFileHashResponseBody.md delete mode 100644 docs/models/errors/GetGlobalHubsErrors.md delete mode 100644 docs/models/errors/GetGlobalHubsResponseBody.md delete mode 100644 docs/models/errors/GetHomeDataErrors.md delete mode 100644 docs/models/errors/GetHomeDataResponseBody.md delete mode 100644 docs/models/errors/GetLibrariesErrors.md delete mode 100644 docs/models/errors/GetLibrariesResponseBody.md delete mode 100644 docs/models/errors/GetLibraryErrors.md delete mode 100644 docs/models/errors/GetLibraryHubsErrors.md delete mode 100644 docs/models/errors/GetLibraryHubsResponseBody.md delete mode 100644 docs/models/errors/GetLibraryItemsErrors.md delete mode 100644 docs/models/errors/GetLibraryItemsResponseBody.md delete mode 100644 docs/models/errors/GetLibraryResponseBody.md delete mode 100644 docs/models/errors/GetMetadataChildrenErrors.md delete mode 100644 docs/models/errors/GetMetadataChildrenResponseBody.md delete mode 100644 docs/models/errors/GetMetadataErrors.md delete mode 100644 docs/models/errors/GetMetadataResponseBody.md delete mode 100644 docs/models/errors/GetMyPlexAccountErrors.md delete mode 100644 docs/models/errors/GetMyPlexAccountResponseBody.md delete mode 100644 docs/models/errors/GetOnDeckErrors.md delete mode 100644 docs/models/errors/GetOnDeckResponseBody.md delete mode 100644 docs/models/errors/GetPinErrors.md delete mode 100644 docs/models/errors/GetPinResponseBody.md delete mode 100644 docs/models/errors/GetPlaylistContentsErrors.md delete mode 100644 docs/models/errors/GetPlaylistContentsResponseBody.md delete mode 100644 docs/models/errors/GetPlaylistErrors.md delete mode 100644 docs/models/errors/GetPlaylistResponseBody.md delete mode 100644 docs/models/errors/GetPlaylistsErrors.md delete mode 100644 docs/models/errors/GetPlaylistsResponseBody.md delete mode 100644 docs/models/errors/GetRecentlyAddedErrors.md delete mode 100644 docs/models/errors/GetRecentlyAddedResponseBody.md delete mode 100644 docs/models/errors/GetResizedPhotoErrors.md delete mode 100644 docs/models/errors/GetResizedPhotoResponseBody.md delete mode 100644 docs/models/errors/GetResourcesStatisticsErrors.md delete mode 100644 docs/models/errors/GetResourcesStatisticsResponseBody.md delete mode 100644 docs/models/errors/GetSearchResultsErrors.md delete mode 100644 docs/models/errors/GetSearchResultsResponseBody.md delete mode 100644 docs/models/errors/GetServerActivitiesErrors.md delete mode 100644 docs/models/errors/GetServerActivitiesResponseBody.md delete mode 100644 docs/models/errors/GetServerCapabilitiesResponseBody.md delete mode 100644 docs/models/errors/GetServerIdentityErrors.md delete mode 100644 docs/models/errors/GetServerIdentityResponseBody.md delete mode 100644 docs/models/errors/GetServerListErrors.md delete mode 100644 docs/models/errors/GetServerListResponseBody.md delete mode 100644 docs/models/errors/GetServerPreferencesErrors.md delete mode 100644 docs/models/errors/GetServerPreferencesResponseBody.md delete mode 100644 docs/models/errors/GetSessionHistoryErrors.md delete mode 100644 docs/models/errors/GetSessionHistoryResponseBody.md delete mode 100644 docs/models/errors/GetSessionsErrors.md delete mode 100644 docs/models/errors/GetSessionsResponseBody.md delete mode 100644 docs/models/errors/GetSourceConnectionInformationErrors.md delete mode 100644 docs/models/errors/GetSourceConnectionInformationResponseBody.md delete mode 100644 docs/models/errors/GetStatisticsErrors.md delete mode 100644 docs/models/errors/GetStatisticsResponseBody.md delete mode 100644 docs/models/errors/GetTimelineErrors.md delete mode 100644 docs/models/errors/GetTimelineResponseBody.md delete mode 100644 docs/models/errors/GetTokenErrors.md delete mode 100644 docs/models/errors/GetTokenResponseBody.md delete mode 100644 docs/models/errors/GetTranscodeSessionsErrors.md delete mode 100644 docs/models/errors/GetTranscodeSessionsResponseBody.md delete mode 100644 docs/models/errors/GetTransientTokenErrors.md delete mode 100644 docs/models/errors/GetTransientTokenResponseBody.md delete mode 100644 docs/models/errors/GetUpdateStatusErrors.md delete mode 100644 docs/models/errors/GetUpdateStatusResponseBody.md delete mode 100644 docs/models/errors/GetWatchlistErrors.md delete mode 100644 docs/models/errors/GetWatchlistResponseBody.md delete mode 100644 docs/models/errors/LogLineErrors.md delete mode 100644 docs/models/errors/LogLineResponseBody.md delete mode 100644 docs/models/errors/LogMultiLineErrors.md delete mode 100644 docs/models/errors/LogMultiLineResponseBody.md delete mode 100644 docs/models/errors/MarkPlayedErrors.md delete mode 100644 docs/models/errors/MarkPlayedResponseBody.md delete mode 100644 docs/models/errors/MarkUnplayedErrors.md delete mode 100644 docs/models/errors/MarkUnplayedResponseBody.md delete mode 100644 docs/models/errors/PerformSearchErrors.md delete mode 100644 docs/models/errors/PerformSearchResponseBody.md delete mode 100644 docs/models/errors/PerformVoiceSearchErrors.md delete mode 100644 docs/models/errors/PerformVoiceSearchResponseBody.md delete mode 100644 docs/models/errors/RefreshLibraryErrors.md delete mode 100644 docs/models/errors/RefreshLibraryResponseBody.md delete mode 100644 docs/models/errors/SearchLibraryErrors.md delete mode 100644 docs/models/errors/SearchLibraryResponseBody.md delete mode 100644 docs/models/errors/StartAllTasksErrors.md delete mode 100644 docs/models/errors/StartAllTasksResponseBody.md delete mode 100644 docs/models/errors/StartTaskErrors.md delete mode 100644 docs/models/errors/StartTaskResponseBody.md delete mode 100644 docs/models/errors/StartUniversalTranscodeErrors.md delete mode 100644 docs/models/errors/StartUniversalTranscodeResponseBody.md delete mode 100644 docs/models/errors/StopAllTasksErrors.md delete mode 100644 docs/models/errors/StopAllTasksResponseBody.md delete mode 100644 docs/models/errors/StopTaskErrors.md delete mode 100644 docs/models/errors/StopTaskResponseBody.md delete mode 100644 docs/models/errors/StopTranscodeSessionErrors.md delete mode 100644 docs/models/errors/StopTranscodeSessionResponseBody.md delete mode 100644 docs/models/errors/UpdatePlayProgressErrors.md delete mode 100644 docs/models/errors/UpdatePlayProgressResponseBody.md delete mode 100644 docs/models/errors/UpdatePlaylistErrors.md delete mode 100644 docs/models/errors/UpdatePlaylistResponseBody.md delete mode 100644 docs/models/errors/UploadPlaylistErrors.md delete mode 100644 docs/models/errors/UploadPlaylistResponseBody.md delete mode 100644 docs/models/operations/Account.md delete mode 100644 docs/models/operations/Activity.md delete mode 100644 docs/models/operations/AddPlaylistContentsMediaContainer.md delete mode 100644 docs/models/operations/AddPlaylistContentsMetadata.md delete mode 100644 docs/models/operations/AddPlaylistContentsRequest.md delete mode 100644 docs/models/operations/AddPlaylistContentsResponse.md delete mode 100644 docs/models/operations/AddPlaylistContentsResponseBody.md delete mode 100644 docs/models/operations/ApplyUpdatesRequest.md delete mode 100644 docs/models/operations/ApplyUpdatesResponse.md delete mode 100644 docs/models/operations/ButlerTask.md delete mode 100644 docs/models/operations/ButlerTasks.md delete mode 100644 docs/models/operations/CancelServerActivitiesRequest.md delete mode 100644 docs/models/operations/CancelServerActivitiesResponse.md delete mode 100644 docs/models/operations/CheckForUpdatesRequest.md delete mode 100644 docs/models/operations/CheckForUpdatesResponse.md delete mode 100644 docs/models/operations/ClearPlaylistContentsRequest.md delete mode 100644 docs/models/operations/ClearPlaylistContentsResponse.md delete mode 100644 docs/models/operations/Context.md delete mode 100644 docs/models/operations/Country.md delete mode 100644 docs/models/operations/CreatePlaylistMediaContainer.md delete mode 100644 docs/models/operations/CreatePlaylistMetadata.md delete mode 100644 docs/models/operations/CreatePlaylistRequest.md delete mode 100644 docs/models/operations/CreatePlaylistResponse.md delete mode 100644 docs/models/operations/CreatePlaylistResponseBody.md delete mode 100644 docs/models/operations/DeleteLibraryRequest.md delete mode 100644 docs/models/operations/DeleteLibraryResponse.md delete mode 100644 docs/models/operations/DeletePlaylistRequest.md delete mode 100644 docs/models/operations/DeletePlaylistResponse.md delete mode 100644 docs/models/operations/Device.md delete mode 100644 docs/models/operations/Director.md delete mode 100644 docs/models/operations/Directory.md delete mode 100644 docs/models/operations/Download.md delete mode 100644 docs/models/operations/EnablePaperTrailResponse.md delete mode 100644 docs/models/operations/Field.md delete mode 100644 docs/models/operations/FieldType.md delete mode 100644 docs/models/operations/Filter.md delete mode 100644 docs/models/operations/Force.md delete mode 100644 docs/models/operations/Genre.md delete mode 100644 docs/models/operations/GetAvailableClientsMediaContainer.md delete mode 100644 docs/models/operations/GetAvailableClientsResponse.md delete mode 100644 docs/models/operations/GetAvailableClientsResponseBody.md delete mode 100644 docs/models/operations/GetBandwidthStatisticsAccount.md delete mode 100644 docs/models/operations/GetBandwidthStatisticsDevice.md delete mode 100644 docs/models/operations/GetBandwidthStatisticsMediaContainer.md delete mode 100644 docs/models/operations/GetBandwidthStatisticsRequest.md delete mode 100644 docs/models/operations/GetBandwidthStatisticsResponse.md delete mode 100644 docs/models/operations/GetBandwidthStatisticsResponseBody.md delete mode 100644 docs/models/operations/GetButlerTasksResponse.md delete mode 100644 docs/models/operations/GetButlerTasksResponseBody.md delete mode 100644 docs/models/operations/GetDevicesMediaContainer.md delete mode 100644 docs/models/operations/GetDevicesResponse.md delete mode 100644 docs/models/operations/GetDevicesResponseBody.md delete mode 100644 docs/models/operations/GetFileHashRequest.md delete mode 100644 docs/models/operations/GetFileHashResponse.md delete mode 100644 docs/models/operations/GetGlobalHubsMediaContainer.md delete mode 100644 docs/models/operations/GetGlobalHubsMetadata.md delete mode 100644 docs/models/operations/GetGlobalHubsRequest.md delete mode 100644 docs/models/operations/GetGlobalHubsResponse.md delete mode 100644 docs/models/operations/GetGlobalHubsResponseBody.md delete mode 100644 docs/models/operations/GetHomeDataResponse.md delete mode 100644 docs/models/operations/GetHomeDataResponseBody.md delete mode 100644 docs/models/operations/GetLibrariesDirectory.md delete mode 100644 docs/models/operations/GetLibrariesLocation.md delete mode 100644 docs/models/operations/GetLibrariesMediaContainer.md delete mode 100644 docs/models/operations/GetLibrariesResponse.md delete mode 100644 docs/models/operations/GetLibrariesResponseBody.md delete mode 100644 docs/models/operations/GetLibraryDirectory.md delete mode 100644 docs/models/operations/GetLibraryFilter.md delete mode 100644 docs/models/operations/GetLibraryHubsCountry.md delete mode 100644 docs/models/operations/GetLibraryHubsDirector.md delete mode 100644 docs/models/operations/GetLibraryHubsGenre.md delete mode 100644 docs/models/operations/GetLibraryHubsHub.md delete mode 100644 docs/models/operations/GetLibraryHubsMedia.md delete mode 100644 docs/models/operations/GetLibraryHubsMediaContainer.md delete mode 100644 docs/models/operations/GetLibraryHubsMetadata.md delete mode 100644 docs/models/operations/GetLibraryHubsPart.md delete mode 100644 docs/models/operations/GetLibraryHubsRequest.md delete mode 100644 docs/models/operations/GetLibraryHubsResponse.md delete mode 100644 docs/models/operations/GetLibraryHubsResponseBody.md delete mode 100644 docs/models/operations/GetLibraryHubsRole.md delete mode 100644 docs/models/operations/GetLibraryHubsWriter.md delete mode 100644 docs/models/operations/GetLibraryItemsCountry.md delete mode 100644 docs/models/operations/GetLibraryItemsDirector.md delete mode 100644 docs/models/operations/GetLibraryItemsGenre.md delete mode 100644 docs/models/operations/GetLibraryItemsMedia.md delete mode 100644 docs/models/operations/GetLibraryItemsMediaContainer.md delete mode 100644 docs/models/operations/GetLibraryItemsMetadata.md delete mode 100644 docs/models/operations/GetLibraryItemsPart.md delete mode 100644 docs/models/operations/GetLibraryItemsRequest.md delete mode 100644 docs/models/operations/GetLibraryItemsResponse.md delete mode 100644 docs/models/operations/GetLibraryItemsResponseBody.md delete mode 100644 docs/models/operations/GetLibraryItemsRole.md delete mode 100644 docs/models/operations/GetLibraryItemsWriter.md delete mode 100644 docs/models/operations/GetLibraryMediaContainer.md delete mode 100644 docs/models/operations/GetLibraryRequest.md delete mode 100644 docs/models/operations/GetLibraryResponse.md delete mode 100644 docs/models/operations/GetLibraryResponseBody.md delete mode 100644 docs/models/operations/GetLibraryType.md delete mode 100644 docs/models/operations/GetMetadataChildrenDirectory.md delete mode 100644 docs/models/operations/GetMetadataChildrenMediaContainer.md delete mode 100644 docs/models/operations/GetMetadataChildrenMetadata.md delete mode 100644 docs/models/operations/GetMetadataChildrenRequest.md delete mode 100644 docs/models/operations/GetMetadataChildrenResponse.md delete mode 100644 docs/models/operations/GetMetadataChildrenResponseBody.md delete mode 100644 docs/models/operations/GetMetadataCountry.md delete mode 100644 docs/models/operations/GetMetadataDirector.md delete mode 100644 docs/models/operations/GetMetadataGenre.md delete mode 100644 docs/models/operations/GetMetadataMedia.md delete mode 100644 docs/models/operations/GetMetadataMediaContainer.md delete mode 100644 docs/models/operations/GetMetadataMetadata.md delete mode 100644 docs/models/operations/GetMetadataPart.md delete mode 100644 docs/models/operations/GetMetadataRequest.md delete mode 100644 docs/models/operations/GetMetadataResponse.md delete mode 100644 docs/models/operations/GetMetadataResponseBody.md delete mode 100644 docs/models/operations/GetMetadataRole.md delete mode 100644 docs/models/operations/GetMetadataWriter.md delete mode 100644 docs/models/operations/GetMyPlexAccountResponse.md delete mode 100644 docs/models/operations/GetMyPlexAccountResponseBody.md delete mode 100644 docs/models/operations/GetOnDeckGuids.md delete mode 100644 docs/models/operations/GetOnDeckMedia.md delete mode 100644 docs/models/operations/GetOnDeckMediaContainer.md delete mode 100644 docs/models/operations/GetOnDeckMetadata.md delete mode 100644 docs/models/operations/GetOnDeckPart.md delete mode 100644 docs/models/operations/GetOnDeckResponse.md delete mode 100644 docs/models/operations/GetOnDeckResponseBody.md delete mode 100644 docs/models/operations/GetOnDeckStream.md delete mode 100644 docs/models/operations/GetPinRequest.md delete mode 100644 docs/models/operations/GetPinResponse.md delete mode 100644 docs/models/operations/GetPinResponseBody.md delete mode 100644 docs/models/operations/GetPlaylistContentsCountry.md delete mode 100644 docs/models/operations/GetPlaylistContentsDirector.md delete mode 100644 docs/models/operations/GetPlaylistContentsGenre.md delete mode 100644 docs/models/operations/GetPlaylistContentsMedia.md delete mode 100644 docs/models/operations/GetPlaylistContentsMediaContainer.md delete mode 100644 docs/models/operations/GetPlaylistContentsMetadata.md delete mode 100644 docs/models/operations/GetPlaylistContentsPart.md delete mode 100644 docs/models/operations/GetPlaylistContentsRequest.md delete mode 100644 docs/models/operations/GetPlaylistContentsResponse.md delete mode 100644 docs/models/operations/GetPlaylistContentsResponseBody.md delete mode 100644 docs/models/operations/GetPlaylistContentsRole.md delete mode 100644 docs/models/operations/GetPlaylistContentsWriter.md delete mode 100644 docs/models/operations/GetPlaylistMediaContainer.md delete mode 100644 docs/models/operations/GetPlaylistMetadata.md delete mode 100644 docs/models/operations/GetPlaylistRequest.md delete mode 100644 docs/models/operations/GetPlaylistResponse.md delete mode 100644 docs/models/operations/GetPlaylistResponseBody.md delete mode 100644 docs/models/operations/GetPlaylistsMediaContainer.md delete mode 100644 docs/models/operations/GetPlaylistsMetadata.md delete mode 100644 docs/models/operations/GetPlaylistsRequest.md delete mode 100644 docs/models/operations/GetPlaylistsResponse.md delete mode 100644 docs/models/operations/GetPlaylistsResponseBody.md delete mode 100644 docs/models/operations/GetRecentlyAddedMediaContainer.md delete mode 100644 docs/models/operations/GetRecentlyAddedMetadata.md delete mode 100644 docs/models/operations/GetRecentlyAddedResponse.md delete mode 100644 docs/models/operations/GetRecentlyAddedResponseBody.md delete mode 100644 docs/models/operations/GetResizedPhotoRequest.md delete mode 100644 docs/models/operations/GetResizedPhotoResponse.md delete mode 100644 docs/models/operations/GetResourcesStatisticsMediaContainer.md delete mode 100644 docs/models/operations/GetResourcesStatisticsRequest.md delete mode 100644 docs/models/operations/GetResourcesStatisticsResponse.md delete mode 100644 docs/models/operations/GetResourcesStatisticsResponseBody.md delete mode 100644 docs/models/operations/GetSearchResultsCountry.md delete mode 100644 docs/models/operations/GetSearchResultsDirector.md delete mode 100644 docs/models/operations/GetSearchResultsGenre.md delete mode 100644 docs/models/operations/GetSearchResultsMedia.md delete mode 100644 docs/models/operations/GetSearchResultsMediaContainer.md delete mode 100644 docs/models/operations/GetSearchResultsMetadata.md delete mode 100644 docs/models/operations/GetSearchResultsPart.md delete mode 100644 docs/models/operations/GetSearchResultsRequest.md delete mode 100644 docs/models/operations/GetSearchResultsResponse.md delete mode 100644 docs/models/operations/GetSearchResultsResponseBody.md delete mode 100644 docs/models/operations/GetSearchResultsRole.md delete mode 100644 docs/models/operations/GetSearchResultsWriter.md delete mode 100644 docs/models/operations/GetServerActivitiesMediaContainer.md delete mode 100644 docs/models/operations/GetServerActivitiesResponse.md delete mode 100644 docs/models/operations/GetServerActivitiesResponseBody.md delete mode 100644 docs/models/operations/GetServerCapabilitiesResponse.md delete mode 100644 docs/models/operations/GetServerCapabilitiesResponseBody.md delete mode 100644 docs/models/operations/GetServerIdentityMediaContainer.md delete mode 100644 docs/models/operations/GetServerIdentityResponse.md delete mode 100644 docs/models/operations/GetServerIdentityResponseBody.md delete mode 100644 docs/models/operations/GetServerListMediaContainer.md delete mode 100644 docs/models/operations/GetServerListResponse.md delete mode 100644 docs/models/operations/GetServerListResponseBody.md delete mode 100644 docs/models/operations/GetServerListServer.md delete mode 100644 docs/models/operations/GetServerPreferencesMediaContainer.md delete mode 100644 docs/models/operations/GetServerPreferencesResponse.md delete mode 100644 docs/models/operations/GetServerPreferencesResponseBody.md delete mode 100644 docs/models/operations/GetSessionHistoryMediaContainer.md delete mode 100644 docs/models/operations/GetSessionHistoryMetadata.md delete mode 100644 docs/models/operations/GetSessionHistoryRequest.md delete mode 100644 docs/models/operations/GetSessionHistoryResponse.md delete mode 100644 docs/models/operations/GetSessionHistoryResponseBody.md delete mode 100644 docs/models/operations/GetSessionsMedia.md delete mode 100644 docs/models/operations/GetSessionsMediaContainer.md delete mode 100644 docs/models/operations/GetSessionsMetadata.md delete mode 100644 docs/models/operations/GetSessionsPart.md delete mode 100644 docs/models/operations/GetSessionsResponse.md delete mode 100644 docs/models/operations/GetSessionsResponseBody.md delete mode 100644 docs/models/operations/GetSessionsStream.md delete mode 100644 docs/models/operations/GetSessionsUser.md delete mode 100644 docs/models/operations/GetSourceConnectionInformationRequest.md delete mode 100644 docs/models/operations/GetSourceConnectionInformationResponse.md delete mode 100644 docs/models/operations/GetStatisticsDevice.md delete mode 100644 docs/models/operations/GetStatisticsMediaContainer.md delete mode 100644 docs/models/operations/GetStatisticsRequest.md delete mode 100644 docs/models/operations/GetStatisticsResponse.md delete mode 100644 docs/models/operations/GetStatisticsResponseBody.md delete mode 100644 docs/models/operations/GetTimelineRequest.md delete mode 100644 docs/models/operations/GetTimelineResponse.md delete mode 100644 docs/models/operations/GetTokenLocation.md delete mode 100644 docs/models/operations/GetTokenRequest.md delete mode 100644 docs/models/operations/GetTokenResponse.md delete mode 100644 docs/models/operations/GetTokenResponseBody.md delete mode 100644 docs/models/operations/GetTopWatchedContentCountry.md delete mode 100644 docs/models/operations/GetTopWatchedContentGenre.md delete mode 100644 docs/models/operations/GetTopWatchedContentGuids.md delete mode 100644 docs/models/operations/GetTopWatchedContentMediaContainer.md delete mode 100644 docs/models/operations/GetTopWatchedContentMetadata.md delete mode 100644 docs/models/operations/GetTopWatchedContentRequest.md delete mode 100644 docs/models/operations/GetTopWatchedContentResponse.md delete mode 100644 docs/models/operations/GetTopWatchedContentResponseBody.md delete mode 100644 docs/models/operations/GetTopWatchedContentRole.md delete mode 100644 docs/models/operations/GetTranscodeSessionsMediaContainer.md delete mode 100644 docs/models/operations/GetTranscodeSessionsResponse.md delete mode 100644 docs/models/operations/GetTranscodeSessionsResponseBody.md delete mode 100644 docs/models/operations/GetTransientTokenQueryParamType.md delete mode 100644 docs/models/operations/GetTransientTokenRequest.md delete mode 100644 docs/models/operations/GetTransientTokenResponse.md delete mode 100644 docs/models/operations/GetUpdateStatusMediaContainer.md delete mode 100644 docs/models/operations/GetUpdateStatusResponse.md delete mode 100644 docs/models/operations/GetUpdateStatusResponseBody.md delete mode 100644 docs/models/operations/GetWatchlistRequest.md delete mode 100644 docs/models/operations/GetWatchlistResponse.md delete mode 100644 docs/models/operations/GetWatchlistResponseBody.md delete mode 100644 docs/models/operations/Guids.md delete mode 100644 docs/models/operations/Hub.md delete mode 100644 docs/models/operations/Image.md delete mode 100644 docs/models/operations/IncludeCollections.md delete mode 100644 docs/models/operations/IncludeDetails.md delete mode 100644 docs/models/operations/IncludeExternalMedia.md delete mode 100644 docs/models/operations/Level.md delete mode 100644 docs/models/operations/LibrarySectionID.md delete mode 100644 docs/models/operations/Libtype.md delete mode 100644 docs/models/operations/Location.md delete mode 100644 docs/models/operations/LogLineRequest.md delete mode 100644 docs/models/operations/LogLineResponse.md delete mode 100644 docs/models/operations/LogMultiLineResponse.md delete mode 100644 docs/models/operations/MarkPlayedRequest.md delete mode 100644 docs/models/operations/MarkPlayedResponse.md delete mode 100644 docs/models/operations/MarkUnplayedRequest.md delete mode 100644 docs/models/operations/MarkUnplayedResponse.md delete mode 100644 docs/models/operations/Media.md delete mode 100644 docs/models/operations/MediaContainer.md delete mode 100644 docs/models/operations/Metadata.md delete mode 100644 docs/models/operations/MinSize.md delete mode 100644 docs/models/operations/MyPlex.md delete mode 100644 docs/models/operations/OnlyTransient.md delete mode 100644 docs/models/operations/Operator.md delete mode 100644 docs/models/operations/Part.md delete mode 100644 docs/models/operations/PathParamFilter.md delete mode 100644 docs/models/operations/PathParamTaskName.md delete mode 100644 docs/models/operations/PerformSearchRequest.md delete mode 100644 docs/models/operations/PerformSearchResponse.md delete mode 100644 docs/models/operations/PerformVoiceSearchRequest.md delete mode 100644 docs/models/operations/PerformVoiceSearchResponse.md delete mode 100644 docs/models/operations/Player.md delete mode 100644 docs/models/operations/PlaylistType.md delete mode 100644 docs/models/operations/Producer.md delete mode 100644 docs/models/operations/Provider.md delete mode 100644 docs/models/operations/QueryParamOnlyTransient.md delete mode 100644 docs/models/operations/QueryParamSmart.md delete mode 100644 docs/models/operations/QueryParamType.md delete mode 100644 docs/models/operations/Ratings.md delete mode 100644 docs/models/operations/RefreshLibraryRequest.md delete mode 100644 docs/models/operations/RefreshLibraryResponse.md delete mode 100644 docs/models/operations/Release.md delete mode 100644 docs/models/operations/Role.md delete mode 100644 docs/models/operations/Scope.md delete mode 100644 docs/models/operations/SearchLibraryMediaContainer.md delete mode 100644 docs/models/operations/SearchLibraryMetadata.md delete mode 100644 docs/models/operations/SearchLibraryRequest.md delete mode 100644 docs/models/operations/SearchLibraryResponse.md delete mode 100644 docs/models/operations/SearchLibraryResponseBody.md delete mode 100644 docs/models/operations/Server.md delete mode 100644 docs/models/operations/Session.md delete mode 100644 docs/models/operations/Setting.md delete mode 100644 docs/models/operations/Skip.md delete mode 100644 docs/models/operations/Smart.md delete mode 100644 docs/models/operations/Sort.md delete mode 100644 docs/models/operations/StartAllTasksResponse.md delete mode 100644 docs/models/operations/StartTaskRequest.md delete mode 100644 docs/models/operations/StartTaskResponse.md delete mode 100644 docs/models/operations/StartUniversalTranscodeRequest.md delete mode 100644 docs/models/operations/StartUniversalTranscodeResponse.md delete mode 100644 docs/models/operations/State.md delete mode 100644 docs/models/operations/StatisticsBandwidth.md delete mode 100644 docs/models/operations/StatisticsMedia.md delete mode 100644 docs/models/operations/StatisticsResources.md delete mode 100644 docs/models/operations/StopAllTasksResponse.md delete mode 100644 docs/models/operations/StopTaskRequest.md delete mode 100644 docs/models/operations/StopTaskResponse.md delete mode 100644 docs/models/operations/StopTranscodeSessionRequest.md delete mode 100644 docs/models/operations/StopTranscodeSessionResponse.md delete mode 100644 docs/models/operations/Stream.md delete mode 100644 docs/models/operations/Tag.md delete mode 100644 docs/models/operations/TaskName.md delete mode 100644 docs/models/operations/Tonight.md delete mode 100644 docs/models/operations/TranscodeSession.md delete mode 100644 docs/models/operations/Type.md delete mode 100644 docs/models/operations/UpdatePlayProgressRequest.md delete mode 100644 docs/models/operations/UpdatePlayProgressResponse.md delete mode 100644 docs/models/operations/UpdatePlaylistRequest.md delete mode 100644 docs/models/operations/UpdatePlaylistResponse.md delete mode 100644 docs/models/operations/UploadPlaylistRequest.md delete mode 100644 docs/models/operations/UploadPlaylistResponse.md delete mode 100644 docs/models/operations/Upscale.md delete mode 100644 docs/models/operations/User.md delete mode 100644 docs/models/operations/Writer.md delete mode 100644 docs/models/shared/Security.md delete mode 100644 docs/sdks/activities/README.md delete mode 100644 docs/sdks/authentication/README.md delete mode 100644 docs/sdks/butler/README.md delete mode 100644 docs/sdks/hubs/README.md delete mode 100644 docs/sdks/library/README.md delete mode 100644 docs/sdks/log/README.md delete mode 100644 docs/sdks/media/README.md delete mode 100644 docs/sdks/playlists/README.md delete mode 100644 docs/sdks/plex/README.md delete mode 100644 docs/sdks/plexapi/README.md delete mode 100644 docs/sdks/search/README.md delete mode 100644 docs/sdks/server/README.md delete mode 100644 docs/sdks/sessions/README.md delete mode 100644 docs/sdks/statistics/README.md delete mode 100644 docs/sdks/updater/README.md delete mode 100644 docs/sdks/video/README.md delete mode 100644 docs/sdks/watchlist/README.md delete mode 100644 gradle/wrapper/gradle-wrapper.jar delete mode 100644 gradle/wrapper/gradle-wrapper.properties delete mode 100755 gradlew delete mode 100755 gradlew.bat delete mode 100644 settings.gradle delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/Activities.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/Authentication.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/Butler.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/Hubs.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/Library.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/Log.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/Media.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/Playlists.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/Plex.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/PlexAPI.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/SDKConfiguration.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/Search.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/SecuritySource.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/Server.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/Sessions.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/Statistics.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/Updater.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/Video.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/Watchlist.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/hooks/SDKHooks.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/AddPlaylistContentsErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/AddPlaylistContentsResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/ApplyUpdatesErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/ApplyUpdatesResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/AuthException.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/CancelServerActivitiesErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/CancelServerActivitiesResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/CheckForUpdatesErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/CheckForUpdatesResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/ClearPlaylistContentsErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/ClearPlaylistContentsResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/CreatePlaylistErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/CreatePlaylistResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/DeleteLibraryErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/DeleteLibraryResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/DeletePlaylistErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/DeletePlaylistResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/EnablePaperTrailErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/EnablePaperTrailResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/Errors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetAvailableClientsErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetAvailableClientsResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetBandwidthStatisticsErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetBandwidthStatisticsResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetButlerTasksErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetButlerTasksResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetDevicesErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetDevicesResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetFileHashErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetFileHashResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetGlobalHubsErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetGlobalHubsResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetHomeDataErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetHomeDataResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibrariesErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibrariesResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryHubsErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryHubsResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryItemsErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryItemsResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMetadataChildrenErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMetadataChildrenResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMetadataErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMetadataResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMyPlexAccountErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMyPlexAccountResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetOnDeckErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetOnDeckResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPinErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPinResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistContentsErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistContentsResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistsErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistsResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetRecentlyAddedErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetRecentlyAddedResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetResizedPhotoErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetResizedPhotoResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetResourcesStatisticsErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetResourcesStatisticsResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSearchResultsErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSearchResultsResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerActivitiesErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerActivitiesResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerCapabilitiesResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerIdentityErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerIdentityResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerListErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerListResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerPreferencesErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerPreferencesResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSessionHistoryErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSessionHistoryResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSessionsErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSessionsResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSourceConnectionInformationErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSourceConnectionInformationResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetStatisticsErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetStatisticsResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTimelineErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTimelineResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTokenErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTokenResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTranscodeSessionsErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTranscodeSessionsResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTransientTokenErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTransientTokenResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetUpdateStatusErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetUpdateStatusResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetWatchlistErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/GetWatchlistResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/LogLineErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/LogLineResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/LogMultiLineErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/LogMultiLineResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/MarkPlayedErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/MarkPlayedResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/MarkUnplayedErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/MarkUnplayedResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/PerformSearchErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/PerformSearchResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/PerformVoiceSearchErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/PerformVoiceSearchResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/RefreshLibraryErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/RefreshLibraryResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/SDKError.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/SearchLibraryErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/SearchLibraryResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/StartAllTasksErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/StartAllTasksResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/StartTaskErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/StartTaskResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/StartUniversalTranscodeErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/StartUniversalTranscodeResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/StopAllTasksErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/StopAllTasksResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/StopTaskErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/StopTaskResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/StopTranscodeSessionErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/StopTranscodeSessionResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/UpdatePlayProgressErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/UpdatePlayProgressResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/UpdatePlaylistErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/UpdatePlaylistResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/UploadPlaylistErrors.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/errors/UploadPlaylistResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Account.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Activity.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsMediaContainer.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsMetadata.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/ApplyUpdatesRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/ApplyUpdatesRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/ApplyUpdatesResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/ButlerTask.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/ButlerTasks.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/CancelServerActivitiesRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/CancelServerActivitiesRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/CancelServerActivitiesResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/CheckForUpdatesRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/CheckForUpdatesRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/CheckForUpdatesResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/ClearPlaylistContentsRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/ClearPlaylistContentsRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/ClearPlaylistContentsResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Context.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Country.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistMediaContainer.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistMetadata.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/DeleteLibraryRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/DeleteLibraryRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/DeleteLibraryResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/DeletePlaylistRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/DeletePlaylistRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/DeletePlaylistResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Device.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Director.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Directory.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Download.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/EnablePaperTrailRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/EnablePaperTrailResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Field.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/FieldType.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Filter.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Force.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Genre.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetAvailableClientsMediaContainer.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetAvailableClientsRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetAvailableClientsResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetAvailableClientsResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsAccount.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsDevice.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsMediaContainer.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetButlerTasksRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetButlerTasksResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetButlerTasksResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetDevicesMediaContainer.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetDevicesRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetDevicesResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetDevicesResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetFileHashRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetFileHashRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetFileHashResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsMediaContainer.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsMetadata.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetHomeDataRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetHomeDataResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetHomeDataResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesDirectory.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesLocation.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesMediaContainer.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryDirectory.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryFilter.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsCountry.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsDirector.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsGenre.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsHub.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsMedia.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsMediaContainer.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsMetadata.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsPart.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsRole.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsWriter.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsCountry.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsDirector.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsGenre.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsMedia.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsMediaContainer.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsMetadata.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsPart.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsRole.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsWriter.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryMediaContainer.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryType.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenDirectory.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenMediaContainer.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenMetadata.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataCountry.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataDirector.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataGenre.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataMedia.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataMediaContainer.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataMetadata.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataPart.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataRole.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataWriter.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMyPlexAccountRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMyPlexAccountResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMyPlexAccountResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckGuids.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckMedia.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckMediaContainer.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckMetadata.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckPart.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckStream.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPinRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPinRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPinResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPinResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsCountry.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsDirector.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsGenre.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsMedia.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsMediaContainer.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsMetadata.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsPart.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsRole.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsWriter.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistMediaContainer.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistMetadata.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsMediaContainer.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsMetadata.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetRecentlyAddedMediaContainer.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetRecentlyAddedMetadata.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetRecentlyAddedRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetRecentlyAddedResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetRecentlyAddedResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResizedPhotoRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResizedPhotoRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResizedPhotoResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsMediaContainer.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsCountry.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsDirector.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsGenre.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsMedia.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsMediaContainer.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsMetadata.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsPart.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsRole.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsWriter.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerActivitiesMediaContainer.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerActivitiesRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerActivitiesResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerActivitiesResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerCapabilitiesRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerCapabilitiesResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerCapabilitiesResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerIdentityMediaContainer.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerIdentityRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerIdentityResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerIdentityResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerListMediaContainer.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerListRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerListResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerListResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerListServer.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerPreferencesMediaContainer.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerPreferencesRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerPreferencesResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerPreferencesResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryMediaContainer.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryMetadata.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsMedia.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsMediaContainer.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsMetadata.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsPart.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsStream.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsUser.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSourceConnectionInformationRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSourceConnectionInformationRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSourceConnectionInformationResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsDevice.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsMediaContainer.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTimelineRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTimelineRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTimelineResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTokenLocation.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTokenRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTokenRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTokenResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTokenResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentCountry.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentGenre.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentGuids.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentMediaContainer.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentMetadata.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentRole.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTranscodeSessionsMediaContainer.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTranscodeSessionsRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTranscodeSessionsResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTranscodeSessionsResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTransientTokenQueryParamType.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTransientTokenRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTransientTokenRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTransientTokenResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetUpdateStatusMediaContainer.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetUpdateStatusRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetUpdateStatusResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetUpdateStatusResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetWatchlistRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetWatchlistRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetWatchlistResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/GetWatchlistResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Guids.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Hub.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Image.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/IncludeCollections.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/IncludeDetails.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/IncludeExternalMedia.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Level.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/LibrarySectionID.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Libtype.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Location.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/LogLineRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/LogLineRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/LogLineResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/LogMultiLineRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/LogMultiLineResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkPlayedRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkPlayedRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkPlayedResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkUnplayedRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkUnplayedRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkUnplayedResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Media.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/MediaContainer.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Metadata.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/MinSize.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/MyPlex.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/OnlyTransient.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Operator.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Part.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/PathParamFilter.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/PathParamTaskName.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformSearchRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformSearchRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformSearchResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformVoiceSearchRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformVoiceSearchRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformVoiceSearchResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Player.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/PlaylistType.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Producer.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Provider.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/QueryParamOnlyTransient.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/QueryParamSmart.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/QueryParamType.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Ratings.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/RefreshLibraryRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/RefreshLibraryRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/RefreshLibraryResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Release.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Role.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/SDKMethodInterfaces.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Scope.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryMediaContainer.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryMetadata.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryResponseBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Server.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Session.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Setting.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Skip.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Smart.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Sort.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/StartAllTasksRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/StartAllTasksResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/StartTaskRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/StartTaskRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/StartTaskResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/StartUniversalTranscodeRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/StartUniversalTranscodeRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/StartUniversalTranscodeResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/State.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/StatisticsBandwidth.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/StatisticsMedia.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/StatisticsResources.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/StopAllTasksRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/StopAllTasksResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTaskRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTaskRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTaskResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTranscodeSessionRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTranscodeSessionRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTranscodeSessionResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Stream.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Tag.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/TaskName.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Tonight.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/TranscodeSession.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Type.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlayProgressRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlayProgressRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlayProgressResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlaylistRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlaylistRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlaylistResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/UploadPlaylistRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/UploadPlaylistRequestBuilder.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/UploadPlaylistResponse.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Upscale.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/User.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/operations/Writer.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/models/shared/Security.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/utils/BackoffStrategy.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/utils/BigDecimalString.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/utils/BigIntegerString.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/utils/Deserializers.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/utils/EventStream.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/utils/EventStreamLineReader.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/utils/EventStreamMessage.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/utils/EventStreamReader.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/utils/FormMetadata.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/utils/HTTPClient.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/utils/HTTPRequest.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/utils/HeaderMetadata.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/utils/Helpers.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/utils/Hook.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/utils/Hooks.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/utils/JSON.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/utils/LazySingletonValue.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/utils/Metadata.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/utils/MultipartFormMetadata.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/utils/OneOfDeserializer.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/utils/Options.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/utils/PathParamsMetadata.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/utils/QueryParameters.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/utils/QueryParamsMetadata.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/utils/RequestBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/utils/RequestMetadata.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/utils/Response.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/utils/Retries.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/utils/RetryConfig.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/utils/Security.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/utils/SecurityMetadata.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/utils/SerializedBody.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/utils/SpeakeasyHTTPClient.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/utils/SpeakeasyMetadata.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/utils/TypedObject.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/utils/Types.java delete mode 100644 src/main/java/lukehagar/plexapi/plexapi/utils/Utils.java diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 15532825..00000000 --- a/.gitattributes +++ /dev/null @@ -1,12 +0,0 @@ -# -# https://help.github.com/articles/dealing-with-line-endings/ -# -# Linux start script should use lf -/gradlew text eol=lf - -# These are Windows script files and should use crlf -*.bat text eol=crlf - -# This allows generated code to be indexed correctly -*.java linguist-generated=false - diff --git a/.gitignore b/.gitignore deleted file mode 100644 index df0a9853..00000000 --- a/.gitignore +++ /dev/null @@ -1,9 +0,0 @@ -# Ignore Gradle project-specific cache directory -.gradle -# Ignore Gradle build output directory -build -bin/ -# Ignore IDE-specific configs -.project -.settings/ -.DS_Store diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock deleted file mode 100755 index 3e24bfaa..00000000 --- a/.speakeasy/gen.lock +++ /dev/null @@ -1,1072 +0,0 @@ -lockVersion: 2.0.0 -id: d74213ba-4eeb-4de9-a309-6b70cf5c4bd4 -management: - docChecksum: e73920abd3a55e8d249592f2e3090574 - docVersion: 0.0.3 - speakeasyVersion: 1.323.0 - generationVersion: 2.356.0 - releaseVersion: 0.1.1 - configChecksum: 32d07b03c4a1b8364852e49423957f33 -features: - java: - additionalDependencies: 0.1.0 - constsAndDefaults: 0.1.1 - core: 3.26.1 - flattening: 2.81.1 - globalSecurity: 2.82.5 - globalSecurityCallbacks: 0.1.0 - globalSecurityFlattening: 0.1.0 - globalServerURLs: 2.82.1 - globals: 2.82.1 - methodServerURLs: 2.82.1 - nameOverrides: 2.81.3 - nullables: 0.1.0 - sdkHooks: 0.1.0 - typeOverrides: 2.81.1 - unions: 0.0.4 -generatedFiles: - - src/main/java/lukehagar/plexapi/plexapi/SecuritySource.java - - src/main/java/lukehagar/plexapi/plexapi/SDKConfiguration.java - - src/main/java/lukehagar/plexapi/plexapi/Server.java - - src/main/java/lukehagar/plexapi/plexapi/Media.java - - src/main/java/lukehagar/plexapi/plexapi/Video.java - - src/main/java/lukehagar/plexapi/plexapi/Activities.java - - src/main/java/lukehagar/plexapi/plexapi/Butler.java - - src/main/java/lukehagar/plexapi/plexapi/Plex.java - - src/main/java/lukehagar/plexapi/plexapi/Hubs.java - - src/main/java/lukehagar/plexapi/plexapi/Search.java - - src/main/java/lukehagar/plexapi/plexapi/Library.java - - src/main/java/lukehagar/plexapi/plexapi/Log.java - - src/main/java/lukehagar/plexapi/plexapi/Playlists.java - - src/main/java/lukehagar/plexapi/plexapi/Authentication.java - - src/main/java/lukehagar/plexapi/plexapi/Statistics.java - - src/main/java/lukehagar/plexapi/plexapi/Sessions.java - - src/main/java/lukehagar/plexapi/plexapi/Updater.java - - src/main/java/lukehagar/plexapi/plexapi/Watchlist.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerCapabilitiesRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerPreferencesRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetAvailableClientsRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetDevicesRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerIdentityRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMyPlexAccountRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResizedPhotoRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerListRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkPlayedRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkUnplayedRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlayProgressRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTimelineRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/StartUniversalTranscodeRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerActivitiesRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/CancelServerActivitiesRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetButlerTasksRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/StartAllTasksRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/StopAllTasksRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/StartTaskRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTaskRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetHomeDataRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPinRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTokenRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformSearchRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformVoiceSearchRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetFileHashRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetRecentlyAddedRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/DeleteLibraryRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/RefreshLibraryRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/LogLineRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/LogMultiLineRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/EnablePaperTrailRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/DeletePlaylistRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlaylistRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/ClearPlaylistContentsRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/UploadPlaylistRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTransientTokenRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSourceConnectionInformationRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTranscodeSessionsRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTranscodeSessionRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetUpdateStatusRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/CheckForUpdatesRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/ApplyUpdatesRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetWatchlistRequestBuilder.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/SDKMethodInterfaces.java - - src/main/java/lukehagar/plexapi/plexapi/PlexAPI.java - - .gitattributes - - build.gradle - - gradle/wrapper/gradle-wrapper.jar - - gradle/wrapper/gradle-wrapper.properties - - gradlew - - gradlew.bat - - settings.gradle - - src/main/java/lukehagar/plexapi/plexapi/utils/BackoffStrategy.java - - src/main/java/lukehagar/plexapi/plexapi/utils/BigDecimalString.java - - src/main/java/lukehagar/plexapi/plexapi/utils/BigIntegerString.java - - src/main/java/lukehagar/plexapi/plexapi/utils/Deserializers.java - - src/main/java/lukehagar/plexapi/plexapi/utils/EventStream.java - - src/main/java/lukehagar/plexapi/plexapi/utils/EventStreamLineReader.java - - src/main/java/lukehagar/plexapi/plexapi/utils/EventStreamMessage.java - - src/main/java/lukehagar/plexapi/plexapi/utils/EventStreamReader.java - - src/main/java/lukehagar/plexapi/plexapi/utils/FormMetadata.java - - src/main/java/lukehagar/plexapi/plexapi/utils/HTTPClient.java - - src/main/java/lukehagar/plexapi/plexapi/utils/HTTPRequest.java - - src/main/java/lukehagar/plexapi/plexapi/utils/HeaderMetadata.java - - src/main/java/lukehagar/plexapi/plexapi/utils/Helpers.java - - src/main/java/lukehagar/plexapi/plexapi/utils/Hook.java - - src/main/java/lukehagar/plexapi/plexapi/utils/Hooks.java - - src/main/java/lukehagar/plexapi/plexapi/utils/JSON.java - - src/main/java/lukehagar/plexapi/plexapi/utils/LazySingletonValue.java - - src/main/java/lukehagar/plexapi/plexapi/utils/Metadata.java - - src/main/java/lukehagar/plexapi/plexapi/utils/MultipartFormMetadata.java - - src/main/java/lukehagar/plexapi/plexapi/utils/OneOfDeserializer.java - - src/main/java/lukehagar/plexapi/plexapi/utils/Options.java - - src/main/java/lukehagar/plexapi/plexapi/utils/PathParamsMetadata.java - - src/main/java/lukehagar/plexapi/plexapi/utils/QueryParameters.java - - src/main/java/lukehagar/plexapi/plexapi/utils/QueryParamsMetadata.java - - src/main/java/lukehagar/plexapi/plexapi/utils/RequestBody.java - - src/main/java/lukehagar/plexapi/plexapi/utils/RequestMetadata.java - - src/main/java/lukehagar/plexapi/plexapi/utils/Response.java - - src/main/java/lukehagar/plexapi/plexapi/utils/Retries.java - - src/main/java/lukehagar/plexapi/plexapi/utils/RetryConfig.java - - src/main/java/lukehagar/plexapi/plexapi/utils/Security.java - - src/main/java/lukehagar/plexapi/plexapi/utils/SecurityMetadata.java - - src/main/java/lukehagar/plexapi/plexapi/utils/SerializedBody.java - - src/main/java/lukehagar/plexapi/plexapi/utils/SpeakeasyHTTPClient.java - - src/main/java/lukehagar/plexapi/plexapi/utils/SpeakeasyMetadata.java - - src/main/java/lukehagar/plexapi/plexapi/utils/TypedObject.java - - src/main/java/lukehagar/plexapi/plexapi/utils/Types.java - - src/main/java/lukehagar/plexapi/plexapi/utils/Utils.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/AuthException.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/SDKError.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Directory.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/MediaContainer.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerCapabilitiesResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerCapabilitiesResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Setting.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerPreferencesMediaContainer.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerPreferencesResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerPreferencesResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Server.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetAvailableClientsMediaContainer.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetAvailableClientsResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetAvailableClientsResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Device.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetDevicesMediaContainer.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetDevicesResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetDevicesResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerIdentityMediaContainer.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerIdentityResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerIdentityResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/MyPlex.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMyPlexAccountResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMyPlexAccountResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/MinSize.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Upscale.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResizedPhotoRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResizedPhotoResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerListServer.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerListMediaContainer.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerListResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerListResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkPlayedRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkPlayedResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkUnplayedRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkUnplayedResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlayProgressRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlayProgressResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/State.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTimelineRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTimelineResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/StartUniversalTranscodeRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/StartUniversalTranscodeResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Context.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Activity.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerActivitiesMediaContainer.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerActivitiesResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerActivitiesResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/CancelServerActivitiesRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/CancelServerActivitiesResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/ButlerTask.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/ButlerTasks.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetButlerTasksResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetButlerTasksResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/StartAllTasksResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/StopAllTasksResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/TaskName.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/StartTaskRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/StartTaskResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/PathParamTaskName.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTaskRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTaskResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetHomeDataResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetHomeDataResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPinRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Location.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPinResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPinResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTokenRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTokenLocation.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTokenResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTokenResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/OnlyTransient.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsMetadata.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Hub.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsMediaContainer.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/QueryParamOnlyTransient.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsPart.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsMedia.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsGenre.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsCountry.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsDirector.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsRole.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsWriter.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsMetadata.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsHub.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsMediaContainer.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformSearchRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformSearchResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformVoiceSearchRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformVoiceSearchResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsPart.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsMedia.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsGenre.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsDirector.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsWriter.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsCountry.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsRole.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsMetadata.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Provider.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsMediaContainer.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetFileHashRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetFileHashResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Part.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Media.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Genre.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Director.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Writer.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Country.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Role.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetRecentlyAddedMetadata.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetRecentlyAddedMediaContainer.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetRecentlyAddedResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetRecentlyAddedResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesLocation.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesDirectory.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesMediaContainer.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/IncludeDetails.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryDirectory.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryFilter.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Sort.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Field.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryType.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Operator.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/FieldType.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryMediaContainer.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/DeleteLibraryRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/DeleteLibraryResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Tag.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/LibrarySectionID.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsPart.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsMedia.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsGenre.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsCountry.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsDirector.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsWriter.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsRole.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsMetadata.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsMediaContainer.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/RefreshLibraryRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/RefreshLibraryResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Type.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryMetadata.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryMediaContainer.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Stream.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataPart.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataMedia.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataGenre.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataCountry.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Guids.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Ratings.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataDirector.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataWriter.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataRole.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Producer.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataMetadata.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataMediaContainer.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenDirectory.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenMetadata.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenMediaContainer.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentGenre.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentCountry.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentGuids.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentRole.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/User.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentMetadata.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentMediaContainer.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckStream.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckPart.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckMedia.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckGuids.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckMetadata.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckMediaContainer.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Level.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/LogLineRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/LogLineResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/LogMultiLineResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/EnablePaperTrailResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/QueryParamType.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Smart.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistMetadata.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistMediaContainer.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/PlaylistType.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/QueryParamSmart.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsMetadata.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsMediaContainer.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistMetadata.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistMediaContainer.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/DeletePlaylistRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/DeletePlaylistResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlaylistRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlaylistResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsPart.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsMedia.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsGenre.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsCountry.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsDirector.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsWriter.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsRole.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsMetadata.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsMediaContainer.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/ClearPlaylistContentsRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/ClearPlaylistContentsResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsMetadata.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsMediaContainer.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Force.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/UploadPlaylistRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/UploadPlaylistResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTransientTokenQueryParamType.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Scope.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTransientTokenRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTransientTokenResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSourceConnectionInformationRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSourceConnectionInformationResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsDevice.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Account.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/StatisticsMedia.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsMediaContainer.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/StatisticsResources.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsMediaContainer.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsDevice.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsAccount.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/StatisticsBandwidth.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsMediaContainer.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsStream.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsPart.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsMedia.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsUser.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Player.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Session.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsMetadata.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsMediaContainer.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Filter.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryMetadata.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryMediaContainer.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/TranscodeSession.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTranscodeSessionsMediaContainer.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTranscodeSessionsResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTranscodeSessionsResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTranscodeSessionRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTranscodeSessionResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Release.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetUpdateStatusMediaContainer.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetUpdateStatusResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetUpdateStatusResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Download.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/CheckForUpdatesRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/CheckForUpdatesResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Tonight.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Skip.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/ApplyUpdatesRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/ApplyUpdatesResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/PathParamFilter.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Libtype.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/IncludeCollections.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/IncludeExternalMedia.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetWatchlistRequest.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Image.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/Metadata.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetWatchlistResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/operations/GetWatchlistResponse.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/Errors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerCapabilitiesResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerPreferencesErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerPreferencesResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetAvailableClientsErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetAvailableClientsResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetDevicesErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetDevicesResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerIdentityErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerIdentityResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMyPlexAccountErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMyPlexAccountResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetResizedPhotoErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetResizedPhotoResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerListErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerListResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/MarkPlayedErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/MarkPlayedResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/MarkUnplayedErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/MarkUnplayedResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/UpdatePlayProgressErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/UpdatePlayProgressResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTimelineErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTimelineResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/StartUniversalTranscodeErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/StartUniversalTranscodeResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerActivitiesErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerActivitiesResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/CancelServerActivitiesErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/CancelServerActivitiesResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetButlerTasksErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetButlerTasksResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/StartAllTasksErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/StartAllTasksResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/StopAllTasksErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/StopAllTasksResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/StartTaskErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/StartTaskResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/StopTaskErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/StopTaskResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetHomeDataErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetHomeDataResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPinErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPinResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTokenErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTokenResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetGlobalHubsErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetGlobalHubsResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryHubsErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryHubsResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/PerformSearchErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/PerformSearchResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/PerformVoiceSearchErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/PerformVoiceSearchResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSearchResultsErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSearchResultsResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetFileHashErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetFileHashResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetRecentlyAddedErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetRecentlyAddedResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibrariesErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibrariesResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/DeleteLibraryErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/DeleteLibraryResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryItemsErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryItemsResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/RefreshLibraryErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/RefreshLibraryResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/SearchLibraryErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/SearchLibraryResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMetadataErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMetadataResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMetadataChildrenErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMetadataChildrenResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetOnDeckErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetOnDeckResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/LogLineErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/LogLineResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/LogMultiLineErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/LogMultiLineResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/EnablePaperTrailErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/EnablePaperTrailResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/CreatePlaylistErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/CreatePlaylistResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistsErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistsResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/DeletePlaylistErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/DeletePlaylistResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/UpdatePlaylistErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/UpdatePlaylistResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistContentsErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistContentsResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/ClearPlaylistContentsErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/ClearPlaylistContentsResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/AddPlaylistContentsErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/AddPlaylistContentsResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/UploadPlaylistErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/UploadPlaylistResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTransientTokenErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTransientTokenResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSourceConnectionInformationErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSourceConnectionInformationResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetStatisticsErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetStatisticsResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetResourcesStatisticsErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetResourcesStatisticsResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetBandwidthStatisticsErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetBandwidthStatisticsResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSessionsErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSessionsResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSessionHistoryErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSessionHistoryResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTranscodeSessionsErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTranscodeSessionsResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/StopTranscodeSessionErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/StopTranscodeSessionResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetUpdateStatusErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetUpdateStatusResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/CheckForUpdatesErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/CheckForUpdatesResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/ApplyUpdatesErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/ApplyUpdatesResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetWatchlistErrors.java - - src/main/java/lukehagar/plexapi/plexapi/models/errors/GetWatchlistResponseBody.java - - src/main/java/lukehagar/plexapi/plexapi/models/shared/Security.java - - docs/models/operations/Directory.md - - docs/models/operations/MediaContainer.md - - docs/models/operations/GetServerCapabilitiesResponseBody.md - - docs/models/operations/GetServerCapabilitiesResponse.md - - docs/models/operations/Setting.md - - docs/models/operations/GetServerPreferencesMediaContainer.md - - docs/models/operations/GetServerPreferencesResponseBody.md - - docs/models/operations/GetServerPreferencesResponse.md - - docs/models/operations/Server.md - - docs/models/operations/GetAvailableClientsMediaContainer.md - - docs/models/operations/GetAvailableClientsResponseBody.md - - docs/models/operations/GetAvailableClientsResponse.md - - docs/models/operations/Device.md - - docs/models/operations/GetDevicesMediaContainer.md - - docs/models/operations/GetDevicesResponseBody.md - - docs/models/operations/GetDevicesResponse.md - - docs/models/operations/GetServerIdentityMediaContainer.md - - docs/models/operations/GetServerIdentityResponseBody.md - - docs/models/operations/GetServerIdentityResponse.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/GetResizedPhotoResponse.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/MarkPlayedResponse.md - - docs/models/operations/MarkUnplayedRequest.md - - docs/models/operations/MarkUnplayedResponse.md - - docs/models/operations/UpdatePlayProgressRequest.md - - docs/models/operations/UpdatePlayProgressResponse.md - - docs/models/operations/State.md - - docs/models/operations/GetTimelineRequest.md - - docs/models/operations/GetTimelineResponse.md - - docs/models/operations/StartUniversalTranscodeRequest.md - - docs/models/operations/StartUniversalTranscodeResponse.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/CancelServerActivitiesResponse.md - - docs/models/operations/ButlerTask.md - - docs/models/operations/ButlerTasks.md - - docs/models/operations/GetButlerTasksResponseBody.md - - docs/models/operations/GetButlerTasksResponse.md - - docs/models/operations/StartAllTasksResponse.md - - docs/models/operations/StopAllTasksResponse.md - - docs/models/operations/TaskName.md - - docs/models/operations/StartTaskRequest.md - - docs/models/operations/StartTaskResponse.md - - docs/models/operations/PathParamTaskName.md - - docs/models/operations/StopTaskRequest.md - - docs/models/operations/StopTaskResponse.md - - docs/models/operations/GetHomeDataResponseBody.md - - docs/models/operations/GetHomeDataResponse.md - - docs/models/operations/GetPinRequest.md - - docs/models/operations/Location.md - - docs/models/operations/GetPinResponseBody.md - - docs/models/operations/GetPinResponse.md - - docs/models/operations/GetTokenRequest.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/GetGlobalHubsMetadata.md - - docs/models/operations/Hub.md - - docs/models/operations/GetGlobalHubsMediaContainer.md - - docs/models/operations/GetGlobalHubsResponseBody.md - - docs/models/operations/GetGlobalHubsResponse.md - - docs/models/operations/QueryParamOnlyTransient.md - - docs/models/operations/GetLibraryHubsRequest.md - - docs/models/operations/GetLibraryHubsPart.md - - docs/models/operations/GetLibraryHubsMedia.md - - docs/models/operations/GetLibraryHubsGenre.md - - docs/models/operations/GetLibraryHubsCountry.md - - docs/models/operations/GetLibraryHubsDirector.md - - docs/models/operations/GetLibraryHubsRole.md - - docs/models/operations/GetLibraryHubsWriter.md - - docs/models/operations/GetLibraryHubsMetadata.md - - docs/models/operations/GetLibraryHubsHub.md - - docs/models/operations/GetLibraryHubsMediaContainer.md - - docs/models/operations/GetLibraryHubsResponseBody.md - - docs/models/operations/GetLibraryHubsResponse.md - - docs/models/operations/PerformSearchRequest.md - - docs/models/operations/PerformSearchResponse.md - - docs/models/operations/PerformVoiceSearchRequest.md - - docs/models/operations/PerformVoiceSearchResponse.md - - docs/models/operations/GetSearchResultsRequest.md - - docs/models/operations/GetSearchResultsPart.md - - docs/models/operations/GetSearchResultsMedia.md - - docs/models/operations/GetSearchResultsGenre.md - - docs/models/operations/GetSearchResultsDirector.md - - docs/models/operations/GetSearchResultsWriter.md - - docs/models/operations/GetSearchResultsCountry.md - - docs/models/operations/GetSearchResultsRole.md - - docs/models/operations/GetSearchResultsMetadata.md - - docs/models/operations/Provider.md - - docs/models/operations/GetSearchResultsMediaContainer.md - - docs/models/operations/GetSearchResultsResponseBody.md - - docs/models/operations/GetSearchResultsResponse.md - - docs/models/operations/GetFileHashRequest.md - - docs/models/operations/GetFileHashResponse.md - - docs/models/operations/Part.md - - docs/models/operations/Media.md - - docs/models/operations/Genre.md - - docs/models/operations/Director.md - - docs/models/operations/Writer.md - - docs/models/operations/Country.md - - docs/models/operations/Role.md - - docs/models/operations/GetRecentlyAddedMetadata.md - - docs/models/operations/GetRecentlyAddedMediaContainer.md - - docs/models/operations/GetRecentlyAddedResponseBody.md - - docs/models/operations/GetRecentlyAddedResponse.md - - docs/models/operations/GetLibrariesLocation.md - - docs/models/operations/GetLibrariesDirectory.md - - docs/models/operations/GetLibrariesMediaContainer.md - - docs/models/operations/GetLibrariesResponseBody.md - - docs/models/operations/GetLibrariesResponse.md - - docs/models/operations/IncludeDetails.md - - docs/models/operations/GetLibraryRequest.md - - docs/models/operations/GetLibraryDirectory.md - - docs/models/operations/GetLibraryFilter.md - - docs/models/operations/Sort.md - - docs/models/operations/Field.md - - docs/models/operations/GetLibraryType.md - - docs/models/operations/Operator.md - - docs/models/operations/FieldType.md - - docs/models/operations/GetLibraryMediaContainer.md - - docs/models/operations/GetLibraryResponseBody.md - - docs/models/operations/GetLibraryResponse.md - - docs/models/operations/DeleteLibraryRequest.md - - docs/models/operations/DeleteLibraryResponse.md - - docs/models/operations/Tag.md - - docs/models/operations/GetLibraryItemsRequest.md - - docs/models/operations/LibrarySectionID.md - - docs/models/operations/GetLibraryItemsPart.md - - docs/models/operations/GetLibraryItemsMedia.md - - docs/models/operations/GetLibraryItemsGenre.md - - docs/models/operations/GetLibraryItemsCountry.md - - docs/models/operations/GetLibraryItemsDirector.md - - docs/models/operations/GetLibraryItemsWriter.md - - docs/models/operations/GetLibraryItemsRole.md - - docs/models/operations/GetLibraryItemsMetadata.md - - docs/models/operations/GetLibraryItemsMediaContainer.md - - docs/models/operations/GetLibraryItemsResponseBody.md - - docs/models/operations/GetLibraryItemsResponse.md - - docs/models/operations/RefreshLibraryRequest.md - - docs/models/operations/RefreshLibraryResponse.md - - docs/models/operations/Type.md - - docs/models/operations/SearchLibraryRequest.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/Stream.md - - docs/models/operations/GetMetadataPart.md - - docs/models/operations/GetMetadataMedia.md - - docs/models/operations/GetMetadataGenre.md - - docs/models/operations/GetMetadataCountry.md - - docs/models/operations/Guids.md - - docs/models/operations/Ratings.md - - docs/models/operations/GetMetadataDirector.md - - docs/models/operations/GetMetadataWriter.md - - docs/models/operations/GetMetadataRole.md - - docs/models/operations/Producer.md - - docs/models/operations/GetMetadataMetadata.md - - docs/models/operations/GetMetadataMediaContainer.md - - docs/models/operations/GetMetadataResponseBody.md - - docs/models/operations/GetMetadataResponse.md - - docs/models/operations/GetMetadataChildrenRequest.md - - docs/models/operations/GetMetadataChildrenDirectory.md - - docs/models/operations/GetMetadataChildrenMetadata.md - - docs/models/operations/GetMetadataChildrenMediaContainer.md - - docs/models/operations/GetMetadataChildrenResponseBody.md - - docs/models/operations/GetMetadataChildrenResponse.md - - docs/models/operations/GetTopWatchedContentRequest.md - - docs/models/operations/GetTopWatchedContentGenre.md - - docs/models/operations/GetTopWatchedContentCountry.md - - docs/models/operations/GetTopWatchedContentGuids.md - - docs/models/operations/GetTopWatchedContentRole.md - - docs/models/operations/User.md - - docs/models/operations/GetTopWatchedContentMetadata.md - - docs/models/operations/GetTopWatchedContentMediaContainer.md - - docs/models/operations/GetTopWatchedContentResponseBody.md - - docs/models/operations/GetTopWatchedContentResponse.md - - docs/models/operations/GetOnDeckStream.md - - docs/models/operations/GetOnDeckPart.md - - docs/models/operations/GetOnDeckMedia.md - - docs/models/operations/GetOnDeckGuids.md - - docs/models/operations/GetOnDeckMetadata.md - - docs/models/operations/GetOnDeckMediaContainer.md - - docs/models/operations/GetOnDeckResponseBody.md - - docs/models/operations/GetOnDeckResponse.md - - docs/models/operations/Level.md - - docs/models/operations/LogLineRequest.md - - docs/models/operations/LogLineResponse.md - - docs/models/operations/LogMultiLineResponse.md - - docs/models/operations/EnablePaperTrailResponse.md - - docs/models/operations/QueryParamType.md - - docs/models/operations/Smart.md - - docs/models/operations/CreatePlaylistRequest.md - - docs/models/operations/CreatePlaylistMetadata.md - - docs/models/operations/CreatePlaylistMediaContainer.md - - docs/models/operations/CreatePlaylistResponseBody.md - - docs/models/operations/CreatePlaylistResponse.md - - docs/models/operations/PlaylistType.md - - docs/models/operations/QueryParamSmart.md - - docs/models/operations/GetPlaylistsRequest.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/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/DeletePlaylistResponse.md - - docs/models/operations/UpdatePlaylistRequest.md - - docs/models/operations/UpdatePlaylistResponse.md - - docs/models/operations/GetPlaylistContentsRequest.md - - docs/models/operations/GetPlaylistContentsPart.md - - docs/models/operations/GetPlaylistContentsMedia.md - - docs/models/operations/GetPlaylistContentsGenre.md - - docs/models/operations/GetPlaylistContentsCountry.md - - docs/models/operations/GetPlaylistContentsDirector.md - - docs/models/operations/GetPlaylistContentsWriter.md - - docs/models/operations/GetPlaylistContentsRole.md - - docs/models/operations/GetPlaylistContentsMetadata.md - - docs/models/operations/GetPlaylistContentsMediaContainer.md - - docs/models/operations/GetPlaylistContentsResponseBody.md - - docs/models/operations/GetPlaylistContentsResponse.md - - docs/models/operations/ClearPlaylistContentsRequest.md - - docs/models/operations/ClearPlaylistContentsResponse.md - - docs/models/operations/AddPlaylistContentsRequest.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/UploadPlaylistResponse.md - - docs/models/operations/GetTransientTokenQueryParamType.md - - docs/models/operations/Scope.md - - docs/models/operations/GetTransientTokenRequest.md - - docs/models/operations/GetTransientTokenResponse.md - - docs/models/operations/GetSourceConnectionInformationRequest.md - - docs/models/operations/GetSourceConnectionInformationResponse.md - - docs/models/operations/GetStatisticsRequest.md - - docs/models/operations/GetStatisticsDevice.md - - docs/models/operations/Account.md - - docs/models/operations/StatisticsMedia.md - - docs/models/operations/GetStatisticsMediaContainer.md - - docs/models/operations/GetStatisticsResponseBody.md - - docs/models/operations/GetStatisticsResponse.md - - docs/models/operations/GetResourcesStatisticsRequest.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/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/GetSessionsStream.md - - docs/models/operations/GetSessionsPart.md - - docs/models/operations/GetSessionsMedia.md - - docs/models/operations/GetSessionsUser.md - - docs/models/operations/Player.md - - docs/models/operations/Session.md - - docs/models/operations/GetSessionsMetadata.md - - docs/models/operations/GetSessionsMediaContainer.md - - docs/models/operations/GetSessionsResponseBody.md - - docs/models/operations/GetSessionsResponse.md - - docs/models/operations/Filter.md - - docs/models/operations/GetSessionHistoryRequest.md - - docs/models/operations/GetSessionHistoryMetadata.md - - docs/models/operations/GetSessionHistoryMediaContainer.md - - docs/models/operations/GetSessionHistoryResponseBody.md - - docs/models/operations/GetSessionHistoryResponse.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/StopTranscodeSessionResponse.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/CheckForUpdatesResponse.md - - docs/models/operations/Tonight.md - - docs/models/operations/Skip.md - - docs/models/operations/ApplyUpdatesRequest.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/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/shared/Security.md - - docs/sdks/plexapi/README.md - - docs/sdks/server/README.md - - docs/sdks/media/README.md - - docs/sdks/video/README.md - - docs/sdks/activities/README.md - - docs/sdks/butler/README.md - - docs/sdks/plex/README.md - - docs/sdks/hubs/README.md - - docs/sdks/search/README.md - - docs/sdks/library/README.md - - docs/sdks/log/README.md - - docs/sdks/playlists/README.md - - docs/sdks/authentication/README.md - - docs/sdks/statistics/README.md - - docs/sdks/sessions/README.md - - docs/sdks/updater/README.md - - docs/sdks/watchlist/README.md - - USAGE.md diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock deleted file mode 100644 index f37ff555..00000000 --- a/.speakeasy/workflow.lock +++ /dev/null @@ -1,28 +0,0 @@ -speakeasyVersion: 1.323.0 -sources: - my-source: - sourceNamespace: my-source - sourceRevisionDigest: sha256:b4ee5010d8a55049aa655b056e12618e038d75f8a8381ec498e97a413cb9f0f9 - sourceBlobDigest: sha256:cb332c62f2f70662406a011c9561382d0721b12faf89259fcc8bd7c41ddd4faa - tags: - - latest -targets: - plexjava: - source: my-source - sourceNamespace: my-source - sourceRevisionDigest: sha256:b4ee5010d8a55049aa655b056e12618e038d75f8a8381ec498e97a413cb9f0f9 - sourceBlobDigest: sha256:cb332c62f2f70662406a011c9561382d0721b12faf89259fcc8bd7c41ddd4faa - outLocation: /home/luke/github/plexjava -workflow: - workflowVersion: 1.0.0 - speakeasyVersion: latest - sources: - my-source: - inputs: - - location: https://raw.githubusercontent.com/LukeHagar/plex-api-spec/main/plex-media-server-spec-dereferenced.yaml - registry: - location: registry.speakeasyapi.dev/lukehagar/lukehagar/my-source - targets: - plexjava: - target: java - source: my-source diff --git a/README.md b/README.md deleted file mode 100644 index b1597c58..00000000 --- a/README.md +++ /dev/null @@ -1,596 +0,0 @@ -# plexapi - -
- - - - -
- - -## SDK Installation - -### Getting started - -JDK 11 or later is required. - -The samples below show how a published SDK artifact is used: - -Gradle: -```groovy -implementation 'lukehagar.plexapi:plexapi:0.1.1' -``` - -Maven: -```xml - - lukehagar.plexapi - plexapi - 0.1.1 - -``` - -### How to build -After cloning the git repository to your file system you can build the SDK artifact from source to the `build` directory by running `./gradlew build` on *nix systems or `gradlew.bat` on Windows systems. - -If you wish to build from source and publish the SDK artifact to your local Maven repository (on your filesystem) then use the following command (after cloning the git repo locally): - -On *nix: -```bash -./gradlew publishToMavenLocal -Pskip.signing -``` -On Windows: -```bash -gradlew.bat publishToMavenLocal -Pskip.signing -``` - - - -## SDK Example Usage - -### Example - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities() - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetServerCapabilitiesResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - - - -## Available Resources and Operations - -### [server()](docs/sdks/server/README.md) - -* [getServerCapabilities](docs/sdks/server/README.md#getservercapabilities) - Get Server Capabilities -* [getServerPreferences](docs/sdks/server/README.md#getserverpreferences) - Get Server Preferences -* [getAvailableClients](docs/sdks/server/README.md#getavailableclients) - Get Available Clients -* [getDevices](docs/sdks/server/README.md#getdevices) - Get Devices -* [getServerIdentity](docs/sdks/server/README.md#getserveridentity) - Get Server Identity -* [getMyPlexAccount](docs/sdks/server/README.md#getmyplexaccount) - Get MyPlex Account -* [getResizedPhoto](docs/sdks/server/README.md#getresizedphoto) - Get a Resized Photo -* [getServerList](docs/sdks/server/README.md#getserverlist) - Get Server List - -### [media()](docs/sdks/media/README.md) - -* [markPlayed](docs/sdks/media/README.md#markplayed) - Mark Media Played -* [markUnplayed](docs/sdks/media/README.md#markunplayed) - Mark Media Unplayed -* [updatePlayProgress](docs/sdks/media/README.md#updateplayprogress) - Update Media Play Progress - -### [video()](docs/sdks/video/README.md) - -* [getTimeline](docs/sdks/video/README.md#gettimeline) - Get the timeline for a media item -* [startUniversalTranscode](docs/sdks/video/README.md#startuniversaltranscode) - Start Universal Transcode - -### [activities()](docs/sdks/activities/README.md) - -* [getServerActivities](docs/sdks/activities/README.md#getserveractivities) - Get Server Activities -* [cancelServerActivities](docs/sdks/activities/README.md#cancelserveractivities) - Cancel Server Activities - -### [butler()](docs/sdks/butler/README.md) - -* [getButlerTasks](docs/sdks/butler/README.md#getbutlertasks) - Get Butler tasks -* [startAllTasks](docs/sdks/butler/README.md#startalltasks) - Start all Butler tasks -* [stopAllTasks](docs/sdks/butler/README.md#stopalltasks) - Stop all Butler tasks -* [startTask](docs/sdks/butler/README.md#starttask) - Start a single Butler task -* [stopTask](docs/sdks/butler/README.md#stoptask) - Stop a single Butler task - -### [plex()](docs/sdks/plex/README.md) - -* [getHomeData](docs/sdks/plex/README.md#gethomedata) - Get Plex Home Data -* [getPin](docs/sdks/plex/README.md#getpin) - Get a Pin -* [getToken](docs/sdks/plex/README.md#gettoken) - Get Access Token - -### [hubs()](docs/sdks/hubs/README.md) - -* [getGlobalHubs](docs/sdks/hubs/README.md#getglobalhubs) - Get Global Hubs -* [getLibraryHubs](docs/sdks/hubs/README.md#getlibraryhubs) - Get library specific hubs - -### [search()](docs/sdks/search/README.md) - -* [performSearch](docs/sdks/search/README.md#performsearch) - Perform a search -* [performVoiceSearch](docs/sdks/search/README.md#performvoicesearch) - Perform a voice search -* [getSearchResults](docs/sdks/search/README.md#getsearchresults) - Get Search Results - -### [library()](docs/sdks/library/README.md) - -* [getFileHash](docs/sdks/library/README.md#getfilehash) - Get Hash Value -* [getRecentlyAdded](docs/sdks/library/README.md#getrecentlyadded) - Get Recently Added -* [getLibraries](docs/sdks/library/README.md#getlibraries) - Get All Libraries -* [getLibrary](docs/sdks/library/README.md#getlibrary) - Get Library Details -* [deleteLibrary](docs/sdks/library/README.md#deletelibrary) - Delete Library Section -* [getLibraryItems](docs/sdks/library/README.md#getlibraryitems) - Get Library Items -* [refreshLibrary](docs/sdks/library/README.md#refreshlibrary) - Refresh Library -* [searchLibrary](docs/sdks/library/README.md#searchlibrary) - Search Library -* [getMetadata](docs/sdks/library/README.md#getmetadata) - Get Items Metadata -* [getMetadataChildren](docs/sdks/library/README.md#getmetadatachildren) - Get Items Children -* [getTopWatchedContent](docs/sdks/library/README.md#gettopwatchedcontent) - Get Top Watched Content -* [getOnDeck](docs/sdks/library/README.md#getondeck) - Get On Deck - -### [log()](docs/sdks/log/README.md) - -* [logLine](docs/sdks/log/README.md#logline) - Logging a single line message. -* [logMultiLine](docs/sdks/log/README.md#logmultiline) - Logging a multi-line message -* [enablePaperTrail](docs/sdks/log/README.md#enablepapertrail) - Enabling Papertrail - -### [playlists()](docs/sdks/playlists/README.md) - -* [createPlaylist](docs/sdks/playlists/README.md#createplaylist) - Create a Playlist -* [getPlaylists](docs/sdks/playlists/README.md#getplaylists) - Get All Playlists -* [getPlaylist](docs/sdks/playlists/README.md#getplaylist) - Retrieve Playlist -* [deletePlaylist](docs/sdks/playlists/README.md#deleteplaylist) - Deletes a Playlist -* [updatePlaylist](docs/sdks/playlists/README.md#updateplaylist) - Update a Playlist -* [getPlaylistContents](docs/sdks/playlists/README.md#getplaylistcontents) - Retrieve Playlist Contents -* [clearPlaylistContents](docs/sdks/playlists/README.md#clearplaylistcontents) - Delete Playlist Contents -* [addPlaylistContents](docs/sdks/playlists/README.md#addplaylistcontents) - Adding to a Playlist -* [uploadPlaylist](docs/sdks/playlists/README.md#uploadplaylist) - Upload Playlist - -### [authentication()](docs/sdks/authentication/README.md) - -* [getTransientToken](docs/sdks/authentication/README.md#gettransienttoken) - Get a Transient Token. -* [getSourceConnectionInformation](docs/sdks/authentication/README.md#getsourceconnectioninformation) - Get Source Connection Information - -### [statistics()](docs/sdks/statistics/README.md) - -* [getStatistics](docs/sdks/statistics/README.md#getstatistics) - Get Media Statistics -* [getResourcesStatistics](docs/sdks/statistics/README.md#getresourcesstatistics) - Get Resources Statistics -* [getBandwidthStatistics](docs/sdks/statistics/README.md#getbandwidthstatistics) - Get Bandwidth Statistics - -### [sessions()](docs/sdks/sessions/README.md) - -* [getSessions](docs/sdks/sessions/README.md#getsessions) - Get Active Sessions -* [getSessionHistory](docs/sdks/sessions/README.md#getsessionhistory) - Get Session History -* [getTranscodeSessions](docs/sdks/sessions/README.md#gettranscodesessions) - Get Transcode Sessions -* [stopTranscodeSession](docs/sdks/sessions/README.md#stoptranscodesession) - Stop a Transcode Session - -### [updater()](docs/sdks/updater/README.md) - -* [getUpdateStatus](docs/sdks/updater/README.md#getupdatestatus) - Querying status of updates -* [checkForUpdates](docs/sdks/updater/README.md#checkforupdates) - Checking for updates -* [applyUpdates](docs/sdks/updater/README.md#applyupdates) - Apply Updates - -### [watchlist()](docs/sdks/watchlist/README.md) - -* [getWatchlist](docs/sdks/watchlist/README.md#getwatchlist) - Get User Watchlist - - - -## 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 - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .xPlexClientIdentifier("Postman") - .build(); - - GetPinResponse res = sdk.plex().getPin() - .strong(false) - .xPlexClientIdentifier("Postman") - .xPlexProduct("Postman") - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetPinResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - - - -## Error Handling - -Handling errors in this SDK should largely match your expectations. All operations return a response object or raise an error. If Error objects are specified in your OpenAPI Spec, the SDK will throw the appropriate Exception type. - -| Error Object | Status Code | Content Type | -| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | -| models/errors/GetServerCapabilitiesResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -### Example - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities() - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetServerCapabilitiesResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - - - -## Server Selection - -### Select Server by Index - -You can override the default server globally by passing a server index to the `serverIndex` builder method when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers: - -| # | Server | Variables | -| - | ------ | --------- | -| 0 | `{protocol}://{ip}:{port}` | `protocol` (default is `http`), `ip` (default is `10.10.10.47`), `port` (default is `32400`) | - -#### Example - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .serverIndex(0) - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities() - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetServerCapabilitiesResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -#### Variables - -Some of the server options above contain variables. If you want to set the values of those variables, the following optional parameters are available when initializing the SDK client instance: - * `ServerProtocol protocol` - * `String ip` - * `String port` - -### Override Server URL Per-Client - -The default server can also be overridden globally by passing a URL to the `serverURL` builder method when initializing the SDK client instance. For example: -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .serverURL("{protocol}://{ip}:{port}") - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities() - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetServerCapabilitiesResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Override Server URL Per-Operation - -The server URL can also be overridden on a per-operation basis, provided a server list was specified for the operation. For example: -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .xPlexClientIdentifier("Postman") - .build(); - - GetPinResponse res = sdk.plex().getPin() - .serverURL("https://plex.tv/api/v2") - .strong(false) - .xPlexClientIdentifier("Postman") - .xPlexProduct("Postman") - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetPinResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - - - -## Authentication - -### Per-Client Security Schemes - -This SDK supports the following security scheme globally: - -| Name | Type | Scheme | -| ------------- | ------------- | ------------- | -| `accessToken` | apiKey | API key | - -To authenticate with the API the `accessToken` parameter must be set when initializing the SDK client instance. For example: -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities() - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetServerCapabilitiesResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - - - - -# Development - -## Maturity - -This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage -to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally -looking for the latest version. - -## Contributions - -While we value open-source contributions to this SDK, this library is generated programmatically. Any manual changes added to internal files will be overwritten on the next generation. -We look forward to hearing your feedback. Feel free to open a PR or an issue with a proof of concept and we'll do our best to include it in a future release. - -### SDK Created by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks) diff --git a/USAGE.md b/USAGE.md deleted file mode 100644 index 26f5ab11..00000000 --- a/USAGE.md +++ /dev/null @@ -1,48 +0,0 @@ - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities() - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetServerCapabilitiesResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - \ No newline at end of file diff --git a/build-extras.gradle b/build-extras.gradle deleted file mode 100644 index e104d4f6..00000000 --- a/build-extras.gradle +++ /dev/null @@ -1,4 +0,0 @@ -// This file -// * is referred to in an `apply from` command in `build.gradle` -// * can be used to customise `build.gradle` -// * is generated once and not overwritten in SDK generation updates diff --git a/build.gradle b/build.gradle deleted file mode 100644 index c1b13ce2..00000000 --- a/build.gradle +++ /dev/null @@ -1,49 +0,0 @@ - -//////////////////////////////////////////////////////////////////////////////////////////// -// This file is generated by Speakeasy and any edits will be lost in generation updates. -// -// If you wish to customize this file then place those customizations in `build-extras.gradle` which -// is not touched by generation updates. -// -// Additions to the plugins block can be made by setting the `additionalPlugins` property (an array -// of string where each string value is an additional line in the block) in gen.yaml. -//////////////////////////////////////////////////////////////////////////////////////////// -plugins { - // Apply the java-library plugin for API and implementation separation. - id 'java-library' -} - -compileJava.options.encoding = "UTF-8" -compileJava.options.compilerArgs += '-Xlint:unchecked' -compileTestJava.options.encoding = "UTF-8" - -repositories { - // Use Maven Central for resolving dependencies. - mavenCentral() -} - -java { - sourceCompatibility = JavaVersion.VERSION_11 - targetCompatibility = JavaVersion.VERSION_11 - withSourcesJar() - withJavadocJar() -} - -tasks.withType(Javadoc) { - failOnError false - options.addStringOption('Xdoclint:none', '-quiet') -} - -dependencies { - implementation 'com.fasterxml.jackson.core:jackson-databind:2.17.0' - implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.17.0' - implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.17.0' - implementation 'org.openapitools:jackson-databind-nullable:0.2.6' - implementation 'org.apache.httpcomponents:httpclient:4.5.14' - implementation 'org.apache.httpcomponents:httpmime:4.5.14' - implementation 'commons-io:commons-io:2.15.1' -} - - - -apply from: 'build-extras.gradle' diff --git a/docs/models/errors/AddPlaylistContentsErrors.md b/docs/models/errors/AddPlaylistContentsErrors.md deleted file mode 100644 index 5ed8e032..00000000 --- a/docs/models/errors/AddPlaylistContentsErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# AddPlaylistContentsErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/AddPlaylistContentsResponseBody.md b/docs/models/errors/AddPlaylistContentsResponseBody.md deleted file mode 100644 index 80189d41..00000000 --- a/docs/models/errors/AddPlaylistContentsResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# AddPlaylistContentsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.AddPlaylistContentsErrors](../../models/errors/AddPlaylistContentsErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/ApplyUpdatesErrors.md b/docs/models/errors/ApplyUpdatesErrors.md deleted file mode 100644 index 19cd4331..00000000 --- a/docs/models/errors/ApplyUpdatesErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApplyUpdatesErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/ApplyUpdatesResponseBody.md b/docs/models/errors/ApplyUpdatesResponseBody.md deleted file mode 100644 index d54fb4ae..00000000 --- a/docs/models/errors/ApplyUpdatesResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApplyUpdatesResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.ApplyUpdatesErrors](../../models/errors/ApplyUpdatesErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/CancelServerActivitiesErrors.md b/docs/models/errors/CancelServerActivitiesErrors.md deleted file mode 100644 index 0fcd9628..00000000 --- a/docs/models/errors/CancelServerActivitiesErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# CancelServerActivitiesErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/CancelServerActivitiesResponseBody.md b/docs/models/errors/CancelServerActivitiesResponseBody.md deleted file mode 100644 index 943bcd26..00000000 --- a/docs/models/errors/CancelServerActivitiesResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# CancelServerActivitiesResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.CancelServerActivitiesErrors](../../models/errors/CancelServerActivitiesErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/CheckForUpdatesErrors.md b/docs/models/errors/CheckForUpdatesErrors.md deleted file mode 100644 index 297a8c05..00000000 --- a/docs/models/errors/CheckForUpdatesErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# CheckForUpdatesErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/CheckForUpdatesResponseBody.md b/docs/models/errors/CheckForUpdatesResponseBody.md deleted file mode 100644 index c8c37bdf..00000000 --- a/docs/models/errors/CheckForUpdatesResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# CheckForUpdatesResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.CheckForUpdatesErrors](../../models/errors/CheckForUpdatesErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/ClearPlaylistContentsErrors.md b/docs/models/errors/ClearPlaylistContentsErrors.md deleted file mode 100644 index d9c2ac1d..00000000 --- a/docs/models/errors/ClearPlaylistContentsErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# ClearPlaylistContentsErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/ClearPlaylistContentsResponseBody.md b/docs/models/errors/ClearPlaylistContentsResponseBody.md deleted file mode 100644 index ead31202..00000000 --- a/docs/models/errors/ClearPlaylistContentsResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# ClearPlaylistContentsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.ClearPlaylistContentsErrors](../../models/errors/ClearPlaylistContentsErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/CreatePlaylistErrors.md b/docs/models/errors/CreatePlaylistErrors.md deleted file mode 100644 index 61b09ce4..00000000 --- a/docs/models/errors/CreatePlaylistErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# CreatePlaylistErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/CreatePlaylistResponseBody.md b/docs/models/errors/CreatePlaylistResponseBody.md deleted file mode 100644 index 444279d9..00000000 --- a/docs/models/errors/CreatePlaylistResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# CreatePlaylistResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.CreatePlaylistErrors](../../models/errors/CreatePlaylistErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/DeleteLibraryErrors.md b/docs/models/errors/DeleteLibraryErrors.md deleted file mode 100644 index 5e742f91..00000000 --- a/docs/models/errors/DeleteLibraryErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# DeleteLibraryErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/DeleteLibraryResponseBody.md b/docs/models/errors/DeleteLibraryResponseBody.md deleted file mode 100644 index ea3431ce..00000000 --- a/docs/models/errors/DeleteLibraryResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# DeleteLibraryResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.DeleteLibraryErrors](../../models/errors/DeleteLibraryErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/DeletePlaylistErrors.md b/docs/models/errors/DeletePlaylistErrors.md deleted file mode 100644 index 0727ad0a..00000000 --- a/docs/models/errors/DeletePlaylistErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# DeletePlaylistErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/DeletePlaylistResponseBody.md b/docs/models/errors/DeletePlaylistResponseBody.md deleted file mode 100644 index 7770d0f6..00000000 --- a/docs/models/errors/DeletePlaylistResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# DeletePlaylistResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.DeletePlaylistErrors](../../models/errors/DeletePlaylistErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/EnablePaperTrailErrors.md b/docs/models/errors/EnablePaperTrailErrors.md deleted file mode 100644 index 77cfaab9..00000000 --- a/docs/models/errors/EnablePaperTrailErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# EnablePaperTrailErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/EnablePaperTrailResponseBody.md b/docs/models/errors/EnablePaperTrailResponseBody.md deleted file mode 100644 index 4aa29ce0..00000000 --- a/docs/models/errors/EnablePaperTrailResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# EnablePaperTrailResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.EnablePaperTrailErrors](../../models/errors/EnablePaperTrailErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/Errors.md b/docs/models/errors/Errors.md deleted file mode 100644 index 0ecfc540..00000000 --- a/docs/models/errors/Errors.md +++ /dev/null @@ -1,10 +0,0 @@ -# Errors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/GetAvailableClientsErrors.md b/docs/models/errors/GetAvailableClientsErrors.md deleted file mode 100644 index cf9be793..00000000 --- a/docs/models/errors/GetAvailableClientsErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetAvailableClientsErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/GetAvailableClientsResponseBody.md b/docs/models/errors/GetAvailableClientsResponseBody.md deleted file mode 100644 index b6bed79c..00000000 --- a/docs/models/errors/GetAvailableClientsResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetAvailableClientsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetAvailableClientsErrors](../../models/errors/GetAvailableClientsErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/GetBandwidthStatisticsErrors.md b/docs/models/errors/GetBandwidthStatisticsErrors.md deleted file mode 100644 index 141e81d7..00000000 --- a/docs/models/errors/GetBandwidthStatisticsErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetBandwidthStatisticsErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/GetBandwidthStatisticsResponseBody.md b/docs/models/errors/GetBandwidthStatisticsResponseBody.md deleted file mode 100644 index 61ce8fce..00000000 --- a/docs/models/errors/GetBandwidthStatisticsResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetBandwidthStatisticsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetBandwidthStatisticsErrors](../../models/errors/GetBandwidthStatisticsErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/GetButlerTasksErrors.md b/docs/models/errors/GetButlerTasksErrors.md deleted file mode 100644 index 2653e76d..00000000 --- a/docs/models/errors/GetButlerTasksErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetButlerTasksErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/GetButlerTasksResponseBody.md b/docs/models/errors/GetButlerTasksResponseBody.md deleted file mode 100644 index 409d7e99..00000000 --- a/docs/models/errors/GetButlerTasksResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetButlerTasksResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetButlerTasksErrors](../../models/errors/GetButlerTasksErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/GetDevicesErrors.md b/docs/models/errors/GetDevicesErrors.md deleted file mode 100644 index 5f3725c1..00000000 --- a/docs/models/errors/GetDevicesErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetDevicesErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/GetDevicesResponseBody.md b/docs/models/errors/GetDevicesResponseBody.md deleted file mode 100644 index 2d3a2c92..00000000 --- a/docs/models/errors/GetDevicesResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetDevicesResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetDevicesErrors](../../models/errors/GetDevicesErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/GetFileHashErrors.md b/docs/models/errors/GetFileHashErrors.md deleted file mode 100644 index 099a8ff1..00000000 --- a/docs/models/errors/GetFileHashErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetFileHashErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/GetFileHashResponseBody.md b/docs/models/errors/GetFileHashResponseBody.md deleted file mode 100644 index 6c1d33cd..00000000 --- a/docs/models/errors/GetFileHashResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetFileHashResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetFileHashErrors](../../models/errors/GetFileHashErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/GetGlobalHubsErrors.md b/docs/models/errors/GetGlobalHubsErrors.md deleted file mode 100644 index ef0e5901..00000000 --- a/docs/models/errors/GetGlobalHubsErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetGlobalHubsErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/GetGlobalHubsResponseBody.md b/docs/models/errors/GetGlobalHubsResponseBody.md deleted file mode 100644 index 1aee6f94..00000000 --- a/docs/models/errors/GetGlobalHubsResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetGlobalHubsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetGlobalHubsErrors](../../models/errors/GetGlobalHubsErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/GetHomeDataErrors.md b/docs/models/errors/GetHomeDataErrors.md deleted file mode 100644 index cb4b7f7a..00000000 --- a/docs/models/errors/GetHomeDataErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetHomeDataErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/GetHomeDataResponseBody.md b/docs/models/errors/GetHomeDataResponseBody.md deleted file mode 100644 index 1115e7af..00000000 --- a/docs/models/errors/GetHomeDataResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetHomeDataResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetHomeDataErrors](../../models/errors/GetHomeDataErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/GetLibrariesErrors.md b/docs/models/errors/GetLibrariesErrors.md deleted file mode 100644 index d8e4922c..00000000 --- a/docs/models/errors/GetLibrariesErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetLibrariesErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/GetLibrariesResponseBody.md b/docs/models/errors/GetLibrariesResponseBody.md deleted file mode 100644 index 87168f57..00000000 --- a/docs/models/errors/GetLibrariesResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetLibrariesResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetLibrariesErrors](../../models/errors/GetLibrariesErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/GetLibraryErrors.md b/docs/models/errors/GetLibraryErrors.md deleted file mode 100644 index 8f59e3e0..00000000 --- a/docs/models/errors/GetLibraryErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetLibraryErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/GetLibraryHubsErrors.md b/docs/models/errors/GetLibraryHubsErrors.md deleted file mode 100644 index 52347ca8..00000000 --- a/docs/models/errors/GetLibraryHubsErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetLibraryHubsErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/GetLibraryHubsResponseBody.md b/docs/models/errors/GetLibraryHubsResponseBody.md deleted file mode 100644 index d72d4476..00000000 --- a/docs/models/errors/GetLibraryHubsResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetLibraryHubsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetLibraryHubsErrors](../../models/errors/GetLibraryHubsErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/GetLibraryItemsErrors.md b/docs/models/errors/GetLibraryItemsErrors.md deleted file mode 100644 index 5c814a7e..00000000 --- a/docs/models/errors/GetLibraryItemsErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetLibraryItemsErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/GetLibraryItemsResponseBody.md b/docs/models/errors/GetLibraryItemsResponseBody.md deleted file mode 100644 index 5a2b744f..00000000 --- a/docs/models/errors/GetLibraryItemsResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetLibraryItemsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetLibraryItemsErrors](../../models/errors/GetLibraryItemsErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :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 deleted file mode 100644 index 355a29a1..00000000 --- a/docs/models/errors/GetLibraryResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetLibraryResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetLibraryErrors](../../models/errors/GetLibraryErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/GetMetadataChildrenErrors.md b/docs/models/errors/GetMetadataChildrenErrors.md deleted file mode 100644 index da08eb98..00000000 --- a/docs/models/errors/GetMetadataChildrenErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetMetadataChildrenErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/GetMetadataChildrenResponseBody.md b/docs/models/errors/GetMetadataChildrenResponseBody.md deleted file mode 100644 index 1f25880f..00000000 --- a/docs/models/errors/GetMetadataChildrenResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetMetadataChildrenResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetMetadataChildrenErrors](../../models/errors/GetMetadataChildrenErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/GetMetadataErrors.md b/docs/models/errors/GetMetadataErrors.md deleted file mode 100644 index 2fb701a8..00000000 --- a/docs/models/errors/GetMetadataErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetMetadataErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/GetMetadataResponseBody.md b/docs/models/errors/GetMetadataResponseBody.md deleted file mode 100644 index 06c4cd96..00000000 --- a/docs/models/errors/GetMetadataResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetMetadataResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetMetadataErrors](../../models/errors/GetMetadataErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/GetMyPlexAccountErrors.md b/docs/models/errors/GetMyPlexAccountErrors.md deleted file mode 100644 index fc56a31a..00000000 --- a/docs/models/errors/GetMyPlexAccountErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetMyPlexAccountErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/GetMyPlexAccountResponseBody.md b/docs/models/errors/GetMyPlexAccountResponseBody.md deleted file mode 100644 index 49115804..00000000 --- a/docs/models/errors/GetMyPlexAccountResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetMyPlexAccountResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetMyPlexAccountErrors](../../models/errors/GetMyPlexAccountErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/GetOnDeckErrors.md b/docs/models/errors/GetOnDeckErrors.md deleted file mode 100644 index bca5321d..00000000 --- a/docs/models/errors/GetOnDeckErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetOnDeckErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/GetOnDeckResponseBody.md b/docs/models/errors/GetOnDeckResponseBody.md deleted file mode 100644 index e5c1ad89..00000000 --- a/docs/models/errors/GetOnDeckResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetOnDeckResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetOnDeckErrors](../../models/errors/GetOnDeckErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/GetPinErrors.md b/docs/models/errors/GetPinErrors.md deleted file mode 100644 index fe709c81..00000000 --- a/docs/models/errors/GetPinErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetPinErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1000 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/models/errors/GetPinResponseBody.md b/docs/models/errors/GetPinResponseBody.md deleted file mode 100644 index 3489784b..00000000 --- a/docs/models/errors/GetPinResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetPinResponseBody - -X-Plex-Client-Identifier is missing - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetPinErrors](../../models/errors/GetPinErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/GetPlaylistContentsErrors.md b/docs/models/errors/GetPlaylistContentsErrors.md deleted file mode 100644 index 7f62a042..00000000 --- a/docs/models/errors/GetPlaylistContentsErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetPlaylistContentsErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/GetPlaylistContentsResponseBody.md b/docs/models/errors/GetPlaylistContentsResponseBody.md deleted file mode 100644 index 6af4e429..00000000 --- a/docs/models/errors/GetPlaylistContentsResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetPlaylistContentsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetPlaylistContentsErrors](../../models/errors/GetPlaylistContentsErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/GetPlaylistErrors.md b/docs/models/errors/GetPlaylistErrors.md deleted file mode 100644 index 1b861143..00000000 --- a/docs/models/errors/GetPlaylistErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetPlaylistErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/GetPlaylistResponseBody.md b/docs/models/errors/GetPlaylistResponseBody.md deleted file mode 100644 index ef8fbc6d..00000000 --- a/docs/models/errors/GetPlaylistResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetPlaylistResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetPlaylistErrors](../../models/errors/GetPlaylistErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/GetPlaylistsErrors.md b/docs/models/errors/GetPlaylistsErrors.md deleted file mode 100644 index cf446974..00000000 --- a/docs/models/errors/GetPlaylistsErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetPlaylistsErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/GetPlaylistsResponseBody.md b/docs/models/errors/GetPlaylistsResponseBody.md deleted file mode 100644 index 03a59fc5..00000000 --- a/docs/models/errors/GetPlaylistsResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetPlaylistsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetPlaylistsErrors](../../models/errors/GetPlaylistsErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/GetRecentlyAddedErrors.md b/docs/models/errors/GetRecentlyAddedErrors.md deleted file mode 100644 index 56620fd1..00000000 --- a/docs/models/errors/GetRecentlyAddedErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetRecentlyAddedErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/GetRecentlyAddedResponseBody.md b/docs/models/errors/GetRecentlyAddedResponseBody.md deleted file mode 100644 index 086a3c2b..00000000 --- a/docs/models/errors/GetRecentlyAddedResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetRecentlyAddedResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetRecentlyAddedErrors](../../models/errors/GetRecentlyAddedErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/GetResizedPhotoErrors.md b/docs/models/errors/GetResizedPhotoErrors.md deleted file mode 100644 index eed2b582..00000000 --- a/docs/models/errors/GetResizedPhotoErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetResizedPhotoErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/GetResizedPhotoResponseBody.md b/docs/models/errors/GetResizedPhotoResponseBody.md deleted file mode 100644 index 6098c70c..00000000 --- a/docs/models/errors/GetResizedPhotoResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetResizedPhotoResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetResizedPhotoErrors](../../models/errors/GetResizedPhotoErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/GetResourcesStatisticsErrors.md b/docs/models/errors/GetResourcesStatisticsErrors.md deleted file mode 100644 index 0bbb259f..00000000 --- a/docs/models/errors/GetResourcesStatisticsErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetResourcesStatisticsErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/GetResourcesStatisticsResponseBody.md b/docs/models/errors/GetResourcesStatisticsResponseBody.md deleted file mode 100644 index 3334d2f9..00000000 --- a/docs/models/errors/GetResourcesStatisticsResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetResourcesStatisticsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetResourcesStatisticsErrors](../../models/errors/GetResourcesStatisticsErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/GetSearchResultsErrors.md b/docs/models/errors/GetSearchResultsErrors.md deleted file mode 100644 index 1cd3b3f6..00000000 --- a/docs/models/errors/GetSearchResultsErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetSearchResultsErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/GetSearchResultsResponseBody.md b/docs/models/errors/GetSearchResultsResponseBody.md deleted file mode 100644 index 9465dd10..00000000 --- a/docs/models/errors/GetSearchResultsResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetSearchResultsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetSearchResultsErrors](../../models/errors/GetSearchResultsErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/GetServerActivitiesErrors.md b/docs/models/errors/GetServerActivitiesErrors.md deleted file mode 100644 index 43cc8db5..00000000 --- a/docs/models/errors/GetServerActivitiesErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetServerActivitiesErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/GetServerActivitiesResponseBody.md b/docs/models/errors/GetServerActivitiesResponseBody.md deleted file mode 100644 index 8903b02c..00000000 --- a/docs/models/errors/GetServerActivitiesResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetServerActivitiesResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetServerActivitiesErrors](../../models/errors/GetServerActivitiesErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :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 deleted file mode 100644 index f37f6af1..00000000 --- a/docs/models/errors/GetServerCapabilitiesResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetServerCapabilitiesResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.Errors](../../models/errors/Errors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/GetServerIdentityErrors.md b/docs/models/errors/GetServerIdentityErrors.md deleted file mode 100644 index 7d210f5a..00000000 --- a/docs/models/errors/GetServerIdentityErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetServerIdentityErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/GetServerIdentityResponseBody.md b/docs/models/errors/GetServerIdentityResponseBody.md deleted file mode 100644 index 606a74ad..00000000 --- a/docs/models/errors/GetServerIdentityResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetServerIdentityResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetServerIdentityErrors](../../models/errors/GetServerIdentityErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/GetServerListErrors.md b/docs/models/errors/GetServerListErrors.md deleted file mode 100644 index d690b4b7..00000000 --- a/docs/models/errors/GetServerListErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetServerListErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/GetServerListResponseBody.md b/docs/models/errors/GetServerListResponseBody.md deleted file mode 100644 index 2ef710e8..00000000 --- a/docs/models/errors/GetServerListResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetServerListResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetServerListErrors](../../models/errors/GetServerListErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/GetServerPreferencesErrors.md b/docs/models/errors/GetServerPreferencesErrors.md deleted file mode 100644 index f3ab07cc..00000000 --- a/docs/models/errors/GetServerPreferencesErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetServerPreferencesErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/GetServerPreferencesResponseBody.md b/docs/models/errors/GetServerPreferencesResponseBody.md deleted file mode 100644 index da327cf0..00000000 --- a/docs/models/errors/GetServerPreferencesResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetServerPreferencesResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetServerPreferencesErrors](../../models/errors/GetServerPreferencesErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/GetSessionHistoryErrors.md b/docs/models/errors/GetSessionHistoryErrors.md deleted file mode 100644 index ac4449b5..00000000 --- a/docs/models/errors/GetSessionHistoryErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetSessionHistoryErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/GetSessionHistoryResponseBody.md b/docs/models/errors/GetSessionHistoryResponseBody.md deleted file mode 100644 index 98b962d0..00000000 --- a/docs/models/errors/GetSessionHistoryResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetSessionHistoryResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetSessionHistoryErrors](../../models/errors/GetSessionHistoryErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/GetSessionsErrors.md b/docs/models/errors/GetSessionsErrors.md deleted file mode 100644 index 97a6388e..00000000 --- a/docs/models/errors/GetSessionsErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetSessionsErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/GetSessionsResponseBody.md b/docs/models/errors/GetSessionsResponseBody.md deleted file mode 100644 index f18d6a50..00000000 --- a/docs/models/errors/GetSessionsResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetSessionsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetSessionsErrors](../../models/errors/GetSessionsErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/GetSourceConnectionInformationErrors.md b/docs/models/errors/GetSourceConnectionInformationErrors.md deleted file mode 100644 index 3067c3c7..00000000 --- a/docs/models/errors/GetSourceConnectionInformationErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetSourceConnectionInformationErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/GetSourceConnectionInformationResponseBody.md b/docs/models/errors/GetSourceConnectionInformationResponseBody.md deleted file mode 100644 index 43d60357..00000000 --- a/docs/models/errors/GetSourceConnectionInformationResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetSourceConnectionInformationResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetSourceConnectionInformationErrors](../../models/errors/GetSourceConnectionInformationErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/GetStatisticsErrors.md b/docs/models/errors/GetStatisticsErrors.md deleted file mode 100644 index 74db22a2..00000000 --- a/docs/models/errors/GetStatisticsErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetStatisticsErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/GetStatisticsResponseBody.md b/docs/models/errors/GetStatisticsResponseBody.md deleted file mode 100644 index 1ae97853..00000000 --- a/docs/models/errors/GetStatisticsResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetStatisticsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetStatisticsErrors](../../models/errors/GetStatisticsErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/GetTimelineErrors.md b/docs/models/errors/GetTimelineErrors.md deleted file mode 100644 index 2d061105..00000000 --- a/docs/models/errors/GetTimelineErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetTimelineErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/GetTimelineResponseBody.md b/docs/models/errors/GetTimelineResponseBody.md deleted file mode 100644 index 99193424..00000000 --- a/docs/models/errors/GetTimelineResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetTimelineResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetTimelineErrors](../../models/errors/GetTimelineErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/GetTokenErrors.md b/docs/models/errors/GetTokenErrors.md deleted file mode 100644 index a6b5fe44..00000000 --- a/docs/models/errors/GetTokenErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetTokenErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1000 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 400 | \ No newline at end of file diff --git a/docs/models/errors/GetTokenResponseBody.md b/docs/models/errors/GetTokenResponseBody.md deleted file mode 100644 index f474014f..00000000 --- a/docs/models/errors/GetTokenResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetTokenResponseBody - -X-Plex-Client-Identifier is missing - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetTokenErrors](../../models/errors/GetTokenErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/GetTranscodeSessionsErrors.md b/docs/models/errors/GetTranscodeSessionsErrors.md deleted file mode 100644 index fb840f0d..00000000 --- a/docs/models/errors/GetTranscodeSessionsErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetTranscodeSessionsErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/GetTranscodeSessionsResponseBody.md b/docs/models/errors/GetTranscodeSessionsResponseBody.md deleted file mode 100644 index 910d2e12..00000000 --- a/docs/models/errors/GetTranscodeSessionsResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetTranscodeSessionsResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetTranscodeSessionsErrors](../../models/errors/GetTranscodeSessionsErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/GetTransientTokenErrors.md b/docs/models/errors/GetTransientTokenErrors.md deleted file mode 100644 index 176d28cb..00000000 --- a/docs/models/errors/GetTransientTokenErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetTransientTokenErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/GetTransientTokenResponseBody.md b/docs/models/errors/GetTransientTokenResponseBody.md deleted file mode 100644 index 493f659d..00000000 --- a/docs/models/errors/GetTransientTokenResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetTransientTokenResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetTransientTokenErrors](../../models/errors/GetTransientTokenErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/GetUpdateStatusErrors.md b/docs/models/errors/GetUpdateStatusErrors.md deleted file mode 100644 index 37bbefd4..00000000 --- a/docs/models/errors/GetUpdateStatusErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetUpdateStatusErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/GetUpdateStatusResponseBody.md b/docs/models/errors/GetUpdateStatusResponseBody.md deleted file mode 100644 index 3be63c7d..00000000 --- a/docs/models/errors/GetUpdateStatusResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetUpdateStatusResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetUpdateStatusErrors](../../models/errors/GetUpdateStatusErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/GetWatchlistErrors.md b/docs/models/errors/GetWatchlistErrors.md deleted file mode 100644 index ed5478ce..00000000 --- a/docs/models/errors/GetWatchlistErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetWatchlistErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/GetWatchlistResponseBody.md b/docs/models/errors/GetWatchlistResponseBody.md deleted file mode 100644 index 796cdeea..00000000 --- a/docs/models/errors/GetWatchlistResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetWatchlistResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.GetWatchlistErrors](../../models/errors/GetWatchlistErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/LogLineErrors.md b/docs/models/errors/LogLineErrors.md deleted file mode 100644 index ccef7a58..00000000 --- a/docs/models/errors/LogLineErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# LogLineErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/LogLineResponseBody.md b/docs/models/errors/LogLineResponseBody.md deleted file mode 100644 index a257956d..00000000 --- a/docs/models/errors/LogLineResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# LogLineResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.LogLineErrors](../../models/errors/LogLineErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/LogMultiLineErrors.md b/docs/models/errors/LogMultiLineErrors.md deleted file mode 100644 index d2e531cf..00000000 --- a/docs/models/errors/LogMultiLineErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# LogMultiLineErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/LogMultiLineResponseBody.md b/docs/models/errors/LogMultiLineResponseBody.md deleted file mode 100644 index f24c81cf..00000000 --- a/docs/models/errors/LogMultiLineResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# LogMultiLineResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.LogMultiLineErrors](../../models/errors/LogMultiLineErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/MarkPlayedErrors.md b/docs/models/errors/MarkPlayedErrors.md deleted file mode 100644 index 02878d85..00000000 --- a/docs/models/errors/MarkPlayedErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# MarkPlayedErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/MarkPlayedResponseBody.md b/docs/models/errors/MarkPlayedResponseBody.md deleted file mode 100644 index 0759d9f4..00000000 --- a/docs/models/errors/MarkPlayedResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# MarkPlayedResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.MarkPlayedErrors](../../models/errors/MarkPlayedErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/MarkUnplayedErrors.md b/docs/models/errors/MarkUnplayedErrors.md deleted file mode 100644 index 8e71310c..00000000 --- a/docs/models/errors/MarkUnplayedErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# MarkUnplayedErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/MarkUnplayedResponseBody.md b/docs/models/errors/MarkUnplayedResponseBody.md deleted file mode 100644 index 1e63d290..00000000 --- a/docs/models/errors/MarkUnplayedResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# MarkUnplayedResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.MarkUnplayedErrors](../../models/errors/MarkUnplayedErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/PerformSearchErrors.md b/docs/models/errors/PerformSearchErrors.md deleted file mode 100644 index 862f8216..00000000 --- a/docs/models/errors/PerformSearchErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# PerformSearchErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/PerformSearchResponseBody.md b/docs/models/errors/PerformSearchResponseBody.md deleted file mode 100644 index 34843b00..00000000 --- a/docs/models/errors/PerformSearchResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# PerformSearchResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.PerformSearchErrors](../../models/errors/PerformSearchErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/PerformVoiceSearchErrors.md b/docs/models/errors/PerformVoiceSearchErrors.md deleted file mode 100644 index 343873c5..00000000 --- a/docs/models/errors/PerformVoiceSearchErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# PerformVoiceSearchErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/PerformVoiceSearchResponseBody.md b/docs/models/errors/PerformVoiceSearchResponseBody.md deleted file mode 100644 index 376e05f2..00000000 --- a/docs/models/errors/PerformVoiceSearchResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# PerformVoiceSearchResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.PerformVoiceSearchErrors](../../models/errors/PerformVoiceSearchErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/RefreshLibraryErrors.md b/docs/models/errors/RefreshLibraryErrors.md deleted file mode 100644 index 53ef46f9..00000000 --- a/docs/models/errors/RefreshLibraryErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# RefreshLibraryErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/RefreshLibraryResponseBody.md b/docs/models/errors/RefreshLibraryResponseBody.md deleted file mode 100644 index 922c5c00..00000000 --- a/docs/models/errors/RefreshLibraryResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# RefreshLibraryResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.RefreshLibraryErrors](../../models/errors/RefreshLibraryErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/SearchLibraryErrors.md b/docs/models/errors/SearchLibraryErrors.md deleted file mode 100644 index 2cfa10cb..00000000 --- a/docs/models/errors/SearchLibraryErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# SearchLibraryErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/SearchLibraryResponseBody.md b/docs/models/errors/SearchLibraryResponseBody.md deleted file mode 100644 index e53fbb23..00000000 --- a/docs/models/errors/SearchLibraryResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# SearchLibraryResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.SearchLibraryErrors](../../models/errors/SearchLibraryErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/StartAllTasksErrors.md b/docs/models/errors/StartAllTasksErrors.md deleted file mode 100644 index c18c98c8..00000000 --- a/docs/models/errors/StartAllTasksErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# StartAllTasksErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/StartAllTasksResponseBody.md b/docs/models/errors/StartAllTasksResponseBody.md deleted file mode 100644 index efbbeb56..00000000 --- a/docs/models/errors/StartAllTasksResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# StartAllTasksResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.StartAllTasksErrors](../../models/errors/StartAllTasksErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/StartTaskErrors.md b/docs/models/errors/StartTaskErrors.md deleted file mode 100644 index 84dc2465..00000000 --- a/docs/models/errors/StartTaskErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# StartTaskErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/StartTaskResponseBody.md b/docs/models/errors/StartTaskResponseBody.md deleted file mode 100644 index ea1621fb..00000000 --- a/docs/models/errors/StartTaskResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# StartTaskResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.StartTaskErrors](../../models/errors/StartTaskErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/StartUniversalTranscodeErrors.md b/docs/models/errors/StartUniversalTranscodeErrors.md deleted file mode 100644 index 8ee3e29a..00000000 --- a/docs/models/errors/StartUniversalTranscodeErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# StartUniversalTranscodeErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/StartUniversalTranscodeResponseBody.md b/docs/models/errors/StartUniversalTranscodeResponseBody.md deleted file mode 100644 index 16a4d1b5..00000000 --- a/docs/models/errors/StartUniversalTranscodeResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# StartUniversalTranscodeResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.StartUniversalTranscodeErrors](../../models/errors/StartUniversalTranscodeErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/StopAllTasksErrors.md b/docs/models/errors/StopAllTasksErrors.md deleted file mode 100644 index c140f8de..00000000 --- a/docs/models/errors/StopAllTasksErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# StopAllTasksErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/StopAllTasksResponseBody.md b/docs/models/errors/StopAllTasksResponseBody.md deleted file mode 100644 index 9b70570a..00000000 --- a/docs/models/errors/StopAllTasksResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# StopAllTasksResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.StopAllTasksErrors](../../models/errors/StopAllTasksErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/StopTaskErrors.md b/docs/models/errors/StopTaskErrors.md deleted file mode 100644 index 525de390..00000000 --- a/docs/models/errors/StopTaskErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# StopTaskErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/StopTaskResponseBody.md b/docs/models/errors/StopTaskResponseBody.md deleted file mode 100644 index 4084cc4a..00000000 --- a/docs/models/errors/StopTaskResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# StopTaskResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.StopTaskErrors](../../models/errors/StopTaskErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/StopTranscodeSessionErrors.md b/docs/models/errors/StopTranscodeSessionErrors.md deleted file mode 100644 index c237071b..00000000 --- a/docs/models/errors/StopTranscodeSessionErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# StopTranscodeSessionErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/StopTranscodeSessionResponseBody.md b/docs/models/errors/StopTranscodeSessionResponseBody.md deleted file mode 100644 index 584e48fd..00000000 --- a/docs/models/errors/StopTranscodeSessionResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# StopTranscodeSessionResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.StopTranscodeSessionErrors](../../models/errors/StopTranscodeSessionErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/UpdatePlayProgressErrors.md b/docs/models/errors/UpdatePlayProgressErrors.md deleted file mode 100644 index 5dfceded..00000000 --- a/docs/models/errors/UpdatePlayProgressErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# UpdatePlayProgressErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/UpdatePlayProgressResponseBody.md b/docs/models/errors/UpdatePlayProgressResponseBody.md deleted file mode 100644 index 448194bc..00000000 --- a/docs/models/errors/UpdatePlayProgressResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# UpdatePlayProgressResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.UpdatePlayProgressErrors](../../models/errors/UpdatePlayProgressErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/UpdatePlaylistErrors.md b/docs/models/errors/UpdatePlaylistErrors.md deleted file mode 100644 index af6ff2aa..00000000 --- a/docs/models/errors/UpdatePlaylistErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# UpdatePlaylistErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/UpdatePlaylistResponseBody.md b/docs/models/errors/UpdatePlaylistResponseBody.md deleted file mode 100644 index 2a1cdccc..00000000 --- a/docs/models/errors/UpdatePlaylistResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# UpdatePlaylistResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.UpdatePlaylistErrors](../../models/errors/UpdatePlaylistErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/errors/UploadPlaylistErrors.md b/docs/models/errors/UploadPlaylistErrors.md deleted file mode 100644 index bf15816f..00000000 --- a/docs/models/errors/UploadPlaylistErrors.md +++ /dev/null @@ -1,10 +0,0 @@ -# UploadPlaylistErrors - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 1001 | -| `message` | *Optional* | :heavy_minus_sign: | N/A | User could not be authenticated | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 401 | \ No newline at end of file diff --git a/docs/models/errors/UploadPlaylistResponseBody.md b/docs/models/errors/UploadPlaylistResponseBody.md deleted file mode 100644 index 4470df95..00000000 --- a/docs/models/errors/UploadPlaylistResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# UploadPlaylistResponseBody - -Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `errors` | List<[lukehagar.plexapi.plexapi.models.errors.UploadPlaylistErrors](../../models/errors/UploadPlaylistErrors.md)> | :heavy_minus_sign: | N/A | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/Account.md b/docs/models/operations/Account.md deleted file mode 100644 index 4bdef685..00000000 --- a/docs/models/operations/Account.md +++ /dev/null @@ -1,15 +0,0 @@ -# Account - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 238960586 | -| `key` | *Optional* | :heavy_minus_sign: | N/A | /accounts/238960586 | -| `name` | *Optional* | :heavy_minus_sign: | N/A | Diane | -| `defaultAudioLanguage` | *Optional* | :heavy_minus_sign: | N/A | en | -| `autoSelectAudio` | *Optional* | :heavy_minus_sign: | N/A | true | -| `defaultSubtitleLanguage` | *Optional* | :heavy_minus_sign: | N/A | en | -| `subtitleMode` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `thumb` | *Optional* | :heavy_minus_sign: | N/A | https://plex.tv/users/50d83634246da1de/avatar?c=1707110967 | \ No newline at end of file diff --git a/docs/models/operations/Activity.md b/docs/models/operations/Activity.md deleted file mode 100644 index 35203574..00000000 --- a/docs/models/operations/Activity.md +++ /dev/null @@ -1,15 +0,0 @@ -# Activity - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `uuid` | *Optional* | :heavy_minus_sign: | N/A | -| `type` | *Optional* | :heavy_minus_sign: | N/A | -| `cancellable` | *Optional* | :heavy_minus_sign: | N/A | -| `userID` | *Optional* | :heavy_minus_sign: | N/A | -| `title` | *Optional* | :heavy_minus_sign: | N/A | -| `subtitle` | *Optional* | :heavy_minus_sign: | N/A | -| `progress` | *Optional* | :heavy_minus_sign: | N/A | -| `context` | [Optional](../../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 deleted file mode 100644 index 77af8d3d..00000000 --- a/docs/models/operations/AddPlaylistContentsMediaContainer.md +++ /dev/null @@ -1,11 +0,0 @@ -# AddPlaylistContentsMediaContainer - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `leafCountAdded` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `leafCountRequested` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `metadata` | List<[lukehagar.plexapi.plexapi.models.operations.AddPlaylistContentsMetadata](../../models/operations/AddPlaylistContentsMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/AddPlaylistContentsMetadata.md b/docs/models/operations/AddPlaylistContentsMetadata.md deleted file mode 100644 index e10c741b..00000000 --- a/docs/models/operations/AddPlaylistContentsMetadata.md +++ /dev/null @@ -1,20 +0,0 @@ -# AddPlaylistContentsMetadata - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `ratingKey` | *Optional* | :heavy_minus_sign: | N/A | 94 | -| `key` | *Optional* | :heavy_minus_sign: | N/A | /playlists/94/items | -| `guid` | *Optional* | :heavy_minus_sign: | N/A | com.plexapp.agents.none://972e3047-83d6-4848-a000-261f0af26ba2 | -| `type` | *Optional* | :heavy_minus_sign: | N/A | playlist | -| `title` | *Optional* | :heavy_minus_sign: | N/A | A great playlist | -| `summary` | *Optional* | :heavy_minus_sign: | N/A | One of my great playlists | -| `smart` | *Optional* | :heavy_minus_sign: | N/A | false | -| `playlistType` | *Optional* | :heavy_minus_sign: | N/A | video | -| `composite` | *Optional* | :heavy_minus_sign: | N/A | /playlists/94/composite/1705800070 | -| `duration` | *Optional* | :heavy_minus_sign: | N/A | 423000 | -| `leafCount` | *Optional* | :heavy_minus_sign: | N/A | 3 | -| `addedAt` | *Optional* | :heavy_minus_sign: | N/A | 1705716458 | -| `updatedAt` | *Optional* | :heavy_minus_sign: | N/A | 1705800070 | \ No newline at end of file diff --git a/docs/models/operations/AddPlaylistContentsRequest.md b/docs/models/operations/AddPlaylistContentsRequest.md deleted file mode 100644 index aeb17ceb..00000000 --- a/docs/models/operations/AddPlaylistContentsRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -# AddPlaylistContentsRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | -| `playlistID` | *double* | :heavy_check_mark: | the ID of the playlist | | -| `uri` | *String* | :heavy_check_mark: | the content URI for the playlist | server://12345/com.plexapp.plugins.library/library/metadata/1 | -| `playQueueID` | *Optional* | :heavy_minus_sign: | the play queue to add to a playlist | 123 | \ No newline at end of file diff --git a/docs/models/operations/AddPlaylistContentsResponse.md b/docs/models/operations/AddPlaylistContentsResponse.md deleted file mode 100644 index 886c5cce..00000000 --- a/docs/models/operations/AddPlaylistContentsResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# AddPlaylistContentsResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional](../../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 deleted file mode 100644 index 055d3a5a..00000000 --- a/docs/models/operations/AddPlaylistContentsResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# AddPlaylistContentsResponseBody - -Playlist Updated - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../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 deleted file mode 100644 index 7e0aa3b9..00000000 --- a/docs/models/operations/ApplyUpdatesRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# ApplyUpdatesRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `tonight` | [Optional](../../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` | [Optional](../../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 deleted file mode 100644 index c2a35e61..00000000 --- a/docs/models/operations/ApplyUpdatesResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApplyUpdatesResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/ButlerTask.md b/docs/models/operations/ButlerTask.md deleted file mode 100644 index f7ffc58e..00000000 --- a/docs/models/operations/ButlerTask.md +++ /dev/null @@ -1,13 +0,0 @@ -# ButlerTask - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `name` | *Optional* | :heavy_minus_sign: | N/A | BackupDatabase | -| `interval` | *Optional* | :heavy_minus_sign: | N/A | 3 | -| `scheduleRandomized` | *Optional* | :heavy_minus_sign: | N/A | | -| `enabled` | *Optional* | :heavy_minus_sign: | N/A | | -| `title` | *Optional* | :heavy_minus_sign: | N/A | Backup Database | -| `description` | *Optional* | :heavy_minus_sign: | N/A | Create a backup copy of the server's database in the configured backup directory | \ No newline at end of file diff --git a/docs/models/operations/ButlerTasks.md b/docs/models/operations/ButlerTasks.md deleted file mode 100644 index b16b4a42..00000000 --- a/docs/models/operations/ButlerTasks.md +++ /dev/null @@ -1,8 +0,0 @@ -# ButlerTasks - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `butlerTask` | List<[lukehagar.plexapi.plexapi.models.operations.ButlerTask](../../models/operations/ButlerTask.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/CancelServerActivitiesRequest.md b/docs/models/operations/CancelServerActivitiesRequest.md deleted file mode 100644 index a8eef37a..00000000 --- a/docs/models/operations/CancelServerActivitiesRequest.md +++ /dev/null @@ -1,8 +0,0 @@ -# CancelServerActivitiesRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `activityUUID` | *String* | :heavy_check_mark: | The UUID of the activity to cancel. | 25b71ed5-0f9d-461c-baa7-d404e9e10d3e | \ No newline at end of file diff --git a/docs/models/operations/CancelServerActivitiesResponse.md b/docs/models/operations/CancelServerActivitiesResponse.md deleted file mode 100644 index 6926bda9..00000000 --- a/docs/models/operations/CancelServerActivitiesResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# CancelServerActivitiesResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/CheckForUpdatesRequest.md b/docs/models/operations/CheckForUpdatesRequest.md deleted file mode 100644 index da7a1057..00000000 --- a/docs/models/operations/CheckForUpdatesRequest.md +++ /dev/null @@ -1,8 +0,0 @@ -# CheckForUpdatesRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | -| `download` | [Optional](../../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 deleted file mode 100644 index 5169ba11..00000000 --- a/docs/models/operations/CheckForUpdatesResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# CheckForUpdatesResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/ClearPlaylistContentsRequest.md b/docs/models/operations/ClearPlaylistContentsRequest.md deleted file mode 100644 index 1b9d8198..00000000 --- a/docs/models/operations/ClearPlaylistContentsRequest.md +++ /dev/null @@ -1,8 +0,0 @@ -# ClearPlaylistContentsRequest - - -## Fields - -| Field | Type | Required | Description | -| ---------------------- | ---------------------- | ---------------------- | ---------------------- | -| `playlistID` | *double* | :heavy_check_mark: | the ID of the playlist | \ No newline at end of file diff --git a/docs/models/operations/ClearPlaylistContentsResponse.md b/docs/models/operations/ClearPlaylistContentsResponse.md deleted file mode 100644 index aa4f9ea1..00000000 --- a/docs/models/operations/ClearPlaylistContentsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# ClearPlaylistContentsResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/Context.md b/docs/models/operations/Context.md deleted file mode 100644 index 9587bf66..00000000 --- a/docs/models/operations/Context.md +++ /dev/null @@ -1,8 +0,0 @@ -# Context - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `librarySectionID` | *Optional* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/Country.md b/docs/models/operations/Country.md deleted file mode 100644 index 52a65cbc..00000000 --- a/docs/models/operations/Country.md +++ /dev/null @@ -1,8 +0,0 @@ -# Country - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | United States of America | \ No newline at end of file diff --git a/docs/models/operations/CreatePlaylistMediaContainer.md b/docs/models/operations/CreatePlaylistMediaContainer.md deleted file mode 100644 index d74c0645..00000000 --- a/docs/models/operations/CreatePlaylistMediaContainer.md +++ /dev/null @@ -1,9 +0,0 @@ -# CreatePlaylistMediaContainer - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 7 | -| `metadata` | List<[lukehagar.plexapi.plexapi.models.operations.CreatePlaylistMetadata](../../models/operations/CreatePlaylistMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/CreatePlaylistMetadata.md b/docs/models/operations/CreatePlaylistMetadata.md deleted file mode 100644 index 170fd9d8..00000000 --- a/docs/models/operations/CreatePlaylistMetadata.md +++ /dev/null @@ -1,23 +0,0 @@ -# CreatePlaylistMetadata - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `ratingKey` | *Optional* | :heavy_minus_sign: | N/A | 96 | -| `key` | *Optional* | :heavy_minus_sign: | N/A | /playlists/96/items | -| `guid` | *Optional* | :heavy_minus_sign: | N/A | com.plexapp.agents.none://a2f92937-1408-40e2-b022-63a8a9377e55 | -| `type` | *Optional* | :heavy_minus_sign: | N/A | playlist | -| `title` | *Optional* | :heavy_minus_sign: | N/A | A Great Playlist | -| `summary` | *Optional* | :heavy_minus_sign: | N/A | What a great playlist | -| `smart` | *Optional* | :heavy_minus_sign: | N/A | false | -| `playlistType` | *Optional* | :heavy_minus_sign: | N/A | video | -| `icon` | *Optional* | :heavy_minus_sign: | N/A | playlist://image.smart | -| `viewCount` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `lastViewedAt` | *Optional* | :heavy_minus_sign: | N/A | 1705719589 | -| `leafCount` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `addedAt` | *Optional* | :heavy_minus_sign: | N/A | 1705719589 | -| `updatedAt` | *Optional* | :heavy_minus_sign: | N/A | 1705724593 | -| `composite` | *Optional* | :heavy_minus_sign: | N/A | /playlists/96/composite/1705724593 | -| `duration` | *Optional* | :heavy_minus_sign: | N/A | 141000 | \ No newline at end of file diff --git a/docs/models/operations/CreatePlaylistRequest.md b/docs/models/operations/CreatePlaylistRequest.md deleted file mode 100644 index 9c206ac2..00000000 --- a/docs/models/operations/CreatePlaylistRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# CreatePlaylistRequest - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | -| `title` | *String* | :heavy_check_mark: | name of the playlist | -| `type` | [lukehagar.plexapi.plexapi.models.operations.QueryParamType](../../models/operations/QueryParamType.md) | :heavy_check_mark: | type of playlist to create | -| `smart` | [lukehagar.plexapi.plexapi.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` | *Optional* | :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 deleted file mode 100644 index d0023d6a..00000000 --- a/docs/models/operations/CreatePlaylistResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# CreatePlaylistResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional](../../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 deleted file mode 100644 index 010f0e6c..00000000 --- a/docs/models/operations/CreatePlaylistResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# CreatePlaylistResponseBody - -returns all playlists - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/CreatePlaylistMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/DeleteLibraryRequest.md b/docs/models/operations/DeleteLibraryRequest.md deleted file mode 100644 index daece339..00000000 --- a/docs/models/operations/DeleteLibraryRequest.md +++ /dev/null @@ -1,8 +0,0 @@ -# DeleteLibraryRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | -| `sectionId` | *double* | :heavy_check_mark: | the Id of the library to query | 1000 | \ No newline at end of file diff --git a/docs/models/operations/DeleteLibraryResponse.md b/docs/models/operations/DeleteLibraryResponse.md deleted file mode 100644 index 96c3bd52..00000000 --- a/docs/models/operations/DeleteLibraryResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# DeleteLibraryResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/DeletePlaylistRequest.md b/docs/models/operations/DeletePlaylistRequest.md deleted file mode 100644 index dfebd858..00000000 --- a/docs/models/operations/DeletePlaylistRequest.md +++ /dev/null @@ -1,8 +0,0 @@ -# DeletePlaylistRequest - - -## Fields - -| Field | Type | Required | Description | -| ---------------------- | ---------------------- | ---------------------- | ---------------------- | -| `playlistID` | *double* | :heavy_check_mark: | the ID of the playlist | \ No newline at end of file diff --git a/docs/models/operations/DeletePlaylistResponse.md b/docs/models/operations/DeletePlaylistResponse.md deleted file mode 100644 index b8f7efaa..00000000 --- a/docs/models/operations/DeletePlaylistResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# DeletePlaylistResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/Device.md b/docs/models/operations/Device.md deleted file mode 100644 index 458946bd..00000000 --- a/docs/models/operations/Device.md +++ /dev/null @@ -1,12 +0,0 @@ -# Device - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `name` | *Optional* | :heavy_minus_sign: | N/A | iPhone | -| `platform` | *Optional* | :heavy_minus_sign: | N/A | iOS | -| `clientIdentifier` | *Optional* | :heavy_minus_sign: | N/A | | -| `createdAt` | *Optional* | :heavy_minus_sign: | N/A | 1654131230 | \ No newline at end of file diff --git a/docs/models/operations/Director.md b/docs/models/operations/Director.md deleted file mode 100644 index 89925f7d..00000000 --- a/docs/models/operations/Director.md +++ /dev/null @@ -1,8 +0,0 @@ -# Director - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Peyton Reed | \ No newline at end of file diff --git a/docs/models/operations/Directory.md b/docs/models/operations/Directory.md deleted file mode 100644 index fbd051d1..00000000 --- a/docs/models/operations/Directory.md +++ /dev/null @@ -1,10 +0,0 @@ -# Directory - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `count` | *Optional* | :heavy_minus_sign: | N/A | -| `key` | *Optional* | :heavy_minus_sign: | N/A | -| `title` | *Optional* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/Download.md b/docs/models/operations/Download.md deleted file mode 100644 index 1eb27ea5..00000000 --- a/docs/models/operations/Download.md +++ /dev/null @@ -1,11 +0,0 @@ -# Download - -Indicate that you want to start download any updates found. - - -## Values - -| Name | Value | -| ------ | ------ | -| `ZERO` | 0 | -| `ONE` | 1 | \ No newline at end of file diff --git a/docs/models/operations/EnablePaperTrailResponse.md b/docs/models/operations/EnablePaperTrailResponse.md deleted file mode 100644 index 7c7d9bf5..00000000 --- a/docs/models/operations/EnablePaperTrailResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# EnablePaperTrailResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/Field.md b/docs/models/operations/Field.md deleted file mode 100644 index 6a82c614..00000000 --- a/docs/models/operations/Field.md +++ /dev/null @@ -1,11 +0,0 @@ -# Field - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `key` | *Optional* | :heavy_minus_sign: | N/A | label | -| `title` | *Optional* | :heavy_minus_sign: | N/A | Label | -| `type` | *Optional* | :heavy_minus_sign: | N/A | tag | -| `subType` | *Optional* | :heavy_minus_sign: | N/A | bitrate | \ No newline at end of file diff --git a/docs/models/operations/FieldType.md b/docs/models/operations/FieldType.md deleted file mode 100644 index d1e12c70..00000000 --- a/docs/models/operations/FieldType.md +++ /dev/null @@ -1,9 +0,0 @@ -# FieldType - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `type` | *Optional* | :heavy_minus_sign: | N/A | resolution | -| `operator` | List<[lukehagar.plexapi.plexapi.models.operations.Operator](../../models/operations/Operator.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/Filter.md b/docs/models/operations/Filter.md deleted file mode 100644 index 6b3af5a1..00000000 --- a/docs/models/operations/Filter.md +++ /dev/null @@ -1,11 +0,0 @@ -# Filter - -Filters content by field and direction/equality -(Unknown if viewedAt is the only supported column) - - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/operations/Force.md b/docs/models/operations/Force.md deleted file mode 100644 index 9bacc5e4..00000000 --- a/docs/models/operations/Force.md +++ /dev/null @@ -1,15 +0,0 @@ -# Force - -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. - - - -## Values - -| Name | Value | -| ------ | ------ | -| `ZERO` | 0 | -| `ONE` | 1 | \ No newline at end of file diff --git a/docs/models/operations/Genre.md b/docs/models/operations/Genre.md deleted file mode 100644 index 383063b0..00000000 --- a/docs/models/operations/Genre.md +++ /dev/null @@ -1,8 +0,0 @@ -# Genre - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Comedy | \ No newline at end of file diff --git a/docs/models/operations/GetAvailableClientsMediaContainer.md b/docs/models/operations/GetAvailableClientsMediaContainer.md deleted file mode 100644 index 61b1b292..00000000 --- a/docs/models/operations/GetAvailableClientsMediaContainer.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetAvailableClientsMediaContainer - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `server` | List<[lukehagar.plexapi.plexapi.models.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 deleted file mode 100644 index e594afa8..00000000 --- a/docs/models/operations/GetAvailableClientsResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetAvailableClientsResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional](../../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 deleted file mode 100644 index 60241bfd..00000000 --- a/docs/models/operations/GetAvailableClientsResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetAvailableClientsResponseBody - -Available Clients - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetAvailableClientsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetBandwidthStatisticsAccount.md b/docs/models/operations/GetBandwidthStatisticsAccount.md deleted file mode 100644 index eed6f39c..00000000 --- a/docs/models/operations/GetBandwidthStatisticsAccount.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetBandwidthStatisticsAccount - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 238960586 | -| `key` | *Optional* | :heavy_minus_sign: | N/A | /accounts/238960586 | -| `name` | *Optional* | :heavy_minus_sign: | N/A | Diane | -| `defaultAudioLanguage` | *Optional* | :heavy_minus_sign: | N/A | en | -| `autoSelectAudio` | *Optional* | :heavy_minus_sign: | N/A | true | -| `defaultSubtitleLanguage` | *Optional* | :heavy_minus_sign: | N/A | en | -| `subtitleMode` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `thumb` | *Optional* | :heavy_minus_sign: | N/A | https://plex.tv/users/50d83634246da1de/avatar?c=1707110967 | \ No newline at end of file diff --git a/docs/models/operations/GetBandwidthStatisticsDevice.md b/docs/models/operations/GetBandwidthStatisticsDevice.md deleted file mode 100644 index a98ee64d..00000000 --- a/docs/models/operations/GetBandwidthStatisticsDevice.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetBandwidthStatisticsDevice - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 208 | -| `name` | *Optional* | :heavy_minus_sign: | N/A | Roku Express | -| `platform` | *Optional* | :heavy_minus_sign: | N/A | Roku | -| `clientIdentifier` | *Optional* | :heavy_minus_sign: | N/A | 793095d235660625108ef785cc7646e9 | -| `createdAt` | *Optional* | :heavy_minus_sign: | N/A | 1706470556 | \ No newline at end of file diff --git a/docs/models/operations/GetBandwidthStatisticsMediaContainer.md b/docs/models/operations/GetBandwidthStatisticsMediaContainer.md deleted file mode 100644 index 0431732b..00000000 --- a/docs/models/operations/GetBandwidthStatisticsMediaContainer.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetBandwidthStatisticsMediaContainer - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 5497 | -| `device` | List<[lukehagar.plexapi.plexapi.models.operations.GetBandwidthStatisticsDevice](../../models/operations/GetBandwidthStatisticsDevice.md)> | :heavy_minus_sign: | N/A | | -| `account` | List<[lukehagar.plexapi.plexapi.models.operations.GetBandwidthStatisticsAccount](../../models/operations/GetBandwidthStatisticsAccount.md)> | :heavy_minus_sign: | N/A | | -| `statisticsBandwidth` | List<[lukehagar.plexapi.plexapi.models.operations.StatisticsBandwidth](../../models/operations/StatisticsBandwidth.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetBandwidthStatisticsRequest.md b/docs/models/operations/GetBandwidthStatisticsRequest.md deleted file mode 100644 index 2d4edb8f..00000000 --- a/docs/models/operations/GetBandwidthStatisticsRequest.md +++ /dev/null @@ -1,8 +0,0 @@ -# GetBandwidthStatisticsRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `timespan` | *Optional* | :heavy_minus_sign: | The timespan to retrieve statistics for
the exact meaning of this parameter is not known
| 4 | \ No newline at end of file diff --git a/docs/models/operations/GetBandwidthStatisticsResponse.md b/docs/models/operations/GetBandwidthStatisticsResponse.md deleted file mode 100644 index bda025cb..00000000 --- a/docs/models/operations/GetBandwidthStatisticsResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetBandwidthStatisticsResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional](../../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 deleted file mode 100644 index 2d13d16f..00000000 --- a/docs/models/operations/GetBandwidthStatisticsResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetBandwidthStatisticsResponseBody - -Bandwidth Statistics - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetBandwidthStatisticsMediaContainer.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 deleted file mode 100644 index 42cb8b0d..00000000 --- a/docs/models/operations/GetButlerTasksResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetButlerTasksResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional](../../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 deleted file mode 100644 index 730b14ac..00000000 --- a/docs/models/operations/GetButlerTasksResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetButlerTasksResponseBody - -All butler tasks - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | -| `butlerTasks` | [Optional](../../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 deleted file mode 100644 index 6d3b6075..00000000 --- a/docs/models/operations/GetDevicesMediaContainer.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetDevicesMediaContainer - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 151 | -| `identifier` | *Optional* | :heavy_minus_sign: | N/A | com.plexapp.system.devices | -| `device` | List<[lukehagar.plexapi.plexapi.models.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 deleted file mode 100644 index 3a860955..00000000 --- a/docs/models/operations/GetDevicesResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetDevicesResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional](../../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 deleted file mode 100644 index 4c468ffc..00000000 --- a/docs/models/operations/GetDevicesResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetDevicesResponseBody - -Devices - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetDevicesMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetFileHashRequest.md b/docs/models/operations/GetFileHashRequest.md deleted file mode 100644 index 103e0585..00000000 --- a/docs/models/operations/GetFileHashRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetFileHashRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | -| `url` | *String* | :heavy_check_mark: | This is the path to the local file, must be prefixed by `file://` | file://C:\Image.png&type=13 | -| `type` | *Optional* | :heavy_minus_sign: | Item type | | \ No newline at end of file diff --git a/docs/models/operations/GetFileHashResponse.md b/docs/models/operations/GetFileHashResponse.md deleted file mode 100644 index 92bc1ba0..00000000 --- a/docs/models/operations/GetFileHashResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetFileHashResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/GetGlobalHubsMediaContainer.md b/docs/models/operations/GetGlobalHubsMediaContainer.md deleted file mode 100644 index 0341d83b..00000000 --- a/docs/models/operations/GetGlobalHubsMediaContainer.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetGlobalHubsMediaContainer - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 8 | -| `allowSync` | *Optional* | :heavy_minus_sign: | N/A | true | -| `identifier` | *Optional* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `hub` | List<[lukehagar.plexapi.plexapi.models.operations.Hub](../../models/operations/Hub.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetGlobalHubsMetadata.md b/docs/models/operations/GetGlobalHubsMetadata.md deleted file mode 100644 index e4600981..00000000 --- a/docs/models/operations/GetGlobalHubsMetadata.md +++ /dev/null @@ -1,24 +0,0 @@ -# GetGlobalHubsMetadata - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `ratingKey` | *Optional* | :heavy_minus_sign: | N/A | 57070 | -| `key` | *Optional* | :heavy_minus_sign: | N/A | /playlists/57070/items | -| `guid` | *Optional* | :heavy_minus_sign: | N/A | com.plexapp.agents.none://9fee6c5b-3143-4923-813e-57bd0190056c | -| `type` | *Optional* | :heavy_minus_sign: | N/A | playlist | -| `title` | *Optional* | :heavy_minus_sign: | N/A | November Movie Day | -| `titleSort` | *Optional* | :heavy_minus_sign: | N/A | Tracks | -| `summary` | *Optional* | :heavy_minus_sign: | N/A | | -| `smart` | *Optional* | :heavy_minus_sign: | N/A | false | -| `playlistType` | *Optional* | :heavy_minus_sign: | N/A | video | -| `composite` | *Optional* | :heavy_minus_sign: | N/A | /playlists/57070/composite/1668787730 | -| `icon` | *Optional* | :heavy_minus_sign: | N/A | playlist://image.smart | -| `viewCount` | *Optional* | :heavy_minus_sign: | N/A | 2 | -| `lastViewedAt` | *Optional* | :heavy_minus_sign: | N/A | 1668787732 | -| `duration` | *Optional* | :heavy_minus_sign: | N/A | 16873000 | -| `leafCount` | *Optional* | :heavy_minus_sign: | N/A | 3 | -| `addedAt` | *Optional* | :heavy_minus_sign: | N/A | 1668779618 | -| `updatedAt` | *Optional* | :heavy_minus_sign: | N/A | 1668787730 | \ No newline at end of file diff --git a/docs/models/operations/GetGlobalHubsRequest.md b/docs/models/operations/GetGlobalHubsRequest.md deleted file mode 100644 index c9f6978a..00000000 --- a/docs/models/operations/GetGlobalHubsRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetGlobalHubsRequest - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | -| `count` | *Optional* | :heavy_minus_sign: | The number of items to return with each hub. | -| `onlyTransient` | [Optional](../../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 deleted file mode 100644 index 7a720048..00000000 --- a/docs/models/operations/GetGlobalHubsResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetGlobalHubsResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional](../../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 deleted file mode 100644 index 98afb0f9..00000000 --- a/docs/models/operations/GetGlobalHubsResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetGlobalHubsResponseBody - -returns global hubs - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetGlobalHubsMediaContainer.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 deleted file mode 100644 index 6275a5f6..00000000 --- a/docs/models/operations/GetHomeDataResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetHomeDataResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional](../../models/operations/GetHomeDataResponseBody.md) | :heavy_minus_sign: | Home Data | \ No newline at end of file diff --git a/docs/models/operations/GetHomeDataResponseBody.md b/docs/models/operations/GetHomeDataResponseBody.md deleted file mode 100644 index 8043fc45..00000000 --- a/docs/models/operations/GetHomeDataResponseBody.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetHomeDataResponseBody - -Home Data - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 1841489 | -| `name` | *Optional* | :heavy_minus_sign: | N/A | Blindkitty38's home | -| `guestUserID` | *Optional* | :heavy_minus_sign: | N/A | 58815432 | -| `guestUserUUID` | *Optional* | :heavy_minus_sign: | N/A | f3df4e01bfca0787 | -| `guestEnabled` | *Optional* | :heavy_minus_sign: | N/A | | -| `subscription` | *Optional* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetLibrariesDirectory.md b/docs/models/operations/GetLibrariesDirectory.md deleted file mode 100644 index e79e8427..00000000 --- a/docs/models/operations/GetLibrariesDirectory.md +++ /dev/null @@ -1,28 +0,0 @@ -# GetLibrariesDirectory - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | -| `allowSync` | *Optional* | :heavy_minus_sign: | N/A | true | -| `art` | *Optional* | :heavy_minus_sign: | N/A | /:/resources/movie-fanart.jpg | -| `composite` | *Optional* | :heavy_minus_sign: | N/A | /library/sections/1/composite/1705615584 | -| `filters` | *Optional* | :heavy_minus_sign: | N/A | true | -| `refreshing` | *Optional* | :heavy_minus_sign: | N/A | false | -| `thumb` | *Optional* | :heavy_minus_sign: | N/A | /:/resources/movie.png | -| `key` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `type` | *Optional* | :heavy_minus_sign: | N/A | movie | -| `title` | *Optional* | :heavy_minus_sign: | N/A | Movies | -| `agent` | *Optional* | :heavy_minus_sign: | N/A | tv.plex.agents.movie | -| `scanner` | *Optional* | :heavy_minus_sign: | N/A | Plex Movie | -| `language` | *Optional* | :heavy_minus_sign: | N/A | en-US | -| `uuid` | *Optional* | :heavy_minus_sign: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 | -| `updatedAt` | *Optional* | :heavy_minus_sign: | N/A | 1705615634 | -| `createdAt` | *Optional* | :heavy_minus_sign: | N/A | 1654131312 | -| `scannedAt` | *Optional* | :heavy_minus_sign: | N/A | 1705615584 | -| `content` | *Optional* | :heavy_minus_sign: | N/A | true | -| `directory` | *Optional* | :heavy_minus_sign: | N/A | true | -| `contentChangedAt` | *Optional* | :heavy_minus_sign: | N/A | 3192854 | -| `hidden` | *Optional* | :heavy_minus_sign: | N/A | 0 | -| `location` | List<[lukehagar.plexapi.plexapi.models.operations.GetLibrariesLocation](../../models/operations/GetLibrariesLocation.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetLibrariesLocation.md b/docs/models/operations/GetLibrariesLocation.md deleted file mode 100644 index c5e3cb59..00000000 --- a/docs/models/operations/GetLibrariesLocation.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetLibrariesLocation - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `path` | *Optional* | :heavy_minus_sign: | N/A | /movies | \ No newline at end of file diff --git a/docs/models/operations/GetLibrariesMediaContainer.md b/docs/models/operations/GetLibrariesMediaContainer.md deleted file mode 100644 index 67444f39..00000000 --- a/docs/models/operations/GetLibrariesMediaContainer.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetLibrariesMediaContainer - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 5 | -| `allowSync` | *Optional* | :heavy_minus_sign: | N/A | false | -| `title1` | *Optional* | :heavy_minus_sign: | N/A | Plex Library | -| `directory` | List<[lukehagar.plexapi.plexapi.models.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 deleted file mode 100644 index c7c028b6..00000000 --- a/docs/models/operations/GetLibrariesResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetLibrariesResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional](../../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 deleted file mode 100644 index 1d0a2074..00000000 --- a/docs/models/operations/GetLibrariesResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetLibrariesResponseBody - -The libraries available on the Server - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetLibrariesMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryDirectory.md b/docs/models/operations/GetLibraryDirectory.md deleted file mode 100644 index 1c58c32f..00000000 --- a/docs/models/operations/GetLibraryDirectory.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetLibraryDirectory - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | -| `key` | *Optional* | :heavy_minus_sign: | N/A | search?type=1 | -| `title` | *Optional* | :heavy_minus_sign: | N/A | Search... | -| `secondary` | *Optional* | :heavy_minus_sign: | N/A | true | -| `prompt` | *Optional* | :heavy_minus_sign: | N/A | Search Movies | -| `search` | *Optional* | :heavy_minus_sign: | N/A | true | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryFilter.md b/docs/models/operations/GetLibraryFilter.md deleted file mode 100644 index e01df2de..00000000 --- a/docs/models/operations/GetLibraryFilter.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetLibraryFilter - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `filter` | *Optional* | :heavy_minus_sign: | N/A | label | -| `filterType` | *Optional* | :heavy_minus_sign: | N/A | string | -| `key` | *Optional* | :heavy_minus_sign: | N/A | /library/sections/1/label | -| `title` | *Optional* | :heavy_minus_sign: | N/A | Labels | -| `type` | *Optional* | :heavy_minus_sign: | N/A | filter | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryHubsCountry.md b/docs/models/operations/GetLibraryHubsCountry.md deleted file mode 100644 index b933a055..00000000 --- a/docs/models/operations/GetLibraryHubsCountry.md +++ /dev/null @@ -1,8 +0,0 @@ -# GetLibraryHubsCountry - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | United States of America | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryHubsDirector.md b/docs/models/operations/GetLibraryHubsDirector.md deleted file mode 100644 index d6ea192e..00000000 --- a/docs/models/operations/GetLibraryHubsDirector.md +++ /dev/null @@ -1,8 +0,0 @@ -# GetLibraryHubsDirector - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Nathan Greno | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryHubsGenre.md b/docs/models/operations/GetLibraryHubsGenre.md deleted file mode 100644 index bceadde8..00000000 --- a/docs/models/operations/GetLibraryHubsGenre.md +++ /dev/null @@ -1,8 +0,0 @@ -# GetLibraryHubsGenre - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Animation | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryHubsHub.md b/docs/models/operations/GetLibraryHubsHub.md deleted file mode 100644 index f673b3a6..00000000 --- a/docs/models/operations/GetLibraryHubsHub.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetLibraryHubsHub - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `key` | *Optional* | :heavy_minus_sign: | N/A | /library/sections/1/all?sort=lastViewedAt:desc&unwatched=0&viewOffset=0 | -| `title` | *Optional* | :heavy_minus_sign: | N/A | Recently Played Movies | -| `type` | *Optional* | :heavy_minus_sign: | N/A | movie | -| `hubIdentifier` | *Optional* | :heavy_minus_sign: | N/A | movie.recentlyviewed.1 | -| `context` | *Optional* | :heavy_minus_sign: | N/A | hub.movie.recentlyviewed | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 6 | -| `more` | *Optional* | :heavy_minus_sign: | N/A | true | -| `style` | *Optional* | :heavy_minus_sign: | N/A | shelf | -| `hubKey` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/66485,66098,57249,11449,5858,14944 | -| `metadata` | List<[lukehagar.plexapi.plexapi.models.operations.GetLibraryHubsMetadata](../../models/operations/GetLibraryHubsMetadata.md)> | :heavy_minus_sign: | N/A | | -| `promoted` | *Optional* | :heavy_minus_sign: | N/A | true | -| `random` | *Optional* | :heavy_minus_sign: | N/A | true | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryHubsMedia.md b/docs/models/operations/GetLibraryHubsMedia.md deleted file mode 100644 index 0fe96c7c..00000000 --- a/docs/models/operations/GetLibraryHubsMedia.md +++ /dev/null @@ -1,24 +0,0 @@ -# GetLibraryHubsMedia - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 38247 | -| `duration` | *Optional* | :heavy_minus_sign: | N/A | 6017237 | -| `bitrate` | *Optional* | :heavy_minus_sign: | N/A | 2051 | -| `width` | *Optional* | :heavy_minus_sign: | N/A | 1920 | -| `height` | *Optional* | :heavy_minus_sign: | N/A | 1080 | -| `aspectRatio` | *Optional* | :heavy_minus_sign: | N/A | 1.78 | -| `audioChannels` | *Optional* | :heavy_minus_sign: | N/A | 2 | -| `audioCodec` | *Optional* | :heavy_minus_sign: | N/A | aac | -| `videoCodec` | *Optional* | :heavy_minus_sign: | N/A | h264 | -| `videoResolution` | *Optional* | :heavy_minus_sign: | N/A | 1080 | -| `container` | *Optional* | :heavy_minus_sign: | N/A | mp4 | -| `videoFrameRate` | *Optional* | :heavy_minus_sign: | N/A | 24p | -| `optimizedForStreaming` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `audioProfile` | *Optional* | :heavy_minus_sign: | N/A | lc | -| `has64bitOffsets` | *Optional* | :heavy_minus_sign: | N/A | false | -| `videoProfile` | *Optional* | :heavy_minus_sign: | N/A | high | -| `part` | List<[lukehagar.plexapi.plexapi.models.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 deleted file mode 100644 index 96a92797..00000000 --- a/docs/models/operations/GetLibraryHubsMediaContainer.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetLibraryHubsMediaContainer - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 7 | -| `allowSync` | *Optional* | :heavy_minus_sign: | N/A | true | -| `identifier` | *Optional* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `librarySectionID` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `librarySectionTitle` | *Optional* | :heavy_minus_sign: | N/A | Movies | -| `librarySectionUUID` | *Optional* | :heavy_minus_sign: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 | -| `hub` | List<[lukehagar.plexapi.plexapi.models.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 deleted file mode 100644 index fd3a73f7..00000000 --- a/docs/models/operations/GetLibraryHubsMetadata.md +++ /dev/null @@ -1,41 +0,0 @@ -# GetLibraryHubsMetadata - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ratingKey` | *Optional* | :heavy_minus_sign: | N/A | 14944 | -| `key` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/14944 | -| `guid` | *Optional* | :heavy_minus_sign: | N/A | plex://movie/5d77686eeb5d26001f1eb339 | -| `studio` | *Optional* | :heavy_minus_sign: | N/A | Walt Disney Animation Studios | -| `type` | *Optional* | :heavy_minus_sign: | N/A | movie | -| `title` | *Optional* | :heavy_minus_sign: | N/A | Tangled | -| `librarySectionTitle` | *Optional* | :heavy_minus_sign: | N/A | Movies | -| `librarySectionID` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `librarySectionKey` | *Optional* | :heavy_minus_sign: | N/A | /library/sections/1 | -| `contentRating` | *Optional* | :heavy_minus_sign: | N/A | PG | -| `summary` | *Optional* | :heavy_minus_sign: | N/A | The magically long-haired Rapunzel has spent her entire life in a tower, but now that a runaway thief has stumbled upon her, she is about to discover the world for the first time, and who she really is. | -| `rating` | *Optional* | :heavy_minus_sign: | N/A | 8.9 | -| `audienceRating` | *Optional* | :heavy_minus_sign: | N/A | 8.7 | -| `viewCount` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `lastViewedAt` | *Optional* | :heavy_minus_sign: | N/A | 1704936047 | -| `year` | *Optional* | :heavy_minus_sign: | N/A | 2010 | -| `tagline` | *Optional* | :heavy_minus_sign: | N/A | They're taking adventure to new lengths. | -| `thumb` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/14944/thumb/1705739847 | -| `art` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/14944/art/1705739847 | -| `duration` | *Optional* | :heavy_minus_sign: | N/A | 6017237 | -| `originallyAvailableAt` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_minus_sign: | N/A | 2010-11-24 00:00:00 +0000 UTC | -| `addedAt` | *Optional* | :heavy_minus_sign: | N/A | 1589412494 | -| `updatedAt` | *Optional* | :heavy_minus_sign: | N/A | 1705739847 | -| `audienceRatingImage` | *Optional* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.upright | -| `primaryExtraKey` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/14952 | -| `ratingImage` | *Optional* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.ripe | -| `media` | List<[lukehagar.plexapi.plexapi.models.operations.GetLibraryHubsMedia](../../models/operations/GetLibraryHubsMedia.md)> | :heavy_minus_sign: | N/A | | -| `genre` | List<[lukehagar.plexapi.plexapi.models.operations.GetLibraryHubsGenre](../../models/operations/GetLibraryHubsGenre.md)> | :heavy_minus_sign: | N/A | | -| `country` | List<[lukehagar.plexapi.plexapi.models.operations.GetLibraryHubsCountry](../../models/operations/GetLibraryHubsCountry.md)> | :heavy_minus_sign: | N/A | | -| `director` | List<[lukehagar.plexapi.plexapi.models.operations.GetLibraryHubsDirector](../../models/operations/GetLibraryHubsDirector.md)> | :heavy_minus_sign: | N/A | | -| `role` | List<[lukehagar.plexapi.plexapi.models.operations.GetLibraryHubsRole](../../models/operations/GetLibraryHubsRole.md)> | :heavy_minus_sign: | N/A | | -| `writer` | List<[lukehagar.plexapi.plexapi.models.operations.GetLibraryHubsWriter](../../models/operations/GetLibraryHubsWriter.md)> | :heavy_minus_sign: | N/A | | -| `skipCount` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `chapterSource` | *Optional* | :heavy_minus_sign: | N/A | media | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryHubsPart.md b/docs/models/operations/GetLibraryHubsPart.md deleted file mode 100644 index 29504717..00000000 --- a/docs/models/operations/GetLibraryHubsPart.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetLibraryHubsPart - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 38247 | -| `key` | *Optional* | :heavy_minus_sign: | N/A | /library/parts/38247/1589412494/file.mp4 | -| `duration` | *Optional* | :heavy_minus_sign: | N/A | 6017237 | -| `file` | *Optional* | :heavy_minus_sign: | N/A | /movies/Tangled (2010)/Tangled (2010) Bluray-1080p.mp4 | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 1545647447 | -| `audioProfile` | *Optional* | :heavy_minus_sign: | N/A | lc | -| `container` | *Optional* | :heavy_minus_sign: | N/A | mp4 | -| `has64bitOffsets` | *Optional* | :heavy_minus_sign: | N/A | false | -| `optimizedForStreaming` | *Optional* | :heavy_minus_sign: | N/A | true | -| `videoProfile` | *Optional* | :heavy_minus_sign: | N/A | high | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryHubsRequest.md b/docs/models/operations/GetLibraryHubsRequest.md deleted file mode 100644 index 6bbb8101..00000000 --- a/docs/models/operations/GetLibraryHubsRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetLibraryHubsRequest - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | -| `sectionId` | *double* | :heavy_check_mark: | the Id of the library to query | -| `count` | *Optional* | :heavy_minus_sign: | The number of items to return with each hub. | -| `onlyTransient` | [Optional](../../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 deleted file mode 100644 index 052608b9..00000000 --- a/docs/models/operations/GetLibraryHubsResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetLibraryHubsResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional](../../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 deleted file mode 100644 index 491eb395..00000000 --- a/docs/models/operations/GetLibraryHubsResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetLibraryHubsResponseBody - -The hubs specific to the library - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetLibraryHubsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryHubsRole.md b/docs/models/operations/GetLibraryHubsRole.md deleted file mode 100644 index fa3cb330..00000000 --- a/docs/models/operations/GetLibraryHubsRole.md +++ /dev/null @@ -1,8 +0,0 @@ -# GetLibraryHubsRole - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Donna Murphy | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryHubsWriter.md b/docs/models/operations/GetLibraryHubsWriter.md deleted file mode 100644 index a66a46bb..00000000 --- a/docs/models/operations/GetLibraryHubsWriter.md +++ /dev/null @@ -1,8 +0,0 @@ -# GetLibraryHubsWriter - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Wilhelm Grimm | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryItemsCountry.md b/docs/models/operations/GetLibraryItemsCountry.md deleted file mode 100644 index 69cdad79..00000000 --- a/docs/models/operations/GetLibraryItemsCountry.md +++ /dev/null @@ -1,8 +0,0 @@ -# GetLibraryItemsCountry - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | United States of America | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryItemsDirector.md b/docs/models/operations/GetLibraryItemsDirector.md deleted file mode 100644 index 315fba69..00000000 --- a/docs/models/operations/GetLibraryItemsDirector.md +++ /dev/null @@ -1,8 +0,0 @@ -# GetLibraryItemsDirector - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | James Cameron | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryItemsGenre.md b/docs/models/operations/GetLibraryItemsGenre.md deleted file mode 100644 index 1bbf7901..00000000 --- a/docs/models/operations/GetLibraryItemsGenre.md +++ /dev/null @@ -1,8 +0,0 @@ -# GetLibraryItemsGenre - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Adventure | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryItemsMedia.md b/docs/models/operations/GetLibraryItemsMedia.md deleted file mode 100644 index 5185ce17..00000000 --- a/docs/models/operations/GetLibraryItemsMedia.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetLibraryItemsMedia - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 119534 | -| `duration` | *Optional* | :heavy_minus_sign: | N/A | 11558112 | -| `bitrate` | *Optional* | :heavy_minus_sign: | N/A | 25025 | -| `width` | *Optional* | :heavy_minus_sign: | N/A | 3840 | -| `height` | *Optional* | :heavy_minus_sign: | N/A | 2072 | -| `aspectRatio` | *Optional* | :heavy_minus_sign: | N/A | 1.85 | -| `audioChannels` | *Optional* | :heavy_minus_sign: | N/A | 6 | -| `audioCodec` | *Optional* | :heavy_minus_sign: | N/A | eac3 | -| `videoCodec` | *Optional* | :heavy_minus_sign: | N/A | hevc | -| `videoResolution` | *Optional* | :heavy_minus_sign: | N/A | 4k | -| `container` | *Optional* | :heavy_minus_sign: | N/A | mkv | -| `videoFrameRate` | *Optional* | :heavy_minus_sign: | N/A | 24p | -| `videoProfile` | *Optional* | :heavy_minus_sign: | N/A | main 10 | -| `part` | List<[lukehagar.plexapi.plexapi.models.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 deleted file mode 100644 index 6d69e487..00000000 --- a/docs/models/operations/GetLibraryItemsMediaContainer.md +++ /dev/null @@ -1,23 +0,0 @@ -# GetLibraryItemsMediaContainer - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 70 | -| `allowSync` | *Optional* | :heavy_minus_sign: | N/A | true | -| `art` | *Optional* | :heavy_minus_sign: | N/A | /:/resources/movie-fanart.jpg | -| `identifier` | *Optional* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `librarySectionID` | [Optional](../../models/operations/LibrarySectionID.md) | :heavy_minus_sign: | N/A | | -| `librarySectionTitle` | *Optional* | :heavy_minus_sign: | N/A | Movies | -| `librarySectionUUID` | *Optional* | :heavy_minus_sign: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 | -| `mediaTagPrefix` | *Optional* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | -| `mediaTagVersion` | *Optional* | :heavy_minus_sign: | N/A | 1701731894 | -| `thumb` | *Optional* | :heavy_minus_sign: | N/A | /:/resources/movie.png | -| `title1` | *Optional* | :heavy_minus_sign: | N/A | Movies | -| `title2` | *Optional* | :heavy_minus_sign: | N/A | Recently Released | -| `viewGroup` | *Optional* | :heavy_minus_sign: | N/A | movie | -| `viewMode` | *Optional* | :heavy_minus_sign: | N/A | 65592 | -| `mixedParents` | *Optional* | :heavy_minus_sign: | N/A | true | -| `metadata` | List<[lukehagar.plexapi.plexapi.models.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 deleted file mode 100644 index 77ae46ce..00000000 --- a/docs/models/operations/GetLibraryItemsMetadata.md +++ /dev/null @@ -1,64 +0,0 @@ -# GetLibraryItemsMetadata - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ratingKey` | *Optional* | :heavy_minus_sign: | N/A | 58683 | -| `key` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/58683 | -| `guid` | *Optional* | :heavy_minus_sign: | N/A | plex://movie/5d7768ba96b655001fdc0408 | -| `studio` | *Optional* | :heavy_minus_sign: | N/A | 20th Century Studios | -| `type` | *Optional* | :heavy_minus_sign: | N/A | movie | -| `title` | *Optional* | :heavy_minus_sign: | N/A | Avatar: The Way of Water | -| `contentRating` | *Optional* | :heavy_minus_sign: | N/A | PG-13 | -| `summary` | *Optional* | :heavy_minus_sign: | N/A | Jake Sully lives with his newfound family formed on the extrasolar moon Pandora. Once a familiar threat returns to finish what was previously started, Jake must work with Neytiri and the army of the Na'vi race to protect their home. | -| `rating` | *Optional* | :heavy_minus_sign: | N/A | 7.6 | -| `audienceRating` | *Optional* | :heavy_minus_sign: | N/A | 9.2 | -| `year` | *Optional* | :heavy_minus_sign: | N/A | 2022 | -| `tagline` | *Optional* | :heavy_minus_sign: | N/A | Return to Pandora. | -| `thumb` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/58683/thumb/1703239236 | -| `art` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/58683/art/1703239236 | -| `duration` | *Optional* | :heavy_minus_sign: | N/A | 11558112 | -| `originallyAvailableAt` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_minus_sign: | N/A | 2022-12-14 00:00:00 +0000 UTC | -| `addedAt` | *Optional* | :heavy_minus_sign: | N/A | 1680457607 | -| `updatedAt` | *Optional* | :heavy_minus_sign: | N/A | 1703239236 | -| `audienceRatingImage` | *Optional* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.upright | -| `chapterSource` | *Optional* | :heavy_minus_sign: | N/A | media | -| `primaryExtraKey` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/58684 | -| `ratingImage` | *Optional* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.ripe | -| `grandparentRatingKey` | *Optional* | :heavy_minus_sign: | N/A | 66 | -| `grandparentGuid` | *Optional* | :heavy_minus_sign: | N/A | plex://show/5d9c081b170e24001f2a7be4 | -| `grandparentKey` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/66 | -| `grandparentTitle` | *Optional* | :heavy_minus_sign: | N/A | Caprica | -| `grandparentThumb` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/66/thumb/1705716261 | -| `grandparentArt` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/66/art/1705716261 | -| `grandparentTheme` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/66/theme/1705716261 | -| `media` | List<[lukehagar.plexapi.plexapi.models.operations.GetLibraryItemsMedia](../../models/operations/GetLibraryItemsMedia.md)> | :heavy_minus_sign: | N/A | | -| `genre` | List<[lukehagar.plexapi.plexapi.models.operations.GetLibraryItemsGenre](../../models/operations/GetLibraryItemsGenre.md)> | :heavy_minus_sign: | N/A | | -| `country` | List<[lukehagar.plexapi.plexapi.models.operations.GetLibraryItemsCountry](../../models/operations/GetLibraryItemsCountry.md)> | :heavy_minus_sign: | N/A | | -| `director` | List<[lukehagar.plexapi.plexapi.models.operations.GetLibraryItemsDirector](../../models/operations/GetLibraryItemsDirector.md)> | :heavy_minus_sign: | N/A | | -| `writer` | List<[lukehagar.plexapi.plexapi.models.operations.GetLibraryItemsWriter](../../models/operations/GetLibraryItemsWriter.md)> | :heavy_minus_sign: | N/A | | -| `role` | List<[lukehagar.plexapi.plexapi.models.operations.GetLibraryItemsRole](../../models/operations/GetLibraryItemsRole.md)> | :heavy_minus_sign: | N/A | | -| `titleSort` | *Optional* | :heavy_minus_sign: | N/A | Whale | -| `viewCount` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `lastViewedAt` | *Optional* | :heavy_minus_sign: | N/A | 1682752242 | -| `originalTitle` | *Optional* | :heavy_minus_sign: | N/A | 映画 ブラッククローバー 魔法帝の剣 | -| `viewOffset` | *Optional* | :heavy_minus_sign: | N/A | 5222500 | -| `skipCount` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `index` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `theme` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/1/theme/1705636920 | -| `leafCount` | *Optional* | :heavy_minus_sign: | N/A | 14 | -| `viewedLeafCount` | *Optional* | :heavy_minus_sign: | N/A | 0 | -| `childCount` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `hasPremiumExtras` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `hasPremiumPrimaryExtra` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `parentRatingKey` | *Optional* | :heavy_minus_sign: | N/A | 66 | -| `parentGuid` | *Optional* | :heavy_minus_sign: | N/A | plex://show/5d9c081b170e24001f2a7be4 | -| `parentStudio` | *Optional* | :heavy_minus_sign: | N/A | UCP | -| `parentKey` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/66 | -| `parentTitle` | *Optional* | :heavy_minus_sign: | N/A | Caprica | -| `parentIndex` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `parentYear` | *Optional* | :heavy_minus_sign: | N/A | 2010 | -| `parentThumb` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/66/thumb/1705716261 | -| `parentTheme` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/66/theme/1705716261 | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryItemsPart.md b/docs/models/operations/GetLibraryItemsPart.md deleted file mode 100644 index 56f6eb56..00000000 --- a/docs/models/operations/GetLibraryItemsPart.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetLibraryItemsPart - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 119542 | -| `key` | *Optional* | :heavy_minus_sign: | N/A | /library/parts/119542/1680457526/file.mkv | -| `duration` | *Optional* | :heavy_minus_sign: | N/A | 11558112 | -| `file` | *Optional* | :heavy_minus_sign: | N/A | /movies/Avatar The Way of Water (2022)/Avatar.The.Way.of.Water.2022.2160p.WEB-DL.DDP5.1.Atmos.DV.HDR10.HEVC-CMRG.mkv | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 36158371307 | -| `container` | *Optional* | :heavy_minus_sign: | N/A | mkv | -| `videoProfile` | *Optional* | :heavy_minus_sign: | N/A | main 10 | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryItemsRequest.md b/docs/models/operations/GetLibraryItemsRequest.md deleted file mode 100644 index 36636ee4..00000000 --- a/docs/models/operations/GetLibraryItemsRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetLibraryItemsRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | -| `sectionId` | *java.lang.Object* | :heavy_check_mark: | the Id of the library to query | | -| `tag` | [lukehagar.plexapi.plexapi.models.operations.Tag](../../models/operations/Tag.md) | :heavy_check_mark: | A key representing a specific tag within the section. | | -| `includeGuids` | *Optional* | :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 deleted file mode 100644 index 020831c0..00000000 --- a/docs/models/operations/GetLibraryItemsResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetLibraryItemsResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional](../../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 deleted file mode 100644 index 70ea1a88..00000000 --- a/docs/models/operations/GetLibraryItemsResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetLibraryItemsResponseBody - -The contents of the library by section and tag - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetLibraryItemsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryItemsRole.md b/docs/models/operations/GetLibraryItemsRole.md deleted file mode 100644 index 64d3996c..00000000 --- a/docs/models/operations/GetLibraryItemsRole.md +++ /dev/null @@ -1,8 +0,0 @@ -# GetLibraryItemsRole - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Sigourney Weaver | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryItemsWriter.md b/docs/models/operations/GetLibraryItemsWriter.md deleted file mode 100644 index 0c0e0dcb..00000000 --- a/docs/models/operations/GetLibraryItemsWriter.md +++ /dev/null @@ -1,8 +0,0 @@ -# GetLibraryItemsWriter - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | James Cameron | \ No newline at end of file diff --git a/docs/models/operations/GetLibraryMediaContainer.md b/docs/models/operations/GetLibraryMediaContainer.md deleted file mode 100644 index bf2ca438..00000000 --- a/docs/models/operations/GetLibraryMediaContainer.md +++ /dev/null @@ -1,22 +0,0 @@ -# GetLibraryMediaContainer - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 29 | -| `allowSync` | *Optional* | :heavy_minus_sign: | N/A | false | -| `art` | *Optional* | :heavy_minus_sign: | N/A | /:/resources/movie-fanart.jpg | -| `content` | *Optional* | :heavy_minus_sign: | N/A | secondary | -| `identifier` | *Optional* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `librarySectionID` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `mediaTagPrefix` | *Optional* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | -| `mediaTagVersion` | *Optional* | :heavy_minus_sign: | N/A | 1701731894 | -| `thumb` | *Optional* | :heavy_minus_sign: | N/A | /:/resources/movie.png | -| `title1` | *Optional* | :heavy_minus_sign: | N/A | Movies | -| `viewGroup` | *Optional* | :heavy_minus_sign: | N/A | secondary | -| `viewMode` | *Optional* | :heavy_minus_sign: | N/A | 65592 | -| `directory` | List<[lukehagar.plexapi.plexapi.models.operations.GetLibraryDirectory](../../models/operations/GetLibraryDirectory.md)> | :heavy_minus_sign: | N/A | | -| `type` | List<[lukehagar.plexapi.plexapi.models.operations.GetLibraryType](../../models/operations/GetLibraryType.md)> | :heavy_minus_sign: | N/A | | -| `fieldType` | List<[lukehagar.plexapi.plexapi.models.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 deleted file mode 100644 index 7ce65301..00000000 --- a/docs/models/operations/GetLibraryRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetLibraryRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `sectionId` | *double* | :heavy_check_mark: | the Id of the library to query | 1000 | -| `includeDetails` | [Optional](../../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 deleted file mode 100644 index e433df3b..00000000 --- a/docs/models/operations/GetLibraryResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetLibraryResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional](../../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 deleted file mode 100644 index 9b07cc6e..00000000 --- a/docs/models/operations/GetLibraryResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetLibraryResponseBody - -The details of the library - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../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 deleted file mode 100644 index 495b89ad..00000000 --- a/docs/models/operations/GetLibraryType.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetLibraryType - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | -| `key` | *Optional* | :heavy_minus_sign: | N/A | /library/sections/1/all?type=1 | -| `type` | *Optional* | :heavy_minus_sign: | N/A | movie | -| `title` | *Optional* | :heavy_minus_sign: | N/A | Movies | -| `active` | *Optional* | :heavy_minus_sign: | N/A | false | -| `filter` | List<[lukehagar.plexapi.plexapi.models.operations.GetLibraryFilter](../../models/operations/GetLibraryFilter.md)> | :heavy_minus_sign: | N/A | | -| `sort` | List<[lukehagar.plexapi.plexapi.models.operations.Sort](../../models/operations/Sort.md)> | :heavy_minus_sign: | N/A | | -| `field` | List<[lukehagar.plexapi.plexapi.models.operations.Field](../../models/operations/Field.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetMetadataChildrenDirectory.md b/docs/models/operations/GetMetadataChildrenDirectory.md deleted file mode 100644 index b3a6018e..00000000 --- a/docs/models/operations/GetMetadataChildrenDirectory.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetMetadataChildrenDirectory - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| `leafCount` | *Optional* | :heavy_minus_sign: | N/A | 16 | -| `thumb` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/30072/thumb/1705739923 | -| `viewedLeafCount` | *Optional* | :heavy_minus_sign: | N/A | 16 | -| `key` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/30072/allLeaves | -| `title` | *Optional* | :heavy_minus_sign: | N/A | All episodes | \ No newline at end of file diff --git a/docs/models/operations/GetMetadataChildrenMediaContainer.md b/docs/models/operations/GetMetadataChildrenMediaContainer.md deleted file mode 100644 index f3d457ad..00000000 --- a/docs/models/operations/GetMetadataChildrenMediaContainer.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetMetadataChildrenMediaContainer - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 3 | -| `allowSync` | *Optional* | :heavy_minus_sign: | N/A | true | -| `art` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/30072/art/1705739923 | -| `identifier` | *Optional* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `key` | *Optional* | :heavy_minus_sign: | N/A | 30072 | -| `librarySectionID` | *Optional* | :heavy_minus_sign: | N/A | 2 | -| `librarySectionTitle` | *Optional* | :heavy_minus_sign: | N/A | TV Shows | -| `librarySectionUUID` | *Optional* | :heavy_minus_sign: | N/A | 4bb2521c-8ba9-459b-aaee-8ab8bc35eabd | -| `mediaTagPrefix` | *Optional* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | -| `mediaTagVersion` | *Optional* | :heavy_minus_sign: | N/A | 1701731894 | -| `nocache` | *Optional* | :heavy_minus_sign: | N/A | true | -| `parentIndex` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `parentTitle` | *Optional* | :heavy_minus_sign: | N/A | Reacher | -| `parentYear` | *Optional* | :heavy_minus_sign: | N/A | 2022 | -| `summary` | *Optional* | :heavy_minus_sign: | N/A | When retired Military Police Officer Jack Reacher is arrested for a murder he did not commit, he finds himself in the middle of a deadly conspiracy full of dirty cops, shady businessmen, and scheming politicians. With nothing but his wits, he must figure out what is happening in Margrave, Georgia. | -| `theme` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/30072/theme/1705739923 | -| `thumb` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/30072/thumb/1705739923 | -| `title1` | *Optional* | :heavy_minus_sign: | N/A | TV Shows | -| `title2` | *Optional* | :heavy_minus_sign: | N/A | Reacher | -| `viewGroup` | *Optional* | :heavy_minus_sign: | N/A | season | -| `viewMode` | *Optional* | :heavy_minus_sign: | N/A | 65593 | -| `directory` | List<[lukehagar.plexapi.plexapi.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` | List<[lukehagar.plexapi.plexapi.models.operations.GetMetadataChildrenMetadata](../../models/operations/GetMetadataChildrenMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetMetadataChildrenMetadata.md b/docs/models/operations/GetMetadataChildrenMetadata.md deleted file mode 100644 index 70f0c8b3..00000000 --- a/docs/models/operations/GetMetadataChildrenMetadata.md +++ /dev/null @@ -1,34 +0,0 @@ -# GetMetadataChildrenMetadata - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ratingKey` | *Optional* | :heavy_minus_sign: | N/A | 66488 | -| `key` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/66488/children | -| `parentRatingKey` | *Optional* | :heavy_minus_sign: | N/A | 30072 | -| `guid` | *Optional* | :heavy_minus_sign: | N/A | plex://season/652aea6549508477c34c6000 | -| `parentGuid` | *Optional* | :heavy_minus_sign: | N/A | plex://show/5d9c09190aaccd001f8f42f0 | -| `parentStudio` | *Optional* | :heavy_minus_sign: | N/A | Amazon Studios | -| `type` | *Optional* | :heavy_minus_sign: | N/A | season | -| `title` | *Optional* | :heavy_minus_sign: | N/A | Season 2 | -| `parentKey` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/30072 | -| `parentTitle` | *Optional* | :heavy_minus_sign: | N/A | Reacher | -| `summary` | *Optional* | :heavy_minus_sign: | N/A | Based on"Bad Luck and Trouble," when members of Reacher's old military unit start turning up dead, Reacher has just one thing on his mind—revenge. | -| `index` | *Optional* | :heavy_minus_sign: | N/A | 2 | -| `parentIndex` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `viewCount` | *Optional* | :heavy_minus_sign: | N/A | 11 | -| `lastViewedAt` | *Optional* | :heavy_minus_sign: | N/A | 1705646565 | -| `parentYear` | *Optional* | :heavy_minus_sign: | N/A | 2022 | -| `thumb` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/66488/thumb/1703065033 | -| `art` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/30072/art/1705739923 | -| `parentThumb` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/30072/thumb/1705739923 | -| `parentTheme` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/30072/theme/1705739923 | -| `leafCount` | *Optional* | :heavy_minus_sign: | N/A | 8 | -| `viewedLeafCount` | *Optional* | :heavy_minus_sign: | N/A | 8 | -| `addedAt` | *Optional* | :heavy_minus_sign: | N/A | 1702602021 | -| `updatedAt` | *Optional* | :heavy_minus_sign: | N/A | 1703065033 | -| `userRating` | *Optional* | :heavy_minus_sign: | N/A | 9 | -| `skipCount` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `lastRatedAt` | *Optional* | :heavy_minus_sign: | N/A | 1703881224 | \ No newline at end of file diff --git a/docs/models/operations/GetMetadataChildrenRequest.md b/docs/models/operations/GetMetadataChildrenRequest.md deleted file mode 100644 index 5de99e80..00000000 --- a/docs/models/operations/GetMetadataChildrenRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetMetadataChildrenRequest - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `ratingKey` | *double* | :heavy_check_mark: | the id of the library item to return the children of. | -| `includeElements` | *Optional* | :heavy_minus_sign: | Adds additional elements to the response. Supported types are (Stream)
| \ No newline at end of file diff --git a/docs/models/operations/GetMetadataChildrenResponse.md b/docs/models/operations/GetMetadataChildrenResponse.md deleted file mode 100644 index ca4297f5..00000000 --- a/docs/models/operations/GetMetadataChildrenResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetMetadataChildrenResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional](../../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 deleted file mode 100644 index ea395dec..00000000 --- a/docs/models/operations/GetMetadataChildrenResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetMetadataChildrenResponseBody - -The children of the library item. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetMetadataChildrenMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetMetadataCountry.md b/docs/models/operations/GetMetadataCountry.md deleted file mode 100644 index 6a84f0d1..00000000 --- a/docs/models/operations/GetMetadataCountry.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetMetadataCountry - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 116 | -| `filter` | *Optional* | :heavy_minus_sign: | N/A | country=116 | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | United States of America | \ No newline at end of file diff --git a/docs/models/operations/GetMetadataDirector.md b/docs/models/operations/GetMetadataDirector.md deleted file mode 100644 index 17b1b73f..00000000 --- a/docs/models/operations/GetMetadataDirector.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetMetadataDirector - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 130 | -| `filter` | *Optional* | :heavy_minus_sign: | N/A | director=130 | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Joss Whedon | -| `tagKey` | *Optional* | :heavy_minus_sign: | N/A | 5d776828880197001ec90e8f | -| `thumb` | *Optional* | :heavy_minus_sign: | N/A | https://metadata-static.plex.tv/people/5d776828880197001ec90e8f.jpg | \ No newline at end of file diff --git a/docs/models/operations/GetMetadataGenre.md b/docs/models/operations/GetMetadataGenre.md deleted file mode 100644 index 268198d1..00000000 --- a/docs/models/operations/GetMetadataGenre.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetMetadataGenre - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 184 | -| `filter` | *Optional* | :heavy_minus_sign: | N/A | genre=184 | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Thriller | \ No newline at end of file diff --git a/docs/models/operations/GetMetadataMedia.md b/docs/models/operations/GetMetadataMedia.md deleted file mode 100644 index c6e96b04..00000000 --- a/docs/models/operations/GetMetadataMedia.md +++ /dev/null @@ -1,24 +0,0 @@ -# GetMetadataMedia - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 15 | -| `duration` | *Optional* | :heavy_minus_sign: | N/A | 141417 | -| `bitrate` | *Optional* | :heavy_minus_sign: | N/A | 2278 | -| `width` | *Optional* | :heavy_minus_sign: | N/A | 1920 | -| `height` | *Optional* | :heavy_minus_sign: | N/A | 814 | -| `aspectRatio` | *Optional* | :heavy_minus_sign: | N/A | 2.35 | -| `audioChannels` | *Optional* | :heavy_minus_sign: | N/A | 2 | -| `audioCodec` | *Optional* | :heavy_minus_sign: | N/A | aac | -| `videoCodec` | *Optional* | :heavy_minus_sign: | N/A | h264 | -| `videoResolution` | *Optional* | :heavy_minus_sign: | N/A | 1080 | -| `container` | *Optional* | :heavy_minus_sign: | N/A | mp4 | -| `videoFrameRate` | *Optional* | :heavy_minus_sign: | N/A | 24p | -| `optimizedForStreaming` | *Optional* | :heavy_minus_sign: | N/A | 0 | -| `audioProfile` | *Optional* | :heavy_minus_sign: | N/A | lc | -| `has64bitOffsets` | *Optional* | :heavy_minus_sign: | N/A | false | -| `videoProfile` | *Optional* | :heavy_minus_sign: | N/A | high | -| `part` | List<[lukehagar.plexapi.plexapi.models.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 deleted file mode 100644 index dd2dcdc3..00000000 --- a/docs/models/operations/GetMetadataMediaContainer.md +++ /dev/null @@ -1,16 +0,0 @@ -# GetMetadataMediaContainer - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `allowSync` | *Optional* | :heavy_minus_sign: | N/A | true | -| `identifier` | *Optional* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `librarySectionID` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `librarySectionTitle` | *Optional* | :heavy_minus_sign: | N/A | Movies | -| `librarySectionUUID` | *Optional* | :heavy_minus_sign: | N/A | cfc899d7-3000-46f6-8489-b9592714ada5 | -| `mediaTagPrefix` | *Optional* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | -| `mediaTagVersion` | *Optional* | :heavy_minus_sign: | N/A | 1698860922 | -| `metadata` | List<[lukehagar.plexapi.plexapi.models.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 deleted file mode 100644 index 148f8ba7..00000000 --- a/docs/models/operations/GetMetadataMetadata.md +++ /dev/null @@ -1,40 +0,0 @@ -# GetMetadataMetadata - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ratingKey` | *Optional* | :heavy_minus_sign: | N/A | 17 | -| `key` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/17 | -| `guid` | *Optional* | :heavy_minus_sign: | N/A | plex://movie/5d77683f6f4521001ea9dc53 | -| `studio` | *Optional* | :heavy_minus_sign: | N/A | Universal Pictures | -| `type` | *Optional* | :heavy_minus_sign: | N/A | movie | -| `title` | *Optional* | :heavy_minus_sign: | N/A | Serenity | -| `librarySectionTitle` | *Optional* | :heavy_minus_sign: | N/A | Movies | -| `librarySectionID` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `librarySectionKey` | *Optional* | :heavy_minus_sign: | N/A | /library/sections/1 | -| `contentRating` | *Optional* | :heavy_minus_sign: | N/A | PG-13 | -| `summary` | *Optional* | :heavy_minus_sign: | N/A | Serenity continues the story of the TV series it was based upon ("Firefly"). River Tam had a secret - one in which she's not even aware - so dangerous, no one's safe, as an Alliance operative's sent to capture her, and all others are considered irrelevant to his job. | -| `rating` | *Optional* | :heavy_minus_sign: | N/A | 8.2 | -| `audienceRating` | *Optional* | :heavy_minus_sign: | N/A | 9.1 | -| `year` | *Optional* | :heavy_minus_sign: | N/A | 2005 | -| `tagline` | *Optional* | :heavy_minus_sign: | N/A | They aim to misbehave. | -| `thumb` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/17/thumb/1705637165 | -| `art` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/17/art/1705637165 | -| `duration` | *Optional* | :heavy_minus_sign: | N/A | 141417 | -| `originallyAvailableAt` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_minus_sign: | N/A | 2005-09-29 00:00:00 +0000 UTC | -| `addedAt` | *Optional* | :heavy_minus_sign: | N/A | 1705637164 | -| `updatedAt` | *Optional* | :heavy_minus_sign: | N/A | 1705637165 | -| `audienceRatingImage` | *Optional* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.upright | -| `hasPremiumPrimaryExtra` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `ratingImage` | *Optional* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.ripe | -| `media` | List<[lukehagar.plexapi.plexapi.models.operations.GetMetadataMedia](../../models/operations/GetMetadataMedia.md)> | :heavy_minus_sign: | N/A | | -| `genre` | List<[lukehagar.plexapi.plexapi.models.operations.GetMetadataGenre](../../models/operations/GetMetadataGenre.md)> | :heavy_minus_sign: | N/A | | -| `country` | List<[lukehagar.plexapi.plexapi.models.operations.GetMetadataCountry](../../models/operations/GetMetadataCountry.md)> | :heavy_minus_sign: | N/A | | -| `guids` | List<[lukehagar.plexapi.plexapi.models.operations.Guids](../../models/operations/Guids.md)> | :heavy_minus_sign: | N/A | | -| `ratings` | List<[lukehagar.plexapi.plexapi.models.operations.Ratings](../../models/operations/Ratings.md)> | :heavy_minus_sign: | N/A | | -| `director` | List<[lukehagar.plexapi.plexapi.models.operations.GetMetadataDirector](../../models/operations/GetMetadataDirector.md)> | :heavy_minus_sign: | N/A | | -| `writer` | List<[lukehagar.plexapi.plexapi.models.operations.GetMetadataWriter](../../models/operations/GetMetadataWriter.md)> | :heavy_minus_sign: | N/A | | -| `role` | List<[lukehagar.plexapi.plexapi.models.operations.GetMetadataRole](../../models/operations/GetMetadataRole.md)> | :heavy_minus_sign: | N/A | | -| `producer` | List<[lukehagar.plexapi.plexapi.models.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 deleted file mode 100644 index 53f9ed88..00000000 --- a/docs/models/operations/GetMetadataPart.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetMetadataPart - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 15 | -| `key` | *Optional* | :heavy_minus_sign: | N/A | /library/parts/15/1705637151/file.mp4 | -| `duration` | *Optional* | :heavy_minus_sign: | N/A | 141417 | -| `file` | *Optional* | :heavy_minus_sign: | N/A | /movies/Serenity (2005)/Serenity (2005).mp4 | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 40271948 | -| `audioProfile` | *Optional* | :heavy_minus_sign: | N/A | lc | -| `container` | *Optional* | :heavy_minus_sign: | N/A | mp4 | -| `has64bitOffsets` | *Optional* | :heavy_minus_sign: | N/A | false | -| `optimizedForStreaming` | *Optional* | :heavy_minus_sign: | N/A | false | -| `videoProfile` | *Optional* | :heavy_minus_sign: | N/A | high | -| `stream` | List<[lukehagar.plexapi.plexapi.models.operations.Stream](../../models/operations/Stream.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetMetadataRequest.md b/docs/models/operations/GetMetadataRequest.md deleted file mode 100644 index 483bb2db..00000000 --- a/docs/models/operations/GetMetadataRequest.md +++ /dev/null @@ -1,8 +0,0 @@ -# GetMetadataRequest - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | -| `ratingKey` | *double* | :heavy_check_mark: | the id of the library item to return the children of. | \ No newline at end of file diff --git a/docs/models/operations/GetMetadataResponse.md b/docs/models/operations/GetMetadataResponse.md deleted file mode 100644 index 6c26794f..00000000 --- a/docs/models/operations/GetMetadataResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetMetadataResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional](../../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 deleted file mode 100644 index e8f04321..00000000 --- a/docs/models/operations/GetMetadataResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetMetadataResponseBody - -The metadata of the library item. - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetMetadataMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetMetadataRole.md b/docs/models/operations/GetMetadataRole.md deleted file mode 100644 index b8ae14bb..00000000 --- a/docs/models/operations/GetMetadataRole.md +++ /dev/null @@ -1,13 +0,0 @@ -# GetMetadataRole - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 220 | -| `filter` | *Optional* | :heavy_minus_sign: | N/A | actor=220 | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Dennis Keiffer | -| `tagKey` | *Optional* | :heavy_minus_sign: | N/A | 5d77683554f42c001f8c4708 | -| `role` | *Optional* | :heavy_minus_sign: | N/A | Bar Guy (uncredited) | -| `thumb` | *Optional* | :heavy_minus_sign: | N/A | https://metadata-static.plex.tv/6/people/648e9a7ea1d537bccfcd7615134b78ce.jpg | \ No newline at end of file diff --git a/docs/models/operations/GetMetadataWriter.md b/docs/models/operations/GetMetadataWriter.md deleted file mode 100644 index 3a2002e1..00000000 --- a/docs/models/operations/GetMetadataWriter.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetMetadataWriter - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 132 | -| `filter` | *Optional* | :heavy_minus_sign: | N/A | writer=132 | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Joss Whedon | -| `tagKey` | *Optional* | :heavy_minus_sign: | N/A | 5d776828880197001ec90e8f | -| `thumb` | *Optional* | :heavy_minus_sign: | N/A | https://metadata-static.plex.tv/people/5d776828880197001ec90e8f.jpg | \ No newline at end of file diff --git a/docs/models/operations/GetMyPlexAccountResponse.md b/docs/models/operations/GetMyPlexAccountResponse.md deleted file mode 100644 index 352f9927..00000000 --- a/docs/models/operations/GetMyPlexAccountResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetMyPlexAccountResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional](../../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 deleted file mode 100644 index 023f33f2..00000000 --- a/docs/models/operations/GetMyPlexAccountResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetMyPlexAccountResponseBody - -MyPlex Account - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `myPlex` | [Optional](../../models/operations/MyPlex.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetOnDeckGuids.md b/docs/models/operations/GetOnDeckGuids.md deleted file mode 100644 index 71aca887..00000000 --- a/docs/models/operations/GetOnDeckGuids.md +++ /dev/null @@ -1,8 +0,0 @@ -# GetOnDeckGuids - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | imdb://tt13303712 | \ No newline at end of file diff --git a/docs/models/operations/GetOnDeckMedia.md b/docs/models/operations/GetOnDeckMedia.md deleted file mode 100644 index 6dba1998..00000000 --- a/docs/models/operations/GetOnDeckMedia.md +++ /dev/null @@ -1,22 +0,0 @@ -# GetOnDeckMedia - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 80994 | -| `duration` | *Optional* | :heavy_minus_sign: | N/A | 420080 | -| `bitrate` | *Optional* | :heavy_minus_sign: | N/A | 1046 | -| `width` | *Optional* | :heavy_minus_sign: | N/A | 1920 | -| `height` | *Optional* | :heavy_minus_sign: | N/A | 1080 | -| `aspectRatio` | *Optional* | :heavy_minus_sign: | N/A | 1.78 | -| `audioChannels` | *Optional* | :heavy_minus_sign: | N/A | 2 | -| `audioCodec` | *Optional* | :heavy_minus_sign: | N/A | aac | -| `videoCodec` | *Optional* | :heavy_minus_sign: | N/A | hevc | -| `videoResolution` | *Optional* | :heavy_minus_sign: | N/A | 1080 | -| `container` | *Optional* | :heavy_minus_sign: | N/A | mkv | -| `videoFrameRate` | *Optional* | :heavy_minus_sign: | N/A | PAL | -| `audioProfile` | *Optional* | :heavy_minus_sign: | N/A | lc | -| `videoProfile` | *Optional* | :heavy_minus_sign: | N/A | main | -| `part` | List<[lukehagar.plexapi.plexapi.models.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 deleted file mode 100644 index f5f0a610..00000000 --- a/docs/models/operations/GetOnDeckMediaContainer.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetOnDeckMediaContainer - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 16 | -| `allowSync` | *Optional* | :heavy_minus_sign: | N/A | | -| `identifier` | *Optional* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `mediaTagPrefix` | *Optional* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | -| `mediaTagVersion` | *Optional* | :heavy_minus_sign: | N/A | 1680021154 | -| `mixedParents` | *Optional* | :heavy_minus_sign: | N/A | | -| `metadata` | List<[lukehagar.plexapi.plexapi.models.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 deleted file mode 100644 index 83bcccbc..00000000 --- a/docs/models/operations/GetOnDeckMetadata.md +++ /dev/null @@ -1,43 +0,0 @@ -# GetOnDeckMetadata - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `allowSync` | *Optional* | :heavy_minus_sign: | N/A | | -| `librarySectionID` | *Optional* | :heavy_minus_sign: | N/A | 2 | -| `librarySectionTitle` | *Optional* | :heavy_minus_sign: | N/A | TV Shows | -| `librarySectionUUID` | *Optional* | :heavy_minus_sign: | N/A | 4bb2521c-8ba9-459b-aaee-8ab8bc35eabd | -| `ratingKey` | *Optional* | :heavy_minus_sign: | N/A | 49564 | -| `key` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/49564 | -| `parentRatingKey` | *Optional* | :heavy_minus_sign: | N/A | 49557 | -| `grandparentRatingKey` | *Optional* | :heavy_minus_sign: | N/A | 49556 | -| `guid` | *Optional* | :heavy_minus_sign: | N/A | plex://episode/5ea7d7402e7ab10042e74d4f | -| `parentGuid` | *Optional* | :heavy_minus_sign: | N/A | plex://season/602e754d67f4c8002ce54b3d | -| `grandparentGuid` | *Optional* | :heavy_minus_sign: | N/A | plex://show/5d9c090e705e7a001e6e94d8 | -| `type` | *Optional* | :heavy_minus_sign: | N/A | episode | -| `title` | *Optional* | :heavy_minus_sign: | N/A | Circus | -| `grandparentKey` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/49556 | -| `parentKey` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/49557 | -| `librarySectionKey` | *Optional* | :heavy_minus_sign: | N/A | /library/sections/2 | -| `grandparentTitle` | *Optional* | :heavy_minus_sign: | N/A | Bluey (2018) | -| `parentTitle` | *Optional* | :heavy_minus_sign: | N/A | Season 2 | -| `contentRating` | *Optional* | :heavy_minus_sign: | N/A | TV-Y | -| `summary` | *Optional* | :heavy_minus_sign: | N/A | Bluey is the ringmaster in a game of circus with her friends but Hercules wants to play his motorcycle game instead. Luckily Bluey has a solution to keep everyone happy. | -| `index` | *Optional* | :heavy_minus_sign: | N/A | 33 | -| `parentIndex` | *Optional* | :heavy_minus_sign: | N/A | 2 | -| `lastViewedAt` | *Optional* | :heavy_minus_sign: | N/A | 1681908352 | -| `year` | *Optional* | :heavy_minus_sign: | N/A | 2018 | -| `thumb` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/49564/thumb/1654258204 | -| `art` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/49556/art/1680939546 | -| `parentThumb` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/49557/thumb/1654258204 | -| `grandparentThumb` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/49556/thumb/1680939546 | -| `grandparentArt` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/49556/art/1680939546 | -| `grandparentTheme` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/49556/theme/1680939546 | -| `duration` | *Optional* | :heavy_minus_sign: | N/A | 420080 | -| `originallyAvailableAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | 2020-10-31 00:00:00 +0000 UTC | -| `addedAt` | *Optional* | :heavy_minus_sign: | N/A | 1654258196 | -| `updatedAt` | *Optional* | :heavy_minus_sign: | N/A | 1654258204 | -| `media` | List<[lukehagar.plexapi.plexapi.models.operations.GetOnDeckMedia](../../models/operations/GetOnDeckMedia.md)> | :heavy_minus_sign: | N/A | | -| `guids` | List<[lukehagar.plexapi.plexapi.models.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 deleted file mode 100644 index 0b06a86c..00000000 --- a/docs/models/operations/GetOnDeckPart.md +++ /dev/null @@ -1,16 +0,0 @@ -# GetOnDeckPart - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 80994 | -| `key` | *Optional* | :heavy_minus_sign: | N/A | /library/parts/80994/1655007810/file.mkv | -| `duration` | *Optional* | :heavy_minus_sign: | N/A | 420080 | -| `file` | *Optional* | :heavy_minus_sign: | N/A | /tvshows/Bluey (2018)/Bluey (2018) - S02E33 - Circus.mkv | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 55148931 | -| `audioProfile` | *Optional* | :heavy_minus_sign: | N/A | lc | -| `container` | *Optional* | :heavy_minus_sign: | N/A | mkv | -| `videoProfile` | *Optional* | :heavy_minus_sign: | N/A | main | -| `stream` | List<[lukehagar.plexapi.plexapi.models.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 deleted file mode 100644 index f0adb313..00000000 --- a/docs/models/operations/GetOnDeckResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetOnDeckResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional](../../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 deleted file mode 100644 index 1aabbc03..00000000 --- a/docs/models/operations/GetOnDeckResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetOnDeckResponseBody - -The on Deck content - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetOnDeckMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetOnDeckStream.md b/docs/models/operations/GetOnDeckStream.md deleted file mode 100644 index 38d4cdeb..00000000 --- a/docs/models/operations/GetOnDeckStream.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetOnDeckStream - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 211234 | -| `streamType` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `default_` | *Optional* | :heavy_minus_sign: | N/A | | -| `codec` | *Optional* | :heavy_minus_sign: | N/A | hevc | -| `index` | *Optional* | :heavy_minus_sign: | N/A | 0 | -| `bitrate` | *Optional* | :heavy_minus_sign: | N/A | 918 | -| `language` | *Optional* | :heavy_minus_sign: | N/A | English | -| `languageTag` | *Optional* | :heavy_minus_sign: | N/A | en | -| `languageCode` | *Optional* | :heavy_minus_sign: | N/A | eng | -| `bitDepth` | *Optional* | :heavy_minus_sign: | N/A | 8 | -| `chromaLocation` | *Optional* | :heavy_minus_sign: | N/A | left | -| `chromaSubsampling` | *Optional* | :heavy_minus_sign: | N/A | 4:2:0 | -| `codedHeight` | *Optional* | :heavy_minus_sign: | N/A | 1080 | -| `codedWidth` | *Optional* | :heavy_minus_sign: | N/A | 1920 | -| `colorRange` | *Optional* | :heavy_minus_sign: | N/A | tv | -| `frameRate` | *Optional* | :heavy_minus_sign: | N/A | 25 | -| `height` | *Optional* | :heavy_minus_sign: | N/A | 1080 | -| `level` | *Optional* | :heavy_minus_sign: | N/A | 120 | -| `profile` | *Optional* | :heavy_minus_sign: | N/A | main | -| `refFrames` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `width` | *Optional* | :heavy_minus_sign: | N/A | 1920 | -| `displayTitle` | *Optional* | :heavy_minus_sign: | N/A | 1080p (HEVC Main) | -| `extendedDisplayTitle` | *Optional* | :heavy_minus_sign: | N/A | 1080p (HEVC Main) | \ No newline at end of file diff --git a/docs/models/operations/GetPinRequest.md b/docs/models/operations/GetPinRequest.md deleted file mode 100644 index 9cff2227..00000000 --- a/docs/models/operations/GetPinRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetPinRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `strong` | *Optional* | :heavy_minus_sign: | Determines the kind of code returned by the API call
Strong codes are used for Pin authentication flows
Non-Strong codes are used for `Plex.tv/link`
| | -| `xPlexClientIdentifier` | *Optional* | :heavy_minus_sign: | 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)
| Postman | -| `xPlexProduct` | *String* | :heavy_check_mark: | Product name of the application shown in the list of devices
| Postman | \ No newline at end of file diff --git a/docs/models/operations/GetPinResponse.md b/docs/models/operations/GetPinResponse.md deleted file mode 100644 index 21f2b763..00000000 --- a/docs/models/operations/GetPinResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetPinResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional](../../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 deleted file mode 100644 index b1eea52c..00000000 --- a/docs/models/operations/GetPinResponseBody.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetPinResponseBody - -The Pin - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | PinID for use with authentication | 1272322473 | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 3patfx1a78ukcbr7x0n9bl26t | -| `product` | *Optional* | :heavy_minus_sign: | N/A | Plex Web | -| `trusted` | *Optional* | :heavy_minus_sign: | N/A | | -| `qr` | *Optional* | :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` | *Optional* | :heavy_minus_sign: | N/A | Postman | -| `location` | [Optional](../../models/operations/Location.md) | :heavy_minus_sign: | N/A | | -| `expiresIn` | *Optional* | :heavy_minus_sign: | N/A | 1800 | -| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | 2023-04-12 17:00:03 +0000 UTC | -| `expiresAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | 2023-04-12 17:30:03 +0000 UTC | -| `authToken` | *Optional* | :heavy_minus_sign: | N/A | | -| `newRegistration` | *JsonNullable* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetPlaylistContentsCountry.md b/docs/models/operations/GetPlaylistContentsCountry.md deleted file mode 100644 index 52e56464..00000000 --- a/docs/models/operations/GetPlaylistContentsCountry.md +++ /dev/null @@ -1,8 +0,0 @@ -# GetPlaylistContentsCountry - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | United States of America | \ No newline at end of file diff --git a/docs/models/operations/GetPlaylistContentsDirector.md b/docs/models/operations/GetPlaylistContentsDirector.md deleted file mode 100644 index f80a395c..00000000 --- a/docs/models/operations/GetPlaylistContentsDirector.md +++ /dev/null @@ -1,8 +0,0 @@ -# GetPlaylistContentsDirector - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Joss Whedon | \ No newline at end of file diff --git a/docs/models/operations/GetPlaylistContentsGenre.md b/docs/models/operations/GetPlaylistContentsGenre.md deleted file mode 100644 index 63bf437c..00000000 --- a/docs/models/operations/GetPlaylistContentsGenre.md +++ /dev/null @@ -1,8 +0,0 @@ -# GetPlaylistContentsGenre - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Action | \ No newline at end of file diff --git a/docs/models/operations/GetPlaylistContentsMedia.md b/docs/models/operations/GetPlaylistContentsMedia.md deleted file mode 100644 index 9762f6b4..00000000 --- a/docs/models/operations/GetPlaylistContentsMedia.md +++ /dev/null @@ -1,24 +0,0 @@ -# GetPlaylistContentsMedia - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 15 | -| `duration` | *Optional* | :heavy_minus_sign: | N/A | 141416 | -| `bitrate` | *Optional* | :heavy_minus_sign: | N/A | 2273 | -| `width` | *Optional* | :heavy_minus_sign: | N/A | 1920 | -| `height` | *Optional* | :heavy_minus_sign: | N/A | 814 | -| `aspectRatio` | *Optional* | :heavy_minus_sign: | N/A | 2.35 | -| `audioChannels` | *Optional* | :heavy_minus_sign: | N/A | 2 | -| `audioCodec` | *Optional* | :heavy_minus_sign: | N/A | aac | -| `videoCodec` | *Optional* | :heavy_minus_sign: | N/A | h264 | -| `videoResolution` | *Optional* | :heavy_minus_sign: | N/A | 1080 | -| `container` | *Optional* | :heavy_minus_sign: | N/A | mp4 | -| `videoFrameRate` | *Optional* | :heavy_minus_sign: | N/A | 24p | -| `optimizedForStreaming` | *Optional* | :heavy_minus_sign: | N/A | 0 | -| `audioProfile` | *Optional* | :heavy_minus_sign: | N/A | lc | -| `has64bitOffsets` | *Optional* | :heavy_minus_sign: | N/A | false | -| `videoProfile` | *Optional* | :heavy_minus_sign: | N/A | high | -| `part` | List<[lukehagar.plexapi.plexapi.models.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 deleted file mode 100644 index 4b476c10..00000000 --- a/docs/models/operations/GetPlaylistContentsMediaContainer.md +++ /dev/null @@ -1,16 +0,0 @@ -# GetPlaylistContentsMediaContainer - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 2 | -| `composite` | *Optional* | :heavy_minus_sign: | N/A | /playlists/95/composite/1705717521 | -| `duration` | *Optional* | :heavy_minus_sign: | N/A | 282 | -| `leafCount` | *Optional* | :heavy_minus_sign: | N/A | 2 | -| `playlistType` | *Optional* | :heavy_minus_sign: | N/A | video | -| `ratingKey` | *Optional* | :heavy_minus_sign: | N/A | 95 | -| `smart` | *Optional* | :heavy_minus_sign: | N/A | true | -| `title` | *Optional* | :heavy_minus_sign: | N/A | Smart Movie Playlist | -| `metadata` | List<[lukehagar.plexapi.plexapi.models.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 deleted file mode 100644 index debdf9c0..00000000 --- a/docs/models/operations/GetPlaylistContentsMetadata.md +++ /dev/null @@ -1,39 +0,0 @@ -# GetPlaylistContentsMetadata - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ratingKey` | *Optional* | :heavy_minus_sign: | N/A | 17 | -| `key` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/17 | -| `guid` | *Optional* | :heavy_minus_sign: | N/A | plex://movie/5d77683f6f4521001ea9dc53 | -| `studio` | *Optional* | :heavy_minus_sign: | N/A | Universal Pictures | -| `type` | *Optional* | :heavy_minus_sign: | N/A | movie | -| `title` | *Optional* | :heavy_minus_sign: | N/A | Serenity | -| `titleSort` | *Optional* | :heavy_minus_sign: | N/A | Amazing Spider-Man 2 | -| `librarySectionTitle` | *Optional* | :heavy_minus_sign: | N/A | Movies | -| `librarySectionID` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `librarySectionKey` | *Optional* | :heavy_minus_sign: | N/A | /library/sections/1 | -| `contentRating` | *Optional* | :heavy_minus_sign: | N/A | PG-13 | -| `summary` | *Optional* | :heavy_minus_sign: | N/A | Serenity continues the story of the TV series it was based upon ("Firefly"). River Tam had a secret - one in which she's not even aware - so dangerous, no one's safe, as an Alliance operative's sent to capture her, and all others are considered irrelevant to his job. | -| `rating` | *Optional* | :heavy_minus_sign: | N/A | 8.2 | -| `audienceRating` | *Optional* | :heavy_minus_sign: | N/A | 9.1 | -| `year` | *Optional* | :heavy_minus_sign: | N/A | 2005 | -| `tagline` | *Optional* | :heavy_minus_sign: | N/A | They aim to misbehave. | -| `thumb` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/17/thumb/1705637165 | -| `art` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/17/art/1705637165 | -| `duration` | *Optional* | :heavy_minus_sign: | N/A | 141416 | -| `originallyAvailableAt` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_minus_sign: | N/A | 2005-09-29 00:00:00 +0000 UTC | -| `addedAt` | *Optional* | :heavy_minus_sign: | N/A | 1705637164 | -| `updatedAt` | *Optional* | :heavy_minus_sign: | N/A | 1705637165 | -| `audienceRatingImage` | *Optional* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.upright | -| `hasPremiumExtras` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `hasPremiumPrimaryExtra` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `ratingImage` | *Optional* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.ripe | -| `media` | List<[lukehagar.plexapi.plexapi.models.operations.GetPlaylistContentsMedia](../../models/operations/GetPlaylistContentsMedia.md)> | :heavy_minus_sign: | N/A | | -| `genre` | List<[lukehagar.plexapi.plexapi.models.operations.GetPlaylistContentsGenre](../../models/operations/GetPlaylistContentsGenre.md)> | :heavy_minus_sign: | N/A | | -| `country` | List<[lukehagar.plexapi.plexapi.models.operations.GetPlaylistContentsCountry](../../models/operations/GetPlaylistContentsCountry.md)> | :heavy_minus_sign: | N/A | | -| `director` | List<[lukehagar.plexapi.plexapi.models.operations.GetPlaylistContentsDirector](../../models/operations/GetPlaylistContentsDirector.md)> | :heavy_minus_sign: | N/A | | -| `writer` | List<[lukehagar.plexapi.plexapi.models.operations.GetPlaylistContentsWriter](../../models/operations/GetPlaylistContentsWriter.md)> | :heavy_minus_sign: | N/A | | -| `role` | List<[lukehagar.plexapi.plexapi.models.operations.GetPlaylistContentsRole](../../models/operations/GetPlaylistContentsRole.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetPlaylistContentsPart.md b/docs/models/operations/GetPlaylistContentsPart.md deleted file mode 100644 index 343c4586..00000000 --- a/docs/models/operations/GetPlaylistContentsPart.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetPlaylistContentsPart - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 15 | -| `key` | *Optional* | :heavy_minus_sign: | N/A | /library/parts/15/1705637151/file.mp4 | -| `duration` | *Optional* | :heavy_minus_sign: | N/A | 141416 | -| `file` | *Optional* | :heavy_minus_sign: | N/A | /movies/Serenity (2005)/Serenity (2005).mp4 | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 40271948 | -| `audioProfile` | *Optional* | :heavy_minus_sign: | N/A | lc | -| `container` | *Optional* | :heavy_minus_sign: | N/A | mp4 | -| `has64bitOffsets` | *Optional* | :heavy_minus_sign: | N/A | false | -| `optimizedForStreaming` | *Optional* | :heavy_minus_sign: | N/A | false | -| `videoProfile` | *Optional* | :heavy_minus_sign: | N/A | high | \ No newline at end of file diff --git a/docs/models/operations/GetPlaylistContentsRequest.md b/docs/models/operations/GetPlaylistContentsRequest.md deleted file mode 100644 index 67cd6c60..00000000 --- a/docs/models/operations/GetPlaylistContentsRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetPlaylistContentsRequest - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------- | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| `playlistID` | *double* | :heavy_check_mark: | the ID of the playlist | -| `type` | *double* | :heavy_check_mark: | the metadata type of the item to return | \ No newline at end of file diff --git a/docs/models/operations/GetPlaylistContentsResponse.md b/docs/models/operations/GetPlaylistContentsResponse.md deleted file mode 100644 index 0a38d5ef..00000000 --- a/docs/models/operations/GetPlaylistContentsResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetPlaylistContentsResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional](../../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 deleted file mode 100644 index adde711d..00000000 --- a/docs/models/operations/GetPlaylistContentsResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetPlaylistContentsResponseBody - -The playlist contents - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetPlaylistContentsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetPlaylistContentsRole.md b/docs/models/operations/GetPlaylistContentsRole.md deleted file mode 100644 index d0b68239..00000000 --- a/docs/models/operations/GetPlaylistContentsRole.md +++ /dev/null @@ -1,8 +0,0 @@ -# GetPlaylistContentsRole - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Gina Torres | \ No newline at end of file diff --git a/docs/models/operations/GetPlaylistContentsWriter.md b/docs/models/operations/GetPlaylistContentsWriter.md deleted file mode 100644 index 4a7413fe..00000000 --- a/docs/models/operations/GetPlaylistContentsWriter.md +++ /dev/null @@ -1,8 +0,0 @@ -# GetPlaylistContentsWriter - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Joss Whedon | \ No newline at end of file diff --git a/docs/models/operations/GetPlaylistMediaContainer.md b/docs/models/operations/GetPlaylistMediaContainer.md deleted file mode 100644 index 22519402..00000000 --- a/docs/models/operations/GetPlaylistMediaContainer.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetPlaylistMediaContainer - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `metadata` | List<[lukehagar.plexapi.plexapi.models.operations.GetPlaylistMetadata](../../models/operations/GetPlaylistMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetPlaylistMetadata.md b/docs/models/operations/GetPlaylistMetadata.md deleted file mode 100644 index 9b0db275..00000000 --- a/docs/models/operations/GetPlaylistMetadata.md +++ /dev/null @@ -1,22 +0,0 @@ -# GetPlaylistMetadata - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `content` | *Optional* | :heavy_minus_sign: | N/A | library://x/directory/%2Flibrary%2Fsections%2F1%2Fall%3Ftype%3D1%26push%3D1%26title%3D2%26or%3D1%26title%3DSerenity%26pop%3D1 | -| `ratingKey` | *Optional* | :heavy_minus_sign: | N/A | 95 | -| `key` | *Optional* | :heavy_minus_sign: | N/A | /playlists/95/items | -| `guid` | *Optional* | :heavy_minus_sign: | N/A | com.plexapp.agents.none://87425529-380f-44b8-a689-9a0537e7ec91 | -| `type` | *Optional* | :heavy_minus_sign: | N/A | playlist | -| `title` | *Optional* | :heavy_minus_sign: | N/A | Smart Movie Playlist | -| `summary` | *Optional* | :heavy_minus_sign: | N/A | | -| `smart` | *Optional* | :heavy_minus_sign: | N/A | true | -| `playlistType` | *Optional* | :heavy_minus_sign: | N/A | video | -| `composite` | *Optional* | :heavy_minus_sign: | N/A | /playlists/95/composite/1705717387 | -| `icon` | *Optional* | :heavy_minus_sign: | N/A | playlist://image.smart | -| `duration` | *Optional* | :heavy_minus_sign: | N/A | 282000 | -| `leafCount` | *Optional* | :heavy_minus_sign: | N/A | 2 | -| `addedAt` | *Optional* | :heavy_minus_sign: | N/A | 1705716493 | -| `updatedAt` | *Optional* | :heavy_minus_sign: | N/A | 1705717387 | \ No newline at end of file diff --git a/docs/models/operations/GetPlaylistRequest.md b/docs/models/operations/GetPlaylistRequest.md deleted file mode 100644 index 93aa49c2..00000000 --- a/docs/models/operations/GetPlaylistRequest.md +++ /dev/null @@ -1,8 +0,0 @@ -# GetPlaylistRequest - - -## Fields - -| Field | Type | Required | Description | -| ---------------------- | ---------------------- | ---------------------- | ---------------------- | -| `playlistID` | *double* | :heavy_check_mark: | the ID of the playlist | \ No newline at end of file diff --git a/docs/models/operations/GetPlaylistResponse.md b/docs/models/operations/GetPlaylistResponse.md deleted file mode 100644 index b11348c3..00000000 --- a/docs/models/operations/GetPlaylistResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetPlaylistResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional](../../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 deleted file mode 100644 index 282a63b4..00000000 --- a/docs/models/operations/GetPlaylistResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetPlaylistResponseBody - -The playlist - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../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 deleted file mode 100644 index f56fb32b..00000000 --- a/docs/models/operations/GetPlaylistsMediaContainer.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetPlaylistsMediaContainer - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 4 | -| `metadata` | List<[lukehagar.plexapi.plexapi.models.operations.GetPlaylistsMetadata](../../models/operations/GetPlaylistsMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetPlaylistsMetadata.md b/docs/models/operations/GetPlaylistsMetadata.md deleted file mode 100644 index 9e65e494..00000000 --- a/docs/models/operations/GetPlaylistsMetadata.md +++ /dev/null @@ -1,23 +0,0 @@ -# GetPlaylistsMetadata - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `ratingKey` | *Optional* | :heavy_minus_sign: | N/A | 92 | -| `key` | *Optional* | :heavy_minus_sign: | N/A | /playlists/92/items | -| `guid` | *Optional* | :heavy_minus_sign: | N/A | com.plexapp.agents.none://7ca5aaef-58e8-4828-9e21-c009c97f2903 | -| `type` | *Optional* | :heavy_minus_sign: | N/A | playlist | -| `title` | *Optional* | :heavy_minus_sign: | N/A | Static Playlist | -| `summary` | *Optional* | :heavy_minus_sign: | N/A | A Great Playlist | -| `smart` | *Optional* | :heavy_minus_sign: | N/A | false | -| `playlistType` | *Optional* | :heavy_minus_sign: | N/A | video | -| `composite` | *Optional* | :heavy_minus_sign: | N/A | /playlists/92/composite/1705716440 | -| `icon` | *Optional* | :heavy_minus_sign: | N/A | playlist://image.smart | -| `viewCount` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `lastViewedAt` | *Optional* | :heavy_minus_sign: | N/A | 1705716298 | -| `duration` | *Optional* | :heavy_minus_sign: | N/A | 7328000 | -| `leafCount` | *Optional* | :heavy_minus_sign: | N/A | 32 | -| `addedAt` | *Optional* | :heavy_minus_sign: | N/A | 1705716298 | -| `updatedAt` | *Optional* | :heavy_minus_sign: | N/A | 1705716440 | \ No newline at end of file diff --git a/docs/models/operations/GetPlaylistsRequest.md b/docs/models/operations/GetPlaylistsRequest.md deleted file mode 100644 index cbc7bab8..00000000 --- a/docs/models/operations/GetPlaylistsRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetPlaylistsRequest - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `playlistType` | [Optional](../../models/operations/PlaylistType.md) | :heavy_minus_sign: | limit to a type of playlist. | -| `smart` | [Optional](../../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 deleted file mode 100644 index 6bc16b5a..00000000 --- a/docs/models/operations/GetPlaylistsResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetPlaylistsResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional](../../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 deleted file mode 100644 index 14c69828..00000000 --- a/docs/models/operations/GetPlaylistsResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetPlaylistsResponseBody - -returns all playlists - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetPlaylistsMediaContainer.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 deleted file mode 100644 index 306f9e1b..00000000 --- a/docs/models/operations/GetRecentlyAddedMediaContainer.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetRecentlyAddedMediaContainer - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 50 | -| `allowSync` | *Optional* | :heavy_minus_sign: | N/A | | -| `identifier` | *Optional* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `mediaTagPrefix` | *Optional* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | -| `mediaTagVersion` | *Optional* | :heavy_minus_sign: | N/A | 1680021154 | -| `mixedParents` | *Optional* | :heavy_minus_sign: | N/A | | -| `metadata` | List<[lukehagar.plexapi.plexapi.models.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 deleted file mode 100644 index 9e0d6ab1..00000000 --- a/docs/models/operations/GetRecentlyAddedMetadata.md +++ /dev/null @@ -1,39 +0,0 @@ -# GetRecentlyAddedMetadata - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `allowSync` | *Optional* | :heavy_minus_sign: | N/A | | -| `librarySectionID` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `librarySectionTitle` | *Optional* | :heavy_minus_sign: | N/A | Movies | -| `librarySectionUUID` | *Optional* | :heavy_minus_sign: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 | -| `ratingKey` | *Optional* | :heavy_minus_sign: | N/A | 59398 | -| `key` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/59398 | -| `guid` | *Optional* | :heavy_minus_sign: | N/A | plex://movie/5e161a83bea6ac004126e148 | -| `studio` | *Optional* | :heavy_minus_sign: | N/A | Marvel Studios | -| `type` | *Optional* | :heavy_minus_sign: | N/A | movie | -| `title` | *Optional* | :heavy_minus_sign: | N/A | Ant-Man and the Wasp: Quantumania | -| `contentRating` | *Optional* | :heavy_minus_sign: | N/A | PG-13 | -| `summary` | *Optional* | :heavy_minus_sign: | N/A | Scott Lang and Hope Van Dyne along with Hank Pym and Janet Van Dyne explore the Quantum Realm where they interact with strange creatures and embark on an adventure that goes beyond the limits of what they thought was possible. | -| `rating` | *Optional* | :heavy_minus_sign: | N/A | 4.7 | -| `audienceRating` | *Optional* | :heavy_minus_sign: | N/A | 8.3 | -| `year` | *Optional* | :heavy_minus_sign: | N/A | 2023 | -| `tagline` | *Optional* | :heavy_minus_sign: | N/A | Witness the beginning of a new dynasty. | -| `thumb` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/59398/thumb/1681888010 | -| `art` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/59398/art/1681888010 | -| `duration` | *Optional* | :heavy_minus_sign: | N/A | 7474422 | -| `originallyAvailableAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | 2023-02-15 00:00:00 +0000 UTC | -| `addedAt` | *Optional* | :heavy_minus_sign: | N/A | 1681803215 | -| `updatedAt` | *Optional* | :heavy_minus_sign: | N/A | 1681888010 | -| `audienceRatingImage` | *Optional* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.upright | -| `chapterSource` | *Optional* | :heavy_minus_sign: | N/A | media | -| `primaryExtraKey` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/59399 | -| `ratingImage` | *Optional* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.rotten | -| `media` | List<[lukehagar.plexapi.plexapi.models.operations.Media](../../models/operations/Media.md)> | :heavy_minus_sign: | N/A | | -| `genre` | List<[lukehagar.plexapi.plexapi.models.operations.Genre](../../models/operations/Genre.md)> | :heavy_minus_sign: | N/A | | -| `director` | List<[lukehagar.plexapi.plexapi.models.operations.Director](../../models/operations/Director.md)> | :heavy_minus_sign: | N/A | | -| `writer` | List<[lukehagar.plexapi.plexapi.models.operations.Writer](../../models/operations/Writer.md)> | :heavy_minus_sign: | N/A | | -| `country` | List<[lukehagar.plexapi.plexapi.models.operations.Country](../../models/operations/Country.md)> | :heavy_minus_sign: | N/A | | -| `role` | List<[lukehagar.plexapi.plexapi.models.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 deleted file mode 100644 index 3e7d6a0a..00000000 --- a/docs/models/operations/GetRecentlyAddedResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetRecentlyAddedResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional](../../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 deleted file mode 100644 index 0b292737..00000000 --- a/docs/models/operations/GetRecentlyAddedResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetRecentlyAddedResponseBody - -The recently added content - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../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 deleted file mode 100644 index 3cbea586..00000000 --- a/docs/models/operations/GetResizedPhotoRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetResizedPhotoRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | -| `width` | *double* | :heavy_check_mark: | The width for the resized photo | 110 | -| `height` | *double* | :heavy_check_mark: | The height for the resized photo | 165 | -| `opacity` | *long* | :heavy_check_mark: | The opacity for the resized photo | | -| `blur` | *double* | :heavy_check_mark: | The width for the resized photo | 0 | -| `minSize` | [lukehagar.plexapi.plexapi.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.plexapi.plexapi.models.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 deleted file mode 100644 index 96b79fde..00000000 --- a/docs/models/operations/GetResizedPhotoResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetResizedPhotoResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/GetResourcesStatisticsMediaContainer.md b/docs/models/operations/GetResourcesStatisticsMediaContainer.md deleted file mode 100644 index 09ac5306..00000000 --- a/docs/models/operations/GetResourcesStatisticsMediaContainer.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetResourcesStatisticsMediaContainer - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 5497 | -| `statisticsResources` | List<[lukehagar.plexapi.plexapi.models.operations.StatisticsResources](../../models/operations/StatisticsResources.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetResourcesStatisticsRequest.md b/docs/models/operations/GetResourcesStatisticsRequest.md deleted file mode 100644 index 34d1c461..00000000 --- a/docs/models/operations/GetResourcesStatisticsRequest.md +++ /dev/null @@ -1,8 +0,0 @@ -# GetResourcesStatisticsRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `timespan` | *Optional* | :heavy_minus_sign: | The timespan to retrieve statistics for
the exact meaning of this parameter is not known
| 4 | \ No newline at end of file diff --git a/docs/models/operations/GetResourcesStatisticsResponse.md b/docs/models/operations/GetResourcesStatisticsResponse.md deleted file mode 100644 index 00717d9e..00000000 --- a/docs/models/operations/GetResourcesStatisticsResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetResourcesStatisticsResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional](../../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 deleted file mode 100644 index a09ff43a..00000000 --- a/docs/models/operations/GetResourcesStatisticsResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetResourcesStatisticsResponseBody - -Resource Statistics - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetResourcesStatisticsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetSearchResultsCountry.md b/docs/models/operations/GetSearchResultsCountry.md deleted file mode 100644 index 3ac6ede3..00000000 --- a/docs/models/operations/GetSearchResultsCountry.md +++ /dev/null @@ -1,8 +0,0 @@ -# GetSearchResultsCountry - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | United States of America | \ No newline at end of file diff --git a/docs/models/operations/GetSearchResultsDirector.md b/docs/models/operations/GetSearchResultsDirector.md deleted file mode 100644 index 9c6587ad..00000000 --- a/docs/models/operations/GetSearchResultsDirector.md +++ /dev/null @@ -1,8 +0,0 @@ -# GetSearchResultsDirector - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Brian De Palma | \ No newline at end of file diff --git a/docs/models/operations/GetSearchResultsGenre.md b/docs/models/operations/GetSearchResultsGenre.md deleted file mode 100644 index f22c941b..00000000 --- a/docs/models/operations/GetSearchResultsGenre.md +++ /dev/null @@ -1,8 +0,0 @@ -# GetSearchResultsGenre - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Action | \ No newline at end of file diff --git a/docs/models/operations/GetSearchResultsMedia.md b/docs/models/operations/GetSearchResultsMedia.md deleted file mode 100644 index 6782856b..00000000 --- a/docs/models/operations/GetSearchResultsMedia.md +++ /dev/null @@ -1,22 +0,0 @@ -# GetSearchResultsMedia - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 26610 | -| `duration` | *Optional* | :heavy_minus_sign: | N/A | 6612628 | -| `bitrate` | *Optional* | :heavy_minus_sign: | N/A | 4751 | -| `width` | *Optional* | :heavy_minus_sign: | N/A | 1916 | -| `height` | *Optional* | :heavy_minus_sign: | N/A | 796 | -| `aspectRatio` | *Optional* | :heavy_minus_sign: | N/A | 2.35 | -| `audioChannels` | *Optional* | :heavy_minus_sign: | N/A | 6 | -| `audioCodec` | *Optional* | :heavy_minus_sign: | N/A | aac | -| `videoCodec` | *Optional* | :heavy_minus_sign: | N/A | hevc | -| `videoResolution` | *Optional* | :heavy_minus_sign: | N/A | 1080 | -| `container` | *Optional* | :heavy_minus_sign: | N/A | mkv | -| `videoFrameRate` | *Optional* | :heavy_minus_sign: | N/A | 24p | -| `audioProfile` | *Optional* | :heavy_minus_sign: | N/A | lc | -| `videoProfile` | *Optional* | :heavy_minus_sign: | N/A | main 10 | -| `part` | List<[lukehagar.plexapi.plexapi.models.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 deleted file mode 100644 index ee898afa..00000000 --- a/docs/models/operations/GetSearchResultsMediaContainer.md +++ /dev/null @@ -1,13 +0,0 @@ -# GetSearchResultsMediaContainer - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 26 | -| `identifier` | *Optional* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `mediaTagPrefix` | *Optional* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | -| `mediaTagVersion` | *Optional* | :heavy_minus_sign: | N/A | 1680021154 | -| `metadata` | List<[lukehagar.plexapi.plexapi.models.operations.GetSearchResultsMetadata](../../models/operations/GetSearchResultsMetadata.md)> | :heavy_minus_sign: | N/A | | -| `provider` | List<[lukehagar.plexapi.plexapi.models.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 deleted file mode 100644 index 7dbbcd40..00000000 --- a/docs/models/operations/GetSearchResultsMetadata.md +++ /dev/null @@ -1,41 +0,0 @@ -# GetSearchResultsMetadata - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `allowSync` | *Optional* | :heavy_minus_sign: | N/A | | -| `librarySectionID` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `librarySectionTitle` | *Optional* | :heavy_minus_sign: | N/A | Movies | -| `librarySectionUUID` | *Optional* | :heavy_minus_sign: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 | -| `personal` | *Optional* | :heavy_minus_sign: | N/A | | -| `sourceTitle` | *Optional* | :heavy_minus_sign: | N/A | Hera | -| `ratingKey` | *Optional* | :heavy_minus_sign: | N/A | 10398 | -| `key` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/10398 | -| `guid` | *Optional* | :heavy_minus_sign: | N/A | plex://movie/5d7768284de0ee001fcc8f52 | -| `studio` | *Optional* | :heavy_minus_sign: | N/A | Paramount | -| `type` | *Optional* | :heavy_minus_sign: | N/A | movie | -| `title` | *Optional* | :heavy_minus_sign: | N/A | Mission: Impossible | -| `contentRating` | *Optional* | :heavy_minus_sign: | N/A | PG-13 | -| `summary` | *Optional* | :heavy_minus_sign: | N/A | When Ethan Hunt the leader of a crack espionage team whose perilous operation has gone awry with no explanation discovers that a mole has penetrated the CIA he's surprised to learn that he's the No. 1 suspect. To clear his name Hunt now must ferret out the real double agent and in the process even the score. | -| `rating` | *Optional* | :heavy_minus_sign: | N/A | 6.6 | -| `audienceRating` | *Optional* | :heavy_minus_sign: | N/A | 7.1 | -| `year` | *Optional* | :heavy_minus_sign: | N/A | 1996 | -| `tagline` | *Optional* | :heavy_minus_sign: | N/A | Expect the impossible. | -| `thumb` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/10398/thumb/1679505055 | -| `art` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/10398/art/1679505055 | -| `duration` | *Optional* | :heavy_minus_sign: | N/A | 6612628 | -| `originallyAvailableAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | 1996-05-22 00:00:00 +0000 UTC | -| `addedAt` | *Optional* | :heavy_minus_sign: | N/A | 1589234571 | -| `updatedAt` | *Optional* | :heavy_minus_sign: | N/A | 1679505055 | -| `audienceRatingImage` | *Optional* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.upright | -| `chapterSource` | *Optional* | :heavy_minus_sign: | N/A | media | -| `primaryExtraKey` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/10501 | -| `ratingImage` | *Optional* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.ripe | -| `media` | List<[lukehagar.plexapi.plexapi.models.operations.GetSearchResultsMedia](../../models/operations/GetSearchResultsMedia.md)> | :heavy_minus_sign: | N/A | | -| `genre` | List<[lukehagar.plexapi.plexapi.models.operations.GetSearchResultsGenre](../../models/operations/GetSearchResultsGenre.md)> | :heavy_minus_sign: | N/A | | -| `director` | List<[lukehagar.plexapi.plexapi.models.operations.GetSearchResultsDirector](../../models/operations/GetSearchResultsDirector.md)> | :heavy_minus_sign: | N/A | | -| `writer` | List<[lukehagar.plexapi.plexapi.models.operations.GetSearchResultsWriter](../../models/operations/GetSearchResultsWriter.md)> | :heavy_minus_sign: | N/A | | -| `country` | List<[lukehagar.plexapi.plexapi.models.operations.GetSearchResultsCountry](../../models/operations/GetSearchResultsCountry.md)> | :heavy_minus_sign: | N/A | | -| `role` | List<[lukehagar.plexapi.plexapi.models.operations.GetSearchResultsRole](../../models/operations/GetSearchResultsRole.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetSearchResultsPart.md b/docs/models/operations/GetSearchResultsPart.md deleted file mode 100644 index 65dbbfd8..00000000 --- a/docs/models/operations/GetSearchResultsPart.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetSearchResultsPart - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 26610 | -| `key` | *Optional* | :heavy_minus_sign: | N/A | /library/parts/26610/1589234571/file.mkv | -| `duration` | *Optional* | :heavy_minus_sign: | N/A | 6612628 | -| `file` | *Optional* | :heavy_minus_sign: | N/A | /movies/Mission Impossible (1996)/Mission Impossible (1996) Bluray-1080p.mkv | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 3926903851 | -| `audioProfile` | *Optional* | :heavy_minus_sign: | N/A | lc | -| `container` | *Optional* | :heavy_minus_sign: | N/A | mkv | -| `videoProfile` | *Optional* | :heavy_minus_sign: | N/A | main 10 | \ No newline at end of file diff --git a/docs/models/operations/GetSearchResultsRequest.md b/docs/models/operations/GetSearchResultsRequest.md deleted file mode 100644 index cc56e4f3..00000000 --- a/docs/models/operations/GetSearchResultsRequest.md +++ /dev/null @@ -1,8 +0,0 @@ -# GetSearchResultsRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | -| `query` | *String* | :heavy_check_mark: | The search query string to use | 110 | \ No newline at end of file diff --git a/docs/models/operations/GetSearchResultsResponse.md b/docs/models/operations/GetSearchResultsResponse.md deleted file mode 100644 index db4b5ccf..00000000 --- a/docs/models/operations/GetSearchResultsResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetSearchResultsResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional](../../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 deleted file mode 100644 index 3b5aa9c8..00000000 --- a/docs/models/operations/GetSearchResultsResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetSearchResultsResponseBody - -Search Results - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetSearchResultsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetSearchResultsRole.md b/docs/models/operations/GetSearchResultsRole.md deleted file mode 100644 index de3296c7..00000000 --- a/docs/models/operations/GetSearchResultsRole.md +++ /dev/null @@ -1,8 +0,0 @@ -# GetSearchResultsRole - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Tom Cruise | \ No newline at end of file diff --git a/docs/models/operations/GetSearchResultsWriter.md b/docs/models/operations/GetSearchResultsWriter.md deleted file mode 100644 index 5114c456..00000000 --- a/docs/models/operations/GetSearchResultsWriter.md +++ /dev/null @@ -1,8 +0,0 @@ -# GetSearchResultsWriter - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | David Koepp | \ No newline at end of file diff --git a/docs/models/operations/GetServerActivitiesMediaContainer.md b/docs/models/operations/GetServerActivitiesMediaContainer.md deleted file mode 100644 index ade8b66d..00000000 --- a/docs/models/operations/GetServerActivitiesMediaContainer.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetServerActivitiesMediaContainer - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `size` | *Optional* | :heavy_minus_sign: | N/A | -| `activity` | List<[lukehagar.plexapi.plexapi.models.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 deleted file mode 100644 index bbcf6a2d..00000000 --- a/docs/models/operations/GetServerActivitiesResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetServerActivitiesResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional](../../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 deleted file mode 100644 index 54b03a12..00000000 --- a/docs/models/operations/GetServerActivitiesResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetServerActivitiesResponseBody - -The Server Activities - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../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 deleted file mode 100644 index 5e420f40..00000000 --- a/docs/models/operations/GetServerCapabilitiesResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetServerCapabilitiesResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional](../../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 deleted file mode 100644 index b34aecfa..00000000 --- a/docs/models/operations/GetServerCapabilitiesResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetServerCapabilitiesResponseBody - -The Server Capabilities - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/MediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetServerIdentityMediaContainer.md b/docs/models/operations/GetServerIdentityMediaContainer.md deleted file mode 100644 index 6d451962..00000000 --- a/docs/models/operations/GetServerIdentityMediaContainer.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetServerIdentityMediaContainer - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 0 | -| `claimed` | *Optional* | :heavy_minus_sign: | N/A | | -| `machineIdentifier` | *Optional* | :heavy_minus_sign: | N/A | 96f2fe7a78c9dc1f16a16bedbe90f98149be16b4 | -| `version` | *Optional* | :heavy_minus_sign: | N/A | 1.31.3.6868-28fc46b27 | \ No newline at end of file diff --git a/docs/models/operations/GetServerIdentityResponse.md b/docs/models/operations/GetServerIdentityResponse.md deleted file mode 100644 index 4397105f..00000000 --- a/docs/models/operations/GetServerIdentityResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetServerIdentityResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional](../../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 deleted file mode 100644 index 7018df87..00000000 --- a/docs/models/operations/GetServerIdentityResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetServerIdentityResponseBody - -The Server Identity information - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetServerIdentityMediaContainer.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 deleted file mode 100644 index 8d6854b5..00000000 --- a/docs/models/operations/GetServerListMediaContainer.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetServerListMediaContainer - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `server` | List<[lukehagar.plexapi.plexapi.models.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 deleted file mode 100644 index 1c2ea683..00000000 --- a/docs/models/operations/GetServerListResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetServerListResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional](../../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 deleted file mode 100644 index ece73e76..00000000 --- a/docs/models/operations/GetServerListResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetServerListResponseBody - -List of Servers - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetServerListMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetServerListServer.md b/docs/models/operations/GetServerListServer.md deleted file mode 100644 index 82e3ec71..00000000 --- a/docs/models/operations/GetServerListServer.md +++ /dev/null @@ -1,13 +0,0 @@ -# GetServerListServer - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| `name` | *Optional* | :heavy_minus_sign: | N/A | Hera | -| `host` | *Optional* | :heavy_minus_sign: | N/A | 10.10.10.47 | -| `address` | *Optional* | :heavy_minus_sign: | N/A | 10.10.10.47 | -| `port` | *Optional* | :heavy_minus_sign: | N/A | 32400 | -| `machineIdentifier` | *Optional* | :heavy_minus_sign: | N/A | 96f2fe7a78c9dc1f16a16bedbe90f98149be16b4 | -| `version` | *Optional* | :heavy_minus_sign: | N/A | 1.31.3.6868-28fc46b27 | \ No newline at end of file diff --git a/docs/models/operations/GetServerPreferencesMediaContainer.md b/docs/models/operations/GetServerPreferencesMediaContainer.md deleted file mode 100644 index d42423c2..00000000 --- a/docs/models/operations/GetServerPreferencesMediaContainer.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetServerPreferencesMediaContainer - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 161 | -| `setting` | List<[lukehagar.plexapi.plexapi.models.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 deleted file mode 100644 index a29a49bd..00000000 --- a/docs/models/operations/GetServerPreferencesResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetServerPreferencesResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional](../../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 deleted file mode 100644 index adfda0c3..00000000 --- a/docs/models/operations/GetServerPreferencesResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetServerPreferencesResponseBody - -Server Preferences - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetServerPreferencesMediaContainer.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 deleted file mode 100644 index f6975f46..00000000 --- a/docs/models/operations/GetSessionHistoryMediaContainer.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetSessionHistoryMediaContainer - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 10855 | -| `metadata` | List<[lukehagar.plexapi.plexapi.models.operations.GetSessionHistoryMetadata](../../models/operations/GetSessionHistoryMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetSessionHistoryMetadata.md b/docs/models/operations/GetSessionHistoryMetadata.md deleted file mode 100644 index 5960acac..00000000 --- a/docs/models/operations/GetSessionHistoryMetadata.md +++ /dev/null @@ -1,26 +0,0 @@ -# GetSessionHistoryMetadata - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | -| `historyKey` | *Optional* | :heavy_minus_sign: | N/A | /status/sessions/history/1 | -| `key` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/32171 | -| `ratingKey` | *Optional* | :heavy_minus_sign: | N/A | 32171 | -| `librarySectionID` | *Optional* | :heavy_minus_sign: | N/A | 2 | -| `parentKey` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/32170 | -| `grandparentKey` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/32132 | -| `title` | *Optional* | :heavy_minus_sign: | N/A | The Noise That Blue Makes | -| `grandparentTitle` | *Optional* | :heavy_minus_sign: | N/A | Taskmaster | -| `type` | *Optional* | :heavy_minus_sign: | N/A | episode | -| `thumb` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/32171/thumb/-1 | -| `parentThumb` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/32170/thumb/1654134301 | -| `grandparentThumb` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/32132/thumb/1703933346 | -| `grandparentArt` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/32132/art/1703933346 | -| `index` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `parentIndex` | *Optional* | :heavy_minus_sign: | N/A | 13 | -| `originallyAvailableAt` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_minus_sign: | N/A | 2022-04-14 00:00:00 +0000 UTC | -| `viewedAt` | *Optional* | :heavy_minus_sign: | N/A | 1654139223 | -| `accountID` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `deviceID` | *Optional* | :heavy_minus_sign: | N/A | 5 | \ No newline at end of file diff --git a/docs/models/operations/GetSessionHistoryRequest.md b/docs/models/operations/GetSessionHistoryRequest.md deleted file mode 100644 index 5e0afc64..00000000 --- a/docs/models/operations/GetSessionHistoryRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetSessionHistoryRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `sort` | *Optional* | :heavy_minus_sign: | Sorts the results by the specified field followed by the direction (asc, desc)
| | -| `accountId` | *Optional* | :heavy_minus_sign: | Filter results by those that are related to a specific users id
| 1 | -| `filter` | [Optional](../../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` | *Optional* | :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 deleted file mode 100644 index fea111ce..00000000 --- a/docs/models/operations/GetSessionHistoryResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetSessionHistoryResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional](../../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 deleted file mode 100644 index 089665fc..00000000 --- a/docs/models/operations/GetSessionHistoryResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetSessionHistoryResponseBody - -List of Plex Sessions - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetSessionHistoryMediaContainer.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 deleted file mode 100644 index a61657cd..00000000 --- a/docs/models/operations/GetSessionsMedia.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetSessionsMedia - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | -| `audioChannels` | *Optional* | :heavy_minus_sign: | N/A | 2 | -| `audioCodec` | *Optional* | :heavy_minus_sign: | N/A | flac | -| `bitrate` | *Optional* | :heavy_minus_sign: | N/A | 1014 | -| `container` | *Optional* | :heavy_minus_sign: | N/A | flac | -| `duration` | *Optional* | :heavy_minus_sign: | N/A | 186240 | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 130355 | -| `selected` | *Optional* | :heavy_minus_sign: | N/A | true | -| `part` | List<[lukehagar.plexapi.plexapi.models.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 deleted file mode 100644 index 4ded5a8e..00000000 --- a/docs/models/operations/GetSessionsMediaContainer.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetSessionsMediaContainer - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `metadata` | List<[lukehagar.plexapi.plexapi.models.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 deleted file mode 100644 index 77bfb3cc..00000000 --- a/docs/models/operations/GetSessionsMetadata.md +++ /dev/null @@ -1,44 +0,0 @@ -# GetSessionsMetadata - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `addedAt` | *Optional* | :heavy_minus_sign: | N/A | 1705543312 | -| `art` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/39904/art/1705310687 | -| `duration` | *Optional* | :heavy_minus_sign: | N/A | 186240 | -| `grandparentArt` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/39904/art/1705310687 | -| `grandparentGuid` | *Optional* | :heavy_minus_sign: | N/A | plex://artist/5d07bbfd403c6402904a6480 | -| `grandparentKey` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/39904 | -| `grandparentRatingKey` | *Optional* | :heavy_minus_sign: | N/A | 39904 | -| `grandparentThumb` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/39904/thumb/1705310687 | -| `grandparentTitle` | *Optional* | :heavy_minus_sign: | N/A | Green Day | -| `guid` | *Optional* | :heavy_minus_sign: | N/A | plex://track/6535834f71f22f36f71a8e8f | -| `index` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `key` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/67085 | -| `librarySectionID` | *Optional* | :heavy_minus_sign: | N/A | 3 | -| `librarySectionKey` | *Optional* | :heavy_minus_sign: | N/A | /library/sections/3 | -| `librarySectionTitle` | *Optional* | :heavy_minus_sign: | N/A | Music | -| `musicAnalysisVersion` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `parentGuid` | *Optional* | :heavy_minus_sign: | N/A | plex://album/65394d6d472b8ab03ef47f12 | -| `parentIndex` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `parentKey` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/67084 | -| `parentRatingKey` | *Optional* | :heavy_minus_sign: | N/A | 67084 | -| `parentStudio` | *Optional* | :heavy_minus_sign: | N/A | Reprise Records | -| `parentThumb` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/67084/thumb/1705543314 | -| `parentTitle` | *Optional* | :heavy_minus_sign: | N/A | Saviors | -| `parentYear` | *Optional* | :heavy_minus_sign: | N/A | 2024 | -| `ratingCount` | *Optional* | :heavy_minus_sign: | N/A | 45885 | -| `ratingKey` | *Optional* | :heavy_minus_sign: | N/A | 67085 | -| `sessionKey` | *Optional* | :heavy_minus_sign: | N/A | 203 | -| `thumb` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/67084/thumb/1705543314 | -| `title` | *Optional* | :heavy_minus_sign: | N/A | The American Dream Is Killing Me | -| `titleSort` | *Optional* | :heavy_minus_sign: | N/A | American Dream Is Killing Me | -| `type` | *Optional* | :heavy_minus_sign: | N/A | track | -| `updatedAt` | *Optional* | :heavy_minus_sign: | N/A | 1705543314 | -| `viewOffset` | *Optional* | :heavy_minus_sign: | N/A | 1000 | -| `media` | List<[lukehagar.plexapi.plexapi.models.operations.GetSessionsMedia](../../models/operations/GetSessionsMedia.md)> | :heavy_minus_sign: | N/A | | -| `user` | [Optional](../../models/operations/GetSessionsUser.md) | :heavy_minus_sign: | N/A | | -| `player` | [Optional](../../models/operations/Player.md) | :heavy_minus_sign: | N/A | | -| `session` | [Optional](../../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 deleted file mode 100644 index b7c91baf..00000000 --- a/docs/models/operations/GetSessionsPart.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetSessionsPart - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | -| `container` | *Optional* | :heavy_minus_sign: | N/A | flac | -| `duration` | *Optional* | :heavy_minus_sign: | N/A | 186240 | -| `file` | *Optional* | :heavy_minus_sign: | N/A | /music/Green Day/Saviors (2024)/Green Day - Saviors - 01 - The American Dream Is Killing Me.flac | -| `hasThumbnail` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 130625 | -| `key` | *Optional* | :heavy_minus_sign: | N/A | /library/parts/130625/1705543268/file.flac | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 23644000 | -| `decision` | *Optional* | :heavy_minus_sign: | N/A | directplay | -| `selected` | *Optional* | :heavy_minus_sign: | N/A | true | -| `stream` | List<[lukehagar.plexapi.plexapi.models.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 deleted file mode 100644 index 420f701c..00000000 --- a/docs/models/operations/GetSessionsResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetSessionsResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional](../../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 deleted file mode 100644 index dd6b3dd3..00000000 --- a/docs/models/operations/GetSessionsResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetSessionsResponseBody - -List of Active Plex Sessions - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetSessionsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetSessionsStream.md b/docs/models/operations/GetSessionsStream.md deleted file mode 100644 index aca3c603..00000000 --- a/docs/models/operations/GetSessionsStream.md +++ /dev/null @@ -1,27 +0,0 @@ -# GetSessionsStream - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | -| `albumGain` | *Optional* | :heavy_minus_sign: | N/A | -12.94 | -| `albumPeak` | *Optional* | :heavy_minus_sign: | N/A | 1.000000 | -| `albumRange` | *Optional* | :heavy_minus_sign: | N/A | 4.751014 | -| `audioChannelLayout` | *Optional* | :heavy_minus_sign: | N/A | stereo | -| `bitDepth` | *Optional* | :heavy_minus_sign: | N/A | 16 | -| `bitrate` | *Optional* | :heavy_minus_sign: | N/A | 1014 | -| `channels` | *Optional* | :heavy_minus_sign: | N/A | 2 | -| `codec` | *Optional* | :heavy_minus_sign: | N/A | flac | -| `displayTitle` | *Optional* | :heavy_minus_sign: | N/A | FLAC (Stereo) | -| `extendedDisplayTitle` | *Optional* | :heavy_minus_sign: | N/A | FLAC (Stereo) | -| `gain` | *Optional* | :heavy_minus_sign: | N/A | -12.94 | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 352487 | -| `index` | *Optional* | :heavy_minus_sign: | N/A | 0 | -| `loudness` | *Optional* | :heavy_minus_sign: | N/A | -5.94 | -| `lra` | *Optional* | :heavy_minus_sign: | N/A | 1.74 | -| `peak` | *Optional* | :heavy_minus_sign: | N/A | 1.000000 | -| `samplingRate` | *Optional* | :heavy_minus_sign: | N/A | 44100 | -| `selected` | *Optional* | :heavy_minus_sign: | N/A | true | -| `streamType` | *Optional* | :heavy_minus_sign: | N/A | 2 | -| `location` | *Optional* | :heavy_minus_sign: | N/A | direct | \ No newline at end of file diff --git a/docs/models/operations/GetSessionsUser.md b/docs/models/operations/GetSessionsUser.md deleted file mode 100644 index 9eaae842..00000000 --- a/docs/models/operations/GetSessionsUser.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetSessionsUser - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `thumb` | *Optional* | :heavy_minus_sign: | N/A | https://plex.tv/users/844780fc6f8a26b5/avatar?c=1705853661 | -| `title` | *Optional* | :heavy_minus_sign: | N/A | Blindkitty38 | \ No newline at end of file diff --git a/docs/models/operations/GetSourceConnectionInformationRequest.md b/docs/models/operations/GetSourceConnectionInformationRequest.md deleted file mode 100644 index a173a061..00000000 --- a/docs/models/operations/GetSourceConnectionInformationRequest.md +++ /dev/null @@ -1,8 +0,0 @@ -# GetSourceConnectionInformationRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| `source` | *String* | :heavy_check_mark: | The source identifier with an included prefix. | server://client-identifier | \ No newline at end of file diff --git a/docs/models/operations/GetSourceConnectionInformationResponse.md b/docs/models/operations/GetSourceConnectionInformationResponse.md deleted file mode 100644 index 5b2be7e3..00000000 --- a/docs/models/operations/GetSourceConnectionInformationResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetSourceConnectionInformationResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/GetStatisticsDevice.md b/docs/models/operations/GetStatisticsDevice.md deleted file mode 100644 index 55a55e4d..00000000 --- a/docs/models/operations/GetStatisticsDevice.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetStatisticsDevice - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 208 | -| `name` | *Optional* | :heavy_minus_sign: | N/A | Roku Express | -| `platform` | *Optional* | :heavy_minus_sign: | N/A | Roku | -| `clientIdentifier` | *Optional* | :heavy_minus_sign: | N/A | 793095d235660625108ef785cc7646e9 | -| `createdAt` | *Optional* | :heavy_minus_sign: | N/A | 1706470556 | \ No newline at end of file diff --git a/docs/models/operations/GetStatisticsMediaContainer.md b/docs/models/operations/GetStatisticsMediaContainer.md deleted file mode 100644 index 8059827a..00000000 --- a/docs/models/operations/GetStatisticsMediaContainer.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetStatisticsMediaContainer - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 5497 | -| `device` | List<[lukehagar.plexapi.plexapi.models.operations.GetStatisticsDevice](../../models/operations/GetStatisticsDevice.md)> | :heavy_minus_sign: | N/A | | -| `account` | List<[lukehagar.plexapi.plexapi.models.operations.Account](../../models/operations/Account.md)> | :heavy_minus_sign: | N/A | | -| `statisticsMedia` | List<[lukehagar.plexapi.plexapi.models.operations.StatisticsMedia](../../models/operations/StatisticsMedia.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetStatisticsRequest.md b/docs/models/operations/GetStatisticsRequest.md deleted file mode 100644 index 4eb7fa5a..00000000 --- a/docs/models/operations/GetStatisticsRequest.md +++ /dev/null @@ -1,8 +0,0 @@ -# GetStatisticsRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `timespan` | *Optional* | :heavy_minus_sign: | The timespan to retrieve statistics for
the exact meaning of this parameter is not known
| 4 | \ No newline at end of file diff --git a/docs/models/operations/GetStatisticsResponse.md b/docs/models/operations/GetStatisticsResponse.md deleted file mode 100644 index eccf9dbf..00000000 --- a/docs/models/operations/GetStatisticsResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetStatisticsResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional](../../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 deleted file mode 100644 index b89329bf..00000000 --- a/docs/models/operations/GetStatisticsResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetStatisticsResponseBody - -Media Statistics - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetStatisticsMediaContainer.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 deleted file mode 100644 index d66fa5bb..00000000 --- a/docs/models/operations/GetTimelineRequest.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetTimelineRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `ratingKey` | *double* | :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.plexapi.plexapi.models.operations.State](../../models/operations/State.md) | :heavy_check_mark: | The state of the media item | playing | -| `hasMDE` | *double* | :heavy_check_mark: | Whether the media item has MDE | 1 | -| `time` | *double* | :heavy_check_mark: | The time of the media item | 2000 | -| `duration` | *double* | :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` | *double* | :heavy_check_mark: | The play queue item ID of the media item | 1 | -| `playBackTime` | *double* | :heavy_check_mark: | The playback time of the media item | 2000 | -| `row` | *double* | :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 deleted file mode 100644 index d9a22540..00000000 --- a/docs/models/operations/GetTimelineResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetTimelineResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/GetTokenLocation.md b/docs/models/operations/GetTokenLocation.md deleted file mode 100644 index 9efd8847..00000000 --- a/docs/models/operations/GetTokenLocation.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetTokenLocation - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | US | -| `europeanUnionMember` | *Optional* | :heavy_minus_sign: | N/A | | -| `continentCode` | *Optional* | :heavy_minus_sign: | N/A | NA | -| `country` | *Optional* | :heavy_minus_sign: | N/A | United States | -| `city` | *Optional* | :heavy_minus_sign: | N/A | Austin | -| `timeZone` | *Optional* | :heavy_minus_sign: | N/A | America/Chicago | -| `postalCode` | *Optional* | :heavy_minus_sign: | N/A | 78732 | -| `inPrivacyRestrictedCountry` | *Optional* | :heavy_minus_sign: | N/A | | -| `subdivisions` | *Optional* | :heavy_minus_sign: | N/A | Texas | -| `coordinates` | *Optional* | :heavy_minus_sign: | N/A | 30.3768 -97.8935 | \ No newline at end of file diff --git a/docs/models/operations/GetTokenRequest.md b/docs/models/operations/GetTokenRequest.md deleted file mode 100644 index d65b8bbf..00000000 --- a/docs/models/operations/GetTokenRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetTokenRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `pinID` | *String* | :heavy_check_mark: | The PinID to retrieve an access token for | | -| `xPlexClientIdentifier` | *Optional* | :heavy_minus_sign: | 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)
| Postman | \ No newline at end of file diff --git a/docs/models/operations/GetTokenResponse.md b/docs/models/operations/GetTokenResponse.md deleted file mode 100644 index 770388f1..00000000 --- a/docs/models/operations/GetTokenResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetTokenResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional](../../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 deleted file mode 100644 index b77c5c98..00000000 --- a/docs/models/operations/GetTokenResponseBody.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetTokenResponseBody - -Access Token - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | PinID for use with authentication | 1272322473 | -| `code` | *Optional* | :heavy_minus_sign: | N/A | 3patfx1a78ukcbr7x0n9bl26t | -| `product` | *Optional* | :heavy_minus_sign: | N/A | Plex Web | -| `trusted` | *Optional* | :heavy_minus_sign: | N/A | | -| `qr` | *Optional* | :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` | *Optional* | :heavy_minus_sign: | N/A | Postman | -| `location` | [Optional](../../models/operations/GetTokenLocation.md) | :heavy_minus_sign: | N/A | | -| `expiresIn` | *Optional* | :heavy_minus_sign: | N/A | 1800 | -| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | 2023-04-12 17:00:03 +0000 UTC | -| `expiresAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | 2023-04-12 17:30:03 +0000 UTC | -| `authToken` | *Optional* | :heavy_minus_sign: | N/A | | -| `newRegistration` | *Optional* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetTopWatchedContentCountry.md b/docs/models/operations/GetTopWatchedContentCountry.md deleted file mode 100644 index d1159880..00000000 --- a/docs/models/operations/GetTopWatchedContentCountry.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetTopWatchedContentCountry - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 116 | -| `filter` | *Optional* | :heavy_minus_sign: | N/A | country=116 | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | United States of America | \ No newline at end of file diff --git a/docs/models/operations/GetTopWatchedContentGenre.md b/docs/models/operations/GetTopWatchedContentGenre.md deleted file mode 100644 index fbd95156..00000000 --- a/docs/models/operations/GetTopWatchedContentGenre.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetTopWatchedContentGenre - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 184 | -| `filter` | *Optional* | :heavy_minus_sign: | N/A | genre=184 | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Thriller | \ No newline at end of file diff --git a/docs/models/operations/GetTopWatchedContentGuids.md b/docs/models/operations/GetTopWatchedContentGuids.md deleted file mode 100644 index e4f2f3aa..00000000 --- a/docs/models/operations/GetTopWatchedContentGuids.md +++ /dev/null @@ -1,8 +0,0 @@ -# GetTopWatchedContentGuids - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | tvdb://2337 | \ No newline at end of file diff --git a/docs/models/operations/GetTopWatchedContentMediaContainer.md b/docs/models/operations/GetTopWatchedContentMediaContainer.md deleted file mode 100644 index 6b5094ba..00000000 --- a/docs/models/operations/GetTopWatchedContentMediaContainer.md +++ /dev/null @@ -1,13 +0,0 @@ -# GetTopWatchedContentMediaContainer - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `allowSync` | *Optional* | :heavy_minus_sign: | N/A | true | -| `identifier` | *Optional* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `mediaTagPrefix` | *Optional* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | -| `mediaTagVersion` | *Optional* | :heavy_minus_sign: | N/A | 1698860922 | -| `metadata` | List<[lukehagar.plexapi.plexapi.models.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 deleted file mode 100644 index ad6b410e..00000000 --- a/docs/models/operations/GetTopWatchedContentMetadata.md +++ /dev/null @@ -1,39 +0,0 @@ -# GetTopWatchedContentMetadata - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ratingKey` | *Optional* | :heavy_minus_sign: | N/A | 17 | -| `key` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/17 | -| `guid` | *Optional* | :heavy_minus_sign: | N/A | plex://movie/5d77683f6f4521001ea9dc53 | -| `slug` | *Optional* | :heavy_minus_sign: | N/A | waterloo-road | -| `studio` | *Optional* | :heavy_minus_sign: | N/A | Universal Pictures | -| `type` | *Optional* | :heavy_minus_sign: | N/A | movie | -| `title` | *Optional* | :heavy_minus_sign: | N/A | Serenity | -| `librarySectionTitle` | *Optional* | :heavy_minus_sign: | N/A | Movies | -| `librarySectionID` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `librarySectionKey` | *Optional* | :heavy_minus_sign: | N/A | /library/sections/1 | -| `contentRating` | *Optional* | :heavy_minus_sign: | N/A | PG-13 | -| `summary` | *Optional* | :heavy_minus_sign: | N/A | Serenity continues the story of the TV series it was based upon ("Firefly"). River Tam had a secret - one in which she's not even aware - so dangerous, no one's safe, as an Alliance operative's sent to capture her, and all others are considered irrelevant to his job. | -| `index` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `audienceRating` | *Optional* | :heavy_minus_sign: | N/A | 9.1 | -| `year` | *Optional* | :heavy_minus_sign: | N/A | 2005 | -| `tagline` | *Optional* | :heavy_minus_sign: | N/A | They aim to misbehave. | -| `thumb` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/17/thumb/1705637165 | -| `art` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/17/art/1705637165 | -| `duration` | *Optional* | :heavy_minus_sign: | N/A | 141417 | -| `originallyAvailableAt` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_minus_sign: | N/A | 2005-09-29 00:00:00 +0000 UTC | -| `leafCount` | *Optional* | :heavy_minus_sign: | N/A | 222 | -| `viewedLeafCount` | *Optional* | :heavy_minus_sign: | N/A | 100 | -| `childCount` | *Optional* | :heavy_minus_sign: | N/A | 13 | -| `addedAt` | *Optional* | :heavy_minus_sign: | N/A | 1705637164 | -| `updatedAt` | *Optional* | :heavy_minus_sign: | N/A | 1705637165 | -| `globalViewCount` | *Optional* | :heavy_minus_sign: | N/A | 80 | -| `audienceRatingImage` | *Optional* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.upright | -| `genre` | List<[lukehagar.plexapi.plexapi.models.operations.GetTopWatchedContentGenre](../../models/operations/GetTopWatchedContentGenre.md)> | :heavy_minus_sign: | N/A | | -| `country` | List<[lukehagar.plexapi.plexapi.models.operations.GetTopWatchedContentCountry](../../models/operations/GetTopWatchedContentCountry.md)> | :heavy_minus_sign: | N/A | | -| `guids` | List<[lukehagar.plexapi.plexapi.models.operations.GetTopWatchedContentGuids](../../models/operations/GetTopWatchedContentGuids.md)> | :heavy_minus_sign: | N/A | | -| `role` | List<[lukehagar.plexapi.plexapi.models.operations.GetTopWatchedContentRole](../../models/operations/GetTopWatchedContentRole.md)> | :heavy_minus_sign: | N/A | | -| `user` | List<[lukehagar.plexapi.plexapi.models.operations.User](../../models/operations/User.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/GetTopWatchedContentRequest.md b/docs/models/operations/GetTopWatchedContentRequest.md deleted file mode 100644 index cffb1b94..00000000 --- a/docs/models/operations/GetTopWatchedContentRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetTopWatchedContentRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | -| `type` | *long* | :heavy_check_mark: | the library type (1 - movies, 2 - shows, 3 - music) | | -| `includeGuids` | *Optional* | :heavy_minus_sign: | Adds the Guids object to the response
| 1 | \ No newline at end of file diff --git a/docs/models/operations/GetTopWatchedContentResponse.md b/docs/models/operations/GetTopWatchedContentResponse.md deleted file mode 100644 index ea3ae061..00000000 --- a/docs/models/operations/GetTopWatchedContentResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetTopWatchedContentResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional](../../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 deleted file mode 100644 index 23fb3d07..00000000 --- a/docs/models/operations/GetTopWatchedContentResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetTopWatchedContentResponseBody - -The metadata of the library item. - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetTopWatchedContentMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetTopWatchedContentRole.md b/docs/models/operations/GetTopWatchedContentRole.md deleted file mode 100644 index 197af673..00000000 --- a/docs/models/operations/GetTopWatchedContentRole.md +++ /dev/null @@ -1,13 +0,0 @@ -# GetTopWatchedContentRole - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 220 | -| `filter` | *Optional* | :heavy_minus_sign: | N/A | actor=220 | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Dennis Keiffer | -| `tagKey` | *Optional* | :heavy_minus_sign: | N/A | 5d77683554f42c001f8c4708 | -| `role` | *Optional* | :heavy_minus_sign: | N/A | Bar Guy (uncredited) | -| `thumb` | *Optional* | :heavy_minus_sign: | N/A | https://metadata-static.plex.tv/6/people/648e9a7ea1d537bccfcd7615134b78ce.jpg | \ No newline at end of file diff --git a/docs/models/operations/GetTranscodeSessionsMediaContainer.md b/docs/models/operations/GetTranscodeSessionsMediaContainer.md deleted file mode 100644 index 7802d80c..00000000 --- a/docs/models/operations/GetTranscodeSessionsMediaContainer.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetTranscodeSessionsMediaContainer - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `transcodeSession` | List<[lukehagar.plexapi.plexapi.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 diff --git a/docs/models/operations/GetTranscodeSessionsResponse.md b/docs/models/operations/GetTranscodeSessionsResponse.md deleted file mode 100644 index 9cb8395b..00000000 --- a/docs/models/operations/GetTranscodeSessionsResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetTranscodeSessionsResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional](../../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 deleted file mode 100644 index db72de2f..00000000 --- a/docs/models/operations/GetTranscodeSessionsResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetTranscodeSessionsResponseBody - -The Transcode Sessions - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetTranscodeSessionsMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetTransientTokenQueryParamType.md b/docs/models/operations/GetTransientTokenQueryParamType.md deleted file mode 100644 index 5c33dc3d..00000000 --- a/docs/models/operations/GetTransientTokenQueryParamType.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetTransientTokenQueryParamType - -`delegation` - This is the only supported `type` parameter. - - -## Values - -| Name | Value | -| ------------ | ------------ | -| `DELEGATION` | delegation | \ No newline at end of file diff --git a/docs/models/operations/GetTransientTokenRequest.md b/docs/models/operations/GetTransientTokenRequest.md deleted file mode 100644 index 9a93ae2b..00000000 --- a/docs/models/operations/GetTransientTokenRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetTransientTokenRequest - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [lukehagar.plexapi.plexapi.models.operations.GetTransientTokenQueryParamType](../../models/operations/GetTransientTokenQueryParamType.md) | :heavy_check_mark: | `delegation` - This is the only supported `type` parameter. | -| `scope` | [lukehagar.plexapi.plexapi.models.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 deleted file mode 100644 index ecf13876..00000000 --- a/docs/models/operations/GetTransientTokenResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetTransientTokenResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/GetUpdateStatusMediaContainer.md b/docs/models/operations/GetUpdateStatusMediaContainer.md deleted file mode 100644 index 71f426d1..00000000 --- a/docs/models/operations/GetUpdateStatusMediaContainer.md +++ /dev/null @@ -1,13 +0,0 @@ -# GetUpdateStatusMediaContainer - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `canInstall` | *Optional* | :heavy_minus_sign: | N/A | false | -| `checkedAt` | *Optional* | :heavy_minus_sign: | N/A | 1705801232 | -| `downloadURL` | *Optional* | :heavy_minus_sign: | N/A | https://plex.tv/downloads/latest/5?channel=8&build=linux-x86_64&distro=redhat&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx | -| `status` | *Optional* | :heavy_minus_sign: | N/A | 0 | -| `release` | List<[lukehagar.plexapi.plexapi.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 diff --git a/docs/models/operations/GetUpdateStatusResponse.md b/docs/models/operations/GetUpdateStatusResponse.md deleted file mode 100644 index 1418f575..00000000 --- a/docs/models/operations/GetUpdateStatusResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetUpdateStatusResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional](../../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 deleted file mode 100644 index 9cfefaa1..00000000 --- a/docs/models/operations/GetUpdateStatusResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetUpdateStatusResponseBody - -The Server Updates - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/GetUpdateStatusMediaContainer.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 deleted file mode 100644 index 3893f314..00000000 --- a/docs/models/operations/GetWatchlistRequest.md +++ /dev/null @@ -1,16 +0,0 @@ -# GetWatchlistRequest - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `filter` | [lukehagar.plexapi.plexapi.models.operations.PathParamFilter](../../models/operations/PathParamFilter.md) | :heavy_check_mark: | Filter | -| `sort` | *Optional* | :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` | [Optional](../../models/operations/Libtype.md) | :heavy_minus_sign: | The type of library to filter. Can be "movie" or "show", or all if not present.
| -| `maxresults` | *Optional* | :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` | [Optional](../../models/operations/IncludeCollections.md) | :heavy_minus_sign: | include collections in the results
| -| `includeExternalMedia` | [Optional](../../models/operations/IncludeExternalMedia.md) | :heavy_minus_sign: | include external media in the results
| -| `xPlexToken` | *String* | :heavy_check_mark: | User Token | -| `xPlexContainerStart` | *Optional* | :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` | *Optional* | :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 deleted file mode 100644 index a146a5be..00000000 --- a/docs/models/operations/GetWatchlistResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetWatchlistResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional](../../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 deleted file mode 100644 index e765110b..00000000 --- a/docs/models/operations/GetWatchlistResponseBody.md +++ /dev/null @@ -1,16 +0,0 @@ -# GetWatchlistResponseBody - -Watchlist Data - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `librarySectionID` | *Optional* | :heavy_minus_sign: | N/A | -| `librarySectionTitle` | *Optional* | :heavy_minus_sign: | N/A | -| `offset` | *Optional* | :heavy_minus_sign: | N/A | -| `totalSize` | *Optional* | :heavy_minus_sign: | N/A | -| `identifier` | *Optional* | :heavy_minus_sign: | N/A | -| `size` | *Optional* | :heavy_minus_sign: | N/A | -| `metadata` | List<[lukehagar.plexapi.plexapi.models.operations.Metadata](../../models/operations/Metadata.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/Guids.md b/docs/models/operations/Guids.md deleted file mode 100644 index 62bc2565..00000000 --- a/docs/models/operations/Guids.md +++ /dev/null @@ -1,8 +0,0 @@ -# Guids - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | tvdb://2337 | \ No newline at end of file diff --git a/docs/models/operations/Hub.md b/docs/models/operations/Hub.md deleted file mode 100644 index fbcc7482..00000000 --- a/docs/models/operations/Hub.md +++ /dev/null @@ -1,18 +0,0 @@ -# Hub - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | -| `hubKey` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/50768,65523,58188,57341,57302,57070 | -| `key` | *Optional* | :heavy_minus_sign: | N/A | /playlists/all?type=15&sort=lastViewedAt:desc&playlistType=video,audio | -| `title` | *Optional* | :heavy_minus_sign: | N/A | Recent Playlists | -| `type` | *Optional* | :heavy_minus_sign: | N/A | playlist | -| `hubIdentifier` | *Optional* | :heavy_minus_sign: | N/A | home.playlists | -| `context` | *Optional* | :heavy_minus_sign: | N/A | hub.home.playlists | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 6 | -| `more` | *Optional* | :heavy_minus_sign: | N/A | true | -| `style` | *Optional* | :heavy_minus_sign: | N/A | shelf | -| `promoted` | *Optional* | :heavy_minus_sign: | N/A | true | -| `metadata` | List<[lukehagar.plexapi.plexapi.models.operations.GetGlobalHubsMetadata](../../models/operations/GetGlobalHubsMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/Image.md b/docs/models/operations/Image.md deleted file mode 100644 index c4f6f795..00000000 --- a/docs/models/operations/Image.md +++ /dev/null @@ -1,10 +0,0 @@ -# Image - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `alt` | *Optional* | :heavy_minus_sign: | N/A | -| `type` | *Optional* | :heavy_minus_sign: | N/A | -| `url` | *Optional* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/IncludeCollections.md b/docs/models/operations/IncludeCollections.md deleted file mode 100644 index cc248dfa..00000000 --- a/docs/models/operations/IncludeCollections.md +++ /dev/null @@ -1,12 +0,0 @@ -# IncludeCollections - -include collections in the results - - - -## Values - -| Name | Value | -| ------ | ------ | -| `ONE` | 1 | -| `ZERO` | 0 | \ No newline at end of file diff --git a/docs/models/operations/IncludeDetails.md b/docs/models/operations/IncludeDetails.md deleted file mode 100644 index 55129417..00000000 --- a/docs/models/operations/IncludeDetails.md +++ /dev/null @@ -1,13 +0,0 @@ -# IncludeDetails - -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. - - - -## Values - -| Name | Value | -| ------ | ------ | -| `ZERO` | 0 | -| `ONE` | 1 | \ No newline at end of file diff --git a/docs/models/operations/IncludeExternalMedia.md b/docs/models/operations/IncludeExternalMedia.md deleted file mode 100644 index 07bbeab2..00000000 --- a/docs/models/operations/IncludeExternalMedia.md +++ /dev/null @@ -1,12 +0,0 @@ -# IncludeExternalMedia - -include external media in the results - - - -## Values - -| Name | Value | -| ------ | ------ | -| `ONE` | 1 | -| `ZERO` | 0 | \ No newline at end of file diff --git a/docs/models/operations/Level.md b/docs/models/operations/Level.md deleted file mode 100644 index 6f8db56a..00000000 --- a/docs/models/operations/Level.md +++ /dev/null @@ -1,20 +0,0 @@ -# Level - -An integer log level to write to the PMS log with. -0: Error -1: Warning -2: Info -3: Debug -4: Verbose - - - -## Values - -| Name | Value | -| ------- | ------- | -| `ZERO` | 0 | -| `ONE` | 1 | -| `TWO` | 2 | -| `THREE` | 3 | -| `FOUR` | 4 | \ No newline at end of file diff --git a/docs/models/operations/LibrarySectionID.md b/docs/models/operations/LibrarySectionID.md deleted file mode 100644 index 51c90cc6..00000000 --- a/docs/models/operations/LibrarySectionID.md +++ /dev/null @@ -1,2 +0,0 @@ -# LibrarySectionID - diff --git a/docs/models/operations/Libtype.md b/docs/models/operations/Libtype.md deleted file mode 100644 index 6828dfdc..00000000 --- a/docs/models/operations/Libtype.md +++ /dev/null @@ -1,12 +0,0 @@ -# Libtype - -The type of library to filter. Can be "movie" or "show", or all if not present. - - - -## Values - -| Name | Value | -| ------- | ------- | -| `MOVIE` | movie | -| `SHOW` | show | \ No newline at end of file diff --git a/docs/models/operations/Location.md b/docs/models/operations/Location.md deleted file mode 100644 index 498b484f..00000000 --- a/docs/models/operations/Location.md +++ /dev/null @@ -1,17 +0,0 @@ -# Location - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | -| `code` | *Optional* | :heavy_minus_sign: | N/A | US | -| `europeanUnionMember` | *Optional* | :heavy_minus_sign: | N/A | | -| `continentCode` | *Optional* | :heavy_minus_sign: | N/A | NA | -| `country` | *Optional* | :heavy_minus_sign: | N/A | United States | -| `city` | *Optional* | :heavy_minus_sign: | N/A | Austin | -| `timeZone` | *Optional* | :heavy_minus_sign: | N/A | America/Chicago | -| `postalCode` | *Optional* | :heavy_minus_sign: | N/A | 78732 | -| `inPrivacyRestrictedCountry` | *Optional* | :heavy_minus_sign: | N/A | | -| `subdivisions` | *Optional* | :heavy_minus_sign: | N/A | Texas | -| `coordinates` | *Optional* | :heavy_minus_sign: | N/A | 30.3768 -97.8935 | \ No newline at end of file diff --git a/docs/models/operations/LogLineRequest.md b/docs/models/operations/LogLineRequest.md deleted file mode 100644 index 1e72ae16..00000000 --- a/docs/models/operations/LogLineRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -# LogLineRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `level` | [lukehagar.plexapi.plexapi.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
| | -| `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 deleted file mode 100644 index da2fe3f4..00000000 --- a/docs/models/operations/LogLineResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# LogLineResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/LogMultiLineResponse.md b/docs/models/operations/LogMultiLineResponse.md deleted file mode 100644 index f9a76c07..00000000 --- a/docs/models/operations/LogMultiLineResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# LogMultiLineResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/MarkPlayedRequest.md b/docs/models/operations/MarkPlayedRequest.md deleted file mode 100644 index 59ec5aa2..00000000 --- a/docs/models/operations/MarkPlayedRequest.md +++ /dev/null @@ -1,8 +0,0 @@ -# MarkPlayedRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `key` | *double* | :heavy_check_mark: | The media key to mark as played | 59398 | \ No newline at end of file diff --git a/docs/models/operations/MarkPlayedResponse.md b/docs/models/operations/MarkPlayedResponse.md deleted file mode 100644 index 5f683859..00000000 --- a/docs/models/operations/MarkPlayedResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# MarkPlayedResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/MarkUnplayedRequest.md b/docs/models/operations/MarkUnplayedRequest.md deleted file mode 100644 index c365eda1..00000000 --- a/docs/models/operations/MarkUnplayedRequest.md +++ /dev/null @@ -1,8 +0,0 @@ -# MarkUnplayedRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- | -| `key` | *double* | :heavy_check_mark: | The media key to mark as Unplayed | 59398 | \ No newline at end of file diff --git a/docs/models/operations/MarkUnplayedResponse.md b/docs/models/operations/MarkUnplayedResponse.md deleted file mode 100644 index 7423891a..00000000 --- a/docs/models/operations/MarkUnplayedResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# MarkUnplayedResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/Media.md b/docs/models/operations/Media.md deleted file mode 100644 index 86a8587c..00000000 --- a/docs/models/operations/Media.md +++ /dev/null @@ -1,23 +0,0 @@ -# Media - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 120345 | -| `duration` | *Optional* | :heavy_minus_sign: | N/A | 7474422 | -| `bitrate` | *Optional* | :heavy_minus_sign: | N/A | 3623 | -| `width` | *Optional* | :heavy_minus_sign: | N/A | 1920 | -| `height` | *Optional* | :heavy_minus_sign: | N/A | 804 | -| `aspectRatio` | *Optional* | :heavy_minus_sign: | N/A | 2.35 | -| `audioChannels` | *Optional* | :heavy_minus_sign: | N/A | 6 | -| `audioCodec` | *Optional* | :heavy_minus_sign: | N/A | ac3 | -| `videoCodec` | *Optional* | :heavy_minus_sign: | N/A | h264 | -| `videoResolution` | *Optional* | :heavy_minus_sign: | N/A | 1080 | -| `container` | *Optional* | :heavy_minus_sign: | N/A | mp4 | -| `videoFrameRate` | *Optional* | :heavy_minus_sign: | N/A | 24p | -| `optimizedForStreaming` | *Optional* | :heavy_minus_sign: | N/A | 0 | -| `has64bitOffsets` | *Optional* | :heavy_minus_sign: | N/A | | -| `videoProfile` | *Optional* | :heavy_minus_sign: | N/A | high | -| `part` | List<[lukehagar.plexapi.plexapi.models.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 deleted file mode 100644 index 430bd1ea..00000000 --- a/docs/models/operations/MediaContainer.md +++ /dev/null @@ -1,58 +0,0 @@ -# MediaContainer - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | -| `size` | *Optional* | :heavy_minus_sign: | N/A | -| `allowCameraUpload` | *Optional* | :heavy_minus_sign: | N/A | -| `allowChannelAccess` | *Optional* | :heavy_minus_sign: | N/A | -| `allowMediaDeletion` | *Optional* | :heavy_minus_sign: | N/A | -| `allowSharing` | *Optional* | :heavy_minus_sign: | N/A | -| `allowSync` | *Optional* | :heavy_minus_sign: | N/A | -| `allowTuners` | *Optional* | :heavy_minus_sign: | N/A | -| `backgroundProcessing` | *Optional* | :heavy_minus_sign: | N/A | -| `certificate` | *Optional* | :heavy_minus_sign: | N/A | -| `companionProxy` | *Optional* | :heavy_minus_sign: | N/A | -| `countryCode` | *Optional* | :heavy_minus_sign: | N/A | -| `diagnostics` | *Optional* | :heavy_minus_sign: | N/A | -| `eventStream` | *Optional* | :heavy_minus_sign: | N/A | -| `friendlyName` | *Optional* | :heavy_minus_sign: | N/A | -| `hubSearch` | *Optional* | :heavy_minus_sign: | N/A | -| `itemClusters` | *Optional* | :heavy_minus_sign: | N/A | -| `livetv` | *Optional* | :heavy_minus_sign: | N/A | -| `machineIdentifier` | *Optional* | :heavy_minus_sign: | N/A | -| `mediaProviders` | *Optional* | :heavy_minus_sign: | N/A | -| `multiuser` | *Optional* | :heavy_minus_sign: | N/A | -| `musicAnalysis` | *Optional* | :heavy_minus_sign: | N/A | -| `myPlex` | *Optional* | :heavy_minus_sign: | N/A | -| `myPlexMappingState` | *Optional* | :heavy_minus_sign: | N/A | -| `myPlexSigninState` | *Optional* | :heavy_minus_sign: | N/A | -| `myPlexSubscription` | *Optional* | :heavy_minus_sign: | N/A | -| `myPlexUsername` | *Optional* | :heavy_minus_sign: | N/A | -| `offlineTranscode` | *Optional* | :heavy_minus_sign: | N/A | -| `ownerFeatures` | *Optional* | :heavy_minus_sign: | N/A | -| `photoAutoTag` | *Optional* | :heavy_minus_sign: | N/A | -| `platform` | *Optional* | :heavy_minus_sign: | N/A | -| `platformVersion` | *Optional* | :heavy_minus_sign: | N/A | -| `pluginHost` | *Optional* | :heavy_minus_sign: | N/A | -| `pushNotifications` | *Optional* | :heavy_minus_sign: | N/A | -| `readOnlyLibraries` | *Optional* | :heavy_minus_sign: | N/A | -| `streamingBrainABRVersion` | *Optional* | :heavy_minus_sign: | N/A | -| `streamingBrainVersion` | *Optional* | :heavy_minus_sign: | N/A | -| `sync` | *Optional* | :heavy_minus_sign: | N/A | -| `transcoderActiveVideoSessions` | *Optional* | :heavy_minus_sign: | N/A | -| `transcoderAudio` | *Optional* | :heavy_minus_sign: | N/A | -| `transcoderLyrics` | *Optional* | :heavy_minus_sign: | N/A | -| `transcoderPhoto` | *Optional* | :heavy_minus_sign: | N/A | -| `transcoderSubtitles` | *Optional* | :heavy_minus_sign: | N/A | -| `transcoderVideo` | *Optional* | :heavy_minus_sign: | N/A | -| `transcoderVideoBitrates` | *Optional* | :heavy_minus_sign: | N/A | -| `transcoderVideoQualities` | *Optional* | :heavy_minus_sign: | N/A | -| `transcoderVideoResolutions` | *Optional* | :heavy_minus_sign: | N/A | -| `updatedAt` | *Optional* | :heavy_minus_sign: | N/A | -| `updater` | *Optional* | :heavy_minus_sign: | N/A | -| `version` | *Optional* | :heavy_minus_sign: | N/A | -| `voiceSearch` | *Optional* | :heavy_minus_sign: | N/A | -| `directory` | List<[lukehagar.plexapi.plexapi.models.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 deleted file mode 100644 index 842130b8..00000000 --- a/docs/models/operations/Metadata.md +++ /dev/null @@ -1,42 +0,0 @@ -# Metadata - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | -| `art` | *Optional* | :heavy_minus_sign: | N/A | -| `guid` | *Optional* | :heavy_minus_sign: | N/A | -| `key` | *Optional* | :heavy_minus_sign: | N/A | -| `ratingKey` | *Optional* | :heavy_minus_sign: | N/A | -| `studio` | *Optional* | :heavy_minus_sign: | N/A | -| `tagline` | *Optional* | :heavy_minus_sign: | N/A | -| `type` | *Optional* | :heavy_minus_sign: | N/A | -| `thumb` | *Optional* | :heavy_minus_sign: | N/A | -| `addedAt` | *Optional* | :heavy_minus_sign: | N/A | -| `duration` | *Optional* | :heavy_minus_sign: | N/A | -| `publicPagesURL` | *Optional* | :heavy_minus_sign: | N/A | -| `slug` | *Optional* | :heavy_minus_sign: | N/A | -| `userState` | *Optional* | :heavy_minus_sign: | N/A | -| `title` | *Optional* | :heavy_minus_sign: | N/A | -| `contentRating` | *Optional* | :heavy_minus_sign: | N/A | -| `originallyAvailableAt` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_minus_sign: | N/A | -| `year` | *Optional* | :heavy_minus_sign: | N/A | -| `image` | List<[lukehagar.plexapi.plexapi.models.operations.Image](../../models/operations/Image.md)> | :heavy_minus_sign: | N/A | -| `banner` | *Optional* | :heavy_minus_sign: | N/A | -| `rating` | *Optional* | :heavy_minus_sign: | N/A | -| `expiresAt` | *Optional* | :heavy_minus_sign: | N/A | -| `originalTitle` | *Optional* | :heavy_minus_sign: | N/A | -| `audienceRating` | *Optional* | :heavy_minus_sign: | N/A | -| `audienceRatingImage` | *Optional* | :heavy_minus_sign: | N/A | -| `ratingImage` | *Optional* | :heavy_minus_sign: | N/A | -| `imdbRatingCount` | *Optional* | :heavy_minus_sign: | N/A | -| `subtype` | *Optional* | :heavy_minus_sign: | N/A | -| `theme` | *Optional* | :heavy_minus_sign: | N/A | -| `leafCount` | *Optional* | :heavy_minus_sign: | N/A | -| `childCount` | *Optional* | :heavy_minus_sign: | N/A | -| `isContinuingSeries` | *Optional* | :heavy_minus_sign: | N/A | -| `skipChildren` | *Optional* | :heavy_minus_sign: | N/A | -| `availabilityId` | *Optional* | :heavy_minus_sign: | N/A | -| `streamingMediaId` | *Optional* | :heavy_minus_sign: | N/A | -| `playableKey` | *Optional* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/MinSize.md b/docs/models/operations/MinSize.md deleted file mode 100644 index 815444ca..00000000 --- a/docs/models/operations/MinSize.md +++ /dev/null @@ -1,11 +0,0 @@ -# MinSize - -images are always scaled proportionally. A value of '1' in minSize will make the smaller native dimension the dimension resized against. - - -## Values - -| Name | Value | -| ------ | ------ | -| `ZERO` | 0 | -| `ONE` | 1 | \ No newline at end of file diff --git a/docs/models/operations/MyPlex.md b/docs/models/operations/MyPlex.md deleted file mode 100644 index 9b8b8888..00000000 --- a/docs/models/operations/MyPlex.md +++ /dev/null @@ -1,19 +0,0 @@ -# MyPlex - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `authToken` | *Optional* | :heavy_minus_sign: | N/A | Z5v-PrNASDFpsaCi3CPK7 | -| `username` | *Optional* | :heavy_minus_sign: | N/A | example.email@mail.com | -| `mappingState` | *Optional* | :heavy_minus_sign: | N/A | mapped | -| `mappingError` | *Optional* | :heavy_minus_sign: | N/A | | -| `signInState` | *Optional* | :heavy_minus_sign: | N/A | ok | -| `publicAddress` | *Optional* | :heavy_minus_sign: | N/A | 140.20.68.140 | -| `publicPort` | *Optional* | :heavy_minus_sign: | N/A | 32400 | -| `privateAddress` | *Optional* | :heavy_minus_sign: | N/A | 10.10.10.47 | -| `privatePort` | *Optional* | :heavy_minus_sign: | N/A | 32400 | -| `subscriptionFeatures` | *Optional* | :heavy_minus_sign: | N/A | federated-auth,hardware_transcoding,home,hwtranscode,item_clusters,kevin-bacon,livetv,loudness,lyrics,music-analysis,music_videos,pass,photo_autotags,photos-v5,photosV6-edit,photosV6-tv-albums,premium_music_metadata,radio,server-manager,session_bandwidth_restrictions,session_kick,shared-radio,sync,trailers,tuner-sharing,type-first,unsupportedtuners,webhooks | -| `subscriptionActive` | *Optional* | :heavy_minus_sign: | N/A | | -| `subscriptionState` | *Optional* | :heavy_minus_sign: | N/A | Active | \ No newline at end of file diff --git a/docs/models/operations/OnlyTransient.md b/docs/models/operations/OnlyTransient.md deleted file mode 100644 index c91d3d73..00000000 --- a/docs/models/operations/OnlyTransient.md +++ /dev/null @@ -1,11 +0,0 @@ -# OnlyTransient - -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). - - -## Values - -| Name | Value | -| ------ | ------ | -| `ZERO` | 0 | -| `ONE` | 1 | \ No newline at end of file diff --git a/docs/models/operations/Operator.md b/docs/models/operations/Operator.md deleted file mode 100644 index e9575212..00000000 --- a/docs/models/operations/Operator.md +++ /dev/null @@ -1,9 +0,0 @@ -# Operator - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `key` | *Optional* | :heavy_minus_sign: | N/A | = | -| `title` | *Optional* | :heavy_minus_sign: | N/A | is | \ No newline at end of file diff --git a/docs/models/operations/Part.md b/docs/models/operations/Part.md deleted file mode 100644 index 8af6c5dc..00000000 --- a/docs/models/operations/Part.md +++ /dev/null @@ -1,17 +0,0 @@ -# Part - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 120353 | -| `key` | *Optional* | :heavy_minus_sign: | N/A | /library/parts/120353/1681803203/file.mp4 | -| `duration` | *Optional* | :heavy_minus_sign: | N/A | 7474422 | -| `file` | *Optional* | :heavy_minus_sign: | N/A | /movies/Ant-Man and the Wasp Quantumania (2023)/Ant-Man.and.the.Wasp.Quantumania.2023.1080p.mp4 | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 3395307162 | -| `container` | *Optional* | :heavy_minus_sign: | N/A | mp4 | -| `has64bitOffsets` | *Optional* | :heavy_minus_sign: | N/A | | -| `hasThumbnail` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `optimizedForStreaming` | *Optional* | :heavy_minus_sign: | N/A | | -| `videoProfile` | *Optional* | :heavy_minus_sign: | N/A | high | \ No newline at end of file diff --git a/docs/models/operations/PathParamFilter.md b/docs/models/operations/PathParamFilter.md deleted file mode 100644 index f3d9441b..00000000 --- a/docs/models/operations/PathParamFilter.md +++ /dev/null @@ -1,12 +0,0 @@ -# PathParamFilter - -Filter - - -## Values - -| Name | Value | -| ----------- | ----------- | -| `ALL` | all | -| `AVAILABLE` | available | -| `RELEASED` | released | \ No newline at end of file diff --git a/docs/models/operations/PathParamTaskName.md b/docs/models/operations/PathParamTaskName.md deleted file mode 100644 index 87cffd14..00000000 --- a/docs/models/operations/PathParamTaskName.md +++ /dev/null @@ -1,23 +0,0 @@ -# PathParamTaskName - -The name of the task to be started. - - -## Values - -| Name | Value | -| ----------------------------- | ----------------------------- | -| `BACKUP_DATABASE` | BackupDatabase | -| `BUILD_GRACENOTE_COLLECTIONS` | BuildGracenoteCollections | -| `CHECK_FOR_UPDATES` | CheckForUpdates | -| `CLEAN_OLD_BUNDLES` | CleanOldBundles | -| `CLEAN_OLD_CACHE_FILES` | CleanOldCacheFiles | -| `DEEP_MEDIA_ANALYSIS` | DeepMediaAnalysis | -| `GENERATE_AUTO_TAGS` | GenerateAutoTags | -| `GENERATE_CHAPTER_THUMBS` | GenerateChapterThumbs | -| `GENERATE_MEDIA_INDEX_FILES` | GenerateMediaIndexFiles | -| `OPTIMIZE_DATABASE` | OptimizeDatabase | -| `REFRESH_LIBRARIES` | RefreshLibraries | -| `REFRESH_LOCAL_MEDIA` | RefreshLocalMedia | -| `REFRESH_PERIODIC_METADATA` | RefreshPeriodicMetadata | -| `UPGRADE_MEDIA_ANALYSIS` | UpgradeMediaAnalysis | \ No newline at end of file diff --git a/docs/models/operations/PerformSearchRequest.md b/docs/models/operations/PerformSearchRequest.md deleted file mode 100644 index 198a00cb..00000000 --- a/docs/models/operations/PerformSearchRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -# PerformSearchRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `query` | *String* | :heavy_check_mark: | The query term | arnold | -| `sectionId` | *Optional* | :heavy_minus_sign: | This gives context to the search, and can result in re-ordering of search result hubs | | -| `limit` | *Optional* | :heavy_minus_sign: | The number of items to return per hub | 5 | \ No newline at end of file diff --git a/docs/models/operations/PerformSearchResponse.md b/docs/models/operations/PerformSearchResponse.md deleted file mode 100644 index 9ced937c..00000000 --- a/docs/models/operations/PerformSearchResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# PerformSearchResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/PerformVoiceSearchRequest.md b/docs/models/operations/PerformVoiceSearchRequest.md deleted file mode 100644 index c7f4e75c..00000000 --- a/docs/models/operations/PerformVoiceSearchRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -# PerformVoiceSearchRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `query` | *String* | :heavy_check_mark: | The query term | dead+poop | -| `sectionId` | *Optional* | :heavy_minus_sign: | This gives context to the search, and can result in re-ordering of search result hubs | | -| `limit` | *Optional* | :heavy_minus_sign: | The number of items to return per hub | 5 | \ No newline at end of file diff --git a/docs/models/operations/PerformVoiceSearchResponse.md b/docs/models/operations/PerformVoiceSearchResponse.md deleted file mode 100644 index 3e533d5e..00000000 --- a/docs/models/operations/PerformVoiceSearchResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# PerformVoiceSearchResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/Player.md b/docs/models/operations/Player.md deleted file mode 100644 index 48a31d10..00000000 --- a/docs/models/operations/Player.md +++ /dev/null @@ -1,22 +0,0 @@ -# Player - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | -| `address` | *Optional* | :heavy_minus_sign: | N/A | 10.10.10.171 | -| `machineIdentifier` | *Optional* | :heavy_minus_sign: | N/A | 3tsdzir85m2onc3qyr255aq1 | -| `model` | *Optional* | :heavy_minus_sign: | N/A | standalone | -| `platform` | *Optional* | :heavy_minus_sign: | N/A | windows | -| `platformVersion` | *Optional* | :heavy_minus_sign: | N/A | 10.0.22621 | -| `product` | *Optional* | :heavy_minus_sign: | N/A | Plex for Windows | -| `profile` | *Optional* | :heavy_minus_sign: | N/A | Plex Desktop | -| `remotePublicAddress` | *Optional* | :heavy_minus_sign: | N/A | 68.248.140.20 | -| `state` | *Optional* | :heavy_minus_sign: | N/A | playing | -| `title` | *Optional* | :heavy_minus_sign: | N/A | DESKTOP-BL80MTD | -| `version` | *Optional* | :heavy_minus_sign: | N/A | 1.85.0.4071-21128b56 | -| `local` | *Optional* | :heavy_minus_sign: | N/A | true | -| `relayed` | *Optional* | :heavy_minus_sign: | N/A | false | -| `secure` | *Optional* | :heavy_minus_sign: | N/A | true | -| `userID` | *Optional* | :heavy_minus_sign: | N/A | 1 | \ No newline at end of file diff --git a/docs/models/operations/PlaylistType.md b/docs/models/operations/PlaylistType.md deleted file mode 100644 index 276ac5f7..00000000 --- a/docs/models/operations/PlaylistType.md +++ /dev/null @@ -1,12 +0,0 @@ -# PlaylistType - -limit to a type of playlist. - - -## Values - -| Name | Value | -| ------- | ------- | -| `AUDIO` | audio | -| `VIDEO` | video | -| `PHOTO` | photo | \ No newline at end of file diff --git a/docs/models/operations/Producer.md b/docs/models/operations/Producer.md deleted file mode 100644 index 23c5b53a..00000000 --- a/docs/models/operations/Producer.md +++ /dev/null @@ -1,12 +0,0 @@ -# Producer - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 221 | -| `filter` | *Optional* | :heavy_minus_sign: | N/A | producer=221 | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Barry Mendel | -| `tagKey` | *Optional* | :heavy_minus_sign: | N/A | 5d776826961905001eb90e2b | -| `thumb` | *Optional* | :heavy_minus_sign: | N/A | https://metadata-static.plex.tv/8/people/87877371326a964634d18556d94547e1.jpg | \ No newline at end of file diff --git a/docs/models/operations/Provider.md b/docs/models/operations/Provider.md deleted file mode 100644 index fe99486b..00000000 --- a/docs/models/operations/Provider.md +++ /dev/null @@ -1,10 +0,0 @@ -# Provider - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `key` | *Optional* | :heavy_minus_sign: | N/A | /system/search | -| `title` | *Optional* | :heavy_minus_sign: | N/A | Local Network | -| `type` | *Optional* | :heavy_minus_sign: | N/A | mixed | \ No newline at end of file diff --git a/docs/models/operations/QueryParamOnlyTransient.md b/docs/models/operations/QueryParamOnlyTransient.md deleted file mode 100644 index 6c2e1403..00000000 --- a/docs/models/operations/QueryParamOnlyTransient.md +++ /dev/null @@ -1,11 +0,0 @@ -# QueryParamOnlyTransient - -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). - - -## Values - -| Name | Value | -| ------ | ------ | -| `ZERO` | 0 | -| `ONE` | 1 | \ No newline at end of file diff --git a/docs/models/operations/QueryParamSmart.md b/docs/models/operations/QueryParamSmart.md deleted file mode 100644 index bb53a11a..00000000 --- a/docs/models/operations/QueryParamSmart.md +++ /dev/null @@ -1,11 +0,0 @@ -# QueryParamSmart - -type of playlists to return (default is all). - - -## Values - -| Name | Value | -| ------ | ------ | -| `ZERO` | 0 | -| `ONE` | 1 | \ No newline at end of file diff --git a/docs/models/operations/QueryParamType.md b/docs/models/operations/QueryParamType.md deleted file mode 100644 index c72a4f72..00000000 --- a/docs/models/operations/QueryParamType.md +++ /dev/null @@ -1,12 +0,0 @@ -# QueryParamType - -type of playlist to create - - -## Values - -| Name | Value | -| ------- | ------- | -| `AUDIO` | audio | -| `VIDEO` | video | -| `PHOTO` | photo | \ No newline at end of file diff --git a/docs/models/operations/Ratings.md b/docs/models/operations/Ratings.md deleted file mode 100644 index 5072fab4..00000000 --- a/docs/models/operations/Ratings.md +++ /dev/null @@ -1,10 +0,0 @@ -# Ratings - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `image` | *Optional* | :heavy_minus_sign: | N/A | themoviedb://image.rating | -| `value` | *Optional* | :heavy_minus_sign: | N/A | 7.4 | -| `type` | *Optional* | :heavy_minus_sign: | N/A | audience | \ No newline at end of file diff --git a/docs/models/operations/RefreshLibraryRequest.md b/docs/models/operations/RefreshLibraryRequest.md deleted file mode 100644 index b3e8d636..00000000 --- a/docs/models/operations/RefreshLibraryRequest.md +++ /dev/null @@ -1,8 +0,0 @@ -# RefreshLibraryRequest - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- | -| `sectionId` | *double* | :heavy_check_mark: | the Id of the library to refresh | \ No newline at end of file diff --git a/docs/models/operations/RefreshLibraryResponse.md b/docs/models/operations/RefreshLibraryResponse.md deleted file mode 100644 index 5464acc9..00000000 --- a/docs/models/operations/RefreshLibraryResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# RefreshLibraryResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/Release.md b/docs/models/operations/Release.md deleted file mode 100644 index 1cd76487..00000000 --- a/docs/models/operations/Release.md +++ /dev/null @@ -1,13 +0,0 @@ -# Release - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `key` | *Optional* | :heavy_minus_sign: | N/A | https://plex.tv/updater/releases/5136 | -| `version` | *Optional* | :heavy_minus_sign: | N/A | 1.40.0.7775-456fbaf97 | -| `added` | *Optional* | :heavy_minus_sign: | N/A | (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.
(Collections) Items added to a collection from the item context menu will now lock the collection field on the items (#12793)
(Music) Store track genres and add filtering options (#14653)
(Music) Support ID3v2.4 null-separated tags for genres and release type (#14653)
(View History) No longer create a view history entry for items marked as played (#10888)
(Web) Updated to 4.118.0 | -| `fixed` | *Optional* | :heavy_minus_sign: | N/A | (Agents) Changing a 'Other Videos' type library to the modern movie agent would fail (#14483)
(Agents) It is possible that agents are not initialised during startup on rare occasions (#14654)
(Agents) Remove the legacy OpenSubtitles agent which is no longer supported upstream (#14667)
(Collection) Server could become unresponsive when collection membership changes (#14612)
(DVR) Previously watched recordings could be deleted without being watched again (#13779)
(Libraries) When performing fix match on items from certain music libraries the language would default to Arabic (#14501)
(Library) The Content Rating not equal to None filter does not work (#14620)
(Search) Album search results could contain all the album's tracks too (#14486)
(Subtitles) In some circumstances, sidecar subtitles can show up for media when they're no longer available (#14674)
(Transcoder) HW encoding would fail on devices with no rate control (#14222)
(Transcoder) Software transcoding on Ubuntu could cause unexpected behavior (#14605) | -| `downloadURL` | *Optional* | :heavy_minus_sign: | N/A | https://plex.tv/downloads/latest/5?channel=8&build=linux-x86_64&distro=redhat&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx | -| `state` | *Optional* | :heavy_minus_sign: | N/A | notify | \ No newline at end of file diff --git a/docs/models/operations/Role.md b/docs/models/operations/Role.md deleted file mode 100644 index 3d666328..00000000 --- a/docs/models/operations/Role.md +++ /dev/null @@ -1,8 +0,0 @@ -# Role - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Paul Rudd | \ No newline at end of file diff --git a/docs/models/operations/Scope.md b/docs/models/operations/Scope.md deleted file mode 100644 index dfa16809..00000000 --- a/docs/models/operations/Scope.md +++ /dev/null @@ -1,10 +0,0 @@ -# Scope - -`all` - This is the only supported `scope` parameter. - - -## Values - -| Name | Value | -| ----- | ----- | -| `ALL` | all | \ No newline at end of file diff --git a/docs/models/operations/SearchLibraryMediaContainer.md b/docs/models/operations/SearchLibraryMediaContainer.md deleted file mode 100644 index 551b963d..00000000 --- a/docs/models/operations/SearchLibraryMediaContainer.md +++ /dev/null @@ -1,20 +0,0 @@ -# SearchLibraryMediaContainer - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 2 | -| `allowSync` | *Optional* | :heavy_minus_sign: | N/A | false | -| `art` | *Optional* | :heavy_minus_sign: | N/A | /:/resources/show-fanart.jpg | -| `identifier` | *Optional* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library | -| `mediaTagPrefix` | *Optional* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ | -| `mediaTagVersion` | *Optional* | :heavy_minus_sign: | N/A | 1698860922 | -| `nocache` | *Optional* | :heavy_minus_sign: | N/A | true | -| `thumb` | *Optional* | :heavy_minus_sign: | N/A | /:/resources/show.png | -| `title1` | *Optional* | :heavy_minus_sign: | N/A | TV Shows | -| `title2` | *Optional* | :heavy_minus_sign: | N/A | Search for '' | -| `viewGroup` | *Optional* | :heavy_minus_sign: | N/A | season | -| `viewMode` | *Optional* | :heavy_minus_sign: | N/A | 65593 | -| `metadata` | List<[lukehagar.plexapi.plexapi.models.operations.SearchLibraryMetadata](../../models/operations/SearchLibraryMetadata.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/SearchLibraryMetadata.md b/docs/models/operations/SearchLibraryMetadata.md deleted file mode 100644 index 348ca67d..00000000 --- a/docs/models/operations/SearchLibraryMetadata.md +++ /dev/null @@ -1,27 +0,0 @@ -# SearchLibraryMetadata - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ratingKey` | *Optional* | :heavy_minus_sign: | N/A | 2 | -| `key` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/2/children | -| `parentRatingKey` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `guid` | *Optional* | :heavy_minus_sign: | N/A | plex://season/602e67e766dfdb002c0a1b5b | -| `parentGuid` | *Optional* | :heavy_minus_sign: | N/A | plex://show/5d9c086c7d06d9001ffd27aa | -| `parentStudio` | *Optional* | :heavy_minus_sign: | N/A | Mutant Enemy Productions | -| `type` | *Optional* | :heavy_minus_sign: | N/A | season | -| `title` | *Optional* | :heavy_minus_sign: | N/A | Season 1 | -| `parentKey` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/1 | -| `parentTitle` | *Optional* | :heavy_minus_sign: | N/A | Firefly | -| `summary` | *Optional* | :heavy_minus_sign: | N/A | Captain Malcolm 'Mal' Reynolds is a former galactic war veteran who is the captain of the transport ship "Serenity". Mal and his crew, ensign Zoe Alleyne Washburne; Zoe's husband, pilot Hoban 'Wash' Washburne; muscular mercenary Jayne Cobb; young mechanic Kaylee Frye; former Alliance medical officer Simon Tam; his disturbed teenage sister River (both on the run from the interplanetary government "The Alliance"); the beautiful courtesan Inara Serra; and preacher Shepherd Book do any jobs, legal or illegal, they can find as the Serenity crew travels across the outskirts of outer space. | -| `index` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `parentIndex` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `parentYear` | *Optional* | :heavy_minus_sign: | N/A | 2002 | -| `thumb` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/2/thumb/1705636920 | -| `art` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/1/art/1705636920 | -| `parentThumb` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/1/thumb/1705636920 | -| `parentTheme` | *Optional* | :heavy_minus_sign: | N/A | /library/metadata/1/theme/1705636920 | -| `addedAt` | *Optional* | :heavy_minus_sign: | N/A | 1705636916 | -| `updatedAt` | *Optional* | :heavy_minus_sign: | N/A | 1705636920 | \ No newline at end of file diff --git a/docs/models/operations/SearchLibraryRequest.md b/docs/models/operations/SearchLibraryRequest.md deleted file mode 100644 index 51a83211..00000000 --- a/docs/models/operations/SearchLibraryRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# SearchLibraryRequest - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | -| `sectionId` | *long* | :heavy_check_mark: | the Id of the library to query | -| `type` | [lukehagar.plexapi.plexapi.models.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 deleted file mode 100644 index 0112bda8..00000000 --- a/docs/models/operations/SearchLibraryResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# SearchLibraryResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional](../../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 deleted file mode 100644 index 642bd4d5..00000000 --- a/docs/models/operations/SearchLibraryResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# SearchLibraryResponseBody - -The contents of the library by section and type - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | -| `mediaContainer` | [Optional](../../models/operations/SearchLibraryMediaContainer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/Server.md b/docs/models/operations/Server.md deleted file mode 100644 index 073d611d..00000000 --- a/docs/models/operations/Server.md +++ /dev/null @@ -1,18 +0,0 @@ -# Server - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| `name` | *Optional* | :heavy_minus_sign: | N/A | iPad | -| `host` | *Optional* | :heavy_minus_sign: | N/A | 10.10.10.102 | -| `address` | *Optional* | :heavy_minus_sign: | N/A | 10.10.10.102 | -| `port` | *Optional* | :heavy_minus_sign: | N/A | 32500 | -| `machineIdentifier` | *Optional* | :heavy_minus_sign: | N/A | A2E901F8-E016-43A7-ADFB-EF8CA8A4AC05 | -| `version` | *Optional* | :heavy_minus_sign: | N/A | 8.17 | -| `protocol` | *Optional* | :heavy_minus_sign: | N/A | plex | -| `product` | *Optional* | :heavy_minus_sign: | N/A | Plex for iOS | -| `deviceClass` | *Optional* | :heavy_minus_sign: | N/A | tablet | -| `protocolVersion` | *Optional* | :heavy_minus_sign: | N/A | 2 | -| `protocolCapabilities` | *Optional* | :heavy_minus_sign: | N/A | playback,playqueues,timeline,provider-playback | \ No newline at end of file diff --git a/docs/models/operations/Session.md b/docs/models/operations/Session.md deleted file mode 100644 index 1d21f35a..00000000 --- a/docs/models/operations/Session.md +++ /dev/null @@ -1,10 +0,0 @@ -# Session - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 93h7e00ncblxncqw9lkfaoxi | -| `bandwidth` | *Optional* | :heavy_minus_sign: | N/A | 1050 | -| `location` | *Optional* | :heavy_minus_sign: | N/A | lan | \ No newline at end of file diff --git a/docs/models/operations/Setting.md b/docs/models/operations/Setting.md deleted file mode 100644 index 8e0bebe3..00000000 --- a/docs/models/operations/Setting.md +++ /dev/null @@ -1,17 +0,0 @@ -# Setting - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | EnableDatabaseTrace | -| `label` | *Optional* | :heavy_minus_sign: | N/A | | -| `summary` | *Optional* | :heavy_minus_sign: | N/A | | -| `type` | *Optional* | :heavy_minus_sign: | N/A | bool | -| `default_` | *Optional* | :heavy_minus_sign: | N/A | false | -| `value` | *Optional* | :heavy_minus_sign: | N/A | false | -| `hidden` | *Optional* | :heavy_minus_sign: | N/A | true | -| `advanced` | *Optional* | :heavy_minus_sign: | N/A | false | -| `group` | *Optional* | :heavy_minus_sign: | N/A | | -| `enumValues` | *Optional* | :heavy_minus_sign: | N/A | 1:admin only\|2:everyone | \ No newline at end of file diff --git a/docs/models/operations/Skip.md b/docs/models/operations/Skip.md deleted file mode 100644 index 5e71f0e6..00000000 --- a/docs/models/operations/Skip.md +++ /dev/null @@ -1,11 +0,0 @@ -# Skip - -Indicate that the latest version should be marked as skipped. The entry for this version will have the `state` set to `skipped`. - - -## Values - -| Name | Value | -| ------ | ------ | -| `ZERO` | 0 | -| `ONE` | 1 | \ No newline at end of file diff --git a/docs/models/operations/Smart.md b/docs/models/operations/Smart.md deleted file mode 100644 index a4d5e784..00000000 --- a/docs/models/operations/Smart.md +++ /dev/null @@ -1,11 +0,0 @@ -# Smart - -whether the playlist is smart or not - - -## Values - -| Name | Value | -| ------ | ------ | -| `ZERO` | 0 | -| `ONE` | 1 | \ No newline at end of file diff --git a/docs/models/operations/Sort.md b/docs/models/operations/Sort.md deleted file mode 100644 index 00ae8b6e..00000000 --- a/docs/models/operations/Sort.md +++ /dev/null @@ -1,13 +0,0 @@ -# Sort - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | -| `default_` | *Optional* | :heavy_minus_sign: | N/A | asc | -| `defaultDirection` | *Optional* | :heavy_minus_sign: | N/A | desc | -| `descKey` | *Optional* | :heavy_minus_sign: | N/A | random:desc | -| `firstCharacterKey` | *Optional* | :heavy_minus_sign: | N/A | /library/sections/1/firstCharacter | -| `key` | *Optional* | :heavy_minus_sign: | N/A | random | -| `title` | *Optional* | :heavy_minus_sign: | N/A | Randomly | \ No newline at end of file diff --git a/docs/models/operations/StartAllTasksResponse.md b/docs/models/operations/StartAllTasksResponse.md deleted file mode 100644 index 68d73133..00000000 --- a/docs/models/operations/StartAllTasksResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# StartAllTasksResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/StartTaskRequest.md b/docs/models/operations/StartTaskRequest.md deleted file mode 100644 index aeabe2ba..00000000 --- a/docs/models/operations/StartTaskRequest.md +++ /dev/null @@ -1,8 +0,0 @@ -# StartTaskRequest - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | -| `taskName` | [lukehagar.plexapi.plexapi.models.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 deleted file mode 100644 index c0d712bb..00000000 --- a/docs/models/operations/StartTaskResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# StartTaskResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/StartUniversalTranscodeRequest.md b/docs/models/operations/StartUniversalTranscodeRequest.md deleted file mode 100644 index 8a576da3..00000000 --- a/docs/models/operations/StartUniversalTranscodeRequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# StartUniversalTranscodeRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | -| `hasMDE` | *double* | :heavy_check_mark: | Whether the media item has MDE | 1 | -| `path` | *String* | :heavy_check_mark: | The path to the media item to transcode | /library/metadata/23409 | -| `mediaIndex` | *double* | :heavy_check_mark: | The index of the media item to transcode | 0 | -| `partIndex` | *double* | :heavy_check_mark: | The index of the part to transcode | 0 | -| `protocol` | *String* | :heavy_check_mark: | The protocol to use for the transcode session | hls | -| `fastSeek` | *Optional* | :heavy_minus_sign: | Whether to use fast seek or not | 0 | -| `directPlay` | *Optional* | :heavy_minus_sign: | Whether to use direct play or not | 0 | -| `directStream` | *Optional* | :heavy_minus_sign: | Whether to use direct stream or not | 0 | -| `subtitleSize` | *Optional* | :heavy_minus_sign: | The size of the subtitles | 100 | -| `subtites` | *Optional* | :heavy_minus_sign: | The subtitles | burn | -| `audioBoost` | *Optional* | :heavy_minus_sign: | The audio boost | 100 | -| `location` | *Optional* | :heavy_minus_sign: | The location of the transcode session | lan | -| `mediaBufferSize` | *Optional* | :heavy_minus_sign: | The size of the media buffer | 102400 | -| `session` | *Optional* | :heavy_minus_sign: | The session ID | zvcage8b7rkioqcm8f4uns4c | -| `addDebugOverlay` | *Optional* | :heavy_minus_sign: | Whether to add a debug overlay or not | 0 | -| `autoAdjustQuality` | *Optional* | :heavy_minus_sign: | Whether to auto adjust quality or not | 0 | \ No newline at end of file diff --git a/docs/models/operations/StartUniversalTranscodeResponse.md b/docs/models/operations/StartUniversalTranscodeResponse.md deleted file mode 100644 index 430ea62a..00000000 --- a/docs/models/operations/StartUniversalTranscodeResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# StartUniversalTranscodeResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/State.md b/docs/models/operations/State.md deleted file mode 100644 index f4f712a5..00000000 --- a/docs/models/operations/State.md +++ /dev/null @@ -1,12 +0,0 @@ -# State - -The state of the media item - - -## Values - -| Name | Value | -| --------- | --------- | -| `PLAYING` | playing | -| `PAUSED` | paused | -| `STOPPED` | stopped | \ No newline at end of file diff --git a/docs/models/operations/StatisticsBandwidth.md b/docs/models/operations/StatisticsBandwidth.md deleted file mode 100644 index a0003aa7..00000000 --- a/docs/models/operations/StatisticsBandwidth.md +++ /dev/null @@ -1,13 +0,0 @@ -# StatisticsBandwidth - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | -| `accountID` | *Optional* | :heavy_minus_sign: | N/A | 238960586 | -| `deviceID` | *Optional* | :heavy_minus_sign: | N/A | | -| `timespan` | *Optional* | :heavy_minus_sign: | N/A | 6 | -| `at` | *Optional* | :heavy_minus_sign: | N/A | 1718387650 | -| `lan` | *Optional* | :heavy_minus_sign: | N/A | true | -| `bytes` | *Optional* | :heavy_minus_sign: | N/A | 22 | \ No newline at end of file diff --git a/docs/models/operations/StatisticsMedia.md b/docs/models/operations/StatisticsMedia.md deleted file mode 100644 index a67be1df..00000000 --- a/docs/models/operations/StatisticsMedia.md +++ /dev/null @@ -1,14 +0,0 @@ -# StatisticsMedia - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | -| `accountID` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `deviceID` | *Optional* | :heavy_minus_sign: | N/A | 13 | -| `timespan` | *Optional* | :heavy_minus_sign: | N/A | 4 | -| `at` | *Optional* | :heavy_minus_sign: | N/A | 1707141600 | -| `metadataType` | *Optional* | :heavy_minus_sign: | N/A | 4 | -| `count` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `duration` | *Optional* | :heavy_minus_sign: | N/A | 1555 | \ No newline at end of file diff --git a/docs/models/operations/StatisticsResources.md b/docs/models/operations/StatisticsResources.md deleted file mode 100644 index 1df45d99..00000000 --- a/docs/models/operations/StatisticsResources.md +++ /dev/null @@ -1,13 +0,0 @@ -# StatisticsResources - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------- | --------------------------- | --------------------------- | --------------------------- | --------------------------- | -| `timespan` | *Optional* | :heavy_minus_sign: | N/A | 6 | -| `at` | *Optional* | :heavy_minus_sign: | N/A | 1718384427 | -| `hostCpuUtilization` | *Optional* | :heavy_minus_sign: | N/A | 1.276 | -| `processCpuUtilization` | *Optional* | :heavy_minus_sign: | N/A | 0.025 | -| `hostMemoryUtilization` | *Optional* | :heavy_minus_sign: | N/A | 17.026 | -| `processMemoryUtilization` | *Optional* | :heavy_minus_sign: | N/A | 0.493 | \ No newline at end of file diff --git a/docs/models/operations/StopAllTasksResponse.md b/docs/models/operations/StopAllTasksResponse.md deleted file mode 100644 index bb33806e..00000000 --- a/docs/models/operations/StopAllTasksResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# StopAllTasksResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/StopTaskRequest.md b/docs/models/operations/StopTaskRequest.md deleted file mode 100644 index 7e84af8f..00000000 --- a/docs/models/operations/StopTaskRequest.md +++ /dev/null @@ -1,8 +0,0 @@ -# StopTaskRequest - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `taskName` | [lukehagar.plexapi.plexapi.models.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 deleted file mode 100644 index 9d43a4eb..00000000 --- a/docs/models/operations/StopTaskResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# StopTaskResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/StopTranscodeSessionRequest.md b/docs/models/operations/StopTranscodeSessionRequest.md deleted file mode 100644 index 863a31c0..00000000 --- a/docs/models/operations/StopTranscodeSessionRequest.md +++ /dev/null @@ -1,8 +0,0 @@ -# StopTranscodeSessionRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| `sessionKey` | *String* | :heavy_check_mark: | the Key of the transcode session to stop | zz7llzqlx8w9vnrsbnwhbmep | \ No newline at end of file diff --git a/docs/models/operations/StopTranscodeSessionResponse.md b/docs/models/operations/StopTranscodeSessionResponse.md deleted file mode 100644 index 17de4d9c..00000000 --- a/docs/models/operations/StopTranscodeSessionResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# StopTranscodeSessionResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/Stream.md b/docs/models/operations/Stream.md deleted file mode 100644 index 9ffcff4c..00000000 --- a/docs/models/operations/Stream.md +++ /dev/null @@ -1,39 +0,0 @@ -# Stream - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 29 | -| `streamType` | *Optional* | :heavy_minus_sign: | N/A | 2 | -| `default_` | *Optional* | :heavy_minus_sign: | N/A | true | -| `codec` | *Optional* | :heavy_minus_sign: | N/A | aac | -| `index` | *Optional* | :heavy_minus_sign: | N/A | 0 | -| `bitrate` | *Optional* | :heavy_minus_sign: | N/A | 128 | -| `bitDepth` | *Optional* | :heavy_minus_sign: | N/A | 8 | -| `chromaLocation` | *Optional* | :heavy_minus_sign: | N/A | left | -| `chromaSubsampling` | *Optional* | :heavy_minus_sign: | N/A | 14520 | -| `codedHeight` | *Optional* | :heavy_minus_sign: | N/A | 816 | -| `codedWidth` | *Optional* | :heavy_minus_sign: | N/A | 1920 | -| `colorPrimaries` | *Optional* | :heavy_minus_sign: | N/A | bt709 | -| `colorRange` | *Optional* | :heavy_minus_sign: | N/A | tv | -| `colorSpace` | *Optional* | :heavy_minus_sign: | N/A | bt709 | -| `colorTrc` | *Optional* | :heavy_minus_sign: | N/A | bt709 | -| `frameRate` | *Optional* | :heavy_minus_sign: | N/A | 24 | -| `hasScalingMatrix` | *Optional* | :heavy_minus_sign: | N/A | false | -| `height` | *Optional* | :heavy_minus_sign: | N/A | 814 | -| `level` | *Optional* | :heavy_minus_sign: | N/A | 40 | -| `profile` | *Optional* | :heavy_minus_sign: | N/A | lc | -| `refFrames` | *Optional* | :heavy_minus_sign: | N/A | 4 | -| `scanType` | *Optional* | :heavy_minus_sign: | N/A | progressive | -| `streamIdentifier` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `width` | *Optional* | :heavy_minus_sign: | N/A | 1920 | -| `displayTitle` | *Optional* | :heavy_minus_sign: | N/A | English (AAC Stereo) | -| `extendedDisplayTitle` | *Optional* | :heavy_minus_sign: | N/A | English (AAC Stereo) | -| `selected` | *Optional* | :heavy_minus_sign: | N/A | true | -| `channels` | *Optional* | :heavy_minus_sign: | N/A | 2 | -| `language` | *Optional* | :heavy_minus_sign: | N/A | English | -| `languageTag` | *Optional* | :heavy_minus_sign: | N/A | en | -| `languageCode` | *Optional* | :heavy_minus_sign: | N/A | eng | -| `samplingRate` | *Optional* | :heavy_minus_sign: | N/A | 44100 | \ No newline at end of file diff --git a/docs/models/operations/Tag.md b/docs/models/operations/Tag.md deleted file mode 100644 index 19a3a0df..00000000 --- a/docs/models/operations/Tag.md +++ /dev/null @@ -1,28 +0,0 @@ -# Tag - -A key representing a specific tag within the section. - - -## Values - -| Name | Value | -| ----------------- | ----------------- | -| `ALL` | all | -| `UNWATCHED` | unwatched | -| `NEWEST` | newest | -| `RECENTLY_ADDED` | recentlyAdded | -| `RECENTLY_VIEWED` | recentlyViewed | -| `ON_DECK` | onDeck | -| `COLLECTION` | collection | -| `EDITION` | edition | -| `GENRE` | genre | -| `YEAR` | year | -| `DECADE` | decade | -| `DIRECTOR` | director | -| `ACTOR` | actor | -| `COUNTRY` | country | -| `CONTENT_RATING` | contentRating | -| `RATING` | rating | -| `RESOLUTION` | resolution | -| `FIRST_CHARACTER` | firstCharacter | -| `FOLDER` | folder | \ No newline at end of file diff --git a/docs/models/operations/TaskName.md b/docs/models/operations/TaskName.md deleted file mode 100644 index 44383b38..00000000 --- a/docs/models/operations/TaskName.md +++ /dev/null @@ -1,23 +0,0 @@ -# TaskName - -the name of the task to be started. - - -## Values - -| Name | Value | -| ----------------------------- | ----------------------------- | -| `BACKUP_DATABASE` | BackupDatabase | -| `BUILD_GRACENOTE_COLLECTIONS` | BuildGracenoteCollections | -| `CHECK_FOR_UPDATES` | CheckForUpdates | -| `CLEAN_OLD_BUNDLES` | CleanOldBundles | -| `CLEAN_OLD_CACHE_FILES` | CleanOldCacheFiles | -| `DEEP_MEDIA_ANALYSIS` | DeepMediaAnalysis | -| `GENERATE_AUTO_TAGS` | GenerateAutoTags | -| `GENERATE_CHAPTER_THUMBS` | GenerateChapterThumbs | -| `GENERATE_MEDIA_INDEX_FILES` | GenerateMediaIndexFiles | -| `OPTIMIZE_DATABASE` | OptimizeDatabase | -| `REFRESH_LIBRARIES` | RefreshLibraries | -| `REFRESH_LOCAL_MEDIA` | RefreshLocalMedia | -| `REFRESH_PERIODIC_METADATA` | RefreshPeriodicMetadata | -| `UPGRADE_MEDIA_ANALYSIS` | UpgradeMediaAnalysis | \ No newline at end of file diff --git a/docs/models/operations/Tonight.md b/docs/models/operations/Tonight.md deleted file mode 100644 index 7bf98ba0..00000000 --- a/docs/models/operations/Tonight.md +++ /dev/null @@ -1,11 +0,0 @@ -# Tonight - -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 - - -## Values - -| Name | Value | -| ------ | ------ | -| `ZERO` | 0 | -| `ONE` | 1 | \ No newline at end of file diff --git a/docs/models/operations/TranscodeSession.md b/docs/models/operations/TranscodeSession.md deleted file mode 100644 index f410d38e..00000000 --- a/docs/models/operations/TranscodeSession.md +++ /dev/null @@ -1,31 +0,0 @@ -# TranscodeSession - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | -| `key` | *Optional* | :heavy_minus_sign: | N/A | vv3i2q2lax92qlzul1hbd4bx | -| `throttled` | *Optional* | :heavy_minus_sign: | N/A | false | -| `complete` | *Optional* | :heavy_minus_sign: | N/A | false | -| `progress` | *Optional* | :heavy_minus_sign: | N/A | 1.7999999523162842 | -| `size` | *Optional* | :heavy_minus_sign: | N/A | -22 | -| `speed` | *Optional* | :heavy_minus_sign: | N/A | 25.100000381469727 | -| `error` | *Optional* | :heavy_minus_sign: | N/A | false | -| `duration` | *Optional* | :heavy_minus_sign: | N/A | 1445695 | -| `remaining` | *Optional* | :heavy_minus_sign: | N/A | 53 | -| `context` | *Optional* | :heavy_minus_sign: | N/A | streaming | -| `sourceVideoCodec` | *Optional* | :heavy_minus_sign: | N/A | h264 | -| `sourceAudioCodec` | *Optional* | :heavy_minus_sign: | N/A | aac | -| `videoDecision` | *Optional* | :heavy_minus_sign: | N/A | transcode | -| `audioDecision` | *Optional* | :heavy_minus_sign: | N/A | transcode | -| `subtitleDecision` | *Optional* | :heavy_minus_sign: | N/A | burn | -| `protocol` | *Optional* | :heavy_minus_sign: | N/A | http | -| `container` | *Optional* | :heavy_minus_sign: | N/A | mkv | -| `videoCodec` | *Optional* | :heavy_minus_sign: | N/A | h264 | -| `audioCodec` | *Optional* | :heavy_minus_sign: | N/A | opus | -| `audioChannels` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `transcodeHwRequested` | *Optional* | :heavy_minus_sign: | N/A | true | -| `timeStamp` | *Optional* | :heavy_minus_sign: | N/A | 1.7058958054919229e+09 | -| `maxOffsetAvailable` | *Optional* | :heavy_minus_sign: | N/A | 29.53 | -| `minOffsetAvailable` | *Optional* | :heavy_minus_sign: | N/A | 3.003000020980835 | \ No newline at end of file diff --git a/docs/models/operations/Type.md b/docs/models/operations/Type.md deleted file mode 100644 index 8cfa2e45..00000000 --- a/docs/models/operations/Type.md +++ /dev/null @@ -1,13 +0,0 @@ -# Type - -Plex content type to search for - - -## Values - -| Name | Value | -| ------- | ------- | -| `ONE` | 1 | -| `TWO` | 2 | -| `THREE` | 3 | -| `FOUR` | 4 | \ No newline at end of file diff --git a/docs/models/operations/UpdatePlayProgressRequest.md b/docs/models/operations/UpdatePlayProgressRequest.md deleted file mode 100644 index e8095bff..00000000 --- a/docs/models/operations/UpdatePlayProgressRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -# UpdatePlayProgressRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `key` | *String* | :heavy_check_mark: | the media key | | -| `time` | *double* | :heavy_check_mark: | The time, in milliseconds, used to set the media playback progress. | 90000 | -| `state` | *String* | :heavy_check_mark: | The playback state of the media item. | played | \ No newline at end of file diff --git a/docs/models/operations/UpdatePlayProgressResponse.md b/docs/models/operations/UpdatePlayProgressResponse.md deleted file mode 100644 index fb6658fe..00000000 --- a/docs/models/operations/UpdatePlayProgressResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# UpdatePlayProgressResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/UpdatePlaylistRequest.md b/docs/models/operations/UpdatePlaylistRequest.md deleted file mode 100644 index 730d4feb..00000000 --- a/docs/models/operations/UpdatePlaylistRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -# UpdatePlaylistRequest - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | -| `playlistID` | *double* | :heavy_check_mark: | the ID of the playlist | -| `title` | *Optional* | :heavy_minus_sign: | name of the playlist | -| `summary` | *Optional* | :heavy_minus_sign: | summary description of the playlist | \ No newline at end of file diff --git a/docs/models/operations/UpdatePlaylistResponse.md b/docs/models/operations/UpdatePlaylistResponse.md deleted file mode 100644 index ff347431..00000000 --- a/docs/models/operations/UpdatePlaylistResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# UpdatePlaylistResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/UploadPlaylistRequest.md b/docs/models/operations/UploadPlaylistRequest.md deleted file mode 100644 index 619b645e..00000000 --- a/docs/models/operations/UploadPlaylistRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# UploadPlaylistRequest - - -## Fields - -| 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.plexapi.plexapi.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 diff --git a/docs/models/operations/UploadPlaylistResponse.md b/docs/models/operations/UploadPlaylistResponse.md deleted file mode 100644 index 08d49554..00000000 --- a/docs/models/operations/UploadPlaylistResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# UploadPlaylistResponse - - -## 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` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/Upscale.md b/docs/models/operations/Upscale.md deleted file mode 100644 index 1622f51f..00000000 --- a/docs/models/operations/Upscale.md +++ /dev/null @@ -1,11 +0,0 @@ -# Upscale - -allow images to be resized beyond native dimensions. - - -## Values - -| Name | Value | -| ------ | ------ | -| `ZERO` | 0 | -| `ONE` | 1 | \ No newline at end of file diff --git a/docs/models/operations/User.md b/docs/models/operations/User.md deleted file mode 100644 index 7ee912c7..00000000 --- a/docs/models/operations/User.md +++ /dev/null @@ -1,8 +0,0 @@ -# User - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 220 | \ No newline at end of file diff --git a/docs/models/operations/Writer.md b/docs/models/operations/Writer.md deleted file mode 100644 index 0eaada5e..00000000 --- a/docs/models/operations/Writer.md +++ /dev/null @@ -1,8 +0,0 @@ -# Writer - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `tag` | *Optional* | :heavy_minus_sign: | N/A | Jeff Loveness | \ No newline at end of file diff --git a/docs/models/shared/Security.md b/docs/models/shared/Security.md deleted file mode 100644 index 751e411e..00000000 --- a/docs/models/shared/Security.md +++ /dev/null @@ -1,8 +0,0 @@ -# Security - - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `accessToken` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdks/activities/README.md b/docs/sdks/activities/README.md deleted file mode 100644 index 9f193791..00000000 --- a/docs/sdks/activities/README.md +++ /dev/null @@ -1,151 +0,0 @@ -# Activities -(*activities()*) - -## Overview - -Activities are awesome. They provide a way to monitor and control asynchronous operations on the server. In order to receive real-time updates for activities, a client would normally subscribe via either EventSource or Websocket endpoints. -Activities are associated with HTTP replies via a special `X-Plex-Activity` header which contains the UUID of the activity. -Activities are optional cancellable. If cancellable, they may be cancelled via the `DELETE` endpoint. Other details: -- They can contain a `progress` (from 0 to 100) marking the percent completion of the activity. -- They must contain an `type` which is used by clients to distinguish the specific activity. -- They may contain a `Context` object with attributes which associate the activity with various specific entities (items, libraries, etc.) -- The may contain a `Response` object which attributes which represent the result of the asynchronous operation. - - -### Available Operations - -* [getServerActivities](#getserveractivities) - Get Server Activities -* [cancelServerActivities](#cancelserveractivities) - Cancel Server Activities - -## getServerActivities - -Get Server Activities - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetServerActivitiesResponse res = sdk.activities().getServerActivities() - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetServerActivitiesResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.GetServerActivitiesResponse](../../models/operations/GetServerActivitiesResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | -| models/errors/GetServerActivitiesResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## cancelServerActivities - -Cancel Server Activities - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - CancelServerActivitiesResponse res = sdk.activities().cancelServerActivities() - .activityUUID("25b71ed5-0f9d-461c-baa7-d404e9e10d3e") - .call(); - - // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.CancelServerActivitiesResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | Example | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `activityUUID` | *String* | :heavy_check_mark: | The UUID of the activity to cancel. | 25b71ed5-0f9d-461c-baa7-d404e9e10d3e | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.CancelServerActivitiesResponse](../../models/operations/CancelServerActivitiesResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | -| models/errors/CancelServerActivitiesResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/docs/sdks/authentication/README.md b/docs/sdks/authentication/README.md deleted file mode 100644 index e1182546..00000000 --- a/docs/sdks/authentication/README.md +++ /dev/null @@ -1,155 +0,0 @@ -# Authentication -(*authentication()*) - -## Overview - -API Calls regarding authentication for Plex Media Server - - -### Available Operations - -* [getTransientToken](#gettransienttoken) - Get a Transient Token. -* [getSourceConnectionInformation](#getsourceconnectioninformation) - Get Source Connection Information - -## getTransientToken - -This endpoint provides the caller with a temporary token with the same access level as the caller's token. These tokens are valid for up to 48 hours and are destroyed if the server instance is restarted. - - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetTransientTokenResponse res = sdk.authentication().getTransientToken() - .type(GetTransientTokenQueryParamType.DELEGATION) - .scope(Scope.ALL) - .call(); - - // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.GetTransientTokenResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [lukehagar.plexapi.plexapi.models.operations.GetTransientTokenQueryParamType](../../models/operations/GetTransientTokenQueryParamType.md) | :heavy_check_mark: | `delegation` - This is the only supported `type` parameter. | -| `scope` | [lukehagar.plexapi.plexapi.models.operations.Scope](../../models/operations/Scope.md) | :heavy_check_mark: | `all` - This is the only supported `scope` parameter. | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.GetTransientTokenResponse](../../models/operations/GetTransientTokenResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | -| models/errors/GetTransientTokenResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## getSourceConnectionInformation - -If a caller requires connection details and a transient token for a source that is known to the server, for example a cloud media provider or shared PMS, then this endpoint can be called. This endpoint is only accessible with either an admin token or a valid transient token generated from an admin token. -Note: requires Plex Media Server >= 1.15.4. - - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetSourceConnectionInformationResponse res = sdk.authentication().getSourceConnectionInformation() - .source("server://client-identifier") - .call(); - - // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.GetSourceConnectionInformationResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | Example | -| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| `source` | *String* | :heavy_check_mark: | The source identifier with an included prefix. | server://client-identifier | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.GetSourceConnectionInformationResponse](../../models/operations/GetSourceConnectionInformationResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| models/errors/GetSourceConnectionInformationResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/docs/sdks/butler/README.md b/docs/sdks/butler/README.md deleted file mode 100644 index 3a9c561b..00000000 --- a/docs/sdks/butler/README.md +++ /dev/null @@ -1,353 +0,0 @@ -# Butler -(*butler()*) - -## Overview - -Butler is the task manager of the Plex Media Server Ecosystem. - - -### Available Operations - -* [getButlerTasks](#getbutlertasks) - Get Butler tasks -* [startAllTasks](#startalltasks) - Start all Butler tasks -* [stopAllTasks](#stopalltasks) - Stop all Butler tasks -* [startTask](#starttask) - Start a single Butler task -* [stopTask](#stoptask) - Stop a single Butler task - -## getButlerTasks - -Returns a list of butler tasks - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetButlerTasksResponse res = sdk.butler().getButlerTasks() - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetButlerTasksResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.GetButlerTasksResponse](../../models/operations/GetButlerTasksResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| models/errors/GetButlerTasksResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## startAllTasks - -This endpoint will attempt to start all Butler tasks that are enabled in the settings. Butler tasks normally run automatically during a time window configured on the server's Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: -1. Any tasks not scheduled to run on the current day will be skipped. -2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. -3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. -4. If we are outside the configured window, the task will start immediately. - - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - StartAllTasksResponse res = sdk.butler().startAllTasks() - .call(); - - // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.StartAllTasksResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.StartAllTasksResponse](../../models/operations/StartAllTasksResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| --------------------------------------- | --------------------------------------- | --------------------------------------- | -| models/errors/StartAllTasksResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## stopAllTasks - -This endpoint will stop all currently running tasks and remove any scheduled tasks from the queue. - - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - StopAllTasksResponse res = sdk.butler().stopAllTasks() - .call(); - - // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.StopAllTasksResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.StopAllTasksResponse](../../models/operations/StopAllTasksResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| models/errors/StopAllTasksResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## startTask - -This endpoint will attempt to start a single Butler task that is enabled in the settings. Butler tasks normally run automatically during a time window configured on the server's Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: -1. Any tasks not scheduled to run on the current day will be skipped. -2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. -3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. -4. If we are outside the configured window, the task will start immediately. - - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - StartTaskResponse res = sdk.butler().startTask() - .taskName(TaskName.CLEAN_OLD_BUNDLES) - .call(); - - // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.StartTaskResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | -| `taskName` | [lukehagar.plexapi.plexapi.models.operations.TaskName](../../models/operations/TaskName.md) | :heavy_check_mark: | the name of the task to be started. | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.StartTaskResponse](../../models/operations/StartTaskResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ----------------------------------- | ----------------------------------- | ----------------------------------- | -| models/errors/StartTaskResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## stopTask - -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. - - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - StopTaskResponse res = sdk.butler().stopTask() - .taskName(PathParamTaskName.BACKUP_DATABASE) - .call(); - - // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.StopTaskResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `taskName` | [lukehagar.plexapi.plexapi.models.operations.PathParamTaskName](../../models/operations/PathParamTaskName.md) | :heavy_check_mark: | The name of the task to be started. | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.StopTaskResponse](../../models/operations/StopTaskResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ---------------------------------- | ---------------------------------- | ---------------------------------- | -| models/errors/StopTaskResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/docs/sdks/hubs/README.md b/docs/sdks/hubs/README.md deleted file mode 100644 index 88b34f73..00000000 --- a/docs/sdks/hubs/README.md +++ /dev/null @@ -1,161 +0,0 @@ -# Hubs -(*hubs()*) - -## Overview - -Hubs are a structured two-dimensional container for media, generally represented by multiple horizontal rows. - - -### Available Operations - -* [getGlobalHubs](#getglobalhubs) - Get Global Hubs -* [getLibraryHubs](#getlibraryhubs) - Get library specific hubs - -## getGlobalHubs - -Get Global Hubs filtered by the parameters provided. - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetGlobalHubsResponse res = sdk.hubs().getGlobalHubs() - .count(1262.49d) - .onlyTransient(OnlyTransient.ONE) - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetGlobalHubsResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | -| `count` | *Optional* | :heavy_minus_sign: | The number of items to return with each hub. | -| `onlyTransient` | [Optional](../../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.plexapi.plexapi.models.operations.GetGlobalHubsResponse](../../models/operations/GetGlobalHubsResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| --------------------------------------- | --------------------------------------- | --------------------------------------- | -| models/errors/GetGlobalHubsResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## getLibraryHubs - -This endpoint will return a list of library specific hubs - - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetLibraryHubsResponse res = sdk.hubs().getLibraryHubs() - .sectionId(6728.76d) - .count(9010.22d) - .onlyTransient(QueryParamOnlyTransient.ZERO) - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetLibraryHubsResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | -| `sectionId` | *double* | :heavy_check_mark: | the Id of the library to query | -| `count` | *Optional* | :heavy_minus_sign: | The number of items to return with each hub. | -| `onlyTransient` | [Optional](../../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.plexapi.plexapi.models.operations.GetLibraryHubsResponse](../../models/operations/GetLibraryHubsResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| models/errors/GetLibraryHubsResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/docs/sdks/library/README.md b/docs/sdks/library/README.md deleted file mode 100644 index bd1e0cef..00000000 --- a/docs/sdks/library/README.md +++ /dev/null @@ -1,946 +0,0 @@ -# Library -(*library()*) - -## Overview - -API Calls interacting with Plex Media Server Libraries - - -### Available Operations - -* [getFileHash](#getfilehash) - Get Hash Value -* [getRecentlyAdded](#getrecentlyadded) - Get Recently Added -* [getLibraries](#getlibraries) - Get All Libraries -* [getLibrary](#getlibrary) - Get Library Details -* [deleteLibrary](#deletelibrary) - Delete Library Section -* [getLibraryItems](#getlibraryitems) - Get Library Items -* [refreshLibrary](#refreshlibrary) - Refresh Library -* [searchLibrary](#searchlibrary) - Search Library -* [getMetadata](#getmetadata) - Get Items Metadata -* [getMetadataChildren](#getmetadatachildren) - Get Items Children -* [getTopWatchedContent](#gettopwatchedcontent) - Get Top Watched Content -* [getOnDeck](#getondeck) - Get On Deck - -## getFileHash - -This resource returns hash values for local files - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetFileHashResponse res = sdk.library().getFileHash() - .url("file://C:\Image.png&type=13") - .type(4462.17d) - .call(); - - // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.GetFileHashResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | Example | -| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | -| `url` | *String* | :heavy_check_mark: | This is the path to the local file, must be prefixed by `file://` | file://C:\Image.png&type=13 | -| `type` | *Optional* | :heavy_minus_sign: | Item type | | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.GetFileHashResponse](../../models/operations/GetFileHashResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/GetFileHashResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## getRecentlyAdded - -This endpoint will return the recently added content. - - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetRecentlyAddedResponse res = sdk.library().getRecentlyAdded() - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetRecentlyAddedResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.GetRecentlyAddedResponse](../../models/operations/GetRecentlyAddedResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| models/errors/GetRecentlyAddedResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## getLibraries - -A library section (commonly referred to as just a library) is a collection of media. -Libraries are typed, and depending on their type provide either a flat or a hierarchical view of the media. -For example, a music library has an artist > albums > tracks structure, whereas a movie library is flat. - -Libraries have features beyond just being a collection of media; for starters, they include information about supported types, filters and sorts. -This allows a client to provide a rich interface around the media (e.g. allow sorting movies by release year). - - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetLibrariesResponse res = sdk.library().getLibraries() - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetLibrariesResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.GetLibrariesResponse](../../models/operations/GetLibrariesResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| models/errors/GetLibrariesResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## getLibrary - -## Library Details Endpoint - -This endpoint provides comprehensive details about the library, focusing on organizational aspects rather than the content itself. - -The details include: - -### Directories -Organized into three categories: - -- **Primary Directories**: - - Used in some clients for quick access to media subsets (e.g., "All", "On Deck"). - - Most can be replicated via media queries. - - Customizable by users. - -- **Secondary Directories**: - - Marked with `secondary="1"`. - - Used in older clients for structured navigation. - -- **Special Directories**: - - Includes a "By Folder" entry for filesystem-based browsing. - - Contains an obsolete `search="1"` entry for on-the-fly search dialog creation. - -### Types -Each type in the library comes with a set of filters and sorts, aiding in building dynamic media controls: - -- **Type Object Attributes**: - - `key`: Endpoint for the media list of this type. - - `type`: Metadata type (if standard Plex type). - - `title`: Title for this content type (e.g., "Movies"). - -- **Filter Objects**: - - Subset of the media query language. - - Attributes include `filter` (name), `filterType` (data type), `key` (endpoint for value range), and `title`. - -- **Sort Objects**: - - Description of sort fields. - - Attributes include `defaultDirection` (asc/desc), `descKey` and `key` (sort parameters), and `title`. - -> **Note**: Filters and sorts are optional; without them, no filtering controls are rendered. - - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetLibraryResponse res = sdk.library().getLibrary() - .sectionId(1000d) - .includeDetails(IncludeDetails.ZERO) - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetLibraryResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `sectionId` | *double* | :heavy_check_mark: | the Id of the library to query | 1000 | -| `includeDetails` | [Optional](../../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.plexapi.plexapi.models.operations.GetLibraryResponse](../../models/operations/GetLibraryResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | -| models/errors/GetLibraryResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## deleteLibrary - -Delate a library using a specific section - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - DeleteLibraryResponse res = sdk.library().deleteLibrary() - .sectionId(1000d) - .call(); - - // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.DeleteLibraryResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | Example | -| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | -| `sectionId` | *double* | :heavy_check_mark: | the Id of the library to query | 1000 | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.DeleteLibraryResponse](../../models/operations/DeleteLibraryResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| --------------------------------------- | --------------------------------------- | --------------------------------------- | -| models/errors/DeleteLibraryResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## getLibraryItems - -Fetches details from a specific section of the library identified by a section key and a tag. The tag parameter accepts the following values: -- `all`: All items in the section. -- `unwatched`: Items that have not been played. -- `newest`: Items that are recently released. -- `recentlyAdded`: Items that are recently added to the library. -- `recentlyViewed`: Items that were recently viewed. -- `onDeck`: Items to continue watching. -- `collection`: Items categorized by collection. -- `edition`: Items categorized by edition. -- `genre`: Items categorized by genre. -- `year`: Items categorized by year of release. -- `decade`: Items categorized by decade. -- `director`: Items categorized by director. -- `actor`: Items categorized by starring actor. -- `country`: Items categorized by country of origin. -- `contentRating`: Items categorized by content rating. -- `rating`: Items categorized by rating. -- `resolution`: Items categorized by resolution. -- `firstCharacter`: Items categorized by the first letter. -- `folder`: Items categorized by folder. - - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetLibraryItemsResponse res = sdk.library().getLibraryItems() - .sectionId("") - .tag(Tag.GENRE) - .includeGuids(1L) - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetLibraryItemsResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | Example | -| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | -| `sectionId` | *java.lang.Object* | :heavy_check_mark: | the Id of the library to query | | -| `tag` | [lukehagar.plexapi.plexapi.models.operations.Tag](../../models/operations/Tag.md) | :heavy_check_mark: | A key representing a specific tag within the section. | | -| `includeGuids` | *Optional* | :heavy_minus_sign: | Adds the Guids object to the response
| 1 | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.GetLibraryItemsResponse](../../models/operations/GetLibraryItemsResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | -| models/errors/GetLibraryItemsResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## refreshLibrary - -This endpoint Refreshes the library. - - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - RefreshLibraryResponse res = sdk.library().refreshLibrary() - .sectionId(934.16d) - .call(); - - // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.RefreshLibraryResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- | -| `sectionId` | *double* | :heavy_check_mark: | the Id of the library to refresh | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.RefreshLibraryResponse](../../models/operations/RefreshLibraryResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| models/errors/RefreshLibraryResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## searchLibrary - -Search for content within a specific section of the library. - -### Types -Each type in the library comes with a set of filters and sorts, aiding in building dynamic media controls: - -- **Type Object Attributes**: - - `type`: Metadata type (if standard Plex type). - - `title`: Title for this content type (e.g., "Movies"). - -- **Filter Objects**: - - Subset of the media query language. - - Attributes include `filter` (name), `filterType` (data type), `key` (endpoint for value range), and `title`. - -- **Sort Objects**: - - Description of sort fields. - - Attributes include `defaultDirection` (asc/desc), `descKey` and `key` (sort parameters), and `title`. - -> **Note**: Filters and sorts are optional; without them, no filtering controls are rendered. - - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - SearchLibraryResponse res = sdk.library().searchLibrary() - .sectionId(933505L) - .type(Type.FOUR) - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.SearchLibraryResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | -| `sectionId` | *long* | :heavy_check_mark: | the Id of the library to query | -| `type` | [lukehagar.plexapi.plexapi.models.operations.Type](../../models/operations/Type.md) | :heavy_check_mark: | Plex content type to search for | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.SearchLibraryResponse](../../models/operations/SearchLibraryResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| --------------------------------------- | --------------------------------------- | --------------------------------------- | -| models/errors/SearchLibraryResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## getMetadata - -This endpoint will return the metadata of a library item specified with the ratingKey. - - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetMetadataResponse res = sdk.library().getMetadata() - .ratingKey(8382.31d) - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetMetadataResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | -| `ratingKey` | *double* | :heavy_check_mark: | the id of the library item to return the children of. | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.GetMetadataResponse](../../models/operations/GetMetadataResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/GetMetadataResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## getMetadataChildren - -This endpoint will return the children of of a library item specified with the ratingKey. - - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetMetadataChildrenResponse res = sdk.library().getMetadataChildren() - .ratingKey(1539.14d) - .includeElements("") - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetMetadataChildrenResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `ratingKey` | *double* | :heavy_check_mark: | the id of the library item to return the children of. | -| `includeElements` | *Optional* | :heavy_minus_sign: | Adds additional elements to the response. Supported types are (Stream)
| - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.GetMetadataChildrenResponse](../../models/operations/GetMetadataChildrenResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | -| models/errors/GetMetadataChildrenResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## getTopWatchedContent - -This endpoint will return the top watched content from libraries of a certain type - - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetTopWatchedContentResponse res = sdk.library().getTopWatchedContent() - .type(505531L) - .includeGuids(1L) - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | Example | -| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | -| `type` | *long* | :heavy_check_mark: | the library type (1 - movies, 2 - shows, 3 - music) | | -| `includeGuids` | *Optional* | :heavy_minus_sign: | Adds the Guids object to the response
| 1 | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.GetTopWatchedContentResponse](../../models/operations/GetTopWatchedContentResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## getOnDeck - -This endpoint will return the on deck content. - - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetOnDeckResponse res = sdk.library().getOnDeck() - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetOnDeckResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.GetOnDeckResponse](../../models/operations/GetOnDeckResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ----------------------------------- | ----------------------------------- | ----------------------------------- | -| models/errors/GetOnDeckResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/docs/sdks/log/README.md b/docs/sdks/log/README.md deleted file mode 100644 index 3e65afcf..00000000 --- a/docs/sdks/log/README.md +++ /dev/null @@ -1,244 +0,0 @@ -# Log -(*log()*) - -## Overview - -Submit logs to the Log Handler for Plex Media Server - - -### Available Operations - -* [logLine](#logline) - Logging a single line message. -* [logMultiLine](#logmultiline) - Logging a multi-line message -* [enablePaperTrail](#enablepapertrail) - Enabling Papertrail - -## logLine - -This endpoint will write a single-line log message, including a level and source to the main Plex Media Server log. - - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - LogLineResponse res = sdk.log().logLine() - .level(Level.THREE) - .message("Test log message") - .source("Postman") - .call(); - - // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.LogLineResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `level` | [lukehagar.plexapi.plexapi.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
| | -| `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.plexapi.plexapi.models.operations.LogLineResponse](../../models/operations/LogLineResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| --------------------------------- | --------------------------------- | --------------------------------- | -| models/errors/LogLineResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## logMultiLine - -This endpoint allows for the batch addition of log entries to the main Plex Media Server log. -It accepts a text/plain request body, where each line represents a distinct log entry. -Each log entry consists of URL-encoded key-value pairs, specifying log attributes such as 'level', 'message', and 'source'. - -Log entries are separated by a newline character (`\n`). -Each entry's parameters should be URL-encoded to ensure accurate parsing and handling of special characters. -This method is efficient for logging multiple entries in a single API call, reducing the overhead of multiple individual requests. - -The 'level' parameter specifies the log entry's severity or importance, with the following integer values: -- `0`: Error - Critical issues that require immediate attention. -- `1`: Warning - Important events that are not critical but may indicate potential issues. -- `2`: Info - General informational messages about system operation. -- `3`: Debug - Detailed information useful for debugging purposes. -- `4`: Verbose - Highly detailed diagnostic information for in-depth analysis. - -The 'message' parameter contains the log text, and 'source' identifies the log message's origin (e.g., an application name or module). - -Example of a single log entry format: -`level=4&message=Sample%20log%20entry&source=applicationName` - -Ensure each parameter is properly URL-encoded to avoid interpretation issues. - - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - String req = "level=4&message=Test%20message%201&source=postman -level=3&message=Test%20message%202&source=postman -level=1&message=Test%20message%203&source=postman"; - - LogMultiLineResponse res = sdk.log().logMultiLine() - .request(req) - .call(); - - // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.LogMultiLineResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| `request` | [String](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.LogMultiLineResponse](../../models/operations/LogMultiLineResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| models/errors/LogMultiLineResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## enablePaperTrail - -This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail networked logging site for a period of time. - - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - EnablePaperTrailResponse res = sdk.log().enablePaperTrail() - .call(); - - // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.EnablePaperTrailResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.EnablePaperTrailResponse](../../models/operations/EnablePaperTrailResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| models/errors/EnablePaperTrailResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/docs/sdks/media/README.md b/docs/sdks/media/README.md deleted file mode 100644 index 6ce7ec18..00000000 --- a/docs/sdks/media/README.md +++ /dev/null @@ -1,225 +0,0 @@ -# Media -(*media()*) - -## Overview - -API Calls interacting with Plex Media Server Media - - -### Available Operations - -* [markPlayed](#markplayed) - Mark Media Played -* [markUnplayed](#markunplayed) - Mark Media Unplayed -* [updatePlayProgress](#updateplayprogress) - Update Media Play Progress - -## markPlayed - -This will mark the provided media key as Played. - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - MarkPlayedResponse res = sdk.media().markPlayed() - .key(59398d) - .call(); - - // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.MarkPlayedResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | Example | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `key` | *double* | :heavy_check_mark: | The media key to mark as played | 59398 | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.MarkPlayedResponse](../../models/operations/MarkPlayedResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | -| models/errors/MarkPlayedResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## markUnplayed - -This will mark the provided media key as Unplayed. - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - MarkUnplayedResponse res = sdk.media().markUnplayed() - .key(59398d) - .call(); - - // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.MarkUnplayedResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | Example | -| --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- | -| `key` | *double* | :heavy_check_mark: | The media key to mark as Unplayed | 59398 | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.MarkUnplayedResponse](../../models/operations/MarkUnplayedResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| models/errors/MarkUnplayedResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## updatePlayProgress - -This API command can be used to update the play progress of a media item. - - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - UpdatePlayProgressResponse res = sdk.media().updatePlayProgress() - .key("") - .time(90000d) - .state("played") - .call(); - - // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.UpdatePlayProgressResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | Example | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `key` | *String* | :heavy_check_mark: | the media key | | -| `time` | *double* | :heavy_check_mark: | The time, in milliseconds, used to set the media playback progress. | 90000 | -| `state` | *String* | :heavy_check_mark: | The playback state of the media item. | played | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.UpdatePlayProgressResponse](../../models/operations/UpdatePlayProgressResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -| models/errors/UpdatePlayProgressResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/docs/sdks/playlists/README.md b/docs/sdks/playlists/README.md deleted file mode 100644 index 0a4b79ca..00000000 --- a/docs/sdks/playlists/README.md +++ /dev/null @@ -1,689 +0,0 @@ -# Playlists -(*playlists()*) - -## Overview - -Playlists are ordered collections of media. They can be dumb (just a list of media) or smart (based on a media query, such as "all albums from 2017"). -They can be organized in (optionally nesting) folders. -Retrieving a playlist, or its items, will trigger a refresh of its metadata. -This may cause the duration and number of items to change. - - -### Available Operations - -* [createPlaylist](#createplaylist) - Create a Playlist -* [getPlaylists](#getplaylists) - Get All Playlists -* [getPlaylist](#getplaylist) - Retrieve Playlist -* [deletePlaylist](#deleteplaylist) - Deletes a Playlist -* [updatePlaylist](#updateplaylist) - Update a Playlist -* [getPlaylistContents](#getplaylistcontents) - Retrieve Playlist Contents -* [clearPlaylistContents](#clearplaylistcontents) - Delete Playlist Contents -* [addPlaylistContents](#addplaylistcontents) - Adding to a Playlist -* [uploadPlaylist](#uploadplaylist) - Upload Playlist - -## createPlaylist - -Create a new playlist. By default the playlist is blank. To create a playlist along with a first item, pass: -- `uri` - The content URI for what we're playing (e.g. `server://1234/com.plexapp.plugins.library/library/metadata/1`). -- `playQueueID` - To create a playlist from an existing play queue. - - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - CreatePlaylistRequest req = CreatePlaylistRequest.builder() - .title("") - .type(QueryParamType.PHOTO) - .smart(Smart.ONE) - .uri("") - .build(); - - CreatePlaylistResponse res = sdk.playlists().createPlaylist() - .request(req) - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.CreatePlaylistResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | -| `request` | [lukehagar.plexapi.plexapi.models.operations.CreatePlaylistRequest](../../models/operations/CreatePlaylistRequest.md) | :heavy_check_mark: | The request object to use for the request. | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.CreatePlaylistResponse](../../models/operations/CreatePlaylistResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| models/errors/CreatePlaylistResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## getPlaylists - -Get All Playlists given the specified filters. - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetPlaylistsResponse res = sdk.playlists().getPlaylists() - .playlistType(PlaylistType.AUDIO) - .smart(QueryParamSmart.ZERO) - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetPlaylistsResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `playlistType` | [Optional](../../models/operations/PlaylistType.md) | :heavy_minus_sign: | limit to a type of playlist. | -| `smart` | [Optional](../../models/operations/QueryParamSmart.md) | :heavy_minus_sign: | type of playlists to return (default is all). | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.GetPlaylistsResponse](../../models/operations/GetPlaylistsResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| models/errors/GetPlaylistsResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## getPlaylist - -Gets detailed metadata for a playlist. A playlist for many purposes (rating, editing metadata, tagging), can be treated like a regular metadata item: -Smart playlist details contain the `content` attribute. This is the content URI for the generator. This can then be parsed by a client to provide smart playlist editing. - - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetPlaylistResponse res = sdk.playlists().getPlaylist() - .playlistID(4109.48d) - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetPlaylistResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ---------------------- | ---------------------- | ---------------------- | ---------------------- | -| `playlistID` | *double* | :heavy_check_mark: | the ID of the playlist | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.GetPlaylistResponse](../../models/operations/GetPlaylistResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/GetPlaylistResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## deletePlaylist - -This endpoint will delete a playlist - - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - DeletePlaylistResponse res = sdk.playlists().deletePlaylist() - .playlistID(216.22d) - .call(); - - // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.DeletePlaylistResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ---------------------- | ---------------------- | ---------------------- | ---------------------- | -| `playlistID` | *double* | :heavy_check_mark: | the ID of the playlist | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.DeletePlaylistResponse](../../models/operations/DeletePlaylistResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| models/errors/DeletePlaylistResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## updatePlaylist - -From PMS version 1.9.1 clients can also edit playlist metadata using this endpoint as they would via `PUT /library/metadata/{playlistID}` - - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - UpdatePlaylistResponse res = sdk.playlists().updatePlaylist() - .playlistID(3915d) - .title("") - .summary("") - .call(); - - // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.UpdatePlaylistResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | -| `playlistID` | *double* | :heavy_check_mark: | the ID of the playlist | -| `title` | *Optional* | :heavy_minus_sign: | name of the playlist | -| `summary` | *Optional* | :heavy_minus_sign: | summary description of the playlist | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.UpdatePlaylistResponse](../../models/operations/UpdatePlaylistResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| models/errors/UpdatePlaylistResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## getPlaylistContents - -Gets the contents of a playlist. Should be paged by clients via standard mechanisms. -By default leaves are returned (e.g. episodes, movies). In order to return other types you can use the `type` parameter. -For example, you could use this to display a list of recently added albums vis a smart playlist. -Note that for dumb playlists, items have a `playlistItemID` attribute which is used for deleting or moving items. - - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetPlaylistContentsResponse res = sdk.playlists().getPlaylistContents() - .playlistID(5004.46d) - .type(9403.59d) - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetPlaylistContentsResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------- | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| `playlistID` | *double* | :heavy_check_mark: | the ID of the playlist | -| `type` | *double* | :heavy_check_mark: | the metadata type of the item to return | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.GetPlaylistContentsResponse](../../models/operations/GetPlaylistContentsResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | -| models/errors/GetPlaylistContentsResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## clearPlaylistContents - -Clears a playlist, only works with dumb playlists. Returns the playlist. - - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - ClearPlaylistContentsResponse res = sdk.playlists().clearPlaylistContents() - .playlistID(1893.18d) - .call(); - - // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.ClearPlaylistContentsResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ---------------------- | ---------------------- | ---------------------- | ---------------------- | -| `playlistID` | *double* | :heavy_check_mark: | the ID of the playlist | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.ClearPlaylistContentsResponse](../../models/operations/ClearPlaylistContentsResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | -| models/errors/ClearPlaylistContentsResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## addPlaylistContents - -Adds a generator to a playlist, same parameters as the POST to create. With a dumb playlist, this adds the specified items to the playlist. -With a smart playlist, passing a new `uri` parameter replaces the rules for the playlist. Returns the playlist. - - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - AddPlaylistContentsResponse res = sdk.playlists().addPlaylistContents() - .playlistID(8502.01d) - .uri("server://12345/com.plexapp.plugins.library/library/metadata/1") - .playQueueID(123d) - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.AddPlaylistContentsResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | Example | -| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | -| `playlistID` | *double* | :heavy_check_mark: | the ID of the playlist | | -| `uri` | *String* | :heavy_check_mark: | the content URI for the playlist | server://12345/com.plexapp.plugins.library/library/metadata/1 | -| `playQueueID` | *Optional* | :heavy_minus_sign: | the play queue to add to a playlist | 123 | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.AddPlaylistContentsResponse](../../models/operations/AddPlaylistContentsResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | -| models/errors/AddPlaylistContentsResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## uploadPlaylist - -Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file. - - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - UploadPlaylistResponse res = sdk.playlists().uploadPlaylist() - .path("/home/barkley/playlist.m3u") - .force(Force.ZERO) - .call(); - - // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.UploadPlaylistResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| 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.plexapi.plexapi.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.
| | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.UploadPlaylistResponse](../../models/operations/UploadPlaylistResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| models/errors/UploadPlaylistResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/docs/sdks/plex/README.md b/docs/sdks/plex/README.md deleted file mode 100644 index 53e75d6c..00000000 --- a/docs/sdks/plex/README.md +++ /dev/null @@ -1,223 +0,0 @@ -# Plex -(*plex()*) - -## Overview - -API Calls that perform operations directly against https://Plex.tv - - -### Available Operations - -* [getHomeData](#gethomedata) - Get Plex Home Data -* [getPin](#getpin) - Get a Pin -* [getToken](#gettoken) - Get Access Token - -## getHomeData - -Retrieves the home data for the authenticated user, including details like home ID, name, guest access information, and subscription status. - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetHomeDataResponse res = sdk.plex().getHomeData() - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetHomeDataResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.GetHomeDataResponse](../../models/operations/GetHomeDataResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/GetHomeDataResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## getPin - -Retrieve a Pin from Plex.tv for authentication flows - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .xPlexClientIdentifier("Postman") - .build(); - - GetPinResponse res = sdk.plex().getPin() - .strong(false) - .xPlexClientIdentifier("Postman") - .xPlexProduct("Postman") - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetPinResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `strong` | *Optional* | :heavy_minus_sign: | Determines the kind of code returned by the API call
Strong codes are used for Pin authentication flows
Non-Strong codes are used for `Plex.tv/link`
| | -| `xPlexClientIdentifier` | *Optional* | :heavy_minus_sign: | 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)
| Postman | -| `xPlexProduct` | *String* | :heavy_check_mark: | Product name of the application shown in the list of devices
| Postman | -| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | http://localhost:8080 | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.GetPinResponse](../../models/operations/GetPinResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| -------------------------------- | -------------------------------- | -------------------------------- | -| models/errors/GetPinResponseBody | 400 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## getToken - -Retrieve an Access Token from Plex.tv after the Pin has already been authenticated - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .xPlexClientIdentifier("Postman") - .build(); - - GetTokenResponse res = sdk.plex().getToken() - .pinID("") - .xPlexClientIdentifier("Postman") - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetTokenResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `pinID` | *String* | :heavy_check_mark: | The PinID to retrieve an access token for | | -| `xPlexClientIdentifier` | *Optional* | :heavy_minus_sign: | 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)
| Postman | -| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | http://localhost:8080 | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.GetTokenResponse](../../models/operations/GetTokenResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ---------------------------------- | ---------------------------------- | ---------------------------------- | -| models/errors/GetTokenResponseBody | 400 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/docs/sdks/plexapi/README.md b/docs/sdks/plexapi/README.md deleted file mode 100644 index 8ee580cf..00000000 --- a/docs/sdks/plexapi/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# PlexAPI SDK - - -## Overview - -An Open API Spec for interacting with Plex.tv and Plex Servers - -### Available Operations - diff --git a/docs/sdks/search/README.md b/docs/sdks/search/README.md deleted file mode 100644 index bf4147f2..00000000 --- a/docs/sdks/search/README.md +++ /dev/null @@ -1,246 +0,0 @@ -# Search -(*search()*) - -## Overview - -API Calls that perform search operations with Plex Media Server - - -### Available Operations - -* [performSearch](#performsearch) - Perform a search -* [performVoiceSearch](#performvoicesearch) - Perform a voice search -* [getSearchResults](#getsearchresults) - Get Search Results - -## performSearch - -This endpoint performs a search across all library sections, or a single section, and returns matches as hubs, split up by type. It performs spell checking, looks for partial matches, and orders the hubs based on quality of results. In addition, based on matches, it will return other related matches (e.g. for a genre match, it may return movies in that genre, or for an actor match, movies with that actor). - -In the response's items, the following extra attributes are returned to further describe or disambiguate the result: - -- `reason`: The reason for the result, if not because of a direct search term match; can be either: - - `section`: There are multiple identical results from different sections. - - `originalTitle`: There was a search term match from the original title field (sometimes those can be very different or in a foreign language). - - ``: If the reason for the result is due to a result in another hub, the source hub identifier is returned. For example, if the search is for "dylan" then Bob Dylan may be returned as an artist result, an a few of his albums returned as album results with a reason code of `artist` (the identifier of that particular hub). Or if the search is for "arnold", there might be movie results returned with a reason of `actor` -- `reasonTitle`: The string associated with the reason code. For a section reason, it'll be the section name; For a hub identifier, it'll be a string associated with the match (e.g. `Arnold Schwarzenegger` for movies which were returned because the search was for "arnold"). -- `reasonID`: The ID of the item associated with the reason for the result. This might be a section ID, a tag ID, an artist ID, or a show ID. - -This request is intended to be very fast, and called as the user types. - - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - PerformSearchResponse res = sdk.search().performSearch() - .query("dylan") - .sectionId(1516.53d) - .limit(5d) - .call(); - - // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.PerformSearchResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `query` | *String* | :heavy_check_mark: | The query term | arnold | -| `sectionId` | *Optional* | :heavy_minus_sign: | This gives context to the search, and can result in re-ordering of search result hubs | | -| `limit` | *Optional* | :heavy_minus_sign: | The number of items to return per hub | 5 | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.PerformSearchResponse](../../models/operations/PerformSearchResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| --------------------------------------- | --------------------------------------- | --------------------------------------- | -| models/errors/PerformSearchResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## performVoiceSearch - -This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint. -It uses a [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) heuristic to search titles, and as such is much slower than the other search endpoint. -Whenever possible, clients should limit the search to the appropriate type. -Results, as well as their containing per-type hubs, contain a `distance` attribute which can be used to judge result quality. - - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - PerformVoiceSearchResponse res = sdk.search().performVoiceSearch() - .query("dead+poop") - .sectionId(4094.8d) - .limit(5d) - .call(); - - // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.PerformVoiceSearchResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `query` | *String* | :heavy_check_mark: | The query term | dead+poop | -| `sectionId` | *Optional* | :heavy_minus_sign: | This gives context to the search, and can result in re-ordering of search result hubs | | -| `limit` | *Optional* | :heavy_minus_sign: | The number of items to return per hub | 5 | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.PerformVoiceSearchResponse](../../models/operations/PerformVoiceSearchResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -| models/errors/PerformVoiceSearchResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## getSearchResults - -This will search the database for the string provided. - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetSearchResultsResponse res = sdk.search().getSearchResults() - .query("110") - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetSearchResultsResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | Example | -| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | -| `query` | *String* | :heavy_check_mark: | The search query string to use | 110 | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.GetSearchResultsResponse](../../models/operations/GetSearchResultsResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| models/errors/GetSearchResultsResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/docs/sdks/server/README.md b/docs/sdks/server/README.md deleted file mode 100644 index 416f3f85..00000000 --- a/docs/sdks/server/README.md +++ /dev/null @@ -1,546 +0,0 @@ -# Server -(*server()*) - -## Overview - -Operations against the Plex Media Server System. - - -### Available Operations - -* [getServerCapabilities](#getservercapabilities) - Get Server Capabilities -* [getServerPreferences](#getserverpreferences) - Get Server Preferences -* [getAvailableClients](#getavailableclients) - Get Available Clients -* [getDevices](#getdevices) - Get Devices -* [getServerIdentity](#getserveridentity) - Get Server Identity -* [getMyPlexAccount](#getmyplexaccount) - Get MyPlex Account -* [getResizedPhoto](#getresizedphoto) - Get a Resized Photo -* [getServerList](#getserverlist) - Get Server List - -## getServerCapabilities - -Get Server Capabilities - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities() - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetServerCapabilitiesResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.GetServerCapabilitiesResponse](../../models/operations/GetServerCapabilitiesResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | -| models/errors/GetServerCapabilitiesResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## getServerPreferences - -Get Server Preferences - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetServerPreferencesResponse res = sdk.server().getServerPreferences() - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetServerPreferencesResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.GetServerPreferencesResponse](../../models/operations/GetServerPreferencesResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| models/errors/GetServerPreferencesResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## getAvailableClients - -Get Available Clients - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetAvailableClientsResponse res = sdk.server().getAvailableClients() - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetAvailableClientsResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.GetAvailableClientsResponse](../../models/operations/GetAvailableClientsResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | -| models/errors/GetAvailableClientsResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## getDevices - -Get Devices - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetDevicesResponse res = sdk.server().getDevices() - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetDevicesResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.GetDevicesResponse](../../models/operations/GetDevicesResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | -| models/errors/GetDevicesResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## getServerIdentity - -Get Server Identity - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetServerIdentityResponse res = sdk.server().getServerIdentity() - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetServerIdentityResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.GetServerIdentityResponse](../../models/operations/GetServerIdentityResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | -| models/errors/GetServerIdentityResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## getMyPlexAccount - -Returns MyPlex Account Information - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetMyPlexAccountResponse res = sdk.server().getMyPlexAccount() - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetMyPlexAccountResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.GetMyPlexAccountResponse](../../models/operations/GetMyPlexAccountResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| models/errors/GetMyPlexAccountResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## getResizedPhoto - -Plex's Photo transcoder is used throughout the service to serve images at specified sizes. - - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetResizedPhotoRequest req = GetResizedPhotoRequest.builder() - .width(110d) - .height(165d) - .opacity(643869L) - .blur(4000d) - .minSize(MinSize.ZERO) - .upscale(Upscale.ZERO) - .url("/library/metadata/49564/thumb/1654258204") - .build(); - - GetResizedPhotoResponse res = sdk.server().getResizedPhoto() - .request(req) - .call(); - - // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.GetResizedPhotoResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `request` | [lukehagar.plexapi.plexapi.models.operations.GetResizedPhotoRequest](../../models/operations/GetResizedPhotoRequest.md) | :heavy_check_mark: | The request object to use for the request. | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.GetResizedPhotoResponse](../../models/operations/GetResizedPhotoResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | -| models/errors/GetResizedPhotoResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## getServerList - -Get Server List - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetServerListResponse res = sdk.server().getServerList() - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetServerListResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.GetServerListResponse](../../models/operations/GetServerListResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| --------------------------------------- | --------------------------------------- | --------------------------------------- | -| models/errors/GetServerListResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/docs/sdks/sessions/README.md b/docs/sdks/sessions/README.md deleted file mode 100644 index cb40d3b6..00000000 --- a/docs/sdks/sessions/README.md +++ /dev/null @@ -1,289 +0,0 @@ -# Sessions -(*sessions()*) - -## Overview - -API Calls that perform search operations with Plex Media Server Sessions - - -### Available Operations - -* [getSessions](#getsessions) - Get Active Sessions -* [getSessionHistory](#getsessionhistory) - Get Session History -* [getTranscodeSessions](#gettranscodesessions) - Get Transcode Sessions -* [stopTranscodeSession](#stoptranscodesession) - Stop a Transcode Session - -## getSessions - -This will retrieve the "Now Playing" Information of the PMS. - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetSessionsResponse res = sdk.sessions().getSessions() - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetSessionsResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.GetSessionsResponse](../../models/operations/GetSessionsResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/GetSessionsResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## getSessionHistory - -This will Retrieve a listing of all history views. - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetSessionHistoryResponse res = sdk.sessions().getSessionHistory() - .sort("") - .accountId(1L) - .filter(Filter.builder() - .build()) - .librarySectionID(12L) - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetSessionHistoryResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `sort` | *Optional* | :heavy_minus_sign: | Sorts the results by the specified field followed by the direction (asc, desc)
| | -| `accountId` | *Optional* | :heavy_minus_sign: | Filter results by those that are related to a specific users id
| 1 | -| `filter` | [Optional](../../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` | *Optional* | :heavy_minus_sign: | Filters the results based on the id of a valid library section
| 12 | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.GetSessionHistoryResponse](../../models/operations/GetSessionHistoryResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | -| models/errors/GetSessionHistoryResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## getTranscodeSessions - -Get Transcode Sessions - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetTranscodeSessionsResponse res = sdk.sessions().getTranscodeSessions() - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetTranscodeSessionsResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.GetTranscodeSessionsResponse](../../models/operations/GetTranscodeSessionsResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| models/errors/GetTranscodeSessionsResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## stopTranscodeSession - -Stop a Transcode Session - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - StopTranscodeSessionResponse res = sdk.sessions().stopTranscodeSession() - .sessionKey("zz7llzqlx8w9vnrsbnwhbmep") - .call(); - - // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.StopTranscodeSessionResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | Example | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| `sessionKey` | *String* | :heavy_check_mark: | the Key of the transcode session to stop | zz7llzqlx8w9vnrsbnwhbmep | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.StopTranscodeSessionResponse](../../models/operations/StopTranscodeSessionResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| models/errors/StopTranscodeSessionResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/docs/sdks/statistics/README.md b/docs/sdks/statistics/README.md deleted file mode 100644 index b04a9460..00000000 --- a/docs/sdks/statistics/README.md +++ /dev/null @@ -1,226 +0,0 @@ -# Statistics -(*statistics()*) - -## Overview - -API Calls that perform operations with Plex Media Server Statistics - - -### Available Operations - -* [getStatistics](#getstatistics) - Get Media Statistics -* [getResourcesStatistics](#getresourcesstatistics) - Get Resources Statistics -* [getBandwidthStatistics](#getbandwidthstatistics) - Get Bandwidth Statistics - -## getStatistics - -This will return the media statistics for the server - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetStatisticsResponse res = sdk.statistics().getStatistics() - .timespan(4L) - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetStatisticsResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `timespan` | *Optional* | :heavy_minus_sign: | The timespan to retrieve statistics for
the exact meaning of this parameter is not known
| 4 | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.GetStatisticsResponse](../../models/operations/GetStatisticsResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| --------------------------------------- | --------------------------------------- | --------------------------------------- | -| models/errors/GetStatisticsResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## getResourcesStatistics - -This will return the resources for the server - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetResourcesStatisticsResponse res = sdk.statistics().getResourcesStatistics() - .timespan(4L) - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetResourcesStatisticsResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `timespan` | *Optional* | :heavy_minus_sign: | The timespan to retrieve statistics for
the exact meaning of this parameter is not known
| 4 | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.GetResourcesStatisticsResponse](../../models/operations/GetResourcesStatisticsResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | -| models/errors/GetResourcesStatisticsResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## getBandwidthStatistics - -This will return the bandwidth statistics for the server - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetBandwidthStatisticsResponse res = sdk.statistics().getBandwidthStatistics() - .timespan(4L) - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetBandwidthStatisticsResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `timespan` | *Optional* | :heavy_minus_sign: | The timespan to retrieve statistics for
the exact meaning of this parameter is not known
| 4 | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.GetBandwidthStatisticsResponse](../../models/operations/GetBandwidthStatisticsResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | -| models/errors/GetBandwidthStatisticsResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/docs/sdks/updater/README.md b/docs/sdks/updater/README.md deleted file mode 100644 index 4d28a490..00000000 --- a/docs/sdks/updater/README.md +++ /dev/null @@ -1,219 +0,0 @@ -# Updater -(*updater()*) - -## Overview - -This describes the API for searching and applying updates to the Plex Media Server. -Updates to the status can be observed via the Event API. - - -### Available Operations - -* [getUpdateStatus](#getupdatestatus) - Querying status of updates -* [checkForUpdates](#checkforupdates) - Checking for updates -* [applyUpdates](#applyupdates) - Apply Updates - -## getUpdateStatus - -Querying status of updates - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetUpdateStatusResponse res = sdk.updater().getUpdateStatus() - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetUpdateStatusResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.GetUpdateStatusResponse](../../models/operations/GetUpdateStatusResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | -| models/errors/GetUpdateStatusResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## checkForUpdates - -Checking for updates - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - CheckForUpdatesResponse res = sdk.updater().checkForUpdates() - .download(Download.ONE) - .call(); - - // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.CheckForUpdatesResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | -| `download` | [Optional](../../models/operations/Download.md) | :heavy_minus_sign: | Indicate that you want to start download any updates found. | 1 | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.CheckForUpdatesResponse](../../models/operations/CheckForUpdatesResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | -| models/errors/CheckForUpdatesResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## applyUpdates - -Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed - - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - ApplyUpdatesResponse res = sdk.updater().applyUpdates() - .tonight(Tonight.ONE) - .skip(Skip.ONE) - .call(); - - // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.ApplyUpdatesResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `tonight` | [Optional](../../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` | [Optional](../../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.plexapi.plexapi.models.operations.ApplyUpdatesResponse](../../models/operations/ApplyUpdatesResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| models/errors/ApplyUpdatesResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/docs/sdks/video/README.md b/docs/sdks/video/README.md deleted file mode 100644 index 04a21cea..00000000 --- a/docs/sdks/video/README.md +++ /dev/null @@ -1,182 +0,0 @@ -# Video -(*video()*) - -## Overview - -API Calls that perform operations with Plex Media Server Videos - - -### Available Operations - -* [getTimeline](#gettimeline) - Get the timeline for a media item -* [startUniversalTranscode](#startuniversaltranscode) - Start Universal Transcode - -## getTimeline - -Get the timeline for a media item - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetTimelineRequest req = GetTimelineRequest.builder() - .ratingKey(23409d) - .key("/library/metadata/23409") - .state(State.PLAYING) - .hasMDE(1d) - .time(2000d) - .duration(10000d) - .context("home:hub.continueWatching") - .playQueueItemID(1d) - .playBackTime(2000d) - .row(1d) - .build(); - - GetTimelineResponse res = sdk.video().getTimeline() - .request(req) - .call(); - - // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.GetTimelineResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | -| `request` | [lukehagar.plexapi.plexapi.models.operations.GetTimelineRequest](../../models/operations/GetTimelineRequest.md) | :heavy_check_mark: | The request object to use for the request. | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.GetTimelineResponse](../../models/operations/GetTimelineResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| models/errors/GetTimelineResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | - -## startUniversalTranscode - -Begin a Universal Transcode Session - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - StartUniversalTranscodeRequest req = StartUniversalTranscodeRequest.builder() - .hasMDE(1d) - .path("/library/metadata/23409") - .mediaIndex(0d) - .partIndex(0d) - .protocol("hls") - .fastSeek(0d) - .directPlay(0d) - .directStream(0d) - .subtitleSize(100d) - .subtites("burn") - .audioBoost(100d) - .location("lan") - .mediaBufferSize(102400d) - .session("zvcage8b7rkioqcm8f4uns4c") - .addDebugOverlay(0d) - .autoAdjustQuality(0d) - .build(); - - StartUniversalTranscodeResponse res = sdk.video().startUniversalTranscode() - .request(req) - .call(); - - // handle response - } catch (lukehagar.plexapi.plexapi.models.errors.StartUniversalTranscodeResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | -| `request` | [lukehagar.plexapi.plexapi.models.operations.StartUniversalTranscodeRequest](../../models/operations/StartUniversalTranscodeRequest.md) | :heavy_check_mark: | The request object to use for the request. | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.StartUniversalTranscodeResponse](../../models/operations/StartUniversalTranscodeResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| models/errors/StartUniversalTranscodeResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/docs/sdks/watchlist/README.md b/docs/sdks/watchlist/README.md deleted file mode 100644 index 5d882d31..00000000 --- a/docs/sdks/watchlist/README.md +++ /dev/null @@ -1,88 +0,0 @@ -# Watchlist -(*watchlist()*) - -## Overview - -API Calls that perform operations with Plex Media Server Watchlists - - -### Available Operations - -* [getWatchlist](#getwatchlist) - Get User Watchlist - -## getWatchlist - -Get User Watchlist - -### Example Usage - -```java -package hello.world; - -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.PlexAPI; -import lukehagar.plexapi.plexapi.models.operations.*; -import lukehagar.plexapi.plexapi.models.shared.*; -import lukehagar.plexapi.plexapi.models.shared.Security; -import lukehagar.plexapi.plexapi.utils.EventStream; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; - -public class Application { - - public static void main(String[] args) throws Exception { - try { - PlexAPI sdk = PlexAPI.builder() - .accessToken("") - .xPlexClientIdentifier("Postman") - .build(); - - GetWatchlistRequest req = GetWatchlistRequest.builder() - .filter(PathParamFilter.RELEASED) - .xPlexToken("") - .build(); - - GetWatchlistResponse res = sdk.watchlist().getWatchlist() - .request(req) - .call(); - - if (res.object().isPresent()) { - // handle response - } - } catch (lukehagar.plexapi.plexapi.models.errors.GetWatchlistResponseBody e) { - // handle exception - throw e; - } catch (lukehagar.plexapi.plexapi.models.errors.SDKError e) { - // handle exception - throw e; - } catch (Exception e) { - // handle exception - throw e; - } - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | -| `request` | [lukehagar.plexapi.plexapi.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. | - - -### Response - -**[lukehagar.plexapi.plexapi.models.operations.GetWatchlistResponse](../../models/operations/GetWatchlistResponse.md)** -### Errors - -| Error Object | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| models/errors/GetWatchlistResponseBody | 401 | application/json | -| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar deleted file mode 100644 index d64cd4917707c1f8861d8cb53dd15194d4248596..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 43462 zcma&NWl&^owk(X(xVyW%ySuwf;qI=D6|RlDJ2cR^yEKh!@I- zp9QeisK*rlxC>+~7Dk4IxIRsKBHqdR9b3+fyL=ynHmIDe&|>O*VlvO+%z5;9Z$|DJ zb4dO}-R=MKr^6EKJiOrJdLnCJn>np?~vU-1sSFgPu;pthGwf}bG z(1db%xwr#x)r+`4AGu$j7~u2MpVs3VpLp|mx&;>`0p0vH6kF+D2CY0fVdQOZ@h;A` z{infNyvmFUiu*XG}RNMNwXrbec_*a3N=2zJ|Wh5z* z5rAX$JJR{#zP>KY**>xHTuw?|-Rg|o24V)74HcfVT;WtQHXlE+_4iPE8QE#DUm%x0 zEKr75ur~W%w#-My3Tj`hH6EuEW+8K-^5P62$7Sc5OK+22qj&Pd1;)1#4tKihi=~8C zHiQSst0cpri6%OeaR`PY>HH_;CPaRNty%WTm4{wDK8V6gCZlG@U3$~JQZ;HPvDJcT1V{ z?>H@13MJcCNe#5z+MecYNi@VT5|&UiN1D4ATT+%M+h4c$t;C#UAs3O_q=GxK0}8%8 z8J(_M9bayxN}69ex4dzM_P3oh@ZGREjVvn%%r7=xjkqxJP4kj}5tlf;QosR=%4L5y zWhgejO=vao5oX%mOHbhJ8V+SG&K5dABn6!WiKl{|oPkq(9z8l&Mm%(=qGcFzI=eLu zWc_oCLyf;hVlB@dnwY98?75B20=n$>u3b|NB28H0u-6Rpl((%KWEBOfElVWJx+5yg z#SGqwza7f}$z;n~g%4HDU{;V{gXIhft*q2=4zSezGK~nBgu9-Q*rZ#2f=Q}i2|qOp z!!y4p)4o=LVUNhlkp#JL{tfkhXNbB=Ox>M=n6soptJw-IDI|_$is2w}(XY>a=H52d z3zE$tjPUhWWS+5h=KVH&uqQS=$v3nRs&p$%11b%5qtF}S2#Pc`IiyBIF4%A!;AVoI zXU8-Rpv!DQNcF~(qQnyyMy=-AN~U>#&X1j5BLDP{?K!%h!;hfJI>$mdLSvktEr*89 zdJHvby^$xEX0^l9g$xW-d?J;L0#(`UT~zpL&*cEh$L|HPAu=P8`OQZV!-}l`noSp_ zQ-1$q$R-gDL)?6YaM!=8H=QGW$NT2SeZlb8PKJdc=F-cT@j7Xags+Pr*jPtlHFnf- zh?q<6;)27IdPc^Wdy-mX%2s84C1xZq9Xms+==F4);O`VUASmu3(RlgE#0+#giLh-& zcxm3_e}n4{%|X zJp{G_j+%`j_q5}k{eW&TlP}J2wtZ2^<^E(O)4OQX8FDp6RJq!F{(6eHWSD3=f~(h} zJXCf7=r<16X{pHkm%yzYI_=VDP&9bmI1*)YXZeB}F? z(%QsB5fo*FUZxK$oX~X^69;x~j7ms8xlzpt-T15e9}$4T-pC z6PFg@;B-j|Ywajpe4~bk#S6(fO^|mm1hKOPfA%8-_iGCfICE|=P_~e;Wz6my&)h_~ zkv&_xSAw7AZ%ThYF(4jADW4vg=oEdJGVOs>FqamoL3Np8>?!W#!R-0%2Bg4h?kz5I zKV-rKN2n(vUL%D<4oj@|`eJ>0i#TmYBtYmfla;c!ATW%;xGQ0*TW@PTlGG><@dxUI zg>+3SiGdZ%?5N=8uoLA|$4isK$aJ%i{hECP$bK{J#0W2gQ3YEa zZQ50Stn6hqdfxJ*9#NuSLwKFCUGk@c=(igyVL;;2^wi4o30YXSIb2g_ud$ zgpCr@H0qWtk2hK8Q|&wx)}4+hTYlf;$a4#oUM=V@Cw#!$(nOFFpZ;0lc!qd=c$S}Z zGGI-0jg~S~cgVT=4Vo)b)|4phjStD49*EqC)IPwyeKBLcN;Wu@Aeph;emROAwJ-0< z_#>wVm$)ygH|qyxZaet&(Vf%pVdnvKWJn9`%DAxj3ot;v>S$I}jJ$FLBF*~iZ!ZXE zkvui&p}fI0Y=IDX)mm0@tAd|fEHl~J&K}ZX(Mm3cm1UAuwJ42+AO5@HwYfDH7ipIc zmI;1J;J@+aCNG1M`Btf>YT>~c&3j~Qi@Py5JT6;zjx$cvOQW@3oQ>|}GH?TW-E z1R;q^QFjm5W~7f}c3Ww|awg1BAJ^slEV~Pk`Kd`PS$7;SqJZNj->it4DW2l15}xP6 zoCl$kyEF%yJni0(L!Z&14m!1urXh6Btj_5JYt1{#+H8w?5QI%% zo-$KYWNMJVH?Hh@1n7OSu~QhSswL8x0=$<8QG_zepi_`y_79=nK=_ZP_`Em2UI*tyQoB+r{1QYZCpb?2OrgUw#oRH$?^Tj!Req>XiE#~B|~ z+%HB;=ic+R@px4Ld8mwpY;W^A%8%l8$@B@1m5n`TlKI6bz2mp*^^^1mK$COW$HOfp zUGTz-cN9?BGEp}5A!mDFjaiWa2_J2Iq8qj0mXzk; z66JBKRP{p%wN7XobR0YjhAuW9T1Gw3FDvR5dWJ8ElNYF94eF3ebu+QwKjtvVu4L zI9ip#mQ@4uqVdkl-TUQMb^XBJVLW(-$s;Nq;@5gr4`UfLgF$adIhd?rHOa%D);whv z=;krPp~@I+-Z|r#s3yCH+c1US?dnm+C*)r{m+86sTJusLdNu^sqLrfWed^ndHXH`m zd3#cOe3>w-ga(Dus_^ppG9AC>Iq{y%%CK+Cro_sqLCs{VLuK=dev>OL1dis4(PQ5R zcz)>DjEkfV+MO;~>VUlYF00SgfUo~@(&9$Iy2|G0T9BSP?&T22>K46D zL*~j#yJ?)^*%J3!16f)@Y2Z^kS*BzwfAQ7K96rFRIh>#$*$_Io;z>ux@}G98!fWR@ zGTFxv4r~v)Gsd|pF91*-eaZ3Qw1MH$K^7JhWIdX%o$2kCbvGDXy)a?@8T&1dY4`;L z4Kn+f%SSFWE_rpEpL9bnlmYq`D!6F%di<&Hh=+!VI~j)2mfil03T#jJ_s?}VV0_hp z7T9bWxc>Jm2Z0WMU?`Z$xE74Gu~%s{mW!d4uvKCx@WD+gPUQ zV0vQS(Ig++z=EHN)BR44*EDSWIyT~R4$FcF*VEY*8@l=218Q05D2$|fXKFhRgBIEE zdDFB}1dKkoO^7}{5crKX!p?dZWNz$m>1icsXG2N+((x0OIST9Zo^DW_tytvlwXGpn zs8?pJXjEG;T@qrZi%#h93?FP$!&P4JA(&H61tqQi=opRzNpm zkrG}$^t9&XduK*Qa1?355wd8G2CI6QEh@Ua>AsD;7oRUNLPb76m4HG3K?)wF~IyS3`fXuNM>${?wmB zpVz;?6_(Fiadfd{vUCBM*_kt$+F3J+IojI;9L(gc9n3{sEZyzR9o!_mOwFC#tQ{Q~ zP3-`#uK#tP3Q7~Q;4H|wjZHO8h7e4IuBxl&vz2w~D8)w=Wtg31zpZhz%+kzSzL*dV zwp@{WU4i;hJ7c2f1O;7Mz6qRKeASoIv0_bV=i@NMG*l<#+;INk-^`5w@}Dj~;k=|}qM1vq_P z|GpBGe_IKq|LNy9SJhKOQ$c=5L{Dv|Q_lZl=-ky*BFBJLW9&y_C|!vyM~rQx=!vun z?rZJQB5t}Dctmui5i31C_;_}CEn}_W%>oSXtt>@kE1=JW*4*v4tPp;O6 zmAk{)m!)}34pTWg8{i>($%NQ(Tl;QC@J@FfBoc%Gr&m560^kgSfodAFrIjF}aIw)X zoXZ`@IsMkc8_=w%-7`D6Y4e*CG8k%Ud=GXhsTR50jUnm+R*0A(O3UKFg0`K;qp1bl z7``HN=?39ic_kR|^R^~w-*pa?Vj#7|e9F1iRx{GN2?wK!xR1GW!qa=~pjJb-#u1K8 zeR?Y2i-pt}yJq;SCiVHODIvQJX|ZJaT8nO+(?HXbLefulKKgM^B(UIO1r+S=7;kLJ zcH}1J=Px2jsh3Tec&v8Jcbng8;V-`#*UHt?hB(pmOipKwf3Lz8rG$heEB30Sg*2rx zV<|KN86$soN(I!BwO`1n^^uF2*x&vJ$2d$>+`(romzHP|)K_KkO6Hc>_dwMW-M(#S zK(~SiXT1@fvc#U+?|?PniDRm01)f^#55;nhM|wi?oG>yBsa?~?^xTU|fX-R(sTA+5 zaq}-8Tx7zrOy#3*JLIIVsBmHYLdD}!0NP!+ITW+Thn0)8SS!$@)HXwB3tY!fMxc#1 zMp3H?q3eD?u&Njx4;KQ5G>32+GRp1Ee5qMO0lZjaRRu&{W<&~DoJNGkcYF<5(Ab+J zgO>VhBl{okDPn78<%&e2mR{jwVCz5Og;*Z;;3%VvoGo_;HaGLWYF7q#jDX=Z#Ml`H z858YVV$%J|e<1n`%6Vsvq7GmnAV0wW4$5qQ3uR@1i>tW{xrl|ExywIc?fNgYlA?C5 zh$ezAFb5{rQu6i7BSS5*J-|9DQ{6^BVQ{b*lq`xS@RyrsJN?-t=MTMPY;WYeKBCNg z^2|pN!Q^WPJuuO4!|P@jzt&tY1Y8d%FNK5xK(!@`jO2aEA*4 zkO6b|UVBipci?){-Ke=+1;mGlND8)6+P;8sq}UXw2hn;fc7nM>g}GSMWu&v&fqh

iViYT=fZ(|3Ox^$aWPp4a8h24tD<|8-!aK0lHgL$N7Efw}J zVIB!7=T$U`ao1?upi5V4Et*-lTG0XvExbf!ya{cua==$WJyVG(CmA6Of*8E@DSE%L z`V^$qz&RU$7G5mg;8;=#`@rRG`-uS18$0WPN@!v2d{H2sOqP|!(cQ@ zUHo!d>>yFArLPf1q`uBvY32miqShLT1B@gDL4XoVTK&@owOoD)OIHXrYK-a1d$B{v zF^}8D3Y^g%^cnvScOSJR5QNH+BI%d|;J;wWM3~l>${fb8DNPg)wrf|GBP8p%LNGN# z3EaIiItgwtGgT&iYCFy9-LG}bMI|4LdmmJt@V@% zb6B)1kc=T)(|L@0;wr<>=?r04N;E&ef+7C^`wPWtyQe(*pD1pI_&XHy|0gIGHMekd zF_*M4yi6J&Z4LQj65)S zXwdM{SwUo%3SbPwFsHgqF@V|6afT|R6?&S;lw=8% z3}@9B=#JI3@B*#4s!O))~z zc>2_4Q_#&+5V`GFd?88^;c1i7;Vv_I*qt!_Yx*n=;rj!82rrR2rQ8u5(Ejlo{15P% zs~!{%XJ>FmJ})H^I9bn^Re&38H{xA!0l3^89k(oU;bZWXM@kn$#aoS&Y4l^-WEn-fH39Jb9lA%s*WsKJQl?n9B7_~P z-XM&WL7Z!PcoF6_D>V@$CvUIEy=+Z&0kt{szMk=f1|M+r*a43^$$B^MidrT0J;RI` z(?f!O<8UZkm$_Ny$Hth1J#^4ni+im8M9mr&k|3cIgwvjAgjH z8`N&h25xV#v*d$qBX5jkI|xOhQn!>IYZK7l5#^P4M&twe9&Ey@@GxYMxBZq2e7?`q z$~Szs0!g{2fGcp9PZEt|rdQ6bhAgpcLHPz?f-vB?$dc*!9OL?Q8mn7->bFD2Si60* z!O%y)fCdMSV|lkF9w%x~J*A&srMyYY3{=&$}H zGQ4VG_?$2X(0|vT0{=;W$~icCI{b6W{B!Q8xdGhF|D{25G_5_+%s(46lhvNLkik~R z>nr(&C#5wwOzJZQo9m|U<;&Wk!_#q|V>fsmj1g<6%hB{jGoNUPjgJslld>xmODzGjYc?7JSuA?A_QzjDw5AsRgi@Y|Z0{F{!1=!NES-#*f^s4l0Hu zz468))2IY5dmD9pa*(yT5{EyP^G>@ZWumealS-*WeRcZ}B%gxq{MiJ|RyX-^C1V=0 z@iKdrGi1jTe8Ya^x7yyH$kBNvM4R~`fbPq$BzHum-3Zo8C6=KW@||>zsA8-Y9uV5V z#oq-f5L5}V<&wF4@X@<3^C%ptp6+Ce)~hGl`kwj)bsAjmo_GU^r940Z-|`<)oGnh7 zFF0Tde3>ui?8Yj{sF-Z@)yQd~CGZ*w-6p2U<8}JO-sRsVI5dBji`01W8A&3$?}lxBaC&vn0E$c5tW* zX>5(zzZ=qn&!J~KdsPl;P@bmA-Pr8T*)eh_+Dv5=Ma|XSle6t(k8qcgNyar{*ReQ8 zTXwi=8vr>!3Ywr+BhggHDw8ke==NTQVMCK`$69fhzEFB*4+H9LIvdt-#IbhZvpS}} zO3lz;P?zr0*0$%-Rq_y^k(?I{Mk}h@w}cZpMUp|ucs55bcloL2)($u%mXQw({Wzc~ z;6nu5MkjP)0C(@%6Q_I_vsWrfhl7Zpoxw#WoE~r&GOSCz;_ro6i(^hM>I$8y>`!wW z*U^@?B!MMmb89I}2(hcE4zN2G^kwyWCZp5JG>$Ez7zP~D=J^LMjSM)27_0B_X^C(M z`fFT+%DcKlu?^)FCK>QzSnV%IsXVcUFhFdBP!6~se&xxrIxsvySAWu++IrH;FbcY$ z2DWTvSBRfLwdhr0nMx+URA$j3i7_*6BWv#DXfym?ZRDcX9C?cY9sD3q)uBDR3uWg= z(lUIzB)G$Hr!){>E{s4Dew+tb9kvToZp-1&c?y2wn@Z~(VBhqz`cB;{E4(P3N2*nJ z_>~g@;UF2iG{Kt(<1PyePTKahF8<)pozZ*xH~U-kfoAayCwJViIrnqwqO}7{0pHw$ zs2Kx?s#vQr7XZ264>5RNKSL8|Ty^=PsIx^}QqOOcfpGUU4tRkUc|kc7-!Ae6!+B{o~7nFpm3|G5^=0#Bnm6`V}oSQlrX(u%OWnC zoLPy&Q;1Jui&7ST0~#+}I^&?vcE*t47~Xq#YwvA^6^} z`WkC)$AkNub|t@S!$8CBlwbV~?yp&@9h{D|3z-vJXgzRC5^nYm+PyPcgRzAnEi6Q^gslXYRv4nycsy-SJu?lMps-? zV`U*#WnFsdPLL)Q$AmD|0`UaC4ND07+&UmOu!eHruzV|OUox<+Jl|Mr@6~C`T@P%s zW7sgXLF2SSe9Fl^O(I*{9wsFSYb2l%-;&Pi^dpv!{)C3d0AlNY6!4fgmSgj_wQ*7Am7&$z;Jg&wgR-Ih;lUvWS|KTSg!&s_E9_bXBkZvGiC6bFKDWZxsD$*NZ#_8bl zG1P-#@?OQzED7@jlMJTH@V!6k;W>auvft)}g zhoV{7$q=*;=l{O>Q4a@ ziMjf_u*o^PsO)#BjC%0^h>Xp@;5$p{JSYDt)zbb}s{Kbt!T*I@Pk@X0zds6wsefuU zW$XY%yyRGC94=6mf?x+bbA5CDQ2AgW1T-jVAJbm7K(gp+;v6E0WI#kuACgV$r}6L? zd|Tj?^%^*N&b>Dd{Wr$FS2qI#Ucs1yd4N+RBUQiSZGujH`#I)mG&VKoDh=KKFl4=G z&MagXl6*<)$6P}*Tiebpz5L=oMaPrN+caUXRJ`D?=K9!e0f{@D&cZLKN?iNP@X0aF zE(^pl+;*T5qt?1jRC=5PMgV!XNITRLS_=9{CJExaQj;lt!&pdzpK?8p>%Mb+D z?yO*uSung=-`QQ@yX@Hyd4@CI^r{2oiu`%^bNkz+Nkk!IunjwNC|WcqvX~k=><-I3 zDQdbdb|!v+Iz01$w@aMl!R)koD77Xp;eZwzSl-AT zr@Vu{=xvgfq9akRrrM)}=!=xcs+U1JO}{t(avgz`6RqiiX<|hGG1pmop8k6Q+G_mv zJv|RfDheUp2L3=^C=4aCBMBn0aRCU(DQwX-W(RkRwmLeuJYF<0urcaf(=7)JPg<3P zQs!~G)9CT18o!J4{zX{_e}4eS)U-E)0FAt}wEI(c0%HkxgggW;(1E=>J17_hsH^sP z%lT0LGgbUXHx-K*CI-MCrP66UP0PvGqM$MkeLyqHdbgP|_Cm!7te~b8p+e6sQ_3k| zVcwTh6d83ltdnR>D^)BYQpDKlLk3g0Hdcgz2}%qUs9~~Rie)A-BV1mS&naYai#xcZ z(d{8=-LVpTp}2*y)|gR~;qc7fp26}lPcLZ#=JpYcn3AT9(UIdOyg+d(P5T7D&*P}# zQCYplZO5|7+r19%9e`v^vfSS1sbX1c%=w1;oyruXB%Kl$ACgKQ6=qNWLsc=28xJjg zwvsI5-%SGU|3p>&zXVl^vVtQT3o-#$UT9LI@Npz~6=4!>mc431VRNN8od&Ul^+G_kHC`G=6WVWM z%9eWNyy(FTO|A+@x}Ou3CH)oi;t#7rAxdIXfNFwOj_@Y&TGz6P_sqiB`Q6Lxy|Q{`|fgmRG(k+!#b*M+Z9zFce)f-7;?Km5O=LHV9f9_87; zF7%R2B+$?@sH&&-$@tzaPYkw0;=i|;vWdI|Wl3q_Zu>l;XdIw2FjV=;Mq5t1Q0|f< zs08j54Bp`3RzqE=2enlkZxmX6OF+@|2<)A^RNQpBd6o@OXl+i)zO%D4iGiQNuXd+zIR{_lb96{lc~bxsBveIw6umhShTX+3@ZJ=YHh@ zWY3(d0azg;7oHn>H<>?4@*RQbi>SmM=JrHvIG(~BrvI)#W(EAeO6fS+}mxxcc+X~W6&YVl86W9WFSS}Vz-f9vS?XUDBk)3TcF z8V?$4Q)`uKFq>xT=)Y9mMFVTUk*NIA!0$?RP6Ig0TBmUFrq*Q-Agq~DzxjStQyJ({ zBeZ;o5qUUKg=4Hypm|}>>L=XKsZ!F$yNTDO)jt4H0gdQ5$f|d&bnVCMMXhNh)~mN z@_UV6D7MVlsWz+zM+inZZp&P4fj=tm6fX)SG5H>OsQf_I8c~uGCig$GzuwViK54bcgL;VN|FnyQl>Ed7(@>=8$a_UKIz|V6CeVSd2(P z0Uu>A8A+muM%HLFJQ9UZ5c)BSAv_zH#1f02x?h9C}@pN@6{>UiAp>({Fn(T9Q8B z^`zB;kJ5b`>%dLm+Ol}ty!3;8f1XDSVX0AUe5P#@I+FQ-`$(a;zNgz)4x5hz$Hfbg z!Q(z26wHLXko(1`;(BAOg_wShpX0ixfWq3ponndY+u%1gyX)_h=v1zR#V}#q{au6; z!3K=7fQwnRfg6FXtNQmP>`<;!N137paFS%y?;lb1@BEdbvQHYC{976l`cLqn;b8lp zIDY>~m{gDj(wfnK!lpW6pli)HyLEiUrNc%eXTil|F2s(AY+LW5hkKb>TQ3|Q4S9rr zpDs4uK_co6XPsn_z$LeS{K4jFF`2>U`tbgKdyDne`xmR<@6AA+_hPNKCOR-Zqv;xk zu5!HsBUb^!4uJ7v0RuH-7?l?}b=w5lzzXJ~gZcxRKOovSk@|#V+MuX%Y+=;14i*%{)_gSW9(#4%)AV#3__kac1|qUy!uyP{>?U#5wYNq}y$S9pCc zFc~4mgSC*G~j0u#qqp9 z${>3HV~@->GqEhr_Xwoxq?Hjn#=s2;i~g^&Hn|aDKpA>Oc%HlW(KA1?BXqpxB;Ydx)w;2z^MpjJ(Qi(X!$5RC z*P{~%JGDQqojV>2JbEeCE*OEu!$XJ>bWA9Oa_Hd;y)F%MhBRi*LPcdqR8X`NQ&1L# z5#9L*@qxrx8n}LfeB^J{%-?SU{FCwiWyHp682F+|pa+CQa3ZLzBqN1{)h4d6+vBbV zC#NEbQLC;}me3eeYnOG*nXOJZEU$xLZ1<1Y=7r0(-U0P6-AqwMAM`a(Ed#7vJkn6plb4eI4?2y3yOTGmmDQ!z9`wzbf z_OY#0@5=bnep;MV0X_;;SJJWEf^E6Bd^tVJ9znWx&Ks8t*B>AM@?;D4oWUGc z!H*`6d7Cxo6VuyS4Eye&L1ZRhrRmN6Lr`{NL(wDbif|y&z)JN>Fl5#Wi&mMIr5i;x zBx}3YfF>>8EC(fYnmpu~)CYHuHCyr5*`ECap%t@y=jD>!_%3iiE|LN$mK9>- zHdtpy8fGZtkZF?%TW~29JIAfi2jZT8>OA7=h;8T{{k?c2`nCEx9$r zS+*&vt~2o^^J+}RDG@+9&M^K*z4p{5#IEVbz`1%`m5c2};aGt=V?~vIM}ZdPECDI)47|CWBCfDWUbxBCnmYivQ*0Nu_xb*C>~C9(VjHM zxe<*D<#dQ8TlpMX2c@M<9$w!RP$hpG4cs%AI){jp*Sj|*`m)5(Bw*A0$*i-(CA5#%>a)$+jI2C9r6|(>J8InryENI z$NohnxDUB;wAYDwrb*!N3noBTKPpPN}~09SEL18tkG zxgz(RYU_;DPT{l?Q$+eaZaxnsWCA^ds^0PVRkIM%bOd|G2IEBBiz{&^JtNsODs;5z zICt_Zj8wo^KT$7Bg4H+y!Df#3mbl%%?|EXe!&(Vmac1DJ*y~3+kRKAD=Ovde4^^%~ zw<9av18HLyrf*_>Slp;^i`Uy~`mvBjZ|?Ad63yQa#YK`4+c6;pW4?XIY9G1(Xh9WO8{F-Aju+nS9Vmv=$Ac0ienZ+p9*O%NG zMZKy5?%Z6TAJTE?o5vEr0r>f>hb#2w2U3DL64*au_@P!J!TL`oH2r*{>ffu6|A7tv zL4juf$DZ1MW5ZPsG!5)`k8d8c$J$o;%EIL0va9&GzWvkS%ZsGb#S(?{!UFOZ9<$a| zY|a+5kmD5N&{vRqkgY>aHsBT&`rg|&kezoD)gP0fsNYHsO#TRc_$n6Lf1Z{?+DLziXlHrq4sf(!>O{?Tj;Eh@%)+nRE_2VxbN&&%%caU#JDU%vL3}Cb zsb4AazPI{>8H&d=jUaZDS$-0^AxE@utGs;-Ez_F(qC9T=UZX=>ok2k2 ziTn{K?y~a5reD2A)P${NoI^>JXn>`IeArow(41c-Wm~)wiryEP(OS{YXWi7;%dG9v zI?mwu1MxD{yp_rrk!j^cKM)dc4@p4Ezyo%lRN|XyD}}>v=Xoib0gOcdXrQ^*61HNj z=NP|pd>@yfvr-=m{8$3A8TQGMTE7g=z!%yt`8`Bk-0MMwW~h^++;qyUP!J~ykh1GO z(FZ59xuFR$(WE;F@UUyE@Sp>`aVNjyj=Ty>_Vo}xf`e7`F;j-IgL5`1~-#70$9_=uBMq!2&1l zomRgpD58@)YYfvLtPW}{C5B35R;ZVvB<<#)x%srmc_S=A7F@DW8>QOEGwD6suhwCg z>Pa+YyULhmw%BA*4yjDp|2{!T98~<6Yfd(wo1mQ!KWwq0eg+6)o1>W~f~kL<-S+P@$wx*zeI|1t7z#Sxr5 zt6w+;YblPQNplq4Z#T$GLX#j6yldXAqj>4gAnnWtBICUnA&-dtnlh=t0Ho_vEKwV` z)DlJi#!@nkYV#$!)@>udAU*hF?V`2$Hf=V&6PP_|r#Iv*J$9)pF@X3`k;5})9^o4y z&)~?EjX5yX12O(BsFy-l6}nYeuKkiq`u9145&3Ssg^y{5G3Pse z9w(YVa0)N-fLaBq1`P!_#>SS(8fh_5!f{UrgZ~uEdeMJIz7DzI5!NHHqQtm~#CPij z?=N|J>nPR6_sL7!f4hD_|KH`vf8(Wpnj-(gPWH+ZvID}%?~68SwhPTC3u1_cB`otq z)U?6qo!ZLi5b>*KnYHWW=3F!p%h1;h{L&(Q&{qY6)_qxNfbP6E3yYpW!EO+IW3?@J z);4>g4gnl^8klu7uA>eGF6rIGSynacogr)KUwE_R4E5Xzi*Qir@b-jy55-JPC8c~( zo!W8y9OGZ&`xmc8;=4-U9=h{vCqfCNzYirONmGbRQlR`WWlgnY+1wCXbMz&NT~9*| z6@FrzP!LX&{no2!Ln_3|I==_4`@}V?4a;YZKTdw;vT<+K+z=uWbW(&bXEaWJ^W8Td z-3&1bY^Z*oM<=M}LVt>_j+p=2Iu7pZmbXrhQ_k)ysE9yXKygFNw$5hwDn(M>H+e1&9BM5!|81vd%r%vEm zqxY3?F@fb6O#5UunwgAHR9jp_W2zZ}NGp2%mTW@(hz7$^+a`A?mb8|_G*GNMJ) zjqegXQio=i@AINre&%ofexAr95aop5C+0MZ0m-l=MeO8m3epm7U%vZB8+I+C*iNFM z#T3l`gknX;D$-`2XT^Cg*vrv=RH+P;_dfF++cP?B_msQI4j+lt&rX2)3GaJx%W*Nn zkML%D{z5tpHH=dksQ*gzc|}gzW;lwAbxoR07VNgS*-c3d&8J|;@3t^ zVUz*J*&r7DFRuFVDCJDK8V9NN5hvpgGjwx+5n)qa;YCKe8TKtdnh{I7NU9BCN!0dq zczrBk8pE{{@vJa9ywR@mq*J=v+PG;?fwqlJVhijG!3VmIKs>9T6r7MJpC)m!Tc#>g zMtVsU>wbwFJEfwZ{vB|ZlttNe83)$iz`~#8UJ^r)lJ@HA&G#}W&ZH*;k{=TavpjWE z7hdyLZPf*X%Gm}i`Y{OGeeu^~nB8=`{r#TUrM-`;1cBvEd#d!kPqIgYySYhN-*1;L z^byj%Yi}Gx)Wnkosi337BKs}+5H5dth1JA{Ir-JKN$7zC)*}hqeoD(WfaUDPT>0`- z(6sa0AoIqASwF`>hP}^|)a_j2s^PQn*qVC{Q}htR z5-)duBFXT_V56-+UohKXlq~^6uf!6sA#ttk1o~*QEy_Y-S$gAvq47J9Vtk$5oA$Ct zYhYJ@8{hsC^98${!#Ho?4y5MCa7iGnfz}b9jE~h%EAAv~Qxu)_rAV;^cygV~5r_~?l=B`zObj7S=H=~$W zPtI_m%g$`kL_fVUk9J@>EiBH zOO&jtn~&`hIFMS5S`g8w94R4H40mdNUH4W@@XQk1sr17b{@y|JB*G9z1|CrQjd+GX z6+KyURG3;!*BQrentw{B2R&@2&`2}n(z-2&X7#r!{yg@Soy}cRD~j zj9@UBW+N|4HW4AWapy4wfUI- zZ`gSL6DUlgj*f1hSOGXG0IVH8HxK?o2|3HZ;KW{K+yPAlxtb)NV_2AwJm|E)FRs&& z=c^e7bvUsztY|+f^k7NXs$o1EUq>cR7C0$UKi6IooHWlK_#?IWDkvywnzg&ThWo^? z2O_N{5X39#?eV9l)xI(>@!vSB{DLt*oY!K1R8}_?%+0^C{d9a%N4 zoxHVT1&Lm|uDX%$QrBun5e-F`HJ^T$ zmzv)p@4ZHd_w9!%Hf9UYNvGCw2TTTbrj9pl+T9%-_-}L(tES>Or-}Z4F*{##n3~L~TuxjirGuIY#H7{%$E${?p{Q01 zi6T`n;rbK1yIB9jmQNycD~yZq&mbIsFWHo|ZAChSFPQa<(%d8mGw*V3fh|yFoxOOiWJd(qvVb!Z$b88cg->N=qO*4k~6;R==|9ihg&riu#P~s4Oap9O7f%crSr^rljeIfXDEg>wi)&v*a%7zpz<9w z*r!3q9J|390x`Zk;g$&OeN&ctp)VKRpDSV@kU2Q>jtok($Y-*x8_$2piTxun81@vt z!Vj?COa0fg2RPXMSIo26T=~0d`{oGP*eV+$!0I<(4azk&Vj3SiG=Q!6mX0p$z7I}; z9BJUFgT-K9MQQ-0@Z=^7R<{bn2Fm48endsSs`V7_@%8?Bxkqv>BDoVcj?K#dV#uUP zL1ND~?D-|VGKe3Rw_7-Idpht>H6XRLh*U7epS6byiGvJpr%d}XwfusjH9g;Z98H`x zyde%%5mhGOiL4wljCaWCk-&uE4_OOccb9c!ZaWt4B(wYl!?vyzl%7n~QepN&eFUrw zFIOl9c({``6~QD+43*_tzP{f2x41h(?b43^y6=iwyB)2os5hBE!@YUS5?N_tXd=h( z)WE286Fbd>R4M^P{!G)f;h<3Q>Fipuy+d2q-)!RyTgt;wr$(?9ox3;q+{E*ZQHhOn;lM`cjnu9 zXa48ks-v(~b*;MAI<>YZH(^NV8vjb34beE<_cwKlJoR;k6lJNSP6v}uiyRD?|0w+X@o1ONrH8a$fCxXpf? z?$DL0)7|X}Oc%h^zrMKWc-NS9I0Utu@>*j}b@tJ=ixQSJ={4@854wzW@E>VSL+Y{i z#0b=WpbCZS>kUCO_iQz)LoE>P5LIG-hv9E+oG}DtlIDF>$tJ1aw9^LuhLEHt?BCj& z(O4I8v1s#HUi5A>nIS-JK{v!7dJx)^Yg%XjNmlkWAq2*cv#tHgz`Y(bETc6CuO1VkN^L-L3j_x<4NqYb5rzrLC-7uOv z!5e`GZt%B782C5-fGnn*GhDF$%(qP<74Z}3xx+{$4cYKy2ikxI7B2N+2r07DN;|-T->nU&!=Cm#rZt%O_5c&1Z%nlWq3TKAW0w zQqemZw_ue--2uKQsx+niCUou?HjD`xhEjjQd3%rrBi82crq*~#uA4+>vR<_S{~5ce z-2EIl?~s z1=GVL{NxP1N3%=AOaC}j_Fv=ur&THz zyO!d9kHq|c73kpq`$+t+8Bw7MgeR5~`d7ChYyGCBWSteTB>8WAU(NPYt2Dk`@#+}= zI4SvLlyk#pBgVigEe`?NG*vl7V6m+<}%FwPV=~PvvA)=#ths==DRTDEYh4V5}Cf$z@#;< zyWfLY_5sP$gc3LLl2x+Ii)#b2nhNXJ{R~vk`s5U7Nyu^3yFg&D%Txwj6QezMX`V(x z=C`{76*mNb!qHHs)#GgGZ_7|vkt9izl_&PBrsu@}L`X{95-2jf99K)0=*N)VxBX2q z((vkpP2RneSIiIUEnGb?VqbMb=Zia+rF~+iqslydE34cSLJ&BJW^3knX@M;t*b=EA zNvGzv41Ld_T+WT#XjDB840vovUU^FtN_)G}7v)1lPetgpEK9YS^OWFkPoE{ovj^=@ zO9N$S=G$1ecndT_=5ehth2Lmd1II-PuT~C9`XVePw$y8J#dpZ?Tss<6wtVglm(Ok7 z3?^oi@pPio6l&!z8JY(pJvG=*pI?GIOu}e^EB6QYk$#FJQ%^AIK$I4epJ+9t?KjqA+bkj&PQ*|vLttme+`9G=L% ziadyMw_7-M)hS(3E$QGNCu|o23|%O+VN7;Qggp?PB3K-iSeBa2b}V4_wY`G1Jsfz4 z9|SdB^;|I8E8gWqHKx!vj_@SMY^hLEIbSMCuE?WKq=c2mJK z8LoG-pnY!uhqFv&L?yEuxo{dpMTsmCn)95xanqBrNPTgXP((H$9N${Ow~Is-FBg%h z53;|Y5$MUN)9W2HBe2TD`ct^LHI<(xWrw}$qSoei?}s)&w$;&!14w6B6>Yr6Y8b)S z0r71`WmAvJJ`1h&poLftLUS6Ir zC$bG9!Im_4Zjse)#K=oJM9mHW1{%l8sz$1o?ltdKlLTxWWPB>Vk22czVt|1%^wnN@*!l)}?EgtvhC>vlHm^t+ogpgHI1_$1ox9e;>0!+b(tBrmXRB`PY1vp-R**8N7 zGP|QqI$m(Rdu#=(?!(N}G9QhQ%o!aXE=aN{&wtGP8|_qh+7a_j_sU5|J^)vxq;# zjvzLn%_QPHZZIWu1&mRAj;Sa_97p_lLq_{~j!M9N^1yp3U_SxRqK&JnR%6VI#^E12 z>CdOVI^_9aPK2eZ4h&^{pQs}xsijXgFYRIxJ~N7&BB9jUR1fm!(xl)mvy|3e6-B3j zJn#ajL;bFTYJ2+Q)tDjx=3IklO@Q+FFM}6UJr6km7hj7th9n_&JR7fnqC!hTZoM~T zBeaVFp%)0cbPhejX<8pf5HyRUj2>aXnXBqDJe73~J%P(2C?-RT{c3NjE`)om! zl$uewSgWkE66$Kb34+QZZvRn`fob~Cl9=cRk@Es}KQm=?E~CE%spXaMO6YmrMl%9Q zlA3Q$3|L1QJ4?->UjT&CBd!~ru{Ih^in&JXO=|<6J!&qp zRe*OZ*cj5bHYlz!!~iEKcuE|;U4vN1rk$xq6>bUWD*u(V@8sG^7>kVuo(QL@Ki;yL zWC!FT(q{E8#on>%1iAS0HMZDJg{Z{^!De(vSIq&;1$+b)oRMwA3nc3mdTSG#3uYO_ z>+x;7p4I;uHz?ZB>dA-BKl+t-3IB!jBRgdvAbW!aJ(Q{aT>+iz?91`C-xbe)IBoND z9_Xth{6?(y3rddwY$GD65IT#f3<(0o#`di{sh2gm{dw*#-Vnc3r=4==&PU^hCv$qd zjw;>i&?L*Wq#TxG$mFIUf>eK+170KG;~+o&1;Tom9}}mKo23KwdEM6UonXgc z!6N(@k8q@HPw{O8O!lAyi{rZv|DpgfU{py+j(X_cwpKqcalcqKIr0kM^%Br3SdeD> zHSKV94Yxw;pjzDHo!Q?8^0bb%L|wC;4U^9I#pd5O&eexX+Im{ z?jKnCcsE|H?{uGMqVie_C~w7GX)kYGWAg%-?8|N_1#W-|4F)3YTDC+QSq1s!DnOML3@d`mG%o2YbYd#jww|jD$gotpa)kntakp#K;+yo-_ZF9qrNZw<%#C zuPE@#3RocLgPyiBZ+R_-FJ_$xP!RzWm|aN)S+{$LY9vvN+IW~Kf3TsEIvP+B9Mtm! zpfNNxObWQpLoaO&cJh5>%slZnHl_Q~(-Tfh!DMz(dTWld@LG1VRF`9`DYKhyNv z2pU|UZ$#_yUx_B_|MxUq^glT}O5Xt(Vm4Mr02><%C)@v;vPb@pT$*yzJ4aPc_FZ3z z3}PLoMBIM>q_9U2rl^sGhk1VUJ89=*?7|v`{!Z{6bqFMq(mYiA?%KbsI~JwuqVA9$H5vDE+VocjX+G^%bieqx->s;XWlKcuv(s%y%D5Xbc9+ zc(_2nYS1&^yL*ey664&4`IoOeDIig}y-E~_GS?m;D!xv5-xwz+G`5l6V+}CpeJDi^ z%4ed$qowm88=iYG+(`ld5Uh&>Dgs4uPHSJ^TngXP_V6fPyl~>2bhi20QB%lSd#yYn zO05?KT1z@?^-bqO8Cg`;ft>ilejsw@2%RR7;`$Vs;FmO(Yr3Fp`pHGr@P2hC%QcA|X&N2Dn zYf`MqXdHi%cGR@%y7Rg7?d3?an){s$zA{!H;Ie5exE#c~@NhQUFG8V=SQh%UxUeiV zd7#UcYqD=lk-}sEwlpu&H^T_V0{#G?lZMxL7ih_&{(g)MWBnCZxtXg znr#}>U^6!jA%e}@Gj49LWG@*&t0V>Cxc3?oO7LSG%~)Y5}f7vqUUnQ;STjdDU}P9IF9d9<$;=QaXc zL1^X7>fa^jHBu_}9}J~#-oz3Oq^JmGR#?GO7b9a(=R@fw@}Q{{@`Wy1vIQ#Bw?>@X z-_RGG@wt|%u`XUc%W{J z>iSeiz8C3H7@St3mOr_mU+&bL#Uif;+Xw-aZdNYUpdf>Rvu0i0t6k*}vwU`XNO2he z%miH|1tQ8~ZK!zmL&wa3E;l?!!XzgV#%PMVU!0xrDsNNZUWKlbiOjzH-1Uoxm8E#r`#2Sz;-o&qcqB zC-O_R{QGuynW14@)7&@yw1U}uP(1cov)twxeLus0s|7ayrtT8c#`&2~Fiu2=R;1_4bCaD=*E@cYI>7YSnt)nQc zohw5CsK%m?8Ack)qNx`W0_v$5S}nO|(V|RZKBD+btO?JXe|~^Qqur%@eO~<8-L^9d z=GA3-V14ng9L29~XJ>a5k~xT2152zLhM*@zlp2P5Eu}bywkcqR;ISbas&#T#;HZSf z2m69qTV(V@EkY(1Dk3`}j)JMo%ZVJ*5eB zYOjIisi+igK0#yW*gBGj?@I{~mUOvRFQR^pJbEbzFxTubnrw(Muk%}jI+vXmJ;{Q6 zrSobKD>T%}jV4Ub?L1+MGOD~0Ir%-`iTnWZN^~YPrcP5y3VMAzQ+&en^VzKEb$K!Q z<7Dbg&DNXuow*eD5yMr+#08nF!;%4vGrJI++5HdCFcGLfMW!KS*Oi@=7hFwDG!h2< zPunUEAF+HncQkbfFj&pbzp|MU*~60Z(|Ik%Tn{BXMN!hZOosNIseT?R;A`W?=d?5X zK(FB=9mZusYahp|K-wyb={rOpdn=@;4YI2W0EcbMKyo~-#^?h`BA9~o285%oY zfifCh5Lk$SY@|2A@a!T2V+{^!psQkx4?x0HSV`(w9{l75QxMk!)U52Lbhn{8ol?S) zCKo*7R(z!uk<6*qO=wh!Pul{(qq6g6xW;X68GI_CXp`XwO zxuSgPRAtM8K7}5E#-GM!*ydOOG_{A{)hkCII<|2=ma*71ci_-}VPARm3crFQjLYV! z9zbz82$|l01mv`$WahE2$=fAGWkd^X2kY(J7iz}WGS z@%MyBEO=A?HB9=^?nX`@nh;7;laAjs+fbo!|K^mE!tOB>$2a_O0y-*uaIn8k^6Y zSbuv;5~##*4Y~+y7Z5O*3w4qgI5V^17u*ZeupVGH^nM&$qmAk|anf*>r zWc5CV;-JY-Z@Uq1Irpb^O`L_7AGiqd*YpGUShb==os$uN3yYvb`wm6d=?T*it&pDk zo`vhw)RZX|91^^Wa_ti2zBFyWy4cJu#g)_S6~jT}CC{DJ_kKpT`$oAL%b^!2M;JgT zM3ZNbUB?}kP(*YYvXDIH8^7LUxz5oE%kMhF!rnPqv!GiY0o}NR$OD=ITDo9r%4E>E0Y^R(rS^~XjWyVI6 zMOR5rPXhTp*G*M&X#NTL`Hu*R+u*QNoiOKg4CtNPrjgH>c?Hi4MUG#I917fx**+pJfOo!zFM&*da&G_x)L(`k&TPI*t3e^{crd zX<4I$5nBQ8Ax_lmNRa~E*zS-R0sxkz`|>7q_?*e%7bxqNm3_eRG#1ae3gtV9!fQpY z+!^a38o4ZGy9!J5sylDxZTx$JmG!wg7;>&5H1)>f4dXj;B+@6tMlL=)cLl={jLMxY zbbf1ax3S4>bwB9-$;SN2?+GULu;UA-35;VY*^9Blx)Jwyb$=U!D>HhB&=jSsd^6yw zL)?a|>GxU!W}ocTC(?-%z3!IUhw^uzc`Vz_g>-tv)(XA#JK^)ZnC|l1`@CdX1@|!| z_9gQ)7uOf?cR@KDp97*>6X|;t@Y`k_N@)aH7gY27)COv^P3ya9I{4z~vUjLR9~z1Z z5=G{mVtKH*&$*t0@}-i_v|3B$AHHYale7>E+jP`ClqG%L{u;*ff_h@)al?RuL7tOO z->;I}>%WI{;vbLP3VIQ^iA$4wl6@0sDj|~112Y4OFjMs`13!$JGkp%b&E8QzJw_L5 zOnw9joc0^;O%OpF$Qp)W1HI!$4BaXX84`%@#^dk^hFp^pQ@rx4g(8Xjy#!X%+X5Jd@fs3amGT`}mhq#L97R>OwT5-m|h#yT_-v@(k$q7P*9X~T*3)LTdzP!*B} z+SldbVWrrwQo9wX*%FyK+sRXTa@O?WM^FGWOE?S`R(0P{<6p#f?0NJvnBia?k^fX2 zNQs7K-?EijgHJY}&zsr;qJ<*PCZUd*x|dD=IQPUK_nn)@X4KWtqoJNHkT?ZWL_hF? zS8lp2(q>;RXR|F;1O}EE#}gCrY~#n^O`_I&?&z5~7N;zL0)3Tup`%)oHMK-^r$NT% zbFg|o?b9w(q@)6w5V%si<$!U<#}s#x@0aX-hP>zwS#9*75VXA4K*%gUc>+yzupTDBOKH8WR4V0pM(HrfbQ&eJ79>HdCvE=F z|J>s;;iDLB^3(9}?biKbxf1$lI!*Z%*0&8UUq}wMyPs_hclyQQi4;NUY+x2qy|0J; zhn8;5)4ED1oHwg+VZF|80<4MrL97tGGXc5Sw$wAI#|2*cvQ=jB5+{AjMiDHmhUC*a zlmiZ`LAuAn_}hftXh;`Kq0zblDk8?O-`tnilIh|;3lZp@F_osJUV9`*R29M?7H{Fy z`nfVEIDIWXmU&YW;NjU8)EJpXhxe5t+scf|VXM!^bBlwNh)~7|3?fWwo_~ZFk(22% zTMesYw+LNx3J-_|DM~`v93yXe=jPD{q;li;5PD?Dyk+b? zo21|XpT@)$BM$%F=P9J19Vi&1#{jM3!^Y&fr&_`toi`XB1!n>sbL%U9I5<7!@?t)~ z;&H%z>bAaQ4f$wIzkjH70;<8tpUoxzKrPhn#IQfS%9l5=Iu))^XC<58D!-O z{B+o5R^Z21H0T9JQ5gNJnqh#qH^na|z92=hONIM~@_iuOi|F>jBh-?aA20}Qx~EpDGElELNn~|7WRXRFnw+Wdo`|# zBpU=Cz3z%cUJ0mx_1($X<40XEIYz(`noWeO+x#yb_pwj6)R(__%@_Cf>txOQ74wSJ z0#F3(zWWaR-jMEY$7C*3HJrohc79>MCUu26mfYN)f4M~4gD`}EX4e}A!U}QV8!S47 z6y-U-%+h`1n`*pQuKE%Av0@)+wBZr9mH}@vH@i{v(m-6QK7Ncf17x_D=)32`FOjjo zg|^VPf5c6-!FxN{25dvVh#fog=NNpXz zfB$o+0jbRkHH{!TKhE709f+jI^$3#v1Nmf80w`@7-5$1Iv_`)W^px8P-({xwb;D0y z7LKDAHgX<84?l!I*Dvi2#D@oAE^J|g$3!)x1Ua;_;<@#l1fD}lqU2_tS^6Ht$1Wl} zBESo7o^)9-Tjuz$8YQSGhfs{BQV6zW7dA?0b(Dbt=UnQs&4zHfe_sj{RJ4uS-vQpC zX;Bbsuju4%!o8?&m4UZU@~ZZjeFF6ex2ss5_60_JS_|iNc+R0GIjH1@Z z=rLT9%B|WWgOrR7IiIwr2=T;Ne?30M!@{%Qf8o`!>=s<2CBpCK_TWc(DX51>e^xh8 z&@$^b6CgOd7KXQV&Y4%}_#uN*mbanXq(2=Nj`L7H7*k(6F8s6{FOw@(DzU`4-*77{ zF+dxpv}%mFpYK?>N_2*#Y?oB*qEKB}VoQ@bzm>ptmVS_EC(#}Lxxx730trt0G)#$b zE=wVvtqOct1%*9}U{q<)2?{+0TzZzP0jgf9*)arV)*e!f`|jgT{7_9iS@e)recI#z zbzolURQ+TOzE!ymqvBY7+5NnAbWxvMLsLTwEbFqW=CPyCsmJ}P1^V30|D5E|p3BC5 z)3|qgw@ra7aXb-wsa|l^in~1_fm{7bS9jhVRkYVO#U{qMp z)Wce+|DJ}4<2gp8r0_xfZpMo#{Hl2MfjLcZdRB9(B(A(f;+4s*FxV{1F|4d`*sRNd zp4#@sEY|?^FIJ;tmH{@keZ$P(sLh5IdOk@k^0uB^BWr@pk6mHy$qf&~rI>P*a;h0C{%oA*i!VjWn&D~O#MxN&f@1Po# zKN+ zrGrkSjcr?^R#nGl<#Q722^wbYcgW@{+6CBS<1@%dPA8HC!~a`jTz<`g_l5N1M@9wn9GOAZ>nqNgq!yOCbZ@1z`U_N`Z>}+1HIZxk*5RDc&rd5{3qjRh8QmT$VyS;jK z;AF+r6XnnCp=wQYoG|rT2@8&IvKq*IB_WvS%nt%e{MCFm`&W*#LXc|HrD?nVBo=(8*=Aq?u$sDA_sC_RPDUiQ+wnIJET8vx$&fxkW~kP9qXKt zozR)@xGC!P)CTkjeWvXW5&@2?)qt)jiYWWBU?AUtzAN}{JE1I)dfz~7$;}~BmQF`k zpn11qmObXwRB8&rnEG*#4Xax3XBkKlw(;tb?Np^i+H8m(Wyz9k{~ogba@laiEk;2! zV*QV^6g6(QG%vX5Um#^sT&_e`B1pBW5yVth~xUs#0}nv?~C#l?W+9Lsb_5)!71rirGvY zTIJ$OPOY516Y|_014sNv+Z8cc5t_V=i>lWV=vNu#!58y9Zl&GsMEW#pPYPYGHQ|;vFvd*9eM==$_=vc7xnyz0~ zY}r??$<`wAO?JQk@?RGvkWVJlq2dk9vB(yV^vm{=NVI8dhsX<)O(#nr9YD?I?(VmQ z^r7VfUBn<~p3()8yOBjm$#KWx!5hRW)5Jl7wY@ky9lNM^jaT##8QGVsYeaVywmpv>X|Xj7gWE1Ezai&wVLt3p)k4w~yrskT-!PR!kiyQlaxl(( zXhF%Q9x}1TMt3~u@|#wWm-Vq?ZerK={8@~&@9r5JW}r#45#rWii};t`{5#&3$W)|@ zbAf2yDNe0q}NEUvq_Quq3cTjcw z@H_;$hu&xllCI9CFDLuScEMg|x{S7GdV8<&Mq=ezDnRZAyX-8gv97YTm0bg=d)(>N z+B2FcqvI9>jGtnK%eO%y zoBPkJTk%y`8TLf4)IXPBn`U|9>O~WL2C~C$z~9|0m*YH<-vg2CD^SX#&)B4ngOSG$ zV^wmy_iQk>dfN@Pv(ckfy&#ak@MLC7&Q6Ro#!ezM*VEh`+b3Jt%m(^T&p&WJ2Oqvj zs-4nq0TW6cv~(YI$n0UkfwN}kg3_fp?(ijSV#tR9L0}l2qjc7W?i*q01=St0eZ=4h zyGQbEw`9OEH>NMuIe)hVwYHsGERWOD;JxEiO7cQv%pFCeR+IyhwQ|y@&^24k+|8fD zLiOWFNJ2&vu2&`Jv96_z-Cd5RLgmeY3*4rDOQo?Jm`;I_(+ejsPM03!ly!*Cu}Cco zrQSrEDHNyzT(D5s1rZq!8#?f6@v6dB7a-aWs(Qk>N?UGAo{gytlh$%_IhyL7h?DLXDGx zgxGEBQoCAWo-$LRvM=F5MTle`M})t3vVv;2j0HZY&G z22^iGhV@uaJh(XyyY%} zd4iH_UfdV#T=3n}(Lj^|n;O4|$;xhu*8T3hR1mc_A}fK}jfZ7LX~*n5+`8N2q#rI$ z@<_2VANlYF$vIH$ zl<)+*tIWW78IIINA7Rr7i{<;#^yzxoLNkXL)eSs=%|P>$YQIh+ea_3k z_s7r4%j7%&*NHSl?R4k%1>Z=M9o#zxY!n8sL5>BO-ZP;T3Gut>iLS@U%IBrX6BA3k z)&@q}V8a{X<5B}K5s(c(LQ=%v1ocr`t$EqqY0EqVjr65usa=0bkf|O#ky{j3)WBR(((L^wmyHRzoWuL2~WTC=`yZ zn%VX`L=|Ok0v7?s>IHg?yArBcync5rG#^+u)>a%qjES%dRZoIyA8gQ;StH z1Ao7{<&}6U=5}4v<)1T7t!J_CL%U}CKNs-0xWoTTeqj{5{?Be$L0_tk>M9o8 zo371}S#30rKZFM{`H_(L`EM9DGp+Mifk&IP|C2Zu_)Ghr4Qtpmkm1osCf@%Z$%t+7 zYH$Cr)Ro@3-QDeQJ8m+x6%;?YYT;k6Z0E-?kr>x33`H%*ueBD7Zx~3&HtWn0?2Wt} zTG}*|v?{$ajzt}xPzV%lL1t-URi8*Zn)YljXNGDb>;!905Td|mpa@mHjIH%VIiGx- zd@MqhpYFu4_?y5N4xiHn3vX&|e6r~Xt> zZG`aGq|yTNjv;9E+Txuoa@A(9V7g?1_T5FzRI;!=NP1Kqou1z5?%X~Wwb{trRfd>i z8&y^H)8YnKyA_Fyx>}RNmQIczT?w2J4SNvI{5J&}Wto|8FR(W;Qw#b1G<1%#tmYzQ zQ2mZA-PAdi%RQOhkHy9Ea#TPSw?WxwL@H@cbkZwIq0B!@ns}niALidmn&W?!Vd4Gj zO7FiuV4*6Mr^2xlFSvM;Cp_#r8UaqIzHJQg_z^rEJw&OMm_8NGAY2)rKvki|o1bH~ z$2IbfVeY2L(^*rMRU1lM5Y_sgrDS`Z??nR2lX;zyR=c%UyGb*%TC-Dil?SihkjrQy~TMv6;BMs7P8il`H7DmpVm@rJ;b)hW)BL)GjS154b*xq-NXq2cwE z^;VP7ua2pxvCmxrnqUYQMH%a%nHmwmI33nJM(>4LznvY*k&C0{8f*%?zggpDgkuz&JBx{9mfb@wegEl2v!=}Sq2Gaty0<)UrOT0{MZtZ~j5y&w zXlYa_jY)I_+VA-^#mEox#+G>UgvM!Ac8zI<%JRXM_73Q!#i3O|)lOP*qBeJG#BST0 zqohi)O!|$|2SeJQo(w6w7%*92S})XfnhrH_Z8qe!G5>CglP=nI7JAOW?(Z29;pXJ9 zR9`KzQ=WEhy*)WH>$;7Cdz|>*i>=##0bB)oU0OR>>N<21e4rMCHDemNi2LD>Nc$;& zQRFthpWniC1J6@Zh~iJCoLOxN`oCKD5Q4r%ynwgUKPlIEd#?QViIqovY|czyK8>6B zSP%{2-<;%;1`#0mG^B(8KbtXF;Nf>K#Di72UWE4gQ%(_26Koiad)q$xRL~?pN71ZZ zujaaCx~jXjygw;rI!WB=xrOJO6HJ!!w}7eiivtCg5K|F6$EXa)=xUC za^JXSX98W`7g-tm@uo|BKj39Dl;sg5ta;4qjo^pCh~{-HdLl6qI9Ix6f$+qiZ$}s= zNguKrU;u+T@ko(Vr1>)Q%h$?UKXCY>3se%&;h2osl2D zE4A9bd7_|^njDd)6cI*FupHpE3){4NQ*$k*cOWZ_?CZ>Z4_fl@n(mMnYK62Q1d@+I zr&O))G4hMihgBqRIAJkLdk(p(D~X{-oBUA+If@B}j& zsHbeJ3RzTq96lB7d($h$xTeZ^gP0c{t!Y0c)aQE;$FY2!mACg!GDEMKXFOPI^)nHZ z`aSPJpvV0|bbrzhWWkuPURlDeN%VT8tndV8?d)eN*i4I@u zVKl^6{?}A?P)Fsy?3oi#clf}L18t;TjNI2>eI&(ezDK7RyqFxcv%>?oxUlonv(px) z$vnPzRH`y5A(x!yOIfL0bmgeMQB$H5wenx~!ujQK*nUBW;@Em&6Xv2%s(~H5WcU2R z;%Nw<$tI)a`Ve!>x+qegJnQsN2N7HaKzrFqM>`6R*gvh%O*-%THt zrB$Nk;lE;z{s{r^PPm5qz(&lM{sO*g+W{sK+m3M_z=4=&CC>T`{X}1Vg2PEfSj2x_ zmT*(x;ov%3F?qoEeeM>dUn$a*?SIGyO8m806J1W1o+4HRhc2`9$s6hM#qAm zChQ87b~GEw{ADfs+5}FJ8+|bIlIv(jT$Ap#hSHoXdd9#w<#cA<1Rkq^*EEkknUd4& zoIWIY)sAswy6fSERVm&!SO~#iN$OgOX*{9@_BWFyJTvC%S++ilSfCrO(?u=Dc?CXZ zzCG&0yVR{Z`|ZF0eEApWEo#s9osV>F{uK{QA@BES#&;#KsScf>y zvs?vIbI>VrT<*!;XmQS=bhq%46-aambZ(8KU-wOO2=en~D}MCToB_u;Yz{)1ySrPZ z@=$}EvjTdzTWU7c0ZI6L8=yP+YRD_eMMos}b5vY^S*~VZysrkq<`cK3>>v%uy7jgq z0ilW9KjVDHLv0b<1K_`1IkbTOINs0=m-22c%M~l=^S}%hbli-3?BnNq?b`hx^HX2J zIe6ECljRL0uBWb`%{EA=%!i^4sMcj+U_TaTZRb+~GOk z^ZW!nky0n*Wb*r+Q|9H@ml@Z5gU&W`(z4-j!OzC1wOke`TRAYGZVl$PmQ16{3196( zO*?`--I}Qf(2HIwb2&1FB^!faPA2=sLg(@6P4mN)>Dc3i(B0;@O-y2;lM4akD>@^v z=u>*|!s&9zem70g7zfw9FXl1bpJW(C#5w#uy5!V?Q(U35A~$dR%LDVnq@}kQm13{} zd53q3N(s$Eu{R}k2esbftfjfOITCL;jWa$}(mmm}d(&7JZ6d3%IABCapFFYjdEjdK z&4Edqf$G^MNAtL=uCDRs&Fu@FXRgX{*0<(@c3|PNHa>L%zvxWS={L8%qw`STm+=Rd zA}FLspESSIpE_^41~#5yI2bJ=9`oc;GIL!JuW&7YetZ?0H}$$%8rW@*J37L-~Rsx!)8($nI4 zZhcZ2^=Y+p4YPl%j!nFJA|*M^gc(0o$i3nlphe+~-_m}jVkRN{spFs(o0ajW@f3K{ zDV!#BwL322CET$}Y}^0ixYj2w>&Xh12|R8&yEw|wLDvF!lZ#dOTHM9pK6@Nm-@9Lnng4ZHBgBSrr7KI8YCC9DX5Kg|`HsiwJHg2(7#nS;A{b3tVO?Z% za{m5b3rFV6EpX;=;n#wltDv1LE*|g5pQ+OY&*6qCJZc5oDS6Z6JD#6F)bWxZSF@q% z+1WV;m!lRB!n^PC>RgQCI#D1br_o^#iPk>;K2hB~0^<~)?p}LG%kigm@moD#q3PE+ zA^Qca)(xnqw6x>XFhV6ku9r$E>bWNrVH9fum0?4s?Rn2LG{Vm_+QJHse6xa%nzQ?k zKug4PW~#Gtb;#5+9!QBgyB@q=sk9=$S{4T>wjFICStOM?__fr+Kei1 z3j~xPqW;W@YkiUM;HngG!;>@AITg}vAE`M2Pj9Irl4w1fo4w<|Bu!%rh%a(Ai^Zhi zs92>v5;@Y(Zi#RI*ua*h`d_7;byQSa*v9E{2x$<-_=5Z<7{%)}4XExANcz@rK69T0x3%H<@frW>RA8^swA+^a(FxK| zFl3LD*ImHN=XDUkrRhp6RY5$rQ{bRgSO*(vEHYV)3Mo6Jy3puiLmU&g82p{qr0F?ohmbz)f2r{X2|T2 z$4fdQ=>0BeKbiVM!e-lIIs8wVTuC_m7}y4A_%ikI;Wm5$9j(^Y z(cD%U%k)X>_>9~t8;pGzL6L-fmQO@K; zo&vQzMlgY95;1BSkngY)e{`n0!NfVgf}2mB3t}D9@*N;FQ{HZ3Pb%BK6;5#-O|WI( zb6h@qTLU~AbVW#_6?c!?Dj65Now7*pU{h!1+eCV^KCuPAGs28~3k@ueL5+u|Z-7}t z9|lskE`4B7W8wMs@xJa{#bsCGDFoRSNSnmNYB&U7 zVGKWe%+kFB6kb)e;TyHfqtU6~fRg)f|>=5(N36)0+C z`hv65J<$B}WUc!wFAb^QtY31yNleq4dzmG`1wHTj=c*=hay9iD071Hc?oYoUk|M*_ zU1GihAMBsM@5rUJ(qS?9ZYJ6@{bNqJ`2Mr+5#hKf?doa?F|+^IR!8lq9)wS3tF_9n zW_?hm)G(M+MYb?V9YoX^_mu5h-LP^TL^!Q9Z7|@sO(rg_4+@=PdI)WL(B7`!K^ND- z-uIuVDCVEdH_C@c71YGYT^_Scf_dhB8Z2Xy6vGtBSlYud9vggOqv^L~F{BraSE_t} zIkP+Hp2&nH^-MNEs}^`oMLy11`PQW$T|K(`Bu*(f@)mv1-qY(_YG&J2M2<7k;;RK~ zL{Fqj9yCz8(S{}@c)S!65aF<=&eLI{hAMErCx&>i7OeDN>okvegO87OaG{Jmi<|}D zaT@b|0X{d@OIJ7zvT>r+eTzgLq~|Dpu)Z&db-P4z*`M$UL51lf>FLlq6rfG)%doyp z)3kk_YIM!03eQ8Vu_2fg{+osaEJPtJ-s36R+5_AEG12`NG)IQ#TF9c@$99%0iye+ zUzZ57=m2)$D(5Nx!n)=5Au&O0BBgwxIBaeI(mro$#&UGCr<;C{UjJVAbVi%|+WP(a zL$U@TYCxJ=1{Z~}rnW;7UVb7+ZnzgmrogDxhjLGo>c~MiJAWs&&;AGg@%U?Y^0JhL ze(x6Z74JG6FlOFK(T}SXQfhr}RIFl@QXKnIcXYF)5|V~e-}suHILKT-k|<*~Ij|VF zC;t@=uj=hot~*!C68G8hTA%8SzOfETOXQ|3FSaIEjvBJp(A)7SWUi5!Eu#yWgY+;n zlm<$+UDou*V+246_o#V4kMdto8hF%%Lki#zPh}KYXmMf?hrN0;>Mv%`@{0Qn`Ujp) z=lZe+13>^Q!9zT);H<(#bIeRWz%#*}sgUX9P|9($kexOyKIOc`dLux}c$7It4u|Rl z6SSkY*V~g_B-hMPo_ak>>z@AVQ(_N)VY2kB3IZ0G(iDUYw+2d7W^~(Jq}KY=JnWS( z#rzEa&0uNhJ>QE8iiyz;n2H|SV#Og+wEZv=f2%1ELX!SX-(d3tEj$5$1}70Mp<&eI zCkfbByL7af=qQE@5vDVxx1}FSGt_a1DoE3SDI+G)mBAna)KBG4p8Epxl9QZ4BfdAN zFnF|Y(umr;gRgG6NLQ$?ZWgllEeeq~z^ZS7L?<(~O&$5|y)Al^iMKy}&W+eMm1W z7EMU)u^ke(A1#XCV>CZ71}P}0x)4wtHO8#JRG3MA-6g=`ZM!FcICCZ{IEw8Dm2&LQ z1|r)BUG^0GzI6f946RrBlfB1Vs)~8toZf~7)+G;pv&XiUO(%5bm)pl=p>nV^o*;&T z;}@oZSibzto$arQgfkp|z4Z($P>dTXE{4O=vY0!)kDO* zGF8a4wq#VaFpLfK!iELy@?-SeRrdz%F*}hjKcA*y@mj~VD3!it9lhRhX}5YOaR9$} z3mS%$2Be7{l(+MVx3 z(4?h;P!jnRmX9J9sYN#7i=iyj_5q7n#X(!cdqI2lnr8T$IfOW<_v`eB!d9xY1P=2q&WtOXY=D9QYteP)De?S4}FK6#6Ma z=E*V+#s8>L;8aVroK^6iKo=MH{4yEZ_>N-N z`(|;aOATba1^asjxlILk<4}f~`39dBFlxj>Dw(hMYKPO3EEt1@S`1lxFNM+J@uB7T zZ8WKjz7HF1-5&2=l=fqF-*@>n5J}jIxdDwpT?oKM3s8Nr`x8JnN-kCE?~aM1H!hAE z%%w(3kHfGwMnMmNj(SU(w42OrC-euI>Dsjk&jz3ts}WHqmMpzQ3vZrsXrZ|}+MHA7 z068obeXZTsO*6RS@o3x80E4ok``rV^Y3hr&C1;|ZZ0|*EKO`$lECUYG2gVFtUTw)R z4Um<0ZzlON`zTdvVdL#KFoMFQX*a5wM0Czp%wTtfK4Sjs)P**RW&?lP$(<}q%r68Z zS53Y!d@&~ne9O)A^tNrXHhXBkj~$8j%pT1%%mypa9AW5E&s9)rjF4@O3ytH{0z6riz|@< zB~UPh*wRFg2^7EbQrHf0y?E~dHlkOxof_a?M{LqQ^C!i2dawHTPYUE=X@2(3<=OOxs8qn_(y>pU>u^}3y&df{JarR0@VJn0f+U%UiF=$Wyq zQvnVHESil@d|8&R<%}uidGh7@u^(%?$#|&J$pvFC-n8&A>utA=n3#)yMkz+qnG3wd zP7xCnF|$9Dif@N~L)Vde3hW8W!UY0BgT2v(wzp;tlLmyk2%N|0jfG$%<;A&IVrOI< z!L)o>j>;dFaqA3pL}b-Je(bB@VJ4%!JeX@3x!i{yIeIso^=n?fDX`3bU=eG7sTc%g%ye8$v8P@yKE^XD=NYxTb zbf!Mk=h|otpqjFaA-vs5YOF-*GwWPc7VbaOW&stlANnCN8iftFMMrUdYNJ_Bnn5Vt zxfz@Ah|+4&P;reZxp;MmEI7C|FOv8NKUm8njF7Wb6Gi7DeODLl&G~}G4be&*Hi0Qw z5}77vL0P+7-B%UL@3n1&JPxW^d@vVwp?u#gVcJqY9#@-3X{ok#UfW3<1fb%FT`|)V~ggq z(3AUoUS-;7)^hCjdT0Kf{i}h)mBg4qhtHHBti=~h^n^OTH5U*XMgDLIR@sre`AaB$ zg)IGBET_4??m@cx&c~bA80O7B8CHR7(LX7%HThkeC*@vi{-pL%e)yXp!B2InafbDF zjPXf1mko3h59{lT6EEbxKO1Z5GF71)WwowO6kY|6tjSVSWdQ}NsK2x{>i|MKZK8%Q zfu&_0D;CO-Jg0#YmyfctyJ!mRJp)e#@O0mYdp|8x;G1%OZQ3Q847YWTyy|%^cpA;m zze0(5p{tMu^lDkpe?HynyO?a1$_LJl2L&mpeKu%8YvgRNr=%2z${%WThHG=vrWY@4 zsA`OP#O&)TetZ>s%h!=+CE15lOOls&nvC~$Qz0Ph7tHiP;O$i|eDwpT{cp>+)0-|; zY$|bB+Gbel>5aRN3>c0x)4U=|X+z+{ zn*_p*EQoquRL+=+p;=lm`d71&1NqBz&_ph)MXu(Nv6&XE7(RsS)^MGj5Q?Fwude-(sq zjJ>aOq!7!EN>@(fK7EE#;i_BGvli`5U;r!YA{JRodLBc6-`n8K+Fjgwb%sX;j=qHQ z7&Tr!)!{HXoO<2BQrV9Sw?JRaLXV8HrsNevvnf>Y-6|{T!pYLl7jp$-nEE z#X!4G4L#K0qG_4Z;Cj6=;b|Be$hi4JvMH!-voxqx^@8cXp`B??eFBz2lLD8RRaRGh zn7kUfy!YV~p(R|p7iC1Rdgt$_24i0cd-S8HpG|`@my70g^y`gu%#Tf_L21-k?sRRZHK&at(*ED0P8iw{7?R$9~OF$Ko;Iu5)ur5<->x!m93Eb zFYpIx60s=Wxxw=`$aS-O&dCO_9?b1yKiPCQmSQb>T)963`*U+Ydj5kI(B(B?HNP8r z*bfSBpSu)w(Z3j7HQoRjUG(+d=IaE~tv}y14zHHs|0UcN52fT8V_<@2ep_ee{QgZG zmgp8iv4V{k;~8@I%M3<#B;2R>Ef(Gg_cQM7%}0s*^)SK6!Ym+~P^58*wnwV1BW@eG z4sZLqsUvBbFsr#8u7S1r4teQ;t)Y@jnn_m5jS$CsW1um!p&PqAcc8!zyiXHVta9QC zY~wCwCF0U%xiQPD_INKtTb;A|Zf29(mu9NI;E zc-e>*1%(LSXB`g}kd`#}O;veb<(sk~RWL|f3ljxCnEZDdNSTDV6#Td({6l&y4IjKF z^}lIUq*ZUqgTPumD)RrCN{M^jhY>E~1pn|KOZ5((%F)G|*ZQ|r4zIbrEiV%42hJV8 z3xS)=!X1+=olbdGJ=yZil?oXLct8FM{(6ikLL3E%=q#O6(H$p~gQu6T8N!plf!96| z&Q3=`L~>U0zZh;z(pGR2^S^{#PrPxTRHD1RQOON&f)Siaf`GLj#UOk&(|@0?zm;Sx ztsGt8=29-MZs5CSf1l1jNFtNt5rFNZxJPvkNu~2}7*9468TWm>nN9TP&^!;J{-h)_ z7WsHH9|F%I`Pb!>KAS3jQWKfGivTVkMJLO-HUGM_a4UQ_%RgL6WZvrW+Z4ujZn;y@ zz9$=oO!7qVTaQAA^BhX&ZxS*|5dj803M=k&2%QrXda`-Q#IoZL6E(g+tN!6CA!CP* zCpWtCujIea)ENl0liwVfj)Nc<9mV%+e@=d`haoZ*`B7+PNjEbXBkv=B+Pi^~L#EO$D$ZqTiD8f<5$eyb54-(=3 zh)6i8i|jp(@OnRrY5B8t|LFXFQVQ895n*P16cEKTrT*~yLH6Z4e*bZ5otpRDri&+A zfNbK1D5@O=sm`fN=WzWyse!za5n%^+6dHPGX#8DyIK>?9qyX}2XvBWVqbP%%D)7$= z=#$WulZlZR<{m#gU7lwqK4WS1Ne$#_P{b17qe$~UOXCl>5b|6WVh;5vVnR<%d+Lnp z$uEmML38}U4vaW8>shm6CzB(Wei3s#NAWE3)a2)z@i{4jTn;;aQS)O@l{rUM`J@K& l00vQ5JBs~;vo!vr%%-k{2_Fq1Mn4QF81S)AQ99zk{{c4yR+0b! diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties deleted file mode 100644 index 1af9e093..00000000 --- a/gradle/wrapper/gradle-wrapper.properties +++ /dev/null @@ -1,7 +0,0 @@ -distributionBase=GRADLE_USER_HOME -distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip -networkTimeout=10000 -validateDistributionUrl=true -zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew deleted file mode 100755 index 1aa94a42..00000000 --- a/gradlew +++ /dev/null @@ -1,249 +0,0 @@ -#!/bin/sh - -# -# Copyright © 2015-2021 the original authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -############################################################################## -# -# Gradle start up script for POSIX generated by Gradle. -# -# Important for running: -# -# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is -# noncompliant, but you have some other compliant shell such as ksh or -# bash, then to run this script, type that shell name before the whole -# command line, like: -# -# ksh Gradle -# -# Busybox and similar reduced shells will NOT work, because this script -# requires all of these POSIX shell features: -# * functions; -# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», -# «${var#prefix}», «${var%suffix}», and «$( cmd )»; -# * compound commands having a testable exit status, especially «case»; -# * various built-in commands including «command», «set», and «ulimit». -# -# Important for patching: -# -# (2) This script targets any POSIX shell, so it avoids extensions provided -# by Bash, Ksh, etc; in particular arrays are avoided. -# -# The "traditional" practice of packing multiple parameters into a -# space-separated string is a well documented source of bugs and security -# problems, so this is (mostly) avoided, by progressively accumulating -# options in "$@", and eventually passing that to Java. -# -# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, -# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; -# see the in-line comments for details. -# -# There are tweaks for specific operating systems such as AIX, CygWin, -# Darwin, MinGW, and NonStop. -# -# (3) This script is generated from the Groovy template -# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt -# within the Gradle project. -# -# You can find Gradle at https://github.com/gradle/gradle/. -# -############################################################################## - -# Attempt to set APP_HOME - -# Resolve links: $0 may be a link -app_path=$0 - -# Need this for daisy-chained symlinks. -while - APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path - [ -h "$app_path" ] -do - ls=$( ls -ld "$app_path" ) - link=${ls#*' -> '} - case $link in #( - /*) app_path=$link ;; #( - *) app_path=$APP_HOME$link ;; - esac -done - -# This is normally unused -# shellcheck disable=SC2034 -APP_BASE_NAME=${0##*/} -# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) -APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit - -# Use the maximum available, or set MAX_FD != -1 to use that value. -MAX_FD=maximum - -warn () { - echo "$*" -} >&2 - -die () { - echo - echo "$*" - echo - exit 1 -} >&2 - -# OS specific support (must be 'true' or 'false'). -cygwin=false -msys=false -darwin=false -nonstop=false -case "$( uname )" in #( - CYGWIN* ) cygwin=true ;; #( - Darwin* ) darwin=true ;; #( - MSYS* | MINGW* ) msys=true ;; #( - NONSTOP* ) nonstop=true ;; -esac - -CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar - - -# Determine the Java command to use to start the JVM. -if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD=$JAVA_HOME/jre/sh/java - else - JAVACMD=$JAVA_HOME/bin/java - fi - if [ ! -x "$JAVACMD" ] ; then - die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." - fi -else - JAVACMD=java - if ! command -v java >/dev/null 2>&1 - then - die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." - fi -fi - -# Increase the maximum file descriptors if we can. -if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then - case $MAX_FD in #( - max*) - # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. - # shellcheck disable=SC2039,SC3045 - MAX_FD=$( ulimit -H -n ) || - warn "Could not query maximum file descriptor limit" - esac - case $MAX_FD in #( - '' | soft) :;; #( - *) - # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. - # shellcheck disable=SC2039,SC3045 - ulimit -n "$MAX_FD" || - warn "Could not set maximum file descriptor limit to $MAX_FD" - esac -fi - -# Collect all arguments for the java command, stacking in reverse order: -# * args from the command line -# * the main class name -# * -classpath -# * -D...appname settings -# * --module-path (only if needed) -# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. - -# For Cygwin or MSYS, switch paths to Windows format before running java -if "$cygwin" || "$msys" ; then - APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) - CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) - - JAVACMD=$( cygpath --unix "$JAVACMD" ) - - # Now convert the arguments - kludge to limit ourselves to /bin/sh - for arg do - if - case $arg in #( - -*) false ;; # don't mess with options #( - /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath - [ -e "$t" ] ;; #( - *) false ;; - esac - then - arg=$( cygpath --path --ignore --mixed "$arg" ) - fi - # Roll the args list around exactly as many times as the number of - # args, so each arg winds up back in the position where it started, but - # possibly modified. - # - # NB: a `for` loop captures its iteration list before it begins, so - # changing the positional parameters here affects neither the number of - # iterations, nor the values presented in `arg`. - shift # remove old arg - set -- "$@" "$arg" # push replacement arg - done -fi - - -# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' - -# Collect all arguments for the java command: -# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, -# and any embedded shellness will be escaped. -# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be -# treated as '${Hostname}' itself on the command line. - -set -- \ - "-Dorg.gradle.appname=$APP_BASE_NAME" \ - -classpath "$CLASSPATH" \ - org.gradle.wrapper.GradleWrapperMain \ - "$@" - -# Stop when "xargs" is not available. -if ! command -v xargs >/dev/null 2>&1 -then - die "xargs is not available" -fi - -# Use "xargs" to parse quoted args. -# -# With -n1 it outputs one arg per line, with the quotes and backslashes removed. -# -# In Bash we could simply go: -# -# readarray ARGS < <( xargs -n1 <<<"$var" ) && -# set -- "${ARGS[@]}" "$@" -# -# but POSIX shell has neither arrays nor command substitution, so instead we -# post-process each arg (as a line of input to sed) to backslash-escape any -# character that might be a shell metacharacter, then use eval to reverse -# that process (while maintaining the separation between arguments), and wrap -# the whole thing up as a single "set" statement. -# -# This will of course break if any of these variables contains a newline or -# an unmatched quote. -# - -eval "set -- $( - printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | - xargs -n1 | - sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | - tr '\n' ' ' - )" '"$@"' - -exec "$JAVACMD" "$@" diff --git a/gradlew.bat b/gradlew.bat deleted file mode 100755 index 93e3f59f..00000000 --- a/gradlew.bat +++ /dev/null @@ -1,92 +0,0 @@ -@rem -@rem Copyright 2015 the original author or authors. -@rem -@rem Licensed under the Apache License, Version 2.0 (the "License"); -@rem you may not use this file except in compliance with the License. -@rem You may obtain a copy of the License at -@rem -@rem https://www.apache.org/licenses/LICENSE-2.0 -@rem -@rem Unless required by applicable law or agreed to in writing, software -@rem distributed under the License is distributed on an "AS IS" BASIS, -@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -@rem See the License for the specific language governing permissions and -@rem limitations under the License. -@rem - -@if "%DEBUG%"=="" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -set DIRNAME=%~dp0 -if "%DIRNAME%"=="" set DIRNAME=. -@rem This is normally unused -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Resolve any "." and ".." in APP_HOME to make it shorter. -for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if %ERRORLEVEL% equ 0 goto execute - -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto execute - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:execute -@rem Setup the command line - -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar - - -@rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* - -:end -@rem End local scope for the variables with windows NT shell -if %ERRORLEVEL% equ 0 goto mainEnd - -:fail -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -set EXIT_CODE=%ERRORLEVEL% -if %EXIT_CODE% equ 0 set EXIT_CODE=1 -if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% -exit /b %EXIT_CODE% - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega diff --git a/settings.gradle b/settings.gradle deleted file mode 100644 index 6942dacd..00000000 --- a/settings.gradle +++ /dev/null @@ -1,10 +0,0 @@ -/* - * This file was generated by the Gradle 'init' task. - * - * The settings file is used to specify which projects to include in your build. - * - * Detailed information about configuring a multi-project build in Gradle can be found - * in the user manual at https://docs.gradle.org/7.5.1/userguide/multi_project_builds.html - */ - -rootProject.name = 'plexapi' diff --git a/src/main/java/lukehagar/plexapi/plexapi/Activities.java b/src/main/java/lukehagar/plexapi/plexapi/Activities.java deleted file mode 100644 index 070749e0..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/Activities.java +++ /dev/null @@ -1,282 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi; - -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; -import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.nio.charset.StandardCharsets; -import java.util.Optional; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.models.operations.SDKMethodInterfaces.*; -import lukehagar.plexapi.plexapi.utils.HTTPClient; -import lukehagar.plexapi.plexapi.utils.HTTPRequest; -import lukehagar.plexapi.plexapi.utils.Hook.AfterErrorContextImpl; -import lukehagar.plexapi.plexapi.utils.Hook.AfterSuccessContextImpl; -import lukehagar.plexapi.plexapi.utils.Hook.BeforeRequestContextImpl; -import lukehagar.plexapi.plexapi.utils.JSON; -import lukehagar.plexapi.plexapi.utils.Retries.NonRetryableException; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - -/** - * Activities are awesome. They provide a way to monitor and control asynchronous operations on the server. In order to receive real-time updates for activities, a client would normally subscribe via either EventSource or Websocket endpoints. - * Activities are associated with HTTP replies via a special `X-Plex-Activity` header which contains the UUID of the activity. - * Activities are optional cancellable. If cancellable, they may be cancelled via the `DELETE` endpoint. Other details: - * - They can contain a `progress` (from 0 to 100) marking the percent completion of the activity. - * - They must contain an `type` which is used by clients to distinguish the specific activity. - * - They may contain a `Context` object with attributes which associate the activity with various specific entities (items, libraries, etc.) - * - The may contain a `Response` object which attributes which represent the result of the asynchronous operation. - * - */ -public class Activities implements - MethodCallGetServerActivities, - MethodCallCancelServerActivities { - - private final SDKConfiguration sdkConfiguration; - - Activities(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - } - - - /** - * Get Server Activities - * Get Server Activities - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetServerActivitiesRequestBuilder getServerActivities() { - return new lukehagar.plexapi.plexapi.models.operations.GetServerActivitiesRequestBuilder(this); - } - - /** - * Get Server Activities - * Get Server Activities - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetServerActivitiesResponse getServerActivitiesDirect() throws Exception { - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/activities"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getServerActivities", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getServerActivities", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getServerActivities", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getServerActivities", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetServerActivitiesResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetServerActivitiesResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetServerActivitiesResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.operations.GetServerActivitiesResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetServerActivitiesResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Cancel Server Activities - * Cancel Server Activities - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.CancelServerActivitiesRequestBuilder cancelServerActivities() { - return new lukehagar.plexapi.plexapi.models.operations.CancelServerActivitiesRequestBuilder(this); - } - - /** - * Cancel Server Activities - * Cancel Server Activities - * @param activityUUID The UUID of the activity to cancel. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.CancelServerActivitiesResponse cancelServerActivities( - String activityUUID) throws Exception { - lukehagar.plexapi.plexapi.models.operations.CancelServerActivitiesRequest request = - lukehagar.plexapi.plexapi.models.operations.CancelServerActivitiesRequest - .builder() - .activityUUID(activityUUID) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.CancelServerActivitiesRequest.class, - _baseUrl, - "/activities/{activityUUID}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "DELETE"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("cancelServerActivities", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("cancelServerActivities", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("cancelServerActivities", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("cancelServerActivities", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.CancelServerActivitiesResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.CancelServerActivitiesResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.CancelServerActivitiesResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - // no content - return _res; - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.CancelServerActivitiesResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/Authentication.java b/src/main/java/lukehagar/plexapi/plexapi/Authentication.java deleted file mode 100644 index 09fb0068..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/Authentication.java +++ /dev/null @@ -1,291 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi; - -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; -import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.nio.charset.StandardCharsets; -import java.util.Optional; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.models.operations.SDKMethodInterfaces.*; -import lukehagar.plexapi.plexapi.utils.HTTPClient; -import lukehagar.plexapi.plexapi.utils.HTTPRequest; -import lukehagar.plexapi.plexapi.utils.Hook.AfterErrorContextImpl; -import lukehagar.plexapi.plexapi.utils.Hook.AfterSuccessContextImpl; -import lukehagar.plexapi.plexapi.utils.Hook.BeforeRequestContextImpl; -import lukehagar.plexapi.plexapi.utils.JSON; -import lukehagar.plexapi.plexapi.utils.Retries.NonRetryableException; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.apache.http.NameValuePair; -import org.openapitools.jackson.nullable.JsonNullable; - -/** - * API Calls regarding authentication for Plex Media Server - * - */ -public class Authentication implements - MethodCallGetTransientToken, - MethodCallGetSourceConnectionInformation { - - private final SDKConfiguration sdkConfiguration; - - Authentication(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - } - - - /** - * Get a Transient Token. - * This endpoint provides the caller with a temporary token with the same access level as the caller's token. These tokens are valid for up to 48 hours and are destroyed if the server instance is restarted. - * - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetTransientTokenRequestBuilder getTransientToken() { - return new lukehagar.plexapi.plexapi.models.operations.GetTransientTokenRequestBuilder(this); - } - - /** - * Get a Transient Token. - * This endpoint provides the caller with a temporary token with the same access level as the caller's token. These tokens are valid for up to 48 hours and are destroyed if the server instance is restarted. - * - * @param type `delegation` - This is the only supported `type` parameter. - * @param scope `all` - This is the only supported `scope` parameter. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetTransientTokenResponse getTransientToken( - lukehagar.plexapi.plexapi.models.operations.GetTransientTokenQueryParamType type, - lukehagar.plexapi.plexapi.models.operations.Scope scope) throws Exception { - lukehagar.plexapi.plexapi.models.operations.GetTransientTokenRequest request = - lukehagar.plexapi.plexapi.models.operations.GetTransientTokenRequest - .builder() - .type(type) - .scope(scope) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/security/token"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.GetTransientTokenRequest.class, - request, - this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getTransientToken", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getTransientToken", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getTransientToken", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getTransientToken", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetTransientTokenResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetTransientTokenResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetTransientTokenResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - // no content - return _res; - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetTransientTokenResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Get Source Connection Information - * If a caller requires connection details and a transient token for a source that is known to the server, for example a cloud media provider or shared PMS, then this endpoint can be called. This endpoint is only accessible with either an admin token or a valid transient token generated from an admin token. - * Note: requires Plex Media Server >= 1.15.4. - * - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetSourceConnectionInformationRequestBuilder getSourceConnectionInformation() { - return new lukehagar.plexapi.plexapi.models.operations.GetSourceConnectionInformationRequestBuilder(this); - } - - /** - * Get Source Connection Information - * If a caller requires connection details and a transient token for a source that is known to the server, for example a cloud media provider or shared PMS, then this endpoint can be called. This endpoint is only accessible with either an admin token or a valid transient token generated from an admin token. - * Note: requires Plex Media Server >= 1.15.4. - * - * @param source The source identifier with an included prefix. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetSourceConnectionInformationResponse getSourceConnectionInformation( - String source) throws Exception { - lukehagar.plexapi.plexapi.models.operations.GetSourceConnectionInformationRequest request = - lukehagar.plexapi.plexapi.models.operations.GetSourceConnectionInformationRequest - .builder() - .source(source) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/security/resources"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.GetSourceConnectionInformationRequest.class, - request, - this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getSourceConnectionInformation", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getSourceConnectionInformation", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getSourceConnectionInformation", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getSourceConnectionInformation", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetSourceConnectionInformationResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetSourceConnectionInformationResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetSourceConnectionInformationResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - // no content - return _res; - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetSourceConnectionInformationResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/Butler.java b/src/main/java/lukehagar/plexapi/plexapi/Butler.java deleted file mode 100644 index 0665fb65..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/Butler.java +++ /dev/null @@ -1,634 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi; - -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; -import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.nio.charset.StandardCharsets; -import java.util.Optional; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.models.operations.SDKMethodInterfaces.*; -import lukehagar.plexapi.plexapi.utils.HTTPClient; -import lukehagar.plexapi.plexapi.utils.HTTPRequest; -import lukehagar.plexapi.plexapi.utils.Hook.AfterErrorContextImpl; -import lukehagar.plexapi.plexapi.utils.Hook.AfterSuccessContextImpl; -import lukehagar.plexapi.plexapi.utils.Hook.BeforeRequestContextImpl; -import lukehagar.plexapi.plexapi.utils.JSON; -import lukehagar.plexapi.plexapi.utils.Retries.NonRetryableException; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - -/** - * Butler is the task manager of the Plex Media Server Ecosystem. - * - */ -public class Butler implements - MethodCallGetButlerTasks, - MethodCallStartAllTasks, - MethodCallStopAllTasks, - MethodCallStartTask, - MethodCallStopTask { - - private final SDKConfiguration sdkConfiguration; - - Butler(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - } - - - /** - * Get Butler tasks - * Returns a list of butler tasks - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetButlerTasksRequestBuilder getButlerTasks() { - return new lukehagar.plexapi.plexapi.models.operations.GetButlerTasksRequestBuilder(this); - } - - /** - * Get Butler tasks - * Returns a list of butler tasks - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetButlerTasksResponse getButlerTasksDirect() throws Exception { - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/butler"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getButlerTasks", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getButlerTasks", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getButlerTasks", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getButlerTasks", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetButlerTasksResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetButlerTasksResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetButlerTasksResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.operations.GetButlerTasksResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetButlerTasksResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Start all Butler tasks - * This endpoint will attempt to start all Butler tasks that are enabled in the settings. Butler tasks normally run automatically during a time window configured on the server's Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: - * 1. Any tasks not scheduled to run on the current day will be skipped. - * 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. - * 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. - * 4. If we are outside the configured window, the task will start immediately. - * - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.StartAllTasksRequestBuilder startAllTasks() { - return new lukehagar.plexapi.plexapi.models.operations.StartAllTasksRequestBuilder(this); - } - - /** - * Start all Butler tasks - * This endpoint will attempt to start all Butler tasks that are enabled in the settings. Butler tasks normally run automatically during a time window configured on the server's Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: - * 1. Any tasks not scheduled to run on the current day will be skipped. - * 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. - * 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. - * 4. If we are outside the configured window, the task will start immediately. - * - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.StartAllTasksResponse startAllTasksDirect() throws Exception { - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/butler"); - - HTTPRequest _req = new HTTPRequest(_url, "POST"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("startAllTasks", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("startAllTasks", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("startAllTasks", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("startAllTasks", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.StartAllTasksResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.StartAllTasksResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.StartAllTasksResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - // no content - return _res; - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.StartAllTasksResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Stop all Butler tasks - * This endpoint will stop all currently running tasks and remove any scheduled tasks from the queue. - * - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.StopAllTasksRequestBuilder stopAllTasks() { - return new lukehagar.plexapi.plexapi.models.operations.StopAllTasksRequestBuilder(this); - } - - /** - * Stop all Butler tasks - * This endpoint will stop all currently running tasks and remove any scheduled tasks from the queue. - * - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.StopAllTasksResponse stopAllTasksDirect() throws Exception { - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/butler"); - - HTTPRequest _req = new HTTPRequest(_url, "DELETE"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("stopAllTasks", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("stopAllTasks", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("stopAllTasks", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("stopAllTasks", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.StopAllTasksResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.StopAllTasksResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.StopAllTasksResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - // no content - return _res; - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.StopAllTasksResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Start a single Butler task - * This endpoint will attempt to start a single Butler task that is enabled in the settings. Butler tasks normally run automatically during a time window configured on the server's Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: - * 1. Any tasks not scheduled to run on the current day will be skipped. - * 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. - * 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. - * 4. If we are outside the configured window, the task will start immediately. - * - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.StartTaskRequestBuilder startTask() { - return new lukehagar.plexapi.plexapi.models.operations.StartTaskRequestBuilder(this); - } - - /** - * Start a single Butler task - * This endpoint will attempt to start a single Butler task that is enabled in the settings. Butler tasks normally run automatically during a time window configured on the server's Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: - * 1. Any tasks not scheduled to run on the current day will be skipped. - * 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. - * 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. - * 4. If we are outside the configured window, the task will start immediately. - * - * @param taskName the name of the task to be started. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.StartTaskResponse startTask( - lukehagar.plexapi.plexapi.models.operations.TaskName taskName) throws Exception { - lukehagar.plexapi.plexapi.models.operations.StartTaskRequest request = - lukehagar.plexapi.plexapi.models.operations.StartTaskRequest - .builder() - .taskName(taskName) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.StartTaskRequest.class, - _baseUrl, - "/butler/{taskName}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "POST"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("startTask", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("startTask", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("startTask", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("startTask", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.StartTaskResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.StartTaskResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.StartTaskResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200", "202")) { - // no content - return _res; - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.StartTaskResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Stop a single Butler task - * 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. - * - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.StopTaskRequestBuilder stopTask() { - return new lukehagar.plexapi.plexapi.models.operations.StopTaskRequestBuilder(this); - } - - /** - * Stop a single Butler task - * 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 taskName The name of the task to be started. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.StopTaskResponse stopTask( - lukehagar.plexapi.plexapi.models.operations.PathParamTaskName taskName) throws Exception { - lukehagar.plexapi.plexapi.models.operations.StopTaskRequest request = - lukehagar.plexapi.plexapi.models.operations.StopTaskRequest - .builder() - .taskName(taskName) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.StopTaskRequest.class, - _baseUrl, - "/butler/{taskName}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "DELETE"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("stopTask", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("stopTask", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("stopTask", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("stopTask", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.StopTaskResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.StopTaskResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.StopTaskResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - // no content - return _res; - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "404", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.StopTaskResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/Hubs.java b/src/main/java/lukehagar/plexapi/plexapi/Hubs.java deleted file mode 100644 index 6c60d2eb..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/Hubs.java +++ /dev/null @@ -1,338 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi; - -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; -import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.nio.charset.StandardCharsets; -import java.util.Optional; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.models.operations.SDKMethodInterfaces.*; -import lukehagar.plexapi.plexapi.utils.HTTPClient; -import lukehagar.plexapi.plexapi.utils.HTTPRequest; -import lukehagar.plexapi.plexapi.utils.Hook.AfterErrorContextImpl; -import lukehagar.plexapi.plexapi.utils.Hook.AfterSuccessContextImpl; -import lukehagar.plexapi.plexapi.utils.Hook.BeforeRequestContextImpl; -import lukehagar.plexapi.plexapi.utils.JSON; -import lukehagar.plexapi.plexapi.utils.Retries.NonRetryableException; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.apache.http.NameValuePair; -import org.openapitools.jackson.nullable.JsonNullable; - -/** - * Hubs are a structured two-dimensional container for media, generally represented by multiple horizontal rows. - * - */ -public class Hubs implements - MethodCallGetGlobalHubs, - MethodCallGetLibraryHubs { - - private final SDKConfiguration sdkConfiguration; - - Hubs(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - } - - - /** - * Get Global Hubs - * Get Global Hubs filtered by the parameters provided. - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetGlobalHubsRequestBuilder getGlobalHubs() { - return new lukehagar.plexapi.plexapi.models.operations.GetGlobalHubsRequestBuilder(this); - } - - /** - * Get Global Hubs - * Get Global Hubs filtered by the parameters provided. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetGlobalHubsResponse getGlobalHubsDirect() throws Exception { - return getGlobalHubs(Optional.empty(), Optional.empty()); - } - /** - * Get Global Hubs - * Get Global Hubs filtered by the parameters provided. - * @param count The number of items to return with each hub. - * @param onlyTransient 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). - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetGlobalHubsResponse getGlobalHubs( - Optional count, - Optional onlyTransient) throws Exception { - lukehagar.plexapi.plexapi.models.operations.GetGlobalHubsRequest request = - lukehagar.plexapi.plexapi.models.operations.GetGlobalHubsRequest - .builder() - .count(count) - .onlyTransient(onlyTransient) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/hubs"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.GetGlobalHubsRequest.class, - request, - this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getGlobalHubs", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getGlobalHubs", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getGlobalHubs", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getGlobalHubs", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetGlobalHubsResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetGlobalHubsResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetGlobalHubsResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.operations.GetGlobalHubsResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetGlobalHubsResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Get library specific hubs - * This endpoint will return a list of library specific hubs - * - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetLibraryHubsRequestBuilder getLibraryHubs() { - return new lukehagar.plexapi.plexapi.models.operations.GetLibraryHubsRequestBuilder(this); - } - - /** - * Get library specific hubs - * This endpoint will return a list of library specific hubs - * - * @param sectionId the Id of the library to query - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetLibraryHubsResponse getLibraryHubs( - double sectionId) throws Exception { - return getLibraryHubs(sectionId, Optional.empty(), Optional.empty()); - } - /** - * Get library specific hubs - * This endpoint will return a list of library specific hubs - * - * @param sectionId the Id of the library to query - * @param count The number of items to return with each hub. - * @param onlyTransient 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). - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetLibraryHubsResponse getLibraryHubs( - double sectionId, - Optional count, - Optional onlyTransient) throws Exception { - lukehagar.plexapi.plexapi.models.operations.GetLibraryHubsRequest request = - lukehagar.plexapi.plexapi.models.operations.GetLibraryHubsRequest - .builder() - .sectionId(sectionId) - .count(count) - .onlyTransient(onlyTransient) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.GetLibraryHubsRequest.class, - _baseUrl, - "/hubs/sections/{sectionId}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.GetLibraryHubsRequest.class, - request, - this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getLibraryHubs", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getLibraryHubs", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getLibraryHubs", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getLibraryHubs", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetLibraryHubsResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetLibraryHubsResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetLibraryHubsResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.operations.GetLibraryHubsResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetLibraryHubsResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/Library.java b/src/main/java/lukehagar/plexapi/plexapi/Library.java deleted file mode 100644 index 4f3a1e9b..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/Library.java +++ /dev/null @@ -1,1857 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi; - -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; -import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.nio.charset.StandardCharsets; -import java.util.Optional; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.models.operations.SDKMethodInterfaces.*; -import lukehagar.plexapi.plexapi.utils.HTTPClient; -import lukehagar.plexapi.plexapi.utils.HTTPRequest; -import lukehagar.plexapi.plexapi.utils.Hook.AfterErrorContextImpl; -import lukehagar.plexapi.plexapi.utils.Hook.AfterSuccessContextImpl; -import lukehagar.plexapi.plexapi.utils.Hook.BeforeRequestContextImpl; -import lukehagar.plexapi.plexapi.utils.JSON; -import lukehagar.plexapi.plexapi.utils.Retries.NonRetryableException; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.apache.http.NameValuePair; -import org.openapitools.jackson.nullable.JsonNullable; - -/** - * API Calls interacting with Plex Media Server Libraries - * - */ -public class Library implements - MethodCallGetFileHash, - MethodCallGetRecentlyAdded, - MethodCallGetLibraries, - MethodCallGetLibrary, - MethodCallDeleteLibrary, - MethodCallGetLibraryItems, - MethodCallRefreshLibrary, - MethodCallSearchLibrary, - MethodCallGetMetadata, - MethodCallGetMetadataChildren, - MethodCallGetTopWatchedContent, - MethodCallGetOnDeck { - - private final SDKConfiguration sdkConfiguration; - - Library(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - } - - - /** - * Get Hash Value - * This resource returns hash values for local files - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetFileHashRequestBuilder getFileHash() { - return new lukehagar.plexapi.plexapi.models.operations.GetFileHashRequestBuilder(this); - } - - /** - * Get Hash Value - * This resource returns hash values for local files - * @param url This is the path to the local file, must be prefixed by `file://` - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetFileHashResponse getFileHash( - String url) throws Exception { - return getFileHash(url, Optional.empty()); - } - /** - * Get Hash Value - * This resource returns hash values for local files - * @param url This is the path to the local file, must be prefixed by `file://` - * @param type Item type - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetFileHashResponse getFileHash( - String url, - Optional type) throws Exception { - lukehagar.plexapi.plexapi.models.operations.GetFileHashRequest request = - lukehagar.plexapi.plexapi.models.operations.GetFileHashRequest - .builder() - .url(url) - .type(type) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/library/hashes"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.GetFileHashRequest.class, - request, - this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getFileHash", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getFileHash", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getFileHash", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getFileHash", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetFileHashResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetFileHashResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetFileHashResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - // no content - return _res; - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetFileHashResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Get Recently Added - * This endpoint will return the recently added content. - * - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetRecentlyAddedRequestBuilder getRecentlyAdded() { - return new lukehagar.plexapi.plexapi.models.operations.GetRecentlyAddedRequestBuilder(this); - } - - /** - * Get Recently Added - * This endpoint will return the recently added content. - * - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetRecentlyAddedResponse getRecentlyAddedDirect() throws Exception { - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/library/recentlyAdded"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getRecentlyAdded", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getRecentlyAdded", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getRecentlyAdded", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getRecentlyAdded", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetRecentlyAddedResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetRecentlyAddedResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetRecentlyAddedResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.operations.GetRecentlyAddedResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetRecentlyAddedResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Get All Libraries - * A library section (commonly referred to as just a library) is a collection of media. - * Libraries are typed, and depending on their type provide either a flat or a hierarchical view of the media. - * For example, a music library has an artist > albums > tracks structure, whereas a movie library is flat. - * - * Libraries have features beyond just being a collection of media; for starters, they include information about supported types, filters and sorts. - * This allows a client to provide a rich interface around the media (e.g. allow sorting movies by release year). - * - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetLibrariesRequestBuilder getLibraries() { - return new lukehagar.plexapi.plexapi.models.operations.GetLibrariesRequestBuilder(this); - } - - /** - * Get All Libraries - * A library section (commonly referred to as just a library) is a collection of media. - * Libraries are typed, and depending on their type provide either a flat or a hierarchical view of the media. - * For example, a music library has an artist > albums > tracks structure, whereas a movie library is flat. - * - * Libraries have features beyond just being a collection of media; for starters, they include information about supported types, filters and sorts. - * This allows a client to provide a rich interface around the media (e.g. allow sorting movies by release year). - * - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetLibrariesResponse getLibrariesDirect() throws Exception { - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/library/sections"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getLibraries", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getLibraries", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getLibraries", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getLibraries", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetLibrariesResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetLibrariesResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetLibrariesResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.operations.GetLibrariesResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetLibrariesResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Get Library Details - * ## Library Details Endpoint - * - * This endpoint provides comprehensive details about the library, focusing on organizational aspects rather than the content itself. - * - * The details include: - * - * ### Directories - * Organized into three categories: - * - * - **Primary Directories**: - * - Used in some clients for quick access to media subsets (e.g., "All", "On Deck"). - * - Most can be replicated via media queries. - * - Customizable by users. - * - * - **Secondary Directories**: - * - Marked with `secondary="1"`. - * - Used in older clients for structured navigation. - * - * - **Special Directories**: - * - Includes a "By Folder" entry for filesystem-based browsing. - * - Contains an obsolete `search="1"` entry for on-the-fly search dialog creation. - * - * ### Types - * Each type in the library comes with a set of filters and sorts, aiding in building dynamic media controls: - * - * - **Type Object Attributes**: - * - `key`: Endpoint for the media list of this type. - * - `type`: Metadata type (if standard Plex type). - * - `title`: Title for this content type (e.g., "Movies"). - * - * - **Filter Objects**: - * - Subset of the media query language. - * - Attributes include `filter` (name), `filterType` (data type), `key` (endpoint for value range), and `title`. - * - * - **Sort Objects**: - * - Description of sort fields. - * - Attributes include `defaultDirection` (asc/desc), `descKey` and `key` (sort parameters), and `title`. - * - * > **Note**: Filters and sorts are optional; without them, no filtering controls are rendered. - * - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetLibraryRequestBuilder getLibrary() { - return new lukehagar.plexapi.plexapi.models.operations.GetLibraryRequestBuilder(this); - } - - /** - * Get Library Details - * ## Library Details Endpoint - * - * This endpoint provides comprehensive details about the library, focusing on organizational aspects rather than the content itself. - * - * The details include: - * - * ### Directories - * Organized into three categories: - * - * - **Primary Directories**: - * - Used in some clients for quick access to media subsets (e.g., "All", "On Deck"). - * - Most can be replicated via media queries. - * - Customizable by users. - * - * - **Secondary Directories**: - * - Marked with `secondary="1"`. - * - Used in older clients for structured navigation. - * - * - **Special Directories**: - * - Includes a "By Folder" entry for filesystem-based browsing. - * - Contains an obsolete `search="1"` entry for on-the-fly search dialog creation. - * - * ### Types - * Each type in the library comes with a set of filters and sorts, aiding in building dynamic media controls: - * - * - **Type Object Attributes**: - * - `key`: Endpoint for the media list of this type. - * - `type`: Metadata type (if standard Plex type). - * - `title`: Title for this content type (e.g., "Movies"). - * - * - **Filter Objects**: - * - Subset of the media query language. - * - Attributes include `filter` (name), `filterType` (data type), `key` (endpoint for value range), and `title`. - * - * - **Sort Objects**: - * - Description of sort fields. - * - Attributes include `defaultDirection` (asc/desc), `descKey` and `key` (sort parameters), and `title`. - * - * > **Note**: Filters and sorts are optional; without them, no filtering controls are rendered. - * - * @param sectionId the Id of the library to query - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetLibraryResponse getLibrary( - double sectionId) throws Exception { - return getLibrary(sectionId, Optional.empty()); - } - /** - * Get Library Details - * ## Library Details Endpoint - * - * This endpoint provides comprehensive details about the library, focusing on organizational aspects rather than the content itself. - * - * The details include: - * - * ### Directories - * Organized into three categories: - * - * - **Primary Directories**: - * - Used in some clients for quick access to media subsets (e.g., "All", "On Deck"). - * - Most can be replicated via media queries. - * - Customizable by users. - * - * - **Secondary Directories**: - * - Marked with `secondary="1"`. - * - Used in older clients for structured navigation. - * - * - **Special Directories**: - * - Includes a "By Folder" entry for filesystem-based browsing. - * - Contains an obsolete `search="1"` entry for on-the-fly search dialog creation. - * - * ### Types - * Each type in the library comes with a set of filters and sorts, aiding in building dynamic media controls: - * - * - **Type Object Attributes**: - * - `key`: Endpoint for the media list of this type. - * - `type`: Metadata type (if standard Plex type). - * - `title`: Title for this content type (e.g., "Movies"). - * - * - **Filter Objects**: - * - Subset of the media query language. - * - Attributes include `filter` (name), `filterType` (data type), `key` (endpoint for value range), and `title`. - * - * - **Sort Objects**: - * - Description of sort fields. - * - Attributes include `defaultDirection` (asc/desc), `descKey` and `key` (sort parameters), and `title`. - * - * > **Note**: Filters and sorts are optional; without them, no filtering controls are rendered. - * - * @param sectionId the Id of the library to query - * @param includeDetails 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. - - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetLibraryResponse getLibrary( - double sectionId, - Optional includeDetails) throws Exception { - lukehagar.plexapi.plexapi.models.operations.GetLibraryRequest request = - lukehagar.plexapi.plexapi.models.operations.GetLibraryRequest - .builder() - .sectionId(sectionId) - .includeDetails(includeDetails) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.GetLibraryRequest.class, - _baseUrl, - "/library/sections/{sectionId}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.GetLibraryRequest.class, - request, - this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getLibrary", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getLibrary", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getLibrary", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getLibrary", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetLibraryResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetLibraryResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetLibraryResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.operations.GetLibraryResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetLibraryResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Delete Library Section - * Delate a library using a specific section - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.DeleteLibraryRequestBuilder deleteLibrary() { - return new lukehagar.plexapi.plexapi.models.operations.DeleteLibraryRequestBuilder(this); - } - - /** - * Delete Library Section - * Delate a library using a specific section - * @param sectionId the Id of the library to query - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.DeleteLibraryResponse deleteLibrary( - double sectionId) throws Exception { - lukehagar.plexapi.plexapi.models.operations.DeleteLibraryRequest request = - lukehagar.plexapi.plexapi.models.operations.DeleteLibraryRequest - .builder() - .sectionId(sectionId) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.DeleteLibraryRequest.class, - _baseUrl, - "/library/sections/{sectionId}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "DELETE"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("deleteLibrary", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("deleteLibrary", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("deleteLibrary", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("deleteLibrary", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.DeleteLibraryResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.DeleteLibraryResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.DeleteLibraryResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - // no content - return _res; - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.DeleteLibraryResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Get Library Items - * Fetches details from a specific section of the library identified by a section key and a tag. The tag parameter accepts the following values: - * - `all`: All items in the section. - * - `unwatched`: Items that have not been played. - * - `newest`: Items that are recently released. - * - `recentlyAdded`: Items that are recently added to the library. - * - `recentlyViewed`: Items that were recently viewed. - * - `onDeck`: Items to continue watching. - * - `collection`: Items categorized by collection. - * - `edition`: Items categorized by edition. - * - `genre`: Items categorized by genre. - * - `year`: Items categorized by year of release. - * - `decade`: Items categorized by decade. - * - `director`: Items categorized by director. - * - `actor`: Items categorized by starring actor. - * - `country`: Items categorized by country of origin. - * - `contentRating`: Items categorized by content rating. - * - `rating`: Items categorized by rating. - * - `resolution`: Items categorized by resolution. - * - `firstCharacter`: Items categorized by the first letter. - * - `folder`: Items categorized by folder. - * - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetLibraryItemsRequestBuilder getLibraryItems() { - return new lukehagar.plexapi.plexapi.models.operations.GetLibraryItemsRequestBuilder(this); - } - - /** - * Get Library Items - * Fetches details from a specific section of the library identified by a section key and a tag. The tag parameter accepts the following values: - * - `all`: All items in the section. - * - `unwatched`: Items that have not been played. - * - `newest`: Items that are recently released. - * - `recentlyAdded`: Items that are recently added to the library. - * - `recentlyViewed`: Items that were recently viewed. - * - `onDeck`: Items to continue watching. - * - `collection`: Items categorized by collection. - * - `edition`: Items categorized by edition. - * - `genre`: Items categorized by genre. - * - `year`: Items categorized by year of release. - * - `decade`: Items categorized by decade. - * - `director`: Items categorized by director. - * - `actor`: Items categorized by starring actor. - * - `country`: Items categorized by country of origin. - * - `contentRating`: Items categorized by content rating. - * - `rating`: Items categorized by rating. - * - `resolution`: Items categorized by resolution. - * - `firstCharacter`: Items categorized by the first letter. - * - `folder`: Items categorized by folder. - * - * @param sectionId the Id of the library to query - * @param tag A key representing a specific tag within the section. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetLibraryItemsResponse getLibraryItems( - java.lang.Object sectionId, - lukehagar.plexapi.plexapi.models.operations.Tag tag) throws Exception { - return getLibraryItems(sectionId, tag, Optional.empty()); - } - /** - * Get Library Items - * Fetches details from a specific section of the library identified by a section key and a tag. The tag parameter accepts the following values: - * - `all`: All items in the section. - * - `unwatched`: Items that have not been played. - * - `newest`: Items that are recently released. - * - `recentlyAdded`: Items that are recently added to the library. - * - `recentlyViewed`: Items that were recently viewed. - * - `onDeck`: Items to continue watching. - * - `collection`: Items categorized by collection. - * - `edition`: Items categorized by edition. - * - `genre`: Items categorized by genre. - * - `year`: Items categorized by year of release. - * - `decade`: Items categorized by decade. - * - `director`: Items categorized by director. - * - `actor`: Items categorized by starring actor. - * - `country`: Items categorized by country of origin. - * - `contentRating`: Items categorized by content rating. - * - `rating`: Items categorized by rating. - * - `resolution`: Items categorized by resolution. - * - `firstCharacter`: Items categorized by the first letter. - * - `folder`: Items categorized by folder. - * - * @param sectionId the Id of the library to query - * @param tag A key representing a specific tag within the section. - * @param includeGuids Adds the Guids object to the response - - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetLibraryItemsResponse getLibraryItems( - java.lang.Object sectionId, - lukehagar.plexapi.plexapi.models.operations.Tag tag, - Optional includeGuids) throws Exception { - lukehagar.plexapi.plexapi.models.operations.GetLibraryItemsRequest request = - lukehagar.plexapi.plexapi.models.operations.GetLibraryItemsRequest - .builder() - .sectionId(sectionId) - .tag(tag) - .includeGuids(includeGuids) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.GetLibraryItemsRequest.class, - _baseUrl, - "/library/sections/{sectionId}/{tag}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.GetLibraryItemsRequest.class, - request, - this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getLibraryItems", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getLibraryItems", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getLibraryItems", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getLibraryItems", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetLibraryItemsResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetLibraryItemsResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetLibraryItemsResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.operations.GetLibraryItemsResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetLibraryItemsResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Refresh Library - * This endpoint Refreshes the library. - * - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.RefreshLibraryRequestBuilder refreshLibrary() { - return new lukehagar.plexapi.plexapi.models.operations.RefreshLibraryRequestBuilder(this); - } - - /** - * Refresh Library - * This endpoint Refreshes the library. - * - * @param sectionId the Id of the library to refresh - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.RefreshLibraryResponse refreshLibrary( - double sectionId) throws Exception { - lukehagar.plexapi.plexapi.models.operations.RefreshLibraryRequest request = - lukehagar.plexapi.plexapi.models.operations.RefreshLibraryRequest - .builder() - .sectionId(sectionId) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.RefreshLibraryRequest.class, - _baseUrl, - "/library/sections/{sectionId}/refresh", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("refreshLibrary", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("refreshLibrary", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("refreshLibrary", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("refreshLibrary", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.RefreshLibraryResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.RefreshLibraryResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.RefreshLibraryResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - // no content - return _res; - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.RefreshLibraryResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Search Library - * Search for content within a specific section of the library. - * - * ### Types - * Each type in the library comes with a set of filters and sorts, aiding in building dynamic media controls: - * - * - **Type Object Attributes**: - * - `type`: Metadata type (if standard Plex type). - * - `title`: Title for this content type (e.g., "Movies"). - * - * - **Filter Objects**: - * - Subset of the media query language. - * - Attributes include `filter` (name), `filterType` (data type), `key` (endpoint for value range), and `title`. - * - * - **Sort Objects**: - * - Description of sort fields. - * - Attributes include `defaultDirection` (asc/desc), `descKey` and `key` (sort parameters), and `title`. - * - * > **Note**: Filters and sorts are optional; without them, no filtering controls are rendered. - * - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.SearchLibraryRequestBuilder searchLibrary() { - return new lukehagar.plexapi.plexapi.models.operations.SearchLibraryRequestBuilder(this); - } - - /** - * Search Library - * Search for content within a specific section of the library. - * - * ### Types - * Each type in the library comes with a set of filters and sorts, aiding in building dynamic media controls: - * - * - **Type Object Attributes**: - * - `type`: Metadata type (if standard Plex type). - * - `title`: Title for this content type (e.g., "Movies"). - * - * - **Filter Objects**: - * - Subset of the media query language. - * - Attributes include `filter` (name), `filterType` (data type), `key` (endpoint for value range), and `title`. - * - * - **Sort Objects**: - * - Description of sort fields. - * - Attributes include `defaultDirection` (asc/desc), `descKey` and `key` (sort parameters), and `title`. - * - * > **Note**: Filters and sorts are optional; without them, no filtering controls are rendered. - * - * @param sectionId the Id of the library to query - * @param type Plex content type to search for - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.SearchLibraryResponse searchLibrary( - long sectionId, - lukehagar.plexapi.plexapi.models.operations.Type type) throws Exception { - lukehagar.plexapi.plexapi.models.operations.SearchLibraryRequest request = - lukehagar.plexapi.plexapi.models.operations.SearchLibraryRequest - .builder() - .sectionId(sectionId) - .type(type) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.SearchLibraryRequest.class, - _baseUrl, - "/library/sections/{sectionId}/search", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.SearchLibraryRequest.class, - request, - this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("searchLibrary", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("searchLibrary", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("searchLibrary", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("searchLibrary", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.SearchLibraryResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.SearchLibraryResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.SearchLibraryResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.operations.SearchLibraryResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.SearchLibraryResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Get Items Metadata - * This endpoint will return the metadata of a library item specified with the ratingKey. - * - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetMetadataRequestBuilder getMetadata() { - return new lukehagar.plexapi.plexapi.models.operations.GetMetadataRequestBuilder(this); - } - - /** - * Get Items Metadata - * This endpoint will return the metadata of a library item specified with the ratingKey. - * - * @param ratingKey the id of the library item to return the children of. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetMetadataResponse getMetadata( - double ratingKey) throws Exception { - lukehagar.plexapi.plexapi.models.operations.GetMetadataRequest request = - lukehagar.plexapi.plexapi.models.operations.GetMetadataRequest - .builder() - .ratingKey(ratingKey) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.GetMetadataRequest.class, - _baseUrl, - "/library/metadata/{ratingKey}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getMetadata", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getMetadata", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getMetadata", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getMetadata", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetMetadataResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetMetadataResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetMetadataResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.operations.GetMetadataResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetMetadataResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Get Items Children - * This endpoint will return the children of of a library item specified with the ratingKey. - * - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetMetadataChildrenRequestBuilder getMetadataChildren() { - return new lukehagar.plexapi.plexapi.models.operations.GetMetadataChildrenRequestBuilder(this); - } - - /** - * Get Items Children - * This endpoint will return the children of of a library item specified with the ratingKey. - * - * @param ratingKey the id of the library item to return the children of. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetMetadataChildrenResponse getMetadataChildren( - double ratingKey) throws Exception { - return getMetadataChildren(ratingKey, Optional.empty()); - } - /** - * Get Items Children - * This endpoint will return the children of of a library item specified with the ratingKey. - * - * @param ratingKey the id of the library item to return the children of. - * @param includeElements Adds additional elements to the response. Supported types are (Stream) - - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetMetadataChildrenResponse getMetadataChildren( - double ratingKey, - Optional includeElements) throws Exception { - lukehagar.plexapi.plexapi.models.operations.GetMetadataChildrenRequest request = - lukehagar.plexapi.plexapi.models.operations.GetMetadataChildrenRequest - .builder() - .ratingKey(ratingKey) - .includeElements(includeElements) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.GetMetadataChildrenRequest.class, - _baseUrl, - "/library/metadata/{ratingKey}/children", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.GetMetadataChildrenRequest.class, - request, - this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getMetadataChildren", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getMetadataChildren", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getMetadataChildren", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getMetadataChildren", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetMetadataChildrenResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetMetadataChildrenResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetMetadataChildrenResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.operations.GetMetadataChildrenResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetMetadataChildrenResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Get Top Watched Content - * This endpoint will return the top watched content from libraries of a certain type - * - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetTopWatchedContentRequestBuilder getTopWatchedContent() { - return new lukehagar.plexapi.plexapi.models.operations.GetTopWatchedContentRequestBuilder(this); - } - - /** - * Get Top Watched Content - * This endpoint will return the top watched content from libraries of a certain type - * - * @param type the library type (1 - movies, 2 - shows, 3 - music) - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetTopWatchedContentResponse getTopWatchedContent( - long type) throws Exception { - return getTopWatchedContent(type, Optional.empty()); - } - /** - * Get Top Watched Content - * This endpoint will return the top watched content from libraries of a certain type - * - * @param type the library type (1 - movies, 2 - shows, 3 - music) - * @param includeGuids Adds the Guids object to the response - - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetTopWatchedContentResponse getTopWatchedContent( - long type, - Optional includeGuids) throws Exception { - lukehagar.plexapi.plexapi.models.operations.GetTopWatchedContentRequest request = - lukehagar.plexapi.plexapi.models.operations.GetTopWatchedContentRequest - .builder() - .type(type) - .includeGuids(includeGuids) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/library/all/top"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.GetTopWatchedContentRequest.class, - request, - this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getTopWatchedContent", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getTopWatchedContent", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getTopWatchedContent", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getTopWatchedContent", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetTopWatchedContentResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetTopWatchedContentResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetTopWatchedContentResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.operations.GetTopWatchedContentResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Get On Deck - * This endpoint will return the on deck content. - * - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetOnDeckRequestBuilder getOnDeck() { - return new lukehagar.plexapi.plexapi.models.operations.GetOnDeckRequestBuilder(this); - } - - /** - * Get On Deck - * This endpoint will return the on deck content. - * - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetOnDeckResponse getOnDeckDirect() throws Exception { - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/library/onDeck"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getOnDeck", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getOnDeck", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getOnDeck", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getOnDeck", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetOnDeckResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetOnDeckResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetOnDeckResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.operations.GetOnDeckResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetOnDeckResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/Log.java b/src/main/java/lukehagar/plexapi/plexapi/Log.java deleted file mode 100644 index ff04d575..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/Log.java +++ /dev/null @@ -1,446 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi; - -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; -import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.nio.charset.StandardCharsets; -import java.util.Optional; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.models.operations.SDKMethodInterfaces.*; -import lukehagar.plexapi.plexapi.utils.HTTPClient; -import lukehagar.plexapi.plexapi.utils.HTTPRequest; -import lukehagar.plexapi.plexapi.utils.Hook.AfterErrorContextImpl; -import lukehagar.plexapi.plexapi.utils.Hook.AfterSuccessContextImpl; -import lukehagar.plexapi.plexapi.utils.Hook.BeforeRequestContextImpl; -import lukehagar.plexapi.plexapi.utils.JSON; -import lukehagar.plexapi.plexapi.utils.Retries.NonRetryableException; -import lukehagar.plexapi.plexapi.utils.SerializedBody; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.apache.http.NameValuePair; -import org.openapitools.jackson.nullable.JsonNullable; - -/** - * Submit logs to the Log Handler for Plex Media Server - * - */ -public class Log implements - MethodCallLogLine, - MethodCallLogMultiLine, - MethodCallEnablePaperTrail { - - private final SDKConfiguration sdkConfiguration; - - Log(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - } - - - /** - * Logging a single line message. - * This endpoint will write a single-line log message, including a level and source to the main Plex Media Server log. - * - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.LogLineRequestBuilder logLine() { - return new lukehagar.plexapi.plexapi.models.operations.LogLineRequestBuilder(this); - } - - /** - * Logging a single line message. - * This endpoint will write a single-line log message, including a level and source to the main Plex Media Server log. - * - * @param level An integer log level to write to the PMS log with. - 0: Error - 1: Warning - 2: Info - 3: Debug - 4: Verbose - - * @param message The text of the message to write to the log. - * @param source a string indicating the source of the message. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.LogLineResponse logLine( - lukehagar.plexapi.plexapi.models.operations.Level level, - String message, - String source) throws Exception { - lukehagar.plexapi.plexapi.models.operations.LogLineRequest request = - lukehagar.plexapi.plexapi.models.operations.LogLineRequest - .builder() - .level(level) - .message(message) - .source(source) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/log"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.LogLineRequest.class, - request, - this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("logLine", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("logLine", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("logLine", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("logLine", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.LogLineResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.LogLineResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.LogLineResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - // no content - return _res; - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.LogLineResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Logging a multi-line message - * This endpoint allows for the batch addition of log entries to the main Plex Media Server log. - * It accepts a text/plain request body, where each line represents a distinct log entry. - * Each log entry consists of URL-encoded key-value pairs, specifying log attributes such as 'level', 'message', and 'source'. - * - * Log entries are separated by a newline character (`\n`). - * Each entry's parameters should be URL-encoded to ensure accurate parsing and handling of special characters. - * This method is efficient for logging multiple entries in a single API call, reducing the overhead of multiple individual requests. - * - * The 'level' parameter specifies the log entry's severity or importance, with the following integer values: - * - `0`: Error - Critical issues that require immediate attention. - * - `1`: Warning - Important events that are not critical but may indicate potential issues. - * - `2`: Info - General informational messages about system operation. - * - `3`: Debug - Detailed information useful for debugging purposes. - * - `4`: Verbose - Highly detailed diagnostic information for in-depth analysis. - * - * The 'message' parameter contains the log text, and 'source' identifies the log message's origin (e.g., an application name or module). - * - * Example of a single log entry format: - * `level=4&message=Sample%20log%20entry&source=applicationName` - * - * Ensure each parameter is properly URL-encoded to avoid interpretation issues. - * - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.LogMultiLineRequestBuilder logMultiLine() { - return new lukehagar.plexapi.plexapi.models.operations.LogMultiLineRequestBuilder(this); - } - - /** - * Logging a multi-line message - * This endpoint allows for the batch addition of log entries to the main Plex Media Server log. - * It accepts a text/plain request body, where each line represents a distinct log entry. - * Each log entry consists of URL-encoded key-value pairs, specifying log attributes such as 'level', 'message', and 'source'. - * - * Log entries are separated by a newline character (`\n`). - * Each entry's parameters should be URL-encoded to ensure accurate parsing and handling of special characters. - * This method is efficient for logging multiple entries in a single API call, reducing the overhead of multiple individual requests. - * - * The 'level' parameter specifies the log entry's severity or importance, with the following integer values: - * - `0`: Error - Critical issues that require immediate attention. - * - `1`: Warning - Important events that are not critical but may indicate potential issues. - * - `2`: Info - General informational messages about system operation. - * - `3`: Debug - Detailed information useful for debugging purposes. - * - `4`: Verbose - Highly detailed diagnostic information for in-depth analysis. - * - * The 'message' parameter contains the log text, and 'source' identifies the log message's origin (e.g., an application name or module). - * - * Example of a single log entry format: - * `level=4&message=Sample%20log%20entry&source=applicationName` - * - * Ensure each parameter is properly URL-encoded to avoid interpretation issues. - * - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.LogMultiLineResponse logMultiLine( - String request) throws Exception { - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/log"); - - HTTPRequest _req = new HTTPRequest(_url, "POST"); - Object _convertedRequest = Utils.convertToShape(request, Utils.JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, "request", "string", false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("logMultiLine", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("logMultiLine", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("logMultiLine", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("logMultiLine", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.LogMultiLineResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.LogMultiLineResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.LogMultiLineResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - // no content - return _res; - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.LogMultiLineResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Enabling Papertrail - * This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail networked logging site for a period of time. - * - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.EnablePaperTrailRequestBuilder enablePaperTrail() { - return new lukehagar.plexapi.plexapi.models.operations.EnablePaperTrailRequestBuilder(this); - } - - /** - * Enabling Papertrail - * This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail networked logging site for a period of time. - * - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.EnablePaperTrailResponse enablePaperTrailDirect() throws Exception { - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/log/networked"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("enablePaperTrail", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "403", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("enablePaperTrail", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("enablePaperTrail", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("enablePaperTrail", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.EnablePaperTrailResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.EnablePaperTrailResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.EnablePaperTrailResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - // no content - return _res; - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.EnablePaperTrailResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/Media.java b/src/main/java/lukehagar/plexapi/plexapi/Media.java deleted file mode 100644 index 3befc0e6..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/Media.java +++ /dev/null @@ -1,411 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi; - -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; -import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.nio.charset.StandardCharsets; -import java.util.Optional; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.models.operations.SDKMethodInterfaces.*; -import lukehagar.plexapi.plexapi.utils.HTTPClient; -import lukehagar.plexapi.plexapi.utils.HTTPRequest; -import lukehagar.plexapi.plexapi.utils.Hook.AfterErrorContextImpl; -import lukehagar.plexapi.plexapi.utils.Hook.AfterSuccessContextImpl; -import lukehagar.plexapi.plexapi.utils.Hook.BeforeRequestContextImpl; -import lukehagar.plexapi.plexapi.utils.JSON; -import lukehagar.plexapi.plexapi.utils.Retries.NonRetryableException; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.apache.http.NameValuePair; -import org.openapitools.jackson.nullable.JsonNullable; - -/** - * API Calls interacting with Plex Media Server Media - * - */ -public class Media implements - MethodCallMarkPlayed, - MethodCallMarkUnplayed, - MethodCallUpdatePlayProgress { - - private final SDKConfiguration sdkConfiguration; - - Media(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - } - - - /** - * Mark Media Played - * This will mark the provided media key as Played. - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.MarkPlayedRequestBuilder markPlayed() { - return new lukehagar.plexapi.plexapi.models.operations.MarkPlayedRequestBuilder(this); - } - - /** - * Mark Media Played - * This will mark the provided media key as Played. - * @param key The media key to mark as played - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.MarkPlayedResponse markPlayed( - double key) throws Exception { - lukehagar.plexapi.plexapi.models.operations.MarkPlayedRequest request = - lukehagar.plexapi.plexapi.models.operations.MarkPlayedRequest - .builder() - .key(key) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/:/scrobble"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.MarkPlayedRequest.class, - request, - this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("markPlayed", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("markPlayed", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("markPlayed", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("markPlayed", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.MarkPlayedResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.MarkPlayedResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.MarkPlayedResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - // no content - return _res; - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.MarkPlayedResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Mark Media Unplayed - * This will mark the provided media key as Unplayed. - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.MarkUnplayedRequestBuilder markUnplayed() { - return new lukehagar.plexapi.plexapi.models.operations.MarkUnplayedRequestBuilder(this); - } - - /** - * Mark Media Unplayed - * This will mark the provided media key as Unplayed. - * @param key The media key to mark as Unplayed - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.MarkUnplayedResponse markUnplayed( - double key) throws Exception { - lukehagar.plexapi.plexapi.models.operations.MarkUnplayedRequest request = - lukehagar.plexapi.plexapi.models.operations.MarkUnplayedRequest - .builder() - .key(key) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/:/unscrobble"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.MarkUnplayedRequest.class, - request, - this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("markUnplayed", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("markUnplayed", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("markUnplayed", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("markUnplayed", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.MarkUnplayedResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.MarkUnplayedResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.MarkUnplayedResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - // no content - return _res; - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.MarkUnplayedResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Update Media Play Progress - * This API command can be used to update the play progress of a media item. - * - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.UpdatePlayProgressRequestBuilder updatePlayProgress() { - return new lukehagar.plexapi.plexapi.models.operations.UpdatePlayProgressRequestBuilder(this); - } - - /** - * Update Media Play Progress - * This API command can be used to update the play progress of a media item. - * - * @param key the media key - * @param time The time, in milliseconds, used to set the media playback progress. - * @param state The playback state of the media item. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.UpdatePlayProgressResponse updatePlayProgress( - String key, - double time, - String state) throws Exception { - lukehagar.plexapi.plexapi.models.operations.UpdatePlayProgressRequest request = - lukehagar.plexapi.plexapi.models.operations.UpdatePlayProgressRequest - .builder() - .key(key) - .time(time) - .state(state) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/:/progress"); - - HTTPRequest _req = new HTTPRequest(_url, "POST"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.UpdatePlayProgressRequest.class, - request, - this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("updatePlayProgress", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("updatePlayProgress", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("updatePlayProgress", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("updatePlayProgress", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.UpdatePlayProgressResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.UpdatePlayProgressResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.UpdatePlayProgressResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - // no content - return _res; - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.UpdatePlayProgressResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/Playlists.java b/src/main/java/lukehagar/plexapi/plexapi/Playlists.java deleted file mode 100644 index ef2ca8dc..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/Playlists.java +++ /dev/null @@ -1,1275 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi; - -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; -import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.nio.charset.StandardCharsets; -import java.util.Optional; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.models.operations.SDKMethodInterfaces.*; -import lukehagar.plexapi.plexapi.utils.HTTPClient; -import lukehagar.plexapi.plexapi.utils.HTTPRequest; -import lukehagar.plexapi.plexapi.utils.Hook.AfterErrorContextImpl; -import lukehagar.plexapi.plexapi.utils.Hook.AfterSuccessContextImpl; -import lukehagar.plexapi.plexapi.utils.Hook.BeforeRequestContextImpl; -import lukehagar.plexapi.plexapi.utils.JSON; -import lukehagar.plexapi.plexapi.utils.Retries.NonRetryableException; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.apache.http.NameValuePair; -import org.openapitools.jackson.nullable.JsonNullable; - -/** - * Playlists are ordered collections of media. They can be dumb (just a list of media) or smart (based on a media query, such as "all albums from 2017"). - * They can be organized in (optionally nesting) folders. - * Retrieving a playlist, or its items, will trigger a refresh of its metadata. - * This may cause the duration and number of items to change. - * - */ -public class Playlists implements - MethodCallCreatePlaylist, - MethodCallGetPlaylists, - MethodCallGetPlaylist, - MethodCallDeletePlaylist, - MethodCallUpdatePlaylist, - MethodCallGetPlaylistContents, - MethodCallClearPlaylistContents, - MethodCallAddPlaylistContents, - MethodCallUploadPlaylist { - - private final SDKConfiguration sdkConfiguration; - - Playlists(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - } - - - /** - * Create a Playlist - * Create a new playlist. By default the playlist is blank. To create a playlist along with a first item, pass: - * - `uri` - The content URI for what we're playing (e.g. `server://1234/com.plexapp.plugins.library/library/metadata/1`). - * - `playQueueID` - To create a playlist from an existing play queue. - * - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.CreatePlaylistRequestBuilder createPlaylist() { - return new lukehagar.plexapi.plexapi.models.operations.CreatePlaylistRequestBuilder(this); - } - - /** - * Create a Playlist - * Create a new playlist. By default the playlist is blank. To create a playlist along with a first item, pass: - * - `uri` - The content URI for what we're playing (e.g. `server://1234/com.plexapp.plugins.library/library/metadata/1`). - * - `playQueueID` - To create a playlist from an existing play queue. - * - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.CreatePlaylistResponse createPlaylist( - lukehagar.plexapi.plexapi.models.operations.CreatePlaylistRequest request) throws Exception { - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/playlists"); - - HTTPRequest _req = new HTTPRequest(_url, "POST"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.CreatePlaylistRequest.class, - request, - this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("createPlaylist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("createPlaylist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("createPlaylist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("createPlaylist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.CreatePlaylistResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.CreatePlaylistResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.CreatePlaylistResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.operations.CreatePlaylistResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.CreatePlaylistResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Get All Playlists - * Get All Playlists given the specified filters. - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetPlaylistsRequestBuilder getPlaylists() { - return new lukehagar.plexapi.plexapi.models.operations.GetPlaylistsRequestBuilder(this); - } - - /** - * Get All Playlists - * Get All Playlists given the specified filters. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetPlaylistsResponse getPlaylistsDirect() throws Exception { - return getPlaylists(Optional.empty(), Optional.empty()); - } - /** - * Get All Playlists - * Get All Playlists given the specified filters. - * @param playlistType limit to a type of playlist. - * @param smart type of playlists to return (default is all). - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetPlaylistsResponse getPlaylists( - Optional playlistType, - Optional smart) throws Exception { - lukehagar.plexapi.plexapi.models.operations.GetPlaylistsRequest request = - lukehagar.plexapi.plexapi.models.operations.GetPlaylistsRequest - .builder() - .playlistType(playlistType) - .smart(smart) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/playlists"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.GetPlaylistsRequest.class, - request, - this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getPlaylists", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getPlaylists", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getPlaylists", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getPlaylists", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetPlaylistsResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetPlaylistsResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetPlaylistsResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.operations.GetPlaylistsResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetPlaylistsResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Retrieve Playlist - * Gets detailed metadata for a playlist. A playlist for many purposes (rating, editing metadata, tagging), can be treated like a regular metadata item: - * Smart playlist details contain the `content` attribute. This is the content URI for the generator. This can then be parsed by a client to provide smart playlist editing. - * - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetPlaylistRequestBuilder getPlaylist() { - return new lukehagar.plexapi.plexapi.models.operations.GetPlaylistRequestBuilder(this); - } - - /** - * Retrieve Playlist - * Gets detailed metadata for a playlist. A playlist for many purposes (rating, editing metadata, tagging), can be treated like a regular metadata item: - * Smart playlist details contain the `content` attribute. This is the content URI for the generator. This can then be parsed by a client to provide smart playlist editing. - * - * @param playlistID the ID of the playlist - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetPlaylistResponse getPlaylist( - double playlistID) throws Exception { - lukehagar.plexapi.plexapi.models.operations.GetPlaylistRequest request = - lukehagar.plexapi.plexapi.models.operations.GetPlaylistRequest - .builder() - .playlistID(playlistID) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.GetPlaylistRequest.class, - _baseUrl, - "/playlists/{playlistID}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getPlaylist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getPlaylist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getPlaylist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getPlaylist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetPlaylistResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetPlaylistResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetPlaylistResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.operations.GetPlaylistResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetPlaylistResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Deletes a Playlist - * This endpoint will delete a playlist - * - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.DeletePlaylistRequestBuilder deletePlaylist() { - return new lukehagar.plexapi.plexapi.models.operations.DeletePlaylistRequestBuilder(this); - } - - /** - * Deletes a Playlist - * This endpoint will delete a playlist - * - * @param playlistID the ID of the playlist - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.DeletePlaylistResponse deletePlaylist( - double playlistID) throws Exception { - lukehagar.plexapi.plexapi.models.operations.DeletePlaylistRequest request = - lukehagar.plexapi.plexapi.models.operations.DeletePlaylistRequest - .builder() - .playlistID(playlistID) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.DeletePlaylistRequest.class, - _baseUrl, - "/playlists/{playlistID}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "DELETE"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("deletePlaylist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("deletePlaylist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("deletePlaylist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("deletePlaylist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.DeletePlaylistResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.DeletePlaylistResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.DeletePlaylistResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "204")) { - // no content - return _res; - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.DeletePlaylistResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Update a Playlist - * From PMS version 1.9.1 clients can also edit playlist metadata using this endpoint as they would via `PUT /library/metadata/{playlistID}` - * - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.UpdatePlaylistRequestBuilder updatePlaylist() { - return new lukehagar.plexapi.plexapi.models.operations.UpdatePlaylistRequestBuilder(this); - } - - /** - * Update a Playlist - * From PMS version 1.9.1 clients can also edit playlist metadata using this endpoint as they would via `PUT /library/metadata/{playlistID}` - * - * @param playlistID the ID of the playlist - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.UpdatePlaylistResponse updatePlaylist( - double playlistID) throws Exception { - return updatePlaylist(playlistID, Optional.empty(), Optional.empty()); - } - /** - * Update a Playlist - * From PMS version 1.9.1 clients can also edit playlist metadata using this endpoint as they would via `PUT /library/metadata/{playlistID}` - * - * @param playlistID the ID of the playlist - * @param title name of the playlist - * @param summary summary description of the playlist - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.UpdatePlaylistResponse updatePlaylist( - double playlistID, - Optional title, - Optional summary) throws Exception { - lukehagar.plexapi.plexapi.models.operations.UpdatePlaylistRequest request = - lukehagar.plexapi.plexapi.models.operations.UpdatePlaylistRequest - .builder() - .playlistID(playlistID) - .title(title) - .summary(summary) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.UpdatePlaylistRequest.class, - _baseUrl, - "/playlists/{playlistID}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "PUT"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.UpdatePlaylistRequest.class, - request, - this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("updatePlaylist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("updatePlaylist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("updatePlaylist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("updatePlaylist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.UpdatePlaylistResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.UpdatePlaylistResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.UpdatePlaylistResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - // no content - return _res; - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.UpdatePlaylistResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Retrieve Playlist Contents - * Gets the contents of a playlist. Should be paged by clients via standard mechanisms. - * By default leaves are returned (e.g. episodes, movies). In order to return other types you can use the `type` parameter. - * For example, you could use this to display a list of recently added albums vis a smart playlist. - * Note that for dumb playlists, items have a `playlistItemID` attribute which is used for deleting or moving items. - * - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetPlaylistContentsRequestBuilder getPlaylistContents() { - return new lukehagar.plexapi.plexapi.models.operations.GetPlaylistContentsRequestBuilder(this); - } - - /** - * Retrieve Playlist Contents - * Gets the contents of a playlist. Should be paged by clients via standard mechanisms. - * By default leaves are returned (e.g. episodes, movies). In order to return other types you can use the `type` parameter. - * For example, you could use this to display a list of recently added albums vis a smart playlist. - * Note that for dumb playlists, items have a `playlistItemID` attribute which is used for deleting or moving items. - * - * @param playlistID the ID of the playlist - * @param type the metadata type of the item to return - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetPlaylistContentsResponse getPlaylistContents( - double playlistID, - double type) throws Exception { - lukehagar.plexapi.plexapi.models.operations.GetPlaylistContentsRequest request = - lukehagar.plexapi.plexapi.models.operations.GetPlaylistContentsRequest - .builder() - .playlistID(playlistID) - .type(type) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.GetPlaylistContentsRequest.class, - _baseUrl, - "/playlists/{playlistID}/items", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.GetPlaylistContentsRequest.class, - request, - this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getPlaylistContents", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getPlaylistContents", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getPlaylistContents", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getPlaylistContents", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetPlaylistContentsResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetPlaylistContentsResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetPlaylistContentsResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.operations.GetPlaylistContentsResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetPlaylistContentsResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Delete Playlist Contents - * Clears a playlist, only works with dumb playlists. Returns the playlist. - * - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.ClearPlaylistContentsRequestBuilder clearPlaylistContents() { - return new lukehagar.plexapi.plexapi.models.operations.ClearPlaylistContentsRequestBuilder(this); - } - - /** - * Delete Playlist Contents - * Clears a playlist, only works with dumb playlists. Returns the playlist. - * - * @param playlistID the ID of the playlist - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.ClearPlaylistContentsResponse clearPlaylistContents( - double playlistID) throws Exception { - lukehagar.plexapi.plexapi.models.operations.ClearPlaylistContentsRequest request = - lukehagar.plexapi.plexapi.models.operations.ClearPlaylistContentsRequest - .builder() - .playlistID(playlistID) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.ClearPlaylistContentsRequest.class, - _baseUrl, - "/playlists/{playlistID}/items", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "DELETE"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("clearPlaylistContents", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("clearPlaylistContents", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("clearPlaylistContents", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("clearPlaylistContents", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.ClearPlaylistContentsResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.ClearPlaylistContentsResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.ClearPlaylistContentsResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - // no content - return _res; - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.ClearPlaylistContentsResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Adding to a Playlist - * Adds a generator to a playlist, same parameters as the POST to create. With a dumb playlist, this adds the specified items to the playlist. - * With a smart playlist, passing a new `uri` parameter replaces the rules for the playlist. Returns the playlist. - * - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.AddPlaylistContentsRequestBuilder addPlaylistContents() { - return new lukehagar.plexapi.plexapi.models.operations.AddPlaylistContentsRequestBuilder(this); - } - - /** - * Adding to a Playlist - * Adds a generator to a playlist, same parameters as the POST to create. With a dumb playlist, this adds the specified items to the playlist. - * With a smart playlist, passing a new `uri` parameter replaces the rules for the playlist. Returns the playlist. - * - * @param playlistID the ID of the playlist - * @param uri the content URI for the playlist - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.AddPlaylistContentsResponse addPlaylistContents( - double playlistID, - String uri) throws Exception { - return addPlaylistContents(playlistID, uri, Optional.empty()); - } - /** - * Adding to a Playlist - * Adds a generator to a playlist, same parameters as the POST to create. With a dumb playlist, this adds the specified items to the playlist. - * With a smart playlist, passing a new `uri` parameter replaces the rules for the playlist. Returns the playlist. - * - * @param playlistID the ID of the playlist - * @param uri the content URI for the playlist - * @param playQueueID the play queue to add to a playlist - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.AddPlaylistContentsResponse addPlaylistContents( - double playlistID, - String uri, - Optional playQueueID) throws Exception { - lukehagar.plexapi.plexapi.models.operations.AddPlaylistContentsRequest request = - lukehagar.plexapi.plexapi.models.operations.AddPlaylistContentsRequest - .builder() - .playlistID(playlistID) - .uri(uri) - .playQueueID(playQueueID) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.AddPlaylistContentsRequest.class, - _baseUrl, - "/playlists/{playlistID}/items", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "PUT"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.AddPlaylistContentsRequest.class, - request, - this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("addPlaylistContents", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("addPlaylistContents", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("addPlaylistContents", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("addPlaylistContents", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.AddPlaylistContentsResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.AddPlaylistContentsResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.AddPlaylistContentsResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.operations.AddPlaylistContentsResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.AddPlaylistContentsResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Upload Playlist - * Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file. - * - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.UploadPlaylistRequestBuilder uploadPlaylist() { - return new lukehagar.plexapi.plexapi.models.operations.UploadPlaylistRequestBuilder(this); - } - - /** - * Upload Playlist - * Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file. - * - * @param path 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. - - * @param force 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. - - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.UploadPlaylistResponse uploadPlaylist( - String path, - lukehagar.plexapi.plexapi.models.operations.Force force) throws Exception { - lukehagar.plexapi.plexapi.models.operations.UploadPlaylistRequest request = - lukehagar.plexapi.plexapi.models.operations.UploadPlaylistRequest - .builder() - .path(path) - .force(force) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/playlists/upload"); - - HTTPRequest _req = new HTTPRequest(_url, "POST"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.UploadPlaylistRequest.class, - request, - this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("uploadPlaylist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("uploadPlaylist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("uploadPlaylist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("uploadPlaylist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.UploadPlaylistResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.UploadPlaylistResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.UploadPlaylistResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - // no content - return _res; - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.UploadPlaylistResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/Plex.java b/src/main/java/lukehagar/plexapi/plexapi/Plex.java deleted file mode 100644 index 8eb68cbe..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/Plex.java +++ /dev/null @@ -1,481 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi; - -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; -import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.models.operations.SDKMethodInterfaces.*; -import lukehagar.plexapi.plexapi.utils.HTTPClient; -import lukehagar.plexapi.plexapi.utils.HTTPRequest; -import lukehagar.plexapi.plexapi.utils.Hook.AfterErrorContextImpl; -import lukehagar.plexapi.plexapi.utils.Hook.AfterSuccessContextImpl; -import lukehagar.plexapi.plexapi.utils.Hook.BeforeRequestContextImpl; -import lukehagar.plexapi.plexapi.utils.JSON; -import lukehagar.plexapi.plexapi.utils.Retries.NonRetryableException; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.apache.http.NameValuePair; -import org.openapitools.jackson.nullable.JsonNullable; - -/** - * API Calls that perform operations directly against https://Plex.tv - * - */ -public class Plex implements - MethodCallGetHomeData, - MethodCallGetPin, - MethodCallGetToken { - - /** - * GET_PIN_SERVERS contains the list of server urls available to the SDK. - */ - public static final String[] GET_PIN_SERVERS = { - "https://plex.tv/api/v2", - }; - - /** - * GET_TOKEN_SERVERS contains the list of server urls available to the SDK. - */ - public static final String[] GET_TOKEN_SERVERS = { - "https://plex.tv/api/v2", - }; - - private final SDKConfiguration sdkConfiguration; - - Plex(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - } - - - /** - * Get Plex Home Data - * Retrieves the home data for the authenticated user, including details like home ID, name, guest access information, and subscription status. - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetHomeDataRequestBuilder getHomeData() { - return new lukehagar.plexapi.plexapi.models.operations.GetHomeDataRequestBuilder(this); - } - - /** - * Get Plex Home Data - * Retrieves the home data for the authenticated user, including details like home ID, name, guest access information, and subscription status. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetHomeDataResponse getHomeDataDirect() throws Exception { - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/home"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getHomeData", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getHomeData", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getHomeData", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getHomeData", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetHomeDataResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetHomeDataResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetHomeDataResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.operations.GetHomeDataResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetHomeDataResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Get a Pin - * Retrieve a Pin from Plex.tv for authentication flows - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetPinRequestBuilder getPin() { - return new lukehagar.plexapi.plexapi.models.operations.GetPinRequestBuilder(this); - } - - /** - * Get a Pin - * Retrieve a Pin from Plex.tv for authentication flows - * @param xPlexProduct Product name of the application shown in the list of devices - - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetPinResponse getPin( - String xPlexProduct) throws Exception { - return getPin(Optional.empty(), Optional.empty(), xPlexProduct, Optional.empty()); - } - /** - * Get a Pin - * Retrieve a Pin from Plex.tv for authentication flows - * @param strong Determines the kind of code returned by the API call - Strong codes are used for Pin authentication flows - Non-Strong codes are used for `Plex.tv/link` - - * @param xPlexClientIdentifier 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) - - * @param xPlexProduct Product name of the application shown in the list of devices - - * @param serverURL Overrides the server URL. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetPinResponse getPin( - Optional strong, - Optional xPlexClientIdentifier, - String xPlexProduct, - java.util.Optional serverURL) throws Exception { - lukehagar.plexapi.plexapi.models.operations.GetPinRequest request = - lukehagar.plexapi.plexapi.models.operations.GetPinRequest - .builder() - .strong(strong) - .xPlexClientIdentifier(xPlexClientIdentifier) - .xPlexProduct(xPlexProduct) - .build(); - - String _baseUrl = Utils.templateUrl(GET_PIN_SERVERS[0], new java.util.HashMap()); - if (serverURL.isPresent() && !serverURL.get().isBlank()) { - _baseUrl = serverURL.get(); - } - String _url = Utils.generateURL( - _baseUrl, - "/pins"); - - HTTPRequest _req = new HTTPRequest(_url, "POST"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.GetPinRequest.class, - request, - this.sdkConfiguration.globals)); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getPin", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getPin", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getPin", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getPin", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetPinResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetPinResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetPinResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "201")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.operations.GetPinResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetPinResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Get Access Token - * Retrieve an Access Token from Plex.tv after the Pin has already been authenticated - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetTokenRequestBuilder getToken() { - return new lukehagar.plexapi.plexapi.models.operations.GetTokenRequestBuilder(this); - } - - /** - * Get Access Token - * Retrieve an Access Token from Plex.tv after the Pin has already been authenticated - * @param pinID The PinID to retrieve an access token for - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetTokenResponse getToken( - String pinID) throws Exception { - return getToken(pinID, Optional.empty(), Optional.empty()); - } - /** - * Get Access Token - * Retrieve an Access Token from Plex.tv after the Pin has already been authenticated - * @param pinID The PinID to retrieve an access token for - * @param xPlexClientIdentifier 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) - - * @param serverURL Overrides the server URL. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetTokenResponse getToken( - String pinID, - Optional xPlexClientIdentifier, - java.util.Optional serverURL) throws Exception { - lukehagar.plexapi.plexapi.models.operations.GetTokenRequest request = - lukehagar.plexapi.plexapi.models.operations.GetTokenRequest - .builder() - .pinID(pinID) - .xPlexClientIdentifier(xPlexClientIdentifier) - .build(); - - String _baseUrl = Utils.templateUrl(GET_TOKEN_SERVERS[0], new java.util.HashMap()); - if (serverURL.isPresent() && !serverURL.get().isBlank()) { - _baseUrl = serverURL.get(); - } - String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.GetTokenRequest.class, - _baseUrl, - "/pins/{pinID}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - _req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals)); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getToken", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getToken", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getToken", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getToken", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetTokenResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetTokenResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetTokenResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.operations.GetTokenResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetTokenResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/PlexAPI.java b/src/main/java/lukehagar/plexapi/plexapi/PlexAPI.java deleted file mode 100644 index 4bca489a..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/PlexAPI.java +++ /dev/null @@ -1,515 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi; - -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpRequest; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.models.operations.SDKMethodInterfaces.*; -import lukehagar.plexapi.plexapi.utils.HTTPClient; -import lukehagar.plexapi.plexapi.utils.Hook.AfterErrorContextImpl; -import lukehagar.plexapi.plexapi.utils.Hook.AfterSuccessContextImpl; -import lukehagar.plexapi.plexapi.utils.Hook.BeforeRequestContextImpl; -import lukehagar.plexapi.plexapi.utils.Retries.NonRetryableException; -import lukehagar.plexapi.plexapi.utils.RetryConfig; -import lukehagar.plexapi.plexapi.utils.SpeakeasyHTTPClient; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - -/** - * Plex-API: A Plex Media Server API Map - * An Open API Spec for interacting with Plex.tv and Plex Servers - */ -public class PlexAPI { - - - /** - * SERVERS contains the list of server urls available to the SDK. - */ - public static final String[] SERVERS = { - /** - * The full address of your Plex Server - */ - "{protocol}://{ip}:{port}", - }; - - /** - * Operations against the Plex Media Server System. - * - */ - private final Server server; - - /** - * API Calls interacting with Plex Media Server Media - * - */ - private final Media media; - - /** - * API Calls that perform operations with Plex Media Server Videos - * - */ - private final Video video; - - /** - * Activities are awesome. They provide a way to monitor and control asynchronous operations on the server. In order to receive real-time updates for activities, a client would normally subscribe via either EventSource or Websocket endpoints. - * Activities are associated with HTTP replies via a special `X-Plex-Activity` header which contains the UUID of the activity. - * Activities are optional cancellable. If cancellable, they may be cancelled via the `DELETE` endpoint. Other details: - * - They can contain a `progress` (from 0 to 100) marking the percent completion of the activity. - * - They must contain an `type` which is used by clients to distinguish the specific activity. - * - They may contain a `Context` object with attributes which associate the activity with various specific entities (items, libraries, etc.) - * - The may contain a `Response` object which attributes which represent the result of the asynchronous operation. - * - */ - private final Activities activities; - - /** - * Butler is the task manager of the Plex Media Server Ecosystem. - * - */ - private final Butler butler; - - /** - * API Calls that perform operations directly against https://Plex.tv - * - */ - private final Plex plex; - - /** - * Hubs are a structured two-dimensional container for media, generally represented by multiple horizontal rows. - * - */ - private final Hubs hubs; - - /** - * API Calls that perform search operations with Plex Media Server - * - */ - private final Search search; - - /** - * API Calls interacting with Plex Media Server Libraries - * - */ - private final Library library; - - /** - * Submit logs to the Log Handler for Plex Media Server - * - */ - private final Log log; - - /** - * Playlists are ordered collections of media. They can be dumb (just a list of media) or smart (based on a media query, such as "all albums from 2017"). - * They can be organized in (optionally nesting) folders. - * Retrieving a playlist, or its items, will trigger a refresh of its metadata. - * This may cause the duration and number of items to change. - * - */ - private final Playlists playlists; - - /** - * API Calls regarding authentication for Plex Media Server - * - */ - private final Authentication authentication; - - /** - * API Calls that perform operations with Plex Media Server Statistics - * - */ - private final Statistics statistics; - - /** - * API Calls that perform search operations with Plex Media Server Sessions - * - */ - private final Sessions sessions; - - /** - * This describes the API for searching and applying updates to the Plex Media Server. - * Updates to the status can be observed via the Event API. - * - */ - private final Updater updater; - - /** - * API Calls that perform operations with Plex Media Server Watchlists - * - */ - private final Watchlist watchlist; - - /** - * Operations against the Plex Media Server System. - * - */ - public Server server() { - return server; - } - - /** - * API Calls interacting with Plex Media Server Media - * - */ - public Media media() { - return media; - } - - /** - * API Calls that perform operations with Plex Media Server Videos - * - */ - public Video video() { - return video; - } - - /** - * Activities are awesome. They provide a way to monitor and control asynchronous operations on the server. In order to receive real-time updates for activities, a client would normally subscribe via either EventSource or Websocket endpoints. - * Activities are associated with HTTP replies via a special `X-Plex-Activity` header which contains the UUID of the activity. - * Activities are optional cancellable. If cancellable, they may be cancelled via the `DELETE` endpoint. Other details: - * - They can contain a `progress` (from 0 to 100) marking the percent completion of the activity. - * - They must contain an `type` which is used by clients to distinguish the specific activity. - * - They may contain a `Context` object with attributes which associate the activity with various specific entities (items, libraries, etc.) - * - The may contain a `Response` object which attributes which represent the result of the asynchronous operation. - * - */ - public Activities activities() { - return activities; - } - - /** - * Butler is the task manager of the Plex Media Server Ecosystem. - * - */ - public Butler butler() { - return butler; - } - - /** - * API Calls that perform operations directly against https://Plex.tv - * - */ - public Plex plex() { - return plex; - } - - /** - * Hubs are a structured two-dimensional container for media, generally represented by multiple horizontal rows. - * - */ - public Hubs hubs() { - return hubs; - } - - /** - * API Calls that perform search operations with Plex Media Server - * - */ - public Search search() { - return search; - } - - /** - * API Calls interacting with Plex Media Server Libraries - * - */ - public Library library() { - return library; - } - - /** - * Submit logs to the Log Handler for Plex Media Server - * - */ - public Log log() { - return log; - } - - /** - * Playlists are ordered collections of media. They can be dumb (just a list of media) or smart (based on a media query, such as "all albums from 2017"). - * They can be organized in (optionally nesting) folders. - * Retrieving a playlist, or its items, will trigger a refresh of its metadata. - * This may cause the duration and number of items to change. - * - */ - public Playlists playlists() { - return playlists; - } - - /** - * API Calls regarding authentication for Plex Media Server - * - */ - public Authentication authentication() { - return authentication; - } - - /** - * API Calls that perform operations with Plex Media Server Statistics - * - */ - public Statistics statistics() { - return statistics; - } - - /** - * API Calls that perform search operations with Plex Media Server Sessions - * - */ - public Sessions sessions() { - return sessions; - } - - /** - * This describes the API for searching and applying updates to the Plex Media Server. - * Updates to the status can be observed via the Event API. - * - */ - public Updater updater() { - return updater; - } - - /** - * API Calls that perform operations with Plex Media Server Watchlists - * - */ - public Watchlist watchlist() { - return watchlist; - } - - private final SDKConfiguration sdkConfiguration; - - /** - * The Builder class allows the configuration of a new instance of the SDK. - */ - public static class Builder { - - private final SDKConfiguration sdkConfiguration = new SDKConfiguration(); - - private Builder() { - } - - /** - * Allows the default HTTP client to be overridden with a custom implementation. - * - * @param client The HTTP client to use for all requests. - * @return The builder instance. - */ - public Builder client(HTTPClient client) { - this.sdkConfiguration.defaultClient = client; - return this; - } - /** - * Configures the SDK security to use the provided secret. - * - * @param accessToken The secret to use for all requests. - * @return The builder instance. - */ - public Builder accessToken(String accessToken) { - this.sdkConfiguration.securitySource = SecuritySource.of(lukehagar.plexapi.plexapi.models.shared.Security.builder() - .accessToken(accessToken) - .build()); - return this; - } - - /** - * Configures the SDK to use a custom security source. - * @param securitySource The security source to use for all requests. - * @return The builder instance. - */ - public Builder securitySource(SecuritySource securitySource) { - this.sdkConfiguration.securitySource = securitySource; - return this; - } - - /** - * Overrides the default server URL. - * - * @param serverUrl The server URL to use for all requests. - * @return The builder instance. - */ - public Builder serverURL(String serverUrl) { - this.sdkConfiguration.serverUrl = serverUrl; - return this; - } - - /** - * Overrides the default server URL with a templated URL populated with the provided parameters. - * - * @param serverUrl The server URL to use for all requests. - * @param params The parameters to use when templating the URL. - * @return The builder instance. - */ - public Builder serverURL(String serverUrl, java.util.Map params) { - this.sdkConfiguration.serverUrl = lukehagar.plexapi.plexapi.utils.Utils.templateUrl(serverUrl, params); - return this; - } - - /** - * Overrides the default server by index. - * - * @param serverIdx The server to use for all requests. - * @return The builder instance. - */ - public Builder serverIndex(int serverIdx) { - this.sdkConfiguration.serverIdx = serverIdx; - this.sdkConfiguration.serverUrl = SERVERS[serverIdx]; - return this; - } - - /** - * Overrides the default configuration for retries - * - * @param retryConfig The retry configuration to use for all requests. - * @return The builder instance. - */ - public Builder retryConfig(RetryConfig retryConfig) { - this.sdkConfiguration.retryConfig = Optional.of(retryConfig); - return this; - } - public enum ServerProtocol { - HTTP("http"), - HTTPS("https"); - - @JsonValue - private final String value; - - private ServerProtocol(String value) { - this.value = value; - } - - public String value() { - return value; - } - } - - /** - * Sets the protocol variable for url substitution. - * - * @param protocol The value to set. - * @return The builder instance. - */ - public Builder protocol(ServerProtocol protocol) { - for (java.util.Map server : this.sdkConfiguration.serverDefaults) { - if (!server.containsKey("protocol")) { - continue; - } - server.put("protocol", protocol.toString()); - } - - return this; - } - - /** - * Sets the ip variable for url substitution. - * - * @param ip The value to set. - * @return The builder instance. - */ - public Builder ip(String ip) { - for (java.util.Map server : this.sdkConfiguration.serverDefaults) { - if (!server.containsKey("ip")) { - continue; - } - server.put("ip", ip.toString()); - } - - return this; - } - - /** - * Sets the port variable for url substitution. - * - * @param port The value to set. - * @return The builder instance. - */ - public Builder port(String port) { - for (java.util.Map server : this.sdkConfiguration.serverDefaults) { - if (!server.containsKey("port")) { - continue; - } - server.put("port", port.toString()); - } - - return this; - } - - /** - * Allows setting the xPlexClientIdentifier parameter for all supported operations. - * - * @param xPlexClientIdentifier The value to set. - * @return The builder instance. - */ - public Builder xPlexClientIdentifier(String xPlexClientIdentifier) { - if (!this.sdkConfiguration.globals.get("parameters").containsKey("header")) { - this.sdkConfiguration.globals.get("parameters").put("header", new java.util.HashMap<>()); - } - - this.sdkConfiguration.globals.get("parameters").get("header").put("xPlexClientIdentifier", xPlexClientIdentifier); - - return this; - } - - // Visible for testing, will be accessed via reflection - void _hooks(lukehagar.plexapi.plexapi.utils.Hooks hooks) { - sdkConfiguration.setHooks(hooks); - } - - /** - * Builds a new instance of the SDK. - * @return The SDK instance. - */ - public PlexAPI build() { - if (sdkConfiguration.defaultClient == null) { - sdkConfiguration.defaultClient = new SpeakeasyHTTPClient(); - } - if (sdkConfiguration.securitySource == null) { - sdkConfiguration.securitySource = SecuritySource.of(null); - } - if (sdkConfiguration.serverUrl == null || sdkConfiguration.serverUrl.isBlank()) { - sdkConfiguration.serverUrl = SERVERS[0]; - sdkConfiguration.serverIdx = 0; - } - if (sdkConfiguration.serverUrl.endsWith("/")) { - sdkConfiguration.serverUrl = sdkConfiguration.serverUrl.substring(0, sdkConfiguration.serverUrl.length() - 1); - } - return new PlexAPI(sdkConfiguration); - } - } - - /** - * Get a new instance of the SDK builder to configure a new instance of the SDK. - * @return The SDK builder instance. - */ - public static Builder builder() { - return new Builder(); - } - - private PlexAPI(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - this.server = new Server(sdkConfiguration); - this.media = new Media(sdkConfiguration); - this.video = new Video(sdkConfiguration); - this.activities = new Activities(sdkConfiguration); - this.butler = new Butler(sdkConfiguration); - this.plex = new Plex(sdkConfiguration); - this.hubs = new Hubs(sdkConfiguration); - this.search = new Search(sdkConfiguration); - this.library = new Library(sdkConfiguration); - this.log = new Log(sdkConfiguration); - this.playlists = new Playlists(sdkConfiguration); - this.authentication = new Authentication(sdkConfiguration); - this.statistics = new Statistics(sdkConfiguration); - this.sessions = new Sessions(sdkConfiguration); - this.updater = new Updater(sdkConfiguration); - this.watchlist = new Watchlist(sdkConfiguration); - this.sdkConfiguration.initialize(); - }} diff --git a/src/main/java/lukehagar/plexapi/plexapi/SDKConfiguration.java b/src/main/java/lukehagar/plexapi/plexapi/SDKConfiguration.java deleted file mode 100644 index f17687b3..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/SDKConfiguration.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi; - -import lukehagar.plexapi.plexapi.utils.Hook.SdkInitData; -import lukehagar.plexapi.plexapi.utils.HTTPClient; -import lukehagar.plexapi.plexapi.utils.RetryConfig; -import lukehagar.plexapi.plexapi.models.shared.Security; -import java.util.Map; -import java.util.HashMap; -import java.util.List; -import java.util.ArrayList; -import java.util.Optional; - -class SDKConfiguration { - public SecuritySource securitySource; - - public Optional securitySource() { - return Optional.ofNullable(securitySource); - } - public HTTPClient defaultClient; - public String serverUrl; - public int serverIdx = 0; - List> serverDefaults = new ArrayList<>(){{ - add(new HashMap<>(){{ - put("protocol", "http"); - put("ip", "10.10.10.47"); - put("port", "32400"); - }}); - }}; - public String language = "java"; - public String openapiDocVersion = "0.0.3"; - public String sdkVersion = "0.1.1"; - public String genVersion = "2.356.0"; - public String userAgent = "speakeasy-sdk/java 0.1.1 2.356.0 0.0.3 lukehagar.plexapi.plexapi"; - - private lukehagar.plexapi.plexapi.utils.Hooks _hooks = createHooks(); - - private static lukehagar.plexapi.plexapi.utils.Hooks createHooks() { - lukehagar.plexapi.plexapi.utils.Hooks hooks = new lukehagar.plexapi.plexapi.utils.Hooks(); - return hooks; - } - - public lukehagar.plexapi.plexapi.utils.Hooks hooks() { - return _hooks; - } - - public void setHooks(lukehagar.plexapi.plexapi.utils.Hooks hooks) { - this._hooks = hooks; - } - - /** - * Initializes state (for example hooks). - **/ - public void initialize() { - lukehagar.plexapi.plexapi.hooks.SDKHooks.initialize(_hooks); - // apply the sdk init hook immediately - SdkInitData data = _hooks.sdkInit(new SdkInitData(serverUrl, defaultClient)); - this.serverUrl = data.baseUrl(); - this.defaultClient = data.client(); - } - - public Map>> globals = new HashMap<>(){{ - put("parameters", new HashMap<>()); - }}; - - public Map getServerVariableDefaults() { - return serverDefaults.get(this.serverIdx); - } - public Optional retryConfig = Optional.empty(); -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/Search.java b/src/main/java/lukehagar/plexapi/plexapi/Search.java deleted file mode 100644 index 06a40bba..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/Search.java +++ /dev/null @@ -1,496 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi; - -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; -import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.nio.charset.StandardCharsets; -import java.util.Optional; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.models.operations.SDKMethodInterfaces.*; -import lukehagar.plexapi.plexapi.utils.HTTPClient; -import lukehagar.plexapi.plexapi.utils.HTTPRequest; -import lukehagar.plexapi.plexapi.utils.Hook.AfterErrorContextImpl; -import lukehagar.plexapi.plexapi.utils.Hook.AfterSuccessContextImpl; -import lukehagar.plexapi.plexapi.utils.Hook.BeforeRequestContextImpl; -import lukehagar.plexapi.plexapi.utils.JSON; -import lukehagar.plexapi.plexapi.utils.Retries.NonRetryableException; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.apache.http.NameValuePair; -import org.openapitools.jackson.nullable.JsonNullable; - -/** - * API Calls that perform search operations with Plex Media Server - * - */ -public class Search implements - MethodCallPerformSearch, - MethodCallPerformVoiceSearch, - MethodCallGetSearchResults { - - private final SDKConfiguration sdkConfiguration; - - Search(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - } - - - /** - * Perform a search - * This endpoint performs a search across all library sections, or a single section, and returns matches as hubs, split up by type. It performs spell checking, looks for partial matches, and orders the hubs based on quality of results. In addition, based on matches, it will return other related matches (e.g. for a genre match, it may return movies in that genre, or for an actor match, movies with that actor). - * - * In the response's items, the following extra attributes are returned to further describe or disambiguate the result: - * - * - `reason`: The reason for the result, if not because of a direct search term match; can be either: - * - `section`: There are multiple identical results from different sections. - * - `originalTitle`: There was a search term match from the original title field (sometimes those can be very different or in a foreign language). - * - `<hub identifier>`: If the reason for the result is due to a result in another hub, the source hub identifier is returned. For example, if the search is for "dylan" then Bob Dylan may be returned as an artist result, an a few of his albums returned as album results with a reason code of `artist` (the identifier of that particular hub). Or if the search is for "arnold", there might be movie results returned with a reason of `actor` - * - `reasonTitle`: The string associated with the reason code. For a section reason, it'll be the section name; For a hub identifier, it'll be a string associated with the match (e.g. `Arnold Schwarzenegger` for movies which were returned because the search was for "arnold"). - * - `reasonID`: The ID of the item associated with the reason for the result. This might be a section ID, a tag ID, an artist ID, or a show ID. - * - * This request is intended to be very fast, and called as the user types. - * - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.PerformSearchRequestBuilder performSearch() { - return new lukehagar.plexapi.plexapi.models.operations.PerformSearchRequestBuilder(this); - } - - /** - * Perform a search - * This endpoint performs a search across all library sections, or a single section, and returns matches as hubs, split up by type. It performs spell checking, looks for partial matches, and orders the hubs based on quality of results. In addition, based on matches, it will return other related matches (e.g. for a genre match, it may return movies in that genre, or for an actor match, movies with that actor). - * - * In the response's items, the following extra attributes are returned to further describe or disambiguate the result: - * - * - `reason`: The reason for the result, if not because of a direct search term match; can be either: - * - `section`: There are multiple identical results from different sections. - * - `originalTitle`: There was a search term match from the original title field (sometimes those can be very different or in a foreign language). - * - `<hub identifier>`: If the reason for the result is due to a result in another hub, the source hub identifier is returned. For example, if the search is for "dylan" then Bob Dylan may be returned as an artist result, an a few of his albums returned as album results with a reason code of `artist` (the identifier of that particular hub). Or if the search is for "arnold", there might be movie results returned with a reason of `actor` - * - `reasonTitle`: The string associated with the reason code. For a section reason, it'll be the section name; For a hub identifier, it'll be a string associated with the match (e.g. `Arnold Schwarzenegger` for movies which were returned because the search was for "arnold"). - * - `reasonID`: The ID of the item associated with the reason for the result. This might be a section ID, a tag ID, an artist ID, or a show ID. - * - * This request is intended to be very fast, and called as the user types. - * - * @param query The query term - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.PerformSearchResponse performSearch( - String query) throws Exception { - return performSearch(query, Optional.empty(), Optional.empty()); - } - /** - * Perform a search - * This endpoint performs a search across all library sections, or a single section, and returns matches as hubs, split up by type. It performs spell checking, looks for partial matches, and orders the hubs based on quality of results. In addition, based on matches, it will return other related matches (e.g. for a genre match, it may return movies in that genre, or for an actor match, movies with that actor). - * - * In the response's items, the following extra attributes are returned to further describe or disambiguate the result: - * - * - `reason`: The reason for the result, if not because of a direct search term match; can be either: - * - `section`: There are multiple identical results from different sections. - * - `originalTitle`: There was a search term match from the original title field (sometimes those can be very different or in a foreign language). - * - `<hub identifier>`: If the reason for the result is due to a result in another hub, the source hub identifier is returned. For example, if the search is for "dylan" then Bob Dylan may be returned as an artist result, an a few of his albums returned as album results with a reason code of `artist` (the identifier of that particular hub). Or if the search is for "arnold", there might be movie results returned with a reason of `actor` - * - `reasonTitle`: The string associated with the reason code. For a section reason, it'll be the section name; For a hub identifier, it'll be a string associated with the match (e.g. `Arnold Schwarzenegger` for movies which were returned because the search was for "arnold"). - * - `reasonID`: The ID of the item associated with the reason for the result. This might be a section ID, a tag ID, an artist ID, or a show ID. - * - * This request is intended to be very fast, and called as the user types. - * - * @param query The query term - * @param sectionId This gives context to the search, and can result in re-ordering of search result hubs - * @param limit The number of items to return per hub - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.PerformSearchResponse performSearch( - String query, - Optional sectionId, - Optional limit) throws Exception { - lukehagar.plexapi.plexapi.models.operations.PerformSearchRequest request = - lukehagar.plexapi.plexapi.models.operations.PerformSearchRequest - .builder() - .query(query) - .sectionId(sectionId) - .limit(limit) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/hubs/search"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.PerformSearchRequest.class, - request, - this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("performSearch", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("performSearch", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("performSearch", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("performSearch", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.PerformSearchResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.PerformSearchResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.PerformSearchResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - // no content - return _res; - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.PerformSearchResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Perform a voice search - * This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint. - * It uses a [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) heuristic to search titles, and as such is much slower than the other search endpoint. - * Whenever possible, clients should limit the search to the appropriate type. - * Results, as well as their containing per-type hubs, contain a `distance` attribute which can be used to judge result quality. - * - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.PerformVoiceSearchRequestBuilder performVoiceSearch() { - return new lukehagar.plexapi.plexapi.models.operations.PerformVoiceSearchRequestBuilder(this); - } - - /** - * Perform a voice search - * This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint. - * It uses a [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) heuristic to search titles, and as such is much slower than the other search endpoint. - * Whenever possible, clients should limit the search to the appropriate type. - * Results, as well as their containing per-type hubs, contain a `distance` attribute which can be used to judge result quality. - * - * @param query The query term - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.PerformVoiceSearchResponse performVoiceSearch( - String query) throws Exception { - return performVoiceSearch(query, Optional.empty(), Optional.empty()); - } - /** - * Perform a voice search - * This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint. - * It uses a [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) heuristic to search titles, and as such is much slower than the other search endpoint. - * Whenever possible, clients should limit the search to the appropriate type. - * Results, as well as their containing per-type hubs, contain a `distance` attribute which can be used to judge result quality. - * - * @param query The query term - * @param sectionId This gives context to the search, and can result in re-ordering of search result hubs - * @param limit The number of items to return per hub - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.PerformVoiceSearchResponse performVoiceSearch( - String query, - Optional sectionId, - Optional limit) throws Exception { - lukehagar.plexapi.plexapi.models.operations.PerformVoiceSearchRequest request = - lukehagar.plexapi.plexapi.models.operations.PerformVoiceSearchRequest - .builder() - .query(query) - .sectionId(sectionId) - .limit(limit) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/hubs/search/voice"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.PerformVoiceSearchRequest.class, - request, - this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("performVoiceSearch", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("performVoiceSearch", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("performVoiceSearch", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("performVoiceSearch", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.PerformVoiceSearchResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.PerformVoiceSearchResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.PerformVoiceSearchResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - // no content - return _res; - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.PerformVoiceSearchResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Get Search Results - * This will search the database for the string provided. - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetSearchResultsRequestBuilder getSearchResults() { - return new lukehagar.plexapi.plexapi.models.operations.GetSearchResultsRequestBuilder(this); - } - - /** - * Get Search Results - * This will search the database for the string provided. - * @param query The search query string to use - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetSearchResultsResponse getSearchResults( - String query) throws Exception { - lukehagar.plexapi.plexapi.models.operations.GetSearchResultsRequest request = - lukehagar.plexapi.plexapi.models.operations.GetSearchResultsRequest - .builder() - .query(query) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/search"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.GetSearchResultsRequest.class, - request, - this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getSearchResults", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getSearchResults", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getSearchResults", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getSearchResults", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetSearchResultsResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetSearchResultsResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetSearchResultsResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.operations.GetSearchResultsResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetSearchResultsResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/SecuritySource.java b/src/main/java/lukehagar/plexapi/plexapi/SecuritySource.java deleted file mode 100644 index fc4deca8..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/SecuritySource.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi; - -import lukehagar.plexapi.plexapi.models.shared.Security; - -public interface SecuritySource { - - Security getSecurity(); - - public static SecuritySource of(Security security) { - return new DefaultSecuritySource(security); - } - - public static class DefaultSecuritySource implements SecuritySource { - private Security security; - - public DefaultSecuritySource(Security security) { - this.security = security; - } - - public Security getSecurity() { - return security; - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/Server.java b/src/main/java/lukehagar/plexapi/plexapi/Server.java deleted file mode 100644 index 7ba6bd16..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/Server.java +++ /dev/null @@ -1,990 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi; - -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; -import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.nio.charset.StandardCharsets; -import java.util.Optional; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.models.operations.SDKMethodInterfaces.*; -import lukehagar.plexapi.plexapi.utils.HTTPClient; -import lukehagar.plexapi.plexapi.utils.HTTPRequest; -import lukehagar.plexapi.plexapi.utils.Hook.AfterErrorContextImpl; -import lukehagar.plexapi.plexapi.utils.Hook.AfterSuccessContextImpl; -import lukehagar.plexapi.plexapi.utils.Hook.BeforeRequestContextImpl; -import lukehagar.plexapi.plexapi.utils.JSON; -import lukehagar.plexapi.plexapi.utils.Retries.NonRetryableException; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.apache.http.NameValuePair; -import org.openapitools.jackson.nullable.JsonNullable; - -/** - * Operations against the Plex Media Server System. - * - */ -public class Server implements - MethodCallGetServerCapabilities, - MethodCallGetServerPreferences, - MethodCallGetAvailableClients, - MethodCallGetDevices, - MethodCallGetServerIdentity, - MethodCallGetMyPlexAccount, - MethodCallGetResizedPhoto, - MethodCallGetServerList { - - private final SDKConfiguration sdkConfiguration; - - Server(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - } - - - /** - * Get Server Capabilities - * Get Server Capabilities - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetServerCapabilitiesRequestBuilder getServerCapabilities() { - return new lukehagar.plexapi.plexapi.models.operations.GetServerCapabilitiesRequestBuilder(this); - } - - /** - * Get Server Capabilities - * Get Server Capabilities - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetServerCapabilitiesResponse getServerCapabilitiesDirect() throws Exception { - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getServerCapabilities", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getServerCapabilities", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getServerCapabilities", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getServerCapabilities", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetServerCapabilitiesResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetServerCapabilitiesResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetServerCapabilitiesResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.operations.GetServerCapabilitiesResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetServerCapabilitiesResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Get Server Preferences - * Get Server Preferences - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetServerPreferencesRequestBuilder getServerPreferences() { - return new lukehagar.plexapi.plexapi.models.operations.GetServerPreferencesRequestBuilder(this); - } - - /** - * Get Server Preferences - * Get Server Preferences - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetServerPreferencesResponse getServerPreferencesDirect() throws Exception { - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/:/prefs"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getServerPreferences", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getServerPreferences", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getServerPreferences", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getServerPreferences", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetServerPreferencesResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetServerPreferencesResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetServerPreferencesResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.operations.GetServerPreferencesResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetServerPreferencesResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Get Available Clients - * Get Available Clients - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetAvailableClientsRequestBuilder getAvailableClients() { - return new lukehagar.plexapi.plexapi.models.operations.GetAvailableClientsRequestBuilder(this); - } - - /** - * Get Available Clients - * Get Available Clients - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetAvailableClientsResponse getAvailableClientsDirect() throws Exception { - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/clients"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getAvailableClients", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getAvailableClients", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getAvailableClients", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getAvailableClients", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetAvailableClientsResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetAvailableClientsResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetAvailableClientsResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.operations.GetAvailableClientsResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetAvailableClientsResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Get Devices - * Get Devices - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetDevicesRequestBuilder getDevices() { - return new lukehagar.plexapi.plexapi.models.operations.GetDevicesRequestBuilder(this); - } - - /** - * Get Devices - * Get Devices - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetDevicesResponse getDevicesDirect() throws Exception { - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/devices"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getDevices", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getDevices", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getDevices", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getDevices", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetDevicesResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetDevicesResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetDevicesResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.operations.GetDevicesResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetDevicesResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Get Server Identity - * Get Server Identity - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetServerIdentityRequestBuilder getServerIdentity() { - return new lukehagar.plexapi.plexapi.models.operations.GetServerIdentityRequestBuilder(this); - } - - /** - * Get Server Identity - * Get Server Identity - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetServerIdentityResponse getServerIdentityDirect() throws Exception { - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/identity"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getServerIdentity", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getServerIdentity", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getServerIdentity", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getServerIdentity", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetServerIdentityResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetServerIdentityResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetServerIdentityResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.operations.GetServerIdentityResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetServerIdentityResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Get MyPlex Account - * Returns MyPlex Account Information - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetMyPlexAccountRequestBuilder getMyPlexAccount() { - return new lukehagar.plexapi.plexapi.models.operations.GetMyPlexAccountRequestBuilder(this); - } - - /** - * Get MyPlex Account - * Returns MyPlex Account Information - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetMyPlexAccountResponse getMyPlexAccountDirect() throws Exception { - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/myplex/account"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getMyPlexAccount", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getMyPlexAccount", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getMyPlexAccount", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getMyPlexAccount", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetMyPlexAccountResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetMyPlexAccountResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetMyPlexAccountResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.operations.GetMyPlexAccountResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetMyPlexAccountResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Get a Resized Photo - * Plex's Photo transcoder is used throughout the service to serve images at specified sizes. - * - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetResizedPhotoRequestBuilder getResizedPhoto() { - return new lukehagar.plexapi.plexapi.models.operations.GetResizedPhotoRequestBuilder(this); - } - - /** - * Get a Resized Photo - * Plex's Photo transcoder is used throughout the service to serve images at specified sizes. - * - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetResizedPhotoResponse getResizedPhoto( - lukehagar.plexapi.plexapi.models.operations.GetResizedPhotoRequest request) throws Exception { - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/photo/:/transcode"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.GetResizedPhotoRequest.class, - request, - this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getResizedPhoto", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getResizedPhoto", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getResizedPhoto", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getResizedPhoto", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetResizedPhotoResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetResizedPhotoResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetResizedPhotoResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - // no content - return _res; - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetResizedPhotoResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Get Server List - * Get Server List - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetServerListRequestBuilder getServerList() { - return new lukehagar.plexapi.plexapi.models.operations.GetServerListRequestBuilder(this); - } - - /** - * Get Server List - * Get Server List - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetServerListResponse getServerListDirect() throws Exception { - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/servers"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getServerList", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getServerList", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getServerList", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getServerList", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetServerListResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetServerListResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetServerListResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.operations.GetServerListResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetServerListResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/Sessions.java b/src/main/java/lukehagar/plexapi/plexapi/Sessions.java deleted file mode 100644 index de5c4667..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/Sessions.java +++ /dev/null @@ -1,551 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi; - -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; -import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.nio.charset.StandardCharsets; -import java.util.Optional; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.models.operations.SDKMethodInterfaces.*; -import lukehagar.plexapi.plexapi.utils.HTTPClient; -import lukehagar.plexapi.plexapi.utils.HTTPRequest; -import lukehagar.plexapi.plexapi.utils.Hook.AfterErrorContextImpl; -import lukehagar.plexapi.plexapi.utils.Hook.AfterSuccessContextImpl; -import lukehagar.plexapi.plexapi.utils.Hook.BeforeRequestContextImpl; -import lukehagar.plexapi.plexapi.utils.JSON; -import lukehagar.plexapi.plexapi.utils.Retries.NonRetryableException; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.apache.http.NameValuePair; -import org.openapitools.jackson.nullable.JsonNullable; - -/** - * API Calls that perform search operations with Plex Media Server Sessions - * - */ -public class Sessions implements - MethodCallGetSessions, - MethodCallGetSessionHistory, - MethodCallGetTranscodeSessions, - MethodCallStopTranscodeSession { - - private final SDKConfiguration sdkConfiguration; - - Sessions(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - } - - - /** - * Get Active Sessions - * This will retrieve the "Now Playing" Information of the PMS. - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetSessionsRequestBuilder getSessions() { - return new lukehagar.plexapi.plexapi.models.operations.GetSessionsRequestBuilder(this); - } - - /** - * Get Active Sessions - * This will retrieve the "Now Playing" Information of the PMS. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetSessionsResponse getSessionsDirect() throws Exception { - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/status/sessions"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getSessions", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getSessions", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getSessions", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getSessions", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetSessionsResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetSessionsResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetSessionsResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.operations.GetSessionsResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetSessionsResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Get Session History - * This will Retrieve a listing of all history views. - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetSessionHistoryRequestBuilder getSessionHistory() { - return new lukehagar.plexapi.plexapi.models.operations.GetSessionHistoryRequestBuilder(this); - } - - /** - * Get Session History - * This will Retrieve a listing of all history views. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetSessionHistoryResponse getSessionHistoryDirect() throws Exception { - return getSessionHistory(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - /** - * Get Session History - * This will Retrieve a listing of all history views. - * @param sort Sorts the results by the specified field followed by the direction (asc, desc) - - * @param accountId Filter results by those that are related to a specific users id - - * @param filter Filters content by field and direction/equality - (Unknown if viewedAt is the only supported column) - - * @param librarySectionID Filters the results based on the id of a valid library section - - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetSessionHistoryResponse getSessionHistory( - Optional sort, - Optional accountId, - Optional filter, - Optional librarySectionID) throws Exception { - lukehagar.plexapi.plexapi.models.operations.GetSessionHistoryRequest request = - lukehagar.plexapi.plexapi.models.operations.GetSessionHistoryRequest - .builder() - .sort(sort) - .accountId(accountId) - .filter(filter) - .librarySectionID(librarySectionID) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/status/sessions/history/all"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.GetSessionHistoryRequest.class, - request, - this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getSessionHistory", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getSessionHistory", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getSessionHistory", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getSessionHistory", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetSessionHistoryResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetSessionHistoryResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetSessionHistoryResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.operations.GetSessionHistoryResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetSessionHistoryResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Get Transcode Sessions - * Get Transcode Sessions - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetTranscodeSessionsRequestBuilder getTranscodeSessions() { - return new lukehagar.plexapi.plexapi.models.operations.GetTranscodeSessionsRequestBuilder(this); - } - - /** - * Get Transcode Sessions - * Get Transcode Sessions - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetTranscodeSessionsResponse getTranscodeSessionsDirect() throws Exception { - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/transcode/sessions"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getTranscodeSessions", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getTranscodeSessions", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getTranscodeSessions", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getTranscodeSessions", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetTranscodeSessionsResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetTranscodeSessionsResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetTranscodeSessionsResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.operations.GetTranscodeSessionsResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetTranscodeSessionsResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Stop a Transcode Session - * Stop a Transcode Session - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.StopTranscodeSessionRequestBuilder stopTranscodeSession() { - return new lukehagar.plexapi.plexapi.models.operations.StopTranscodeSessionRequestBuilder(this); - } - - /** - * Stop a Transcode Session - * Stop a Transcode Session - * @param sessionKey the Key of the transcode session to stop - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.StopTranscodeSessionResponse stopTranscodeSession( - String sessionKey) throws Exception { - lukehagar.plexapi.plexapi.models.operations.StopTranscodeSessionRequest request = - lukehagar.plexapi.plexapi.models.operations.StopTranscodeSessionRequest - .builder() - .sessionKey(sessionKey) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.StopTranscodeSessionRequest.class, - _baseUrl, - "/transcode/sessions/{sessionKey}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "DELETE"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("stopTranscodeSession", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("stopTranscodeSession", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("stopTranscodeSession", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("stopTranscodeSession", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.StopTranscodeSessionResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.StopTranscodeSessionResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.StopTranscodeSessionResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "204")) { - // no content - return _res; - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.StopTranscodeSessionResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/Statistics.java b/src/main/java/lukehagar/plexapi/plexapi/Statistics.java deleted file mode 100644 index 3d05cc03..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/Statistics.java +++ /dev/null @@ -1,469 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi; - -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; -import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.nio.charset.StandardCharsets; -import java.util.Optional; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.models.operations.SDKMethodInterfaces.*; -import lukehagar.plexapi.plexapi.utils.HTTPClient; -import lukehagar.plexapi.plexapi.utils.HTTPRequest; -import lukehagar.plexapi.plexapi.utils.Hook.AfterErrorContextImpl; -import lukehagar.plexapi.plexapi.utils.Hook.AfterSuccessContextImpl; -import lukehagar.plexapi.plexapi.utils.Hook.BeforeRequestContextImpl; -import lukehagar.plexapi.plexapi.utils.JSON; -import lukehagar.plexapi.plexapi.utils.Retries.NonRetryableException; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.apache.http.NameValuePair; -import org.openapitools.jackson.nullable.JsonNullable; - -/** - * API Calls that perform operations with Plex Media Server Statistics - * - */ -public class Statistics implements - MethodCallGetStatistics, - MethodCallGetResourcesStatistics, - MethodCallGetBandwidthStatistics { - - private final SDKConfiguration sdkConfiguration; - - Statistics(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - } - - - /** - * Get Media Statistics - * This will return the media statistics for the server - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetStatisticsRequestBuilder getStatistics() { - return new lukehagar.plexapi.plexapi.models.operations.GetStatisticsRequestBuilder(this); - } - - /** - * Get Media Statistics - * This will return the media statistics for the server - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetStatisticsResponse getStatisticsDirect() throws Exception { - return getStatistics(Optional.empty()); - } - /** - * Get Media Statistics - * This will return the media statistics for the server - * @param timespan The timespan to retrieve statistics for - the exact meaning of this parameter is not known - - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetStatisticsResponse getStatistics( - Optional timespan) throws Exception { - lukehagar.plexapi.plexapi.models.operations.GetStatisticsRequest request = - lukehagar.plexapi.plexapi.models.operations.GetStatisticsRequest - .builder() - .timespan(timespan) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/statistics/media"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.GetStatisticsRequest.class, - request, - this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getStatistics", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getStatistics", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getStatistics", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getStatistics", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetStatisticsResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetStatisticsResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetStatisticsResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.operations.GetStatisticsResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetStatisticsResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Get Resources Statistics - * This will return the resources for the server - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetResourcesStatisticsRequestBuilder getResourcesStatistics() { - return new lukehagar.plexapi.plexapi.models.operations.GetResourcesStatisticsRequestBuilder(this); - } - - /** - * Get Resources Statistics - * This will return the resources for the server - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetResourcesStatisticsResponse getResourcesStatisticsDirect() throws Exception { - return getResourcesStatistics(Optional.empty()); - } - /** - * Get Resources Statistics - * This will return the resources for the server - * @param timespan The timespan to retrieve statistics for - the exact meaning of this parameter is not known - - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetResourcesStatisticsResponse getResourcesStatistics( - Optional timespan) throws Exception { - lukehagar.plexapi.plexapi.models.operations.GetResourcesStatisticsRequest request = - lukehagar.plexapi.plexapi.models.operations.GetResourcesStatisticsRequest - .builder() - .timespan(timespan) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/statistics/resources"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.GetResourcesStatisticsRequest.class, - request, - this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getResourcesStatistics", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getResourcesStatistics", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getResourcesStatistics", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getResourcesStatistics", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetResourcesStatisticsResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetResourcesStatisticsResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetResourcesStatisticsResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.operations.GetResourcesStatisticsResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetResourcesStatisticsResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Get Bandwidth Statistics - * This will return the bandwidth statistics for the server - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetBandwidthStatisticsRequestBuilder getBandwidthStatistics() { - return new lukehagar.plexapi.plexapi.models.operations.GetBandwidthStatisticsRequestBuilder(this); - } - - /** - * Get Bandwidth Statistics - * This will return the bandwidth statistics for the server - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetBandwidthStatisticsResponse getBandwidthStatisticsDirect() throws Exception { - return getBandwidthStatistics(Optional.empty()); - } - /** - * Get Bandwidth Statistics - * This will return the bandwidth statistics for the server - * @param timespan The timespan to retrieve statistics for - the exact meaning of this parameter is not known - - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetBandwidthStatisticsResponse getBandwidthStatistics( - Optional timespan) throws Exception { - lukehagar.plexapi.plexapi.models.operations.GetBandwidthStatisticsRequest request = - lukehagar.plexapi.plexapi.models.operations.GetBandwidthStatisticsRequest - .builder() - .timespan(timespan) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/statistics/bandwidth"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.GetBandwidthStatisticsRequest.class, - request, - this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getBandwidthStatistics", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getBandwidthStatistics", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getBandwidthStatistics", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getBandwidthStatistics", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetBandwidthStatisticsResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetBandwidthStatisticsResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetBandwidthStatisticsResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.operations.GetBandwidthStatisticsResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetBandwidthStatisticsResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/Updater.java b/src/main/java/lukehagar/plexapi/plexapi/Updater.java deleted file mode 100644 index 2272c31d..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/Updater.java +++ /dev/null @@ -1,426 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi; - -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; -import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.nio.charset.StandardCharsets; -import java.util.Optional; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.models.operations.SDKMethodInterfaces.*; -import lukehagar.plexapi.plexapi.utils.HTTPClient; -import lukehagar.plexapi.plexapi.utils.HTTPRequest; -import lukehagar.plexapi.plexapi.utils.Hook.AfterErrorContextImpl; -import lukehagar.plexapi.plexapi.utils.Hook.AfterSuccessContextImpl; -import lukehagar.plexapi.plexapi.utils.Hook.BeforeRequestContextImpl; -import lukehagar.plexapi.plexapi.utils.JSON; -import lukehagar.plexapi.plexapi.utils.Retries.NonRetryableException; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.apache.http.NameValuePair; -import org.openapitools.jackson.nullable.JsonNullable; - -/** - * This describes the API for searching and applying updates to the Plex Media Server. - * Updates to the status can be observed via the Event API. - * - */ -public class Updater implements - MethodCallGetUpdateStatus, - MethodCallCheckForUpdates, - MethodCallApplyUpdates { - - private final SDKConfiguration sdkConfiguration; - - Updater(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - } - - - /** - * Querying status of updates - * Querying status of updates - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetUpdateStatusRequestBuilder getUpdateStatus() { - return new lukehagar.plexapi.plexapi.models.operations.GetUpdateStatusRequestBuilder(this); - } - - /** - * Querying status of updates - * Querying status of updates - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetUpdateStatusResponse getUpdateStatusDirect() throws Exception { - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/updater/status"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getUpdateStatus", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getUpdateStatus", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getUpdateStatus", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getUpdateStatus", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetUpdateStatusResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetUpdateStatusResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetUpdateStatusResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.operations.GetUpdateStatusResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetUpdateStatusResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Checking for updates - * Checking for updates - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.CheckForUpdatesRequestBuilder checkForUpdates() { - return new lukehagar.plexapi.plexapi.models.operations.CheckForUpdatesRequestBuilder(this); - } - - /** - * Checking for updates - * Checking for updates - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.CheckForUpdatesResponse checkForUpdatesDirect() throws Exception { - return checkForUpdates(Optional.empty()); - } - /** - * Checking for updates - * Checking for updates - * @param download Indicate that you want to start download any updates found. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.CheckForUpdatesResponse checkForUpdates( - Optional download) throws Exception { - lukehagar.plexapi.plexapi.models.operations.CheckForUpdatesRequest request = - lukehagar.plexapi.plexapi.models.operations.CheckForUpdatesRequest - .builder() - .download(download) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/updater/check"); - - HTTPRequest _req = new HTTPRequest(_url, "PUT"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.CheckForUpdatesRequest.class, - request, - this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("checkForUpdates", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("checkForUpdates", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("checkForUpdates", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("checkForUpdates", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.CheckForUpdatesResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.CheckForUpdatesResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.CheckForUpdatesResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - // no content - return _res; - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.CheckForUpdatesResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Apply Updates - * Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed - * - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.ApplyUpdatesRequestBuilder applyUpdates() { - return new lukehagar.plexapi.plexapi.models.operations.ApplyUpdatesRequestBuilder(this); - } - - /** - * Apply Updates - * Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed - * - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.ApplyUpdatesResponse applyUpdatesDirect() throws Exception { - return applyUpdates(Optional.empty(), Optional.empty()); - } - /** - * Apply Updates - * 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 tonight 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 - * @param skip Indicate that the latest version should be marked as skipped. The entry for this version will have the `state` set to `skipped`. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.ApplyUpdatesResponse applyUpdates( - Optional tonight, - Optional skip) throws Exception { - lukehagar.plexapi.plexapi.models.operations.ApplyUpdatesRequest request = - lukehagar.plexapi.plexapi.models.operations.ApplyUpdatesRequest - .builder() - .tonight(tonight) - .skip(skip) - .build(); - - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/updater/apply"); - - HTTPRequest _req = new HTTPRequest(_url, "PUT"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.ApplyUpdatesRequest.class, - request, - this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("applyUpdates", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "500", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("applyUpdates", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("applyUpdates", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("applyUpdates", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.ApplyUpdatesResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.ApplyUpdatesResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.ApplyUpdatesResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - // no content - return _res; - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "500", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.ApplyUpdatesResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/Video.java b/src/main/java/lukehagar/plexapi/plexapi/Video.java deleted file mode 100644 index d63b4f4a..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/Video.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi; - -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; -import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.nio.charset.StandardCharsets; -import java.util.Optional; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.models.operations.SDKMethodInterfaces.*; -import lukehagar.plexapi.plexapi.utils.HTTPClient; -import lukehagar.plexapi.plexapi.utils.HTTPRequest; -import lukehagar.plexapi.plexapi.utils.Hook.AfterErrorContextImpl; -import lukehagar.plexapi.plexapi.utils.Hook.AfterSuccessContextImpl; -import lukehagar.plexapi.plexapi.utils.Hook.BeforeRequestContextImpl; -import lukehagar.plexapi.plexapi.utils.JSON; -import lukehagar.plexapi.plexapi.utils.Retries.NonRetryableException; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.apache.http.NameValuePair; -import org.openapitools.jackson.nullable.JsonNullable; - -/** - * API Calls that perform operations with Plex Media Server Videos - * - */ -public class Video implements - MethodCallGetTimeline, - MethodCallStartUniversalTranscode { - - private final SDKConfiguration sdkConfiguration; - - Video(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - } - - - /** - * Get the timeline for a media item - * Get the timeline for a media item - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetTimelineRequestBuilder getTimeline() { - return new lukehagar.plexapi.plexapi.models.operations.GetTimelineRequestBuilder(this); - } - - /** - * Get the timeline for a media item - * Get the timeline for a media item - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetTimelineResponse getTimeline( - lukehagar.plexapi.plexapi.models.operations.GetTimelineRequest request) throws Exception { - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/:/timeline"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.GetTimelineRequest.class, - request, - this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getTimeline", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getTimeline", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getTimeline", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getTimeline", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetTimelineResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetTimelineResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetTimelineResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - // no content - return _res; - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetTimelineResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - - - - /** - * Start Universal Transcode - * Begin a Universal Transcode Session - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.StartUniversalTranscodeRequestBuilder startUniversalTranscode() { - return new lukehagar.plexapi.plexapi.models.operations.StartUniversalTranscodeRequestBuilder(this); - } - - /** - * Start Universal Transcode - * Begin a Universal Transcode Session - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.StartUniversalTranscodeResponse startUniversalTranscode( - lukehagar.plexapi.plexapi.models.operations.StartUniversalTranscodeRequest request) throws Exception { - String _baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); - String _url = Utils.generateURL( - _baseUrl, - "/video/:/transcode/universal/start.mpd"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.StartUniversalTranscodeRequest.class, - request, - this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("startUniversalTranscode", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("startUniversalTranscode", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("startUniversalTranscode", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("startUniversalTranscode", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.StartUniversalTranscodeResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.StartUniversalTranscodeResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.StartUniversalTranscodeResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - // no content - return _res; - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.StartUniversalTranscodeResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/Watchlist.java b/src/main/java/lukehagar/plexapi/plexapi/Watchlist.java deleted file mode 100644 index b4650a4c..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/Watchlist.java +++ /dev/null @@ -1,193 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi; - -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; -import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.nio.charset.StandardCharsets; -import java.util.Optional; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.models.operations.SDKMethodInterfaces.*; -import lukehagar.plexapi.plexapi.utils.HTTPClient; -import lukehagar.plexapi.plexapi.utils.HTTPRequest; -import lukehagar.plexapi.plexapi.utils.Hook.AfterErrorContextImpl; -import lukehagar.plexapi.plexapi.utils.Hook.AfterSuccessContextImpl; -import lukehagar.plexapi.plexapi.utils.Hook.BeforeRequestContextImpl; -import lukehagar.plexapi.plexapi.utils.JSON; -import lukehagar.plexapi.plexapi.utils.Retries.NonRetryableException; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.apache.http.NameValuePair; -import org.openapitools.jackson.nullable.JsonNullable; - -/** - * API Calls that perform operations with Plex Media Server Watchlists - * - */ -public class Watchlist implements - MethodCallGetWatchlist { - - /** - * GET_WATCHLIST_SERVERS contains the list of server urls available to the SDK. - */ - public static final String[] GET_WATCHLIST_SERVERS = { - /** - * The plex metadata provider server - */ - "https://metadata.provider.plex.tv", - }; - - private final SDKConfiguration sdkConfiguration; - - Watchlist(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - } - - - /** - * Get User Watchlist - * Get User Watchlist - * @return The call builder - */ - public lukehagar.plexapi.plexapi.models.operations.GetWatchlistRequestBuilder getWatchlist() { - return new lukehagar.plexapi.plexapi.models.operations.GetWatchlistRequestBuilder(this); - } - - /** - * Get User Watchlist - * Get User Watchlist - * @param request The request object containing all of the parameters for the API call. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetWatchlistResponse getWatchlist( - lukehagar.plexapi.plexapi.models.operations.GetWatchlistRequest request) throws Exception { - return getWatchlist(request, Optional.empty()); - } - /** - * Get User Watchlist - * Get User Watchlist - * @param request The request object containing all of the parameters for the API call. - * @param serverURL Overrides the server URL. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public lukehagar.plexapi.plexapi.models.operations.GetWatchlistResponse getWatchlist( - lukehagar.plexapi.plexapi.models.operations.GetWatchlistRequest request, - java.util.Optional serverURL) throws Exception { - String _baseUrl = Utils.templateUrl(GET_WATCHLIST_SERVERS[0], new java.util.HashMap()); - if (serverURL.isPresent() && !serverURL.get().isBlank()) { - _baseUrl = serverURL.get(); - } - String _url = Utils.generateURL( - lukehagar.plexapi.plexapi.models.operations.GetWatchlistRequest.class, - _baseUrl, - "/library/sections/watchlist/{filter}", - request, this.sdkConfiguration.globals); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - this.sdkConfiguration.userAgent); - - _req.addQueryParams(Utils.getQueryParams( - lukehagar.plexapi.plexapi.models.operations.GetWatchlistRequest.class, - request, - this.sdkConfiguration.globals)); - - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl("getWatchlist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl("getWatchlist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl("getWatchlist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getWatchlist", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - lukehagar.plexapi.plexapi.models.operations.GetWatchlistResponse.Builder _resBuilder = - lukehagar.plexapi.plexapi.models.operations.GetWatchlistResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - lukehagar.plexapi.plexapi.models.operations.GetWatchlistResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.operations.GetWatchlistResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withObject(java.util.Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "4XX", "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - lukehagar.plexapi.plexapi.models.errors.GetWatchlistResponseBody _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _out.withRawResponse(java.util.Optional.ofNullable(_httpRes)); - - throw _out; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); - } - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); - } - -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/hooks/SDKHooks.java b/src/main/java/lukehagar/plexapi/plexapi/hooks/SDKHooks.java deleted file mode 100644 index df9157e2..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/hooks/SDKHooks.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.hooks; - -// -// This file is written once by speakeasy code generation and -// thereafter will not be overwritten by speakeasy updates. As a -// consequence any customization of this class will be preserved. -// - -public final class SDKHooks { - - private SDKHooks() { - // prevent instantiation - } - - public static final void initialize(lukehagar.plexapi.plexapi.utils.Hooks hooks) { - // register hooks here - - // for more information see - // https://www.speakeasyapi.dev/docs/additional-features/sdk-hooks - } - -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/AddPlaylistContentsErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/AddPlaylistContentsErrors.java deleted file mode 100644 index f347229b..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/AddPlaylistContentsErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class AddPlaylistContentsErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public AddPlaylistContentsErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public AddPlaylistContentsErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public AddPlaylistContentsErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public AddPlaylistContentsErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public AddPlaylistContentsErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public AddPlaylistContentsErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public AddPlaylistContentsErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public AddPlaylistContentsErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AddPlaylistContentsErrors other = (AddPlaylistContentsErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(AddPlaylistContentsErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public AddPlaylistContentsErrors build() { - return new AddPlaylistContentsErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/AddPlaylistContentsResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/AddPlaylistContentsResponseBody.java deleted file mode 100644 index 5688610d..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/AddPlaylistContentsResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * AddPlaylistContentsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class AddPlaylistContentsResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public AddPlaylistContentsResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public AddPlaylistContentsResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public AddPlaylistContentsResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public AddPlaylistContentsResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public AddPlaylistContentsResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public AddPlaylistContentsResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AddPlaylistContentsResponseBody other = (AddPlaylistContentsResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(AddPlaylistContentsResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public AddPlaylistContentsResponseBody build() { - return new AddPlaylistContentsResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/ApplyUpdatesErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/ApplyUpdatesErrors.java deleted file mode 100644 index 9d5b283e..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/ApplyUpdatesErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class ApplyUpdatesErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public ApplyUpdatesErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public ApplyUpdatesErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public ApplyUpdatesErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public ApplyUpdatesErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public ApplyUpdatesErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public ApplyUpdatesErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public ApplyUpdatesErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public ApplyUpdatesErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApplyUpdatesErrors other = (ApplyUpdatesErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(ApplyUpdatesErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public ApplyUpdatesErrors build() { - return new ApplyUpdatesErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/ApplyUpdatesResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/ApplyUpdatesResponseBody.java deleted file mode 100644 index c3ef7482..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/ApplyUpdatesResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * ApplyUpdatesResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class ApplyUpdatesResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public ApplyUpdatesResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public ApplyUpdatesResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public ApplyUpdatesResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public ApplyUpdatesResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public ApplyUpdatesResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public ApplyUpdatesResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApplyUpdatesResponseBody other = (ApplyUpdatesResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(ApplyUpdatesResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public ApplyUpdatesResponseBody build() { - return new ApplyUpdatesResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/AuthException.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/AuthException.java deleted file mode 100644 index 1f9fe0db..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/AuthException.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import java.util.Optional; - -/** - * An exception associated with Authentication or Authorization. - */ -@SuppressWarnings("serial") -public class AuthException extends RuntimeException { - - private final Optional statusCode; - - private AuthException(Optional statusCode, String message) { - super(message); - this.statusCode = statusCode; - } - - public AuthException(int statusCode, String message) { - this(Optional.of(statusCode), message); - } - - public AuthException(String message) { - this(Optional.empty(), message); - } - - public Optional statusCode() { - return statusCode; - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/CancelServerActivitiesErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/CancelServerActivitiesErrors.java deleted file mode 100644 index 28f27d53..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/CancelServerActivitiesErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class CancelServerActivitiesErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public CancelServerActivitiesErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public CancelServerActivitiesErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public CancelServerActivitiesErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public CancelServerActivitiesErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public CancelServerActivitiesErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public CancelServerActivitiesErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public CancelServerActivitiesErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public CancelServerActivitiesErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CancelServerActivitiesErrors other = (CancelServerActivitiesErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(CancelServerActivitiesErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public CancelServerActivitiesErrors build() { - return new CancelServerActivitiesErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/CancelServerActivitiesResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/CancelServerActivitiesResponseBody.java deleted file mode 100644 index 72b81d5c..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/CancelServerActivitiesResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * CancelServerActivitiesResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class CancelServerActivitiesResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public CancelServerActivitiesResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public CancelServerActivitiesResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public CancelServerActivitiesResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public CancelServerActivitiesResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public CancelServerActivitiesResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public CancelServerActivitiesResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CancelServerActivitiesResponseBody other = (CancelServerActivitiesResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(CancelServerActivitiesResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public CancelServerActivitiesResponseBody build() { - return new CancelServerActivitiesResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/CheckForUpdatesErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/CheckForUpdatesErrors.java deleted file mode 100644 index b9d73dda..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/CheckForUpdatesErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class CheckForUpdatesErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public CheckForUpdatesErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public CheckForUpdatesErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public CheckForUpdatesErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public CheckForUpdatesErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public CheckForUpdatesErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public CheckForUpdatesErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public CheckForUpdatesErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public CheckForUpdatesErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CheckForUpdatesErrors other = (CheckForUpdatesErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(CheckForUpdatesErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public CheckForUpdatesErrors build() { - return new CheckForUpdatesErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/CheckForUpdatesResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/CheckForUpdatesResponseBody.java deleted file mode 100644 index 29443f31..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/CheckForUpdatesResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * CheckForUpdatesResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class CheckForUpdatesResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public CheckForUpdatesResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public CheckForUpdatesResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public CheckForUpdatesResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public CheckForUpdatesResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public CheckForUpdatesResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public CheckForUpdatesResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CheckForUpdatesResponseBody other = (CheckForUpdatesResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(CheckForUpdatesResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public CheckForUpdatesResponseBody build() { - return new CheckForUpdatesResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/ClearPlaylistContentsErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/ClearPlaylistContentsErrors.java deleted file mode 100644 index 50be5c9e..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/ClearPlaylistContentsErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class ClearPlaylistContentsErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public ClearPlaylistContentsErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public ClearPlaylistContentsErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public ClearPlaylistContentsErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public ClearPlaylistContentsErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public ClearPlaylistContentsErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public ClearPlaylistContentsErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public ClearPlaylistContentsErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public ClearPlaylistContentsErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ClearPlaylistContentsErrors other = (ClearPlaylistContentsErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(ClearPlaylistContentsErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public ClearPlaylistContentsErrors build() { - return new ClearPlaylistContentsErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/ClearPlaylistContentsResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/ClearPlaylistContentsResponseBody.java deleted file mode 100644 index 9f721d12..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/ClearPlaylistContentsResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * ClearPlaylistContentsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class ClearPlaylistContentsResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public ClearPlaylistContentsResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public ClearPlaylistContentsResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public ClearPlaylistContentsResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public ClearPlaylistContentsResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public ClearPlaylistContentsResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public ClearPlaylistContentsResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ClearPlaylistContentsResponseBody other = (ClearPlaylistContentsResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(ClearPlaylistContentsResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public ClearPlaylistContentsResponseBody build() { - return new ClearPlaylistContentsResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/CreatePlaylistErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/CreatePlaylistErrors.java deleted file mode 100644 index 209b3a34..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/CreatePlaylistErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class CreatePlaylistErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public CreatePlaylistErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public CreatePlaylistErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public CreatePlaylistErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public CreatePlaylistErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public CreatePlaylistErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public CreatePlaylistErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public CreatePlaylistErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public CreatePlaylistErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreatePlaylistErrors other = (CreatePlaylistErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(CreatePlaylistErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public CreatePlaylistErrors build() { - return new CreatePlaylistErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/CreatePlaylistResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/CreatePlaylistResponseBody.java deleted file mode 100644 index 3564d552..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/CreatePlaylistResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * CreatePlaylistResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class CreatePlaylistResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public CreatePlaylistResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public CreatePlaylistResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public CreatePlaylistResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public CreatePlaylistResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public CreatePlaylistResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public CreatePlaylistResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreatePlaylistResponseBody other = (CreatePlaylistResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(CreatePlaylistResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public CreatePlaylistResponseBody build() { - return new CreatePlaylistResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/DeleteLibraryErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/DeleteLibraryErrors.java deleted file mode 100644 index d339f658..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/DeleteLibraryErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class DeleteLibraryErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public DeleteLibraryErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public DeleteLibraryErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public DeleteLibraryErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public DeleteLibraryErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public DeleteLibraryErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public DeleteLibraryErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public DeleteLibraryErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public DeleteLibraryErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DeleteLibraryErrors other = (DeleteLibraryErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(DeleteLibraryErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public DeleteLibraryErrors build() { - return new DeleteLibraryErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/DeleteLibraryResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/DeleteLibraryResponseBody.java deleted file mode 100644 index bc40dcb8..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/DeleteLibraryResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * DeleteLibraryResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class DeleteLibraryResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public DeleteLibraryResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public DeleteLibraryResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public DeleteLibraryResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public DeleteLibraryResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public DeleteLibraryResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public DeleteLibraryResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DeleteLibraryResponseBody other = (DeleteLibraryResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(DeleteLibraryResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public DeleteLibraryResponseBody build() { - return new DeleteLibraryResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/DeletePlaylistErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/DeletePlaylistErrors.java deleted file mode 100644 index 410b407f..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/DeletePlaylistErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class DeletePlaylistErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public DeletePlaylistErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public DeletePlaylistErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public DeletePlaylistErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public DeletePlaylistErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public DeletePlaylistErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public DeletePlaylistErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public DeletePlaylistErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public DeletePlaylistErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DeletePlaylistErrors other = (DeletePlaylistErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(DeletePlaylistErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public DeletePlaylistErrors build() { - return new DeletePlaylistErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/DeletePlaylistResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/DeletePlaylistResponseBody.java deleted file mode 100644 index 2b3a7ad4..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/DeletePlaylistResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * DeletePlaylistResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class DeletePlaylistResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public DeletePlaylistResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public DeletePlaylistResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public DeletePlaylistResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public DeletePlaylistResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public DeletePlaylistResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public DeletePlaylistResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DeletePlaylistResponseBody other = (DeletePlaylistResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(DeletePlaylistResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public DeletePlaylistResponseBody build() { - return new DeletePlaylistResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/EnablePaperTrailErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/EnablePaperTrailErrors.java deleted file mode 100644 index 449a7a78..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/EnablePaperTrailErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class EnablePaperTrailErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public EnablePaperTrailErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public EnablePaperTrailErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public EnablePaperTrailErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public EnablePaperTrailErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public EnablePaperTrailErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public EnablePaperTrailErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public EnablePaperTrailErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public EnablePaperTrailErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - EnablePaperTrailErrors other = (EnablePaperTrailErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(EnablePaperTrailErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public EnablePaperTrailErrors build() { - return new EnablePaperTrailErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/EnablePaperTrailResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/EnablePaperTrailResponseBody.java deleted file mode 100644 index 50888c3e..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/EnablePaperTrailResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * EnablePaperTrailResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class EnablePaperTrailResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public EnablePaperTrailResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public EnablePaperTrailResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public EnablePaperTrailResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public EnablePaperTrailResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public EnablePaperTrailResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public EnablePaperTrailResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - EnablePaperTrailResponseBody other = (EnablePaperTrailResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(EnablePaperTrailResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public EnablePaperTrailResponseBody build() { - return new EnablePaperTrailResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/Errors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/Errors.java deleted file mode 100644 index fa3fa152..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/Errors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class Errors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public Errors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public Errors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public Errors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Errors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Errors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Errors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Errors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Errors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Errors other = (Errors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(Errors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public Errors build() { - return new Errors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetAvailableClientsErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetAvailableClientsErrors.java deleted file mode 100644 index 734d1539..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetAvailableClientsErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetAvailableClientsErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public GetAvailableClientsErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public GetAvailableClientsErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetAvailableClientsErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetAvailableClientsErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetAvailableClientsErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public GetAvailableClientsErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public GetAvailableClientsErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetAvailableClientsErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetAvailableClientsErrors other = (GetAvailableClientsErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(GetAvailableClientsErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetAvailableClientsErrors build() { - return new GetAvailableClientsErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetAvailableClientsResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetAvailableClientsResponseBody.java deleted file mode 100644 index 0fbfbb3c..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetAvailableClientsResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetAvailableClientsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class GetAvailableClientsResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetAvailableClientsResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetAvailableClientsResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetAvailableClientsResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetAvailableClientsResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetAvailableClientsResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetAvailableClientsResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetAvailableClientsResponseBody other = (GetAvailableClientsResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetAvailableClientsResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetAvailableClientsResponseBody build() { - return new GetAvailableClientsResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetBandwidthStatisticsErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetBandwidthStatisticsErrors.java deleted file mode 100644 index e6c2db0c..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetBandwidthStatisticsErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetBandwidthStatisticsErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public GetBandwidthStatisticsErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public GetBandwidthStatisticsErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetBandwidthStatisticsErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetBandwidthStatisticsErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetBandwidthStatisticsErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public GetBandwidthStatisticsErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public GetBandwidthStatisticsErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetBandwidthStatisticsErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetBandwidthStatisticsErrors other = (GetBandwidthStatisticsErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(GetBandwidthStatisticsErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetBandwidthStatisticsErrors build() { - return new GetBandwidthStatisticsErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetBandwidthStatisticsResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetBandwidthStatisticsResponseBody.java deleted file mode 100644 index 031f0ca8..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetBandwidthStatisticsResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetBandwidthStatisticsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class GetBandwidthStatisticsResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetBandwidthStatisticsResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetBandwidthStatisticsResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetBandwidthStatisticsResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetBandwidthStatisticsResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetBandwidthStatisticsResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetBandwidthStatisticsResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetBandwidthStatisticsResponseBody other = (GetBandwidthStatisticsResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetBandwidthStatisticsResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetBandwidthStatisticsResponseBody build() { - return new GetBandwidthStatisticsResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetButlerTasksErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetButlerTasksErrors.java deleted file mode 100644 index 934776b7..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetButlerTasksErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetButlerTasksErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public GetButlerTasksErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public GetButlerTasksErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetButlerTasksErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetButlerTasksErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetButlerTasksErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public GetButlerTasksErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public GetButlerTasksErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetButlerTasksErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetButlerTasksErrors other = (GetButlerTasksErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(GetButlerTasksErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetButlerTasksErrors build() { - return new GetButlerTasksErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetButlerTasksResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetButlerTasksResponseBody.java deleted file mode 100644 index 92b532e6..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetButlerTasksResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetButlerTasksResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class GetButlerTasksResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetButlerTasksResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetButlerTasksResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetButlerTasksResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetButlerTasksResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetButlerTasksResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetButlerTasksResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetButlerTasksResponseBody other = (GetButlerTasksResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetButlerTasksResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetButlerTasksResponseBody build() { - return new GetButlerTasksResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetDevicesErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetDevicesErrors.java deleted file mode 100644 index 8a5c5079..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetDevicesErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetDevicesErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public GetDevicesErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public GetDevicesErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetDevicesErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetDevicesErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetDevicesErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public GetDevicesErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public GetDevicesErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetDevicesErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetDevicesErrors other = (GetDevicesErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(GetDevicesErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetDevicesErrors build() { - return new GetDevicesErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetDevicesResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetDevicesResponseBody.java deleted file mode 100644 index 27295acd..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetDevicesResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetDevicesResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class GetDevicesResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetDevicesResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetDevicesResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetDevicesResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetDevicesResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetDevicesResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetDevicesResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetDevicesResponseBody other = (GetDevicesResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetDevicesResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetDevicesResponseBody build() { - return new GetDevicesResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetFileHashErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetFileHashErrors.java deleted file mode 100644 index a6961706..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetFileHashErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetFileHashErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public GetFileHashErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public GetFileHashErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetFileHashErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetFileHashErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetFileHashErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public GetFileHashErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public GetFileHashErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetFileHashErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetFileHashErrors other = (GetFileHashErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(GetFileHashErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetFileHashErrors build() { - return new GetFileHashErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetFileHashResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetFileHashResponseBody.java deleted file mode 100644 index b5df26d9..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetFileHashResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetFileHashResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class GetFileHashResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetFileHashResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetFileHashResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetFileHashResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetFileHashResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetFileHashResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetFileHashResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetFileHashResponseBody other = (GetFileHashResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetFileHashResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetFileHashResponseBody build() { - return new GetFileHashResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetGlobalHubsErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetGlobalHubsErrors.java deleted file mode 100644 index 9c2376ee..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetGlobalHubsErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetGlobalHubsErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public GetGlobalHubsErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public GetGlobalHubsErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetGlobalHubsErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetGlobalHubsErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetGlobalHubsErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public GetGlobalHubsErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public GetGlobalHubsErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetGlobalHubsErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetGlobalHubsErrors other = (GetGlobalHubsErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(GetGlobalHubsErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetGlobalHubsErrors build() { - return new GetGlobalHubsErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetGlobalHubsResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetGlobalHubsResponseBody.java deleted file mode 100644 index 0d05b510..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetGlobalHubsResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetGlobalHubsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class GetGlobalHubsResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetGlobalHubsResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetGlobalHubsResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetGlobalHubsResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetGlobalHubsResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetGlobalHubsResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetGlobalHubsResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetGlobalHubsResponseBody other = (GetGlobalHubsResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetGlobalHubsResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetGlobalHubsResponseBody build() { - return new GetGlobalHubsResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetHomeDataErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetHomeDataErrors.java deleted file mode 100644 index d76306dd..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetHomeDataErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetHomeDataErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public GetHomeDataErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public GetHomeDataErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetHomeDataErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetHomeDataErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetHomeDataErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public GetHomeDataErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public GetHomeDataErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetHomeDataErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetHomeDataErrors other = (GetHomeDataErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(GetHomeDataErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetHomeDataErrors build() { - return new GetHomeDataErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetHomeDataResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetHomeDataResponseBody.java deleted file mode 100644 index d0afa29a..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetHomeDataResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetHomeDataResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class GetHomeDataResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetHomeDataResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetHomeDataResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetHomeDataResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetHomeDataResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetHomeDataResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetHomeDataResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetHomeDataResponseBody other = (GetHomeDataResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetHomeDataResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetHomeDataResponseBody build() { - return new GetHomeDataResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibrariesErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibrariesErrors.java deleted file mode 100644 index c976f770..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibrariesErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetLibrariesErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public GetLibrariesErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public GetLibrariesErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibrariesErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetLibrariesErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetLibrariesErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public GetLibrariesErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public GetLibrariesErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetLibrariesErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibrariesErrors other = (GetLibrariesErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(GetLibrariesErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetLibrariesErrors build() { - return new GetLibrariesErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibrariesResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibrariesResponseBody.java deleted file mode 100644 index 331133b6..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibrariesResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetLibrariesResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class GetLibrariesResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetLibrariesResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetLibrariesResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibrariesResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetLibrariesResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetLibrariesResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetLibrariesResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibrariesResponseBody other = (GetLibrariesResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetLibrariesResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetLibrariesResponseBody build() { - return new GetLibrariesResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryErrors.java deleted file mode 100644 index 294053d1..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetLibraryErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public GetLibraryErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public GetLibraryErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibraryErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetLibraryErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetLibraryErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public GetLibraryErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public GetLibraryErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetLibraryErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryErrors other = (GetLibraryErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetLibraryErrors build() { - return new GetLibraryErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryHubsErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryHubsErrors.java deleted file mode 100644 index 1b3d1d86..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryHubsErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetLibraryHubsErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public GetLibraryHubsErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public GetLibraryHubsErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibraryHubsErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetLibraryHubsErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetLibraryHubsErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public GetLibraryHubsErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public GetLibraryHubsErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetLibraryHubsErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryHubsErrors other = (GetLibraryHubsErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryHubsErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetLibraryHubsErrors build() { - return new GetLibraryHubsErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryHubsResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryHubsResponseBody.java deleted file mode 100644 index 5d2600c9..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryHubsResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetLibraryHubsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class GetLibraryHubsResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetLibraryHubsResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetLibraryHubsResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibraryHubsResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetLibraryHubsResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetLibraryHubsResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetLibraryHubsResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryHubsResponseBody other = (GetLibraryHubsResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryHubsResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetLibraryHubsResponseBody build() { - return new GetLibraryHubsResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryItemsErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryItemsErrors.java deleted file mode 100644 index 9a13dcb2..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryItemsErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetLibraryItemsErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public GetLibraryItemsErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public GetLibraryItemsErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibraryItemsErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetLibraryItemsErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetLibraryItemsErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public GetLibraryItemsErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public GetLibraryItemsErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetLibraryItemsErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryItemsErrors other = (GetLibraryItemsErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryItemsErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetLibraryItemsErrors build() { - return new GetLibraryItemsErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryItemsResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryItemsResponseBody.java deleted file mode 100644 index 5a54de27..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryItemsResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetLibraryItemsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class GetLibraryItemsResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetLibraryItemsResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetLibraryItemsResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibraryItemsResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetLibraryItemsResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetLibraryItemsResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetLibraryItemsResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryItemsResponseBody other = (GetLibraryItemsResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryItemsResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetLibraryItemsResponseBody build() { - return new GetLibraryItemsResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryResponseBody.java deleted file mode 100644 index 98bb21f7..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetLibraryResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetLibraryResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class GetLibraryResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetLibraryResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetLibraryResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibraryResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetLibraryResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetLibraryResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetLibraryResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryResponseBody other = (GetLibraryResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetLibraryResponseBody build() { - return new GetLibraryResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMetadataChildrenErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMetadataChildrenErrors.java deleted file mode 100644 index 34af10d6..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMetadataChildrenErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetMetadataChildrenErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public GetMetadataChildrenErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public GetMetadataChildrenErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetMetadataChildrenErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetMetadataChildrenErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetMetadataChildrenErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public GetMetadataChildrenErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public GetMetadataChildrenErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetMetadataChildrenErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetMetadataChildrenErrors other = (GetMetadataChildrenErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(GetMetadataChildrenErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetMetadataChildrenErrors build() { - return new GetMetadataChildrenErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMetadataChildrenResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMetadataChildrenResponseBody.java deleted file mode 100644 index 3d116d1e..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMetadataChildrenResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetMetadataChildrenResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class GetMetadataChildrenResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetMetadataChildrenResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetMetadataChildrenResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetMetadataChildrenResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetMetadataChildrenResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetMetadataChildrenResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetMetadataChildrenResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetMetadataChildrenResponseBody other = (GetMetadataChildrenResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetMetadataChildrenResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetMetadataChildrenResponseBody build() { - return new GetMetadataChildrenResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMetadataErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMetadataErrors.java deleted file mode 100644 index 24036cf7..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMetadataErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetMetadataErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public GetMetadataErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public GetMetadataErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetMetadataErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetMetadataErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetMetadataErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public GetMetadataErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public GetMetadataErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetMetadataErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetMetadataErrors other = (GetMetadataErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(GetMetadataErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetMetadataErrors build() { - return new GetMetadataErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMetadataResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMetadataResponseBody.java deleted file mode 100644 index 26e2825a..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMetadataResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetMetadataResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class GetMetadataResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetMetadataResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetMetadataResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetMetadataResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetMetadataResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetMetadataResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetMetadataResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetMetadataResponseBody other = (GetMetadataResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetMetadataResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetMetadataResponseBody build() { - return new GetMetadataResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMyPlexAccountErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMyPlexAccountErrors.java deleted file mode 100644 index 56ac78e9..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMyPlexAccountErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetMyPlexAccountErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public GetMyPlexAccountErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public GetMyPlexAccountErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetMyPlexAccountErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetMyPlexAccountErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetMyPlexAccountErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public GetMyPlexAccountErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public GetMyPlexAccountErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetMyPlexAccountErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetMyPlexAccountErrors other = (GetMyPlexAccountErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(GetMyPlexAccountErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetMyPlexAccountErrors build() { - return new GetMyPlexAccountErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMyPlexAccountResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMyPlexAccountResponseBody.java deleted file mode 100644 index 68e2fc0c..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetMyPlexAccountResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetMyPlexAccountResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class GetMyPlexAccountResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetMyPlexAccountResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetMyPlexAccountResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetMyPlexAccountResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetMyPlexAccountResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetMyPlexAccountResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetMyPlexAccountResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetMyPlexAccountResponseBody other = (GetMyPlexAccountResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetMyPlexAccountResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetMyPlexAccountResponseBody build() { - return new GetMyPlexAccountResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetOnDeckErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetOnDeckErrors.java deleted file mode 100644 index d1f9041c..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetOnDeckErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetOnDeckErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public GetOnDeckErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public GetOnDeckErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetOnDeckErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetOnDeckErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetOnDeckErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public GetOnDeckErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public GetOnDeckErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetOnDeckErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetOnDeckErrors other = (GetOnDeckErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(GetOnDeckErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetOnDeckErrors build() { - return new GetOnDeckErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetOnDeckResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetOnDeckResponseBody.java deleted file mode 100644 index d97cc4c3..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetOnDeckResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetOnDeckResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class GetOnDeckResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetOnDeckResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetOnDeckResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetOnDeckResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetOnDeckResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetOnDeckResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetOnDeckResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetOnDeckResponseBody other = (GetOnDeckResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetOnDeckResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetOnDeckResponseBody build() { - return new GetOnDeckResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPinErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPinErrors.java deleted file mode 100644 index 9a6bf355..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPinErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetPinErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public GetPinErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public GetPinErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetPinErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetPinErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetPinErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public GetPinErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public GetPinErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetPinErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetPinErrors other = (GetPinErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(GetPinErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetPinErrors build() { - return new GetPinErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPinResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPinResponseBody.java deleted file mode 100644 index 0c3ce466..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPinResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetPinResponseBody - X-Plex-Client-Identifier is missing - */ -public class GetPinResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetPinResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetPinResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetPinResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetPinResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetPinResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetPinResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetPinResponseBody other = (GetPinResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetPinResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetPinResponseBody build() { - return new GetPinResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistContentsErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistContentsErrors.java deleted file mode 100644 index a7db9de1..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistContentsErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetPlaylistContentsErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public GetPlaylistContentsErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public GetPlaylistContentsErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetPlaylistContentsErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetPlaylistContentsErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetPlaylistContentsErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public GetPlaylistContentsErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public GetPlaylistContentsErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetPlaylistContentsErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetPlaylistContentsErrors other = (GetPlaylistContentsErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(GetPlaylistContentsErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetPlaylistContentsErrors build() { - return new GetPlaylistContentsErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistContentsResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistContentsResponseBody.java deleted file mode 100644 index f5edbf22..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistContentsResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetPlaylistContentsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class GetPlaylistContentsResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetPlaylistContentsResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetPlaylistContentsResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetPlaylistContentsResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetPlaylistContentsResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetPlaylistContentsResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetPlaylistContentsResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetPlaylistContentsResponseBody other = (GetPlaylistContentsResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetPlaylistContentsResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetPlaylistContentsResponseBody build() { - return new GetPlaylistContentsResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistErrors.java deleted file mode 100644 index 5d5da5db..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetPlaylistErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public GetPlaylistErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public GetPlaylistErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetPlaylistErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetPlaylistErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetPlaylistErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public GetPlaylistErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public GetPlaylistErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetPlaylistErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetPlaylistErrors other = (GetPlaylistErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(GetPlaylistErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetPlaylistErrors build() { - return new GetPlaylistErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistResponseBody.java deleted file mode 100644 index 4a2356db..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetPlaylistResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class GetPlaylistResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetPlaylistResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetPlaylistResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetPlaylistResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetPlaylistResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetPlaylistResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetPlaylistResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetPlaylistResponseBody other = (GetPlaylistResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetPlaylistResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetPlaylistResponseBody build() { - return new GetPlaylistResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistsErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistsErrors.java deleted file mode 100644 index 68d1f1ef..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistsErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetPlaylistsErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public GetPlaylistsErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public GetPlaylistsErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetPlaylistsErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetPlaylistsErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetPlaylistsErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public GetPlaylistsErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public GetPlaylistsErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetPlaylistsErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetPlaylistsErrors other = (GetPlaylistsErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(GetPlaylistsErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetPlaylistsErrors build() { - return new GetPlaylistsErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistsResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistsResponseBody.java deleted file mode 100644 index 4243d13c..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetPlaylistsResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetPlaylistsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class GetPlaylistsResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetPlaylistsResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetPlaylistsResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetPlaylistsResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetPlaylistsResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetPlaylistsResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetPlaylistsResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetPlaylistsResponseBody other = (GetPlaylistsResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetPlaylistsResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetPlaylistsResponseBody build() { - return new GetPlaylistsResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetRecentlyAddedErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetRecentlyAddedErrors.java deleted file mode 100644 index 0188f62c..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetRecentlyAddedErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetRecentlyAddedErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public GetRecentlyAddedErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public GetRecentlyAddedErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetRecentlyAddedErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetRecentlyAddedErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetRecentlyAddedErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public GetRecentlyAddedErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public GetRecentlyAddedErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetRecentlyAddedErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetRecentlyAddedErrors other = (GetRecentlyAddedErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(GetRecentlyAddedErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetRecentlyAddedErrors build() { - return new GetRecentlyAddedErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetRecentlyAddedResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetRecentlyAddedResponseBody.java deleted file mode 100644 index f415515e..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetRecentlyAddedResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetRecentlyAddedResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class GetRecentlyAddedResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetRecentlyAddedResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetRecentlyAddedResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetRecentlyAddedResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetRecentlyAddedResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetRecentlyAddedResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetRecentlyAddedResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetRecentlyAddedResponseBody other = (GetRecentlyAddedResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetRecentlyAddedResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetRecentlyAddedResponseBody build() { - return new GetRecentlyAddedResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetResizedPhotoErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetResizedPhotoErrors.java deleted file mode 100644 index b069a637..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetResizedPhotoErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetResizedPhotoErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public GetResizedPhotoErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public GetResizedPhotoErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetResizedPhotoErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetResizedPhotoErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetResizedPhotoErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public GetResizedPhotoErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public GetResizedPhotoErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetResizedPhotoErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetResizedPhotoErrors other = (GetResizedPhotoErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(GetResizedPhotoErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetResizedPhotoErrors build() { - return new GetResizedPhotoErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetResizedPhotoResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetResizedPhotoResponseBody.java deleted file mode 100644 index 6e31fb88..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetResizedPhotoResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetResizedPhotoResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class GetResizedPhotoResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetResizedPhotoResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetResizedPhotoResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetResizedPhotoResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetResizedPhotoResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetResizedPhotoResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetResizedPhotoResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetResizedPhotoResponseBody other = (GetResizedPhotoResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetResizedPhotoResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetResizedPhotoResponseBody build() { - return new GetResizedPhotoResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetResourcesStatisticsErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetResourcesStatisticsErrors.java deleted file mode 100644 index 61e0f383..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetResourcesStatisticsErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetResourcesStatisticsErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public GetResourcesStatisticsErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public GetResourcesStatisticsErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetResourcesStatisticsErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetResourcesStatisticsErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetResourcesStatisticsErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public GetResourcesStatisticsErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public GetResourcesStatisticsErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetResourcesStatisticsErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetResourcesStatisticsErrors other = (GetResourcesStatisticsErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(GetResourcesStatisticsErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetResourcesStatisticsErrors build() { - return new GetResourcesStatisticsErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetResourcesStatisticsResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetResourcesStatisticsResponseBody.java deleted file mode 100644 index cc381e79..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetResourcesStatisticsResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetResourcesStatisticsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class GetResourcesStatisticsResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetResourcesStatisticsResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetResourcesStatisticsResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetResourcesStatisticsResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetResourcesStatisticsResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetResourcesStatisticsResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetResourcesStatisticsResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetResourcesStatisticsResponseBody other = (GetResourcesStatisticsResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetResourcesStatisticsResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetResourcesStatisticsResponseBody build() { - return new GetResourcesStatisticsResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSearchResultsErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSearchResultsErrors.java deleted file mode 100644 index a8138304..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSearchResultsErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetSearchResultsErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public GetSearchResultsErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public GetSearchResultsErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetSearchResultsErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetSearchResultsErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetSearchResultsErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public GetSearchResultsErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public GetSearchResultsErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetSearchResultsErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetSearchResultsErrors other = (GetSearchResultsErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(GetSearchResultsErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetSearchResultsErrors build() { - return new GetSearchResultsErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSearchResultsResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSearchResultsResponseBody.java deleted file mode 100644 index d890c786..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSearchResultsResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetSearchResultsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class GetSearchResultsResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetSearchResultsResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetSearchResultsResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetSearchResultsResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetSearchResultsResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetSearchResultsResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetSearchResultsResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetSearchResultsResponseBody other = (GetSearchResultsResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetSearchResultsResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetSearchResultsResponseBody build() { - return new GetSearchResultsResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerActivitiesErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerActivitiesErrors.java deleted file mode 100644 index 8095f063..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerActivitiesErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetServerActivitiesErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public GetServerActivitiesErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public GetServerActivitiesErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetServerActivitiesErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetServerActivitiesErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetServerActivitiesErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public GetServerActivitiesErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public GetServerActivitiesErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetServerActivitiesErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetServerActivitiesErrors other = (GetServerActivitiesErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(GetServerActivitiesErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetServerActivitiesErrors build() { - return new GetServerActivitiesErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerActivitiesResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerActivitiesResponseBody.java deleted file mode 100644 index 6e08f84f..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerActivitiesResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetServerActivitiesResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class GetServerActivitiesResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetServerActivitiesResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetServerActivitiesResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetServerActivitiesResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetServerActivitiesResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetServerActivitiesResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetServerActivitiesResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetServerActivitiesResponseBody other = (GetServerActivitiesResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetServerActivitiesResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetServerActivitiesResponseBody build() { - return new GetServerActivitiesResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerCapabilitiesResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerCapabilitiesResponseBody.java deleted file mode 100644 index b9fad601..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerCapabilitiesResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetServerCapabilitiesResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class GetServerCapabilitiesResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetServerCapabilitiesResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetServerCapabilitiesResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetServerCapabilitiesResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetServerCapabilitiesResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetServerCapabilitiesResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetServerCapabilitiesResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetServerCapabilitiesResponseBody other = (GetServerCapabilitiesResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetServerCapabilitiesResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetServerCapabilitiesResponseBody build() { - return new GetServerCapabilitiesResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerIdentityErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerIdentityErrors.java deleted file mode 100644 index ffe3e888..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerIdentityErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetServerIdentityErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public GetServerIdentityErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public GetServerIdentityErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetServerIdentityErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetServerIdentityErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetServerIdentityErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public GetServerIdentityErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public GetServerIdentityErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetServerIdentityErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetServerIdentityErrors other = (GetServerIdentityErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(GetServerIdentityErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetServerIdentityErrors build() { - return new GetServerIdentityErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerIdentityResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerIdentityResponseBody.java deleted file mode 100644 index 5589200a..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerIdentityResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetServerIdentityResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class GetServerIdentityResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetServerIdentityResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetServerIdentityResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetServerIdentityResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetServerIdentityResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetServerIdentityResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetServerIdentityResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetServerIdentityResponseBody other = (GetServerIdentityResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetServerIdentityResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetServerIdentityResponseBody build() { - return new GetServerIdentityResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerListErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerListErrors.java deleted file mode 100644 index 9348e52f..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerListErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetServerListErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public GetServerListErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public GetServerListErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetServerListErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetServerListErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetServerListErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public GetServerListErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public GetServerListErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetServerListErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetServerListErrors other = (GetServerListErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(GetServerListErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetServerListErrors build() { - return new GetServerListErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerListResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerListResponseBody.java deleted file mode 100644 index 146210df..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerListResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetServerListResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class GetServerListResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetServerListResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetServerListResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetServerListResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetServerListResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetServerListResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetServerListResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetServerListResponseBody other = (GetServerListResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetServerListResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetServerListResponseBody build() { - return new GetServerListResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerPreferencesErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerPreferencesErrors.java deleted file mode 100644 index cac60541..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerPreferencesErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetServerPreferencesErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public GetServerPreferencesErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public GetServerPreferencesErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetServerPreferencesErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetServerPreferencesErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetServerPreferencesErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public GetServerPreferencesErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public GetServerPreferencesErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetServerPreferencesErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetServerPreferencesErrors other = (GetServerPreferencesErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(GetServerPreferencesErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetServerPreferencesErrors build() { - return new GetServerPreferencesErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerPreferencesResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerPreferencesResponseBody.java deleted file mode 100644 index 2ae84dde..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetServerPreferencesResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetServerPreferencesResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class GetServerPreferencesResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetServerPreferencesResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetServerPreferencesResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetServerPreferencesResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetServerPreferencesResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetServerPreferencesResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetServerPreferencesResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetServerPreferencesResponseBody other = (GetServerPreferencesResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetServerPreferencesResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetServerPreferencesResponseBody build() { - return new GetServerPreferencesResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSessionHistoryErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSessionHistoryErrors.java deleted file mode 100644 index 4ec504f1..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSessionHistoryErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetSessionHistoryErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public GetSessionHistoryErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public GetSessionHistoryErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetSessionHistoryErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetSessionHistoryErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetSessionHistoryErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public GetSessionHistoryErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public GetSessionHistoryErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetSessionHistoryErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetSessionHistoryErrors other = (GetSessionHistoryErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(GetSessionHistoryErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetSessionHistoryErrors build() { - return new GetSessionHistoryErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSessionHistoryResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSessionHistoryResponseBody.java deleted file mode 100644 index 6727e55d..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSessionHistoryResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetSessionHistoryResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class GetSessionHistoryResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetSessionHistoryResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetSessionHistoryResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetSessionHistoryResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetSessionHistoryResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetSessionHistoryResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetSessionHistoryResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetSessionHistoryResponseBody other = (GetSessionHistoryResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetSessionHistoryResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetSessionHistoryResponseBody build() { - return new GetSessionHistoryResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSessionsErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSessionsErrors.java deleted file mode 100644 index 752ead44..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSessionsErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetSessionsErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public GetSessionsErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public GetSessionsErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetSessionsErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetSessionsErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetSessionsErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public GetSessionsErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public GetSessionsErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetSessionsErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetSessionsErrors other = (GetSessionsErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(GetSessionsErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetSessionsErrors build() { - return new GetSessionsErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSessionsResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSessionsResponseBody.java deleted file mode 100644 index a6930e0f..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSessionsResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetSessionsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class GetSessionsResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetSessionsResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetSessionsResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetSessionsResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetSessionsResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetSessionsResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetSessionsResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetSessionsResponseBody other = (GetSessionsResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetSessionsResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetSessionsResponseBody build() { - return new GetSessionsResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSourceConnectionInformationErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSourceConnectionInformationErrors.java deleted file mode 100644 index f834086e..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSourceConnectionInformationErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetSourceConnectionInformationErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public GetSourceConnectionInformationErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public GetSourceConnectionInformationErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetSourceConnectionInformationErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetSourceConnectionInformationErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetSourceConnectionInformationErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public GetSourceConnectionInformationErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public GetSourceConnectionInformationErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetSourceConnectionInformationErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetSourceConnectionInformationErrors other = (GetSourceConnectionInformationErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(GetSourceConnectionInformationErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetSourceConnectionInformationErrors build() { - return new GetSourceConnectionInformationErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSourceConnectionInformationResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSourceConnectionInformationResponseBody.java deleted file mode 100644 index 0df9724c..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetSourceConnectionInformationResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetSourceConnectionInformationResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class GetSourceConnectionInformationResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetSourceConnectionInformationResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetSourceConnectionInformationResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetSourceConnectionInformationResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetSourceConnectionInformationResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetSourceConnectionInformationResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetSourceConnectionInformationResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetSourceConnectionInformationResponseBody other = (GetSourceConnectionInformationResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetSourceConnectionInformationResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetSourceConnectionInformationResponseBody build() { - return new GetSourceConnectionInformationResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetStatisticsErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetStatisticsErrors.java deleted file mode 100644 index 04fbd168..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetStatisticsErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetStatisticsErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public GetStatisticsErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public GetStatisticsErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetStatisticsErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetStatisticsErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetStatisticsErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public GetStatisticsErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public GetStatisticsErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetStatisticsErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetStatisticsErrors other = (GetStatisticsErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(GetStatisticsErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetStatisticsErrors build() { - return new GetStatisticsErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetStatisticsResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetStatisticsResponseBody.java deleted file mode 100644 index ed03f3d9..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetStatisticsResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetStatisticsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class GetStatisticsResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetStatisticsResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetStatisticsResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetStatisticsResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetStatisticsResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetStatisticsResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetStatisticsResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetStatisticsResponseBody other = (GetStatisticsResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetStatisticsResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetStatisticsResponseBody build() { - return new GetStatisticsResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTimelineErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTimelineErrors.java deleted file mode 100644 index 017bd5c7..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTimelineErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetTimelineErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public GetTimelineErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public GetTimelineErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetTimelineErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetTimelineErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetTimelineErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public GetTimelineErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public GetTimelineErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetTimelineErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetTimelineErrors other = (GetTimelineErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(GetTimelineErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetTimelineErrors build() { - return new GetTimelineErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTimelineResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTimelineResponseBody.java deleted file mode 100644 index 66e050a3..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTimelineResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetTimelineResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class GetTimelineResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetTimelineResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetTimelineResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetTimelineResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetTimelineResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetTimelineResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetTimelineResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetTimelineResponseBody other = (GetTimelineResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetTimelineResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetTimelineResponseBody build() { - return new GetTimelineResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTokenErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTokenErrors.java deleted file mode 100644 index 4da85bf8..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTokenErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetTokenErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public GetTokenErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public GetTokenErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetTokenErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetTokenErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetTokenErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public GetTokenErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public GetTokenErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetTokenErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetTokenErrors other = (GetTokenErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(GetTokenErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetTokenErrors build() { - return new GetTokenErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTokenResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTokenResponseBody.java deleted file mode 100644 index 6dc7daa1..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTokenResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetTokenResponseBody - X-Plex-Client-Identifier is missing - */ -public class GetTokenResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetTokenResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetTokenResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetTokenResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetTokenResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetTokenResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetTokenResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetTokenResponseBody other = (GetTokenResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetTokenResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetTokenResponseBody build() { - return new GetTokenResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTranscodeSessionsErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTranscodeSessionsErrors.java deleted file mode 100644 index fad2c81c..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTranscodeSessionsErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetTranscodeSessionsErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public GetTranscodeSessionsErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public GetTranscodeSessionsErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetTranscodeSessionsErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetTranscodeSessionsErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetTranscodeSessionsErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public GetTranscodeSessionsErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public GetTranscodeSessionsErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetTranscodeSessionsErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetTranscodeSessionsErrors other = (GetTranscodeSessionsErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(GetTranscodeSessionsErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetTranscodeSessionsErrors build() { - return new GetTranscodeSessionsErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTranscodeSessionsResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTranscodeSessionsResponseBody.java deleted file mode 100644 index d4453c9b..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTranscodeSessionsResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetTranscodeSessionsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class GetTranscodeSessionsResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetTranscodeSessionsResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetTranscodeSessionsResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetTranscodeSessionsResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetTranscodeSessionsResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetTranscodeSessionsResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetTranscodeSessionsResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetTranscodeSessionsResponseBody other = (GetTranscodeSessionsResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetTranscodeSessionsResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetTranscodeSessionsResponseBody build() { - return new GetTranscodeSessionsResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTransientTokenErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTransientTokenErrors.java deleted file mode 100644 index 53df23ef..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTransientTokenErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetTransientTokenErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public GetTransientTokenErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public GetTransientTokenErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetTransientTokenErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetTransientTokenErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetTransientTokenErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public GetTransientTokenErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public GetTransientTokenErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetTransientTokenErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetTransientTokenErrors other = (GetTransientTokenErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(GetTransientTokenErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetTransientTokenErrors build() { - return new GetTransientTokenErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTransientTokenResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTransientTokenResponseBody.java deleted file mode 100644 index bbdcfd39..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetTransientTokenResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetTransientTokenResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class GetTransientTokenResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetTransientTokenResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetTransientTokenResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetTransientTokenResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetTransientTokenResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetTransientTokenResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetTransientTokenResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetTransientTokenResponseBody other = (GetTransientTokenResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetTransientTokenResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetTransientTokenResponseBody build() { - return new GetTransientTokenResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetUpdateStatusErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetUpdateStatusErrors.java deleted file mode 100644 index b2f6f297..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetUpdateStatusErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetUpdateStatusErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public GetUpdateStatusErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public GetUpdateStatusErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetUpdateStatusErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetUpdateStatusErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetUpdateStatusErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public GetUpdateStatusErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public GetUpdateStatusErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetUpdateStatusErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetUpdateStatusErrors other = (GetUpdateStatusErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(GetUpdateStatusErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetUpdateStatusErrors build() { - return new GetUpdateStatusErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetUpdateStatusResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetUpdateStatusResponseBody.java deleted file mode 100644 index b9772d86..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetUpdateStatusResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetUpdateStatusResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class GetUpdateStatusResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetUpdateStatusResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetUpdateStatusResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetUpdateStatusResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetUpdateStatusResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetUpdateStatusResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetUpdateStatusResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetUpdateStatusResponseBody other = (GetUpdateStatusResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetUpdateStatusResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetUpdateStatusResponseBody build() { - return new GetUpdateStatusResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetWatchlistErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetWatchlistErrors.java deleted file mode 100644 index 7beb28d2..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetWatchlistErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetWatchlistErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public GetWatchlistErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public GetWatchlistErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetWatchlistErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetWatchlistErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetWatchlistErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public GetWatchlistErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public GetWatchlistErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetWatchlistErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetWatchlistErrors other = (GetWatchlistErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(GetWatchlistErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetWatchlistErrors build() { - return new GetWatchlistErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetWatchlistResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetWatchlistResponseBody.java deleted file mode 100644 index 6a3fa6dc..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/GetWatchlistResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetWatchlistResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class GetWatchlistResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public GetWatchlistResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public GetWatchlistResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetWatchlistResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public GetWatchlistResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetWatchlistResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetWatchlistResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetWatchlistResponseBody other = (GetWatchlistResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetWatchlistResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetWatchlistResponseBody build() { - return new GetWatchlistResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/LogLineErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/LogLineErrors.java deleted file mode 100644 index bc8befba..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/LogLineErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class LogLineErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public LogLineErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public LogLineErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public LogLineErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public LogLineErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public LogLineErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public LogLineErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public LogLineErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public LogLineErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LogLineErrors other = (LogLineErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(LogLineErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public LogLineErrors build() { - return new LogLineErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/LogLineResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/LogLineResponseBody.java deleted file mode 100644 index b897dd76..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/LogLineResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * LogLineResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class LogLineResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public LogLineResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public LogLineResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public LogLineResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public LogLineResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public LogLineResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public LogLineResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LogLineResponseBody other = (LogLineResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(LogLineResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public LogLineResponseBody build() { - return new LogLineResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/LogMultiLineErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/LogMultiLineErrors.java deleted file mode 100644 index 6515594a..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/LogMultiLineErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class LogMultiLineErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public LogMultiLineErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public LogMultiLineErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public LogMultiLineErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public LogMultiLineErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public LogMultiLineErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public LogMultiLineErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public LogMultiLineErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public LogMultiLineErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LogMultiLineErrors other = (LogMultiLineErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(LogMultiLineErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public LogMultiLineErrors build() { - return new LogMultiLineErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/LogMultiLineResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/LogMultiLineResponseBody.java deleted file mode 100644 index b41dd8d0..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/LogMultiLineResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * LogMultiLineResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class LogMultiLineResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public LogMultiLineResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public LogMultiLineResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public LogMultiLineResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public LogMultiLineResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public LogMultiLineResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public LogMultiLineResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LogMultiLineResponseBody other = (LogMultiLineResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(LogMultiLineResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public LogMultiLineResponseBody build() { - return new LogMultiLineResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/MarkPlayedErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/MarkPlayedErrors.java deleted file mode 100644 index f0eb3d1a..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/MarkPlayedErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class MarkPlayedErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public MarkPlayedErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public MarkPlayedErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public MarkPlayedErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public MarkPlayedErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public MarkPlayedErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public MarkPlayedErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public MarkPlayedErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public MarkPlayedErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarkPlayedErrors other = (MarkPlayedErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(MarkPlayedErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public MarkPlayedErrors build() { - return new MarkPlayedErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/MarkPlayedResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/MarkPlayedResponseBody.java deleted file mode 100644 index 4e86f6b2..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/MarkPlayedResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * MarkPlayedResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class MarkPlayedResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public MarkPlayedResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public MarkPlayedResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public MarkPlayedResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public MarkPlayedResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public MarkPlayedResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public MarkPlayedResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarkPlayedResponseBody other = (MarkPlayedResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(MarkPlayedResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public MarkPlayedResponseBody build() { - return new MarkPlayedResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/MarkUnplayedErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/MarkUnplayedErrors.java deleted file mode 100644 index 5f485d95..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/MarkUnplayedErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class MarkUnplayedErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public MarkUnplayedErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public MarkUnplayedErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public MarkUnplayedErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public MarkUnplayedErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public MarkUnplayedErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public MarkUnplayedErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public MarkUnplayedErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public MarkUnplayedErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarkUnplayedErrors other = (MarkUnplayedErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(MarkUnplayedErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public MarkUnplayedErrors build() { - return new MarkUnplayedErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/MarkUnplayedResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/MarkUnplayedResponseBody.java deleted file mode 100644 index a83beff9..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/MarkUnplayedResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * MarkUnplayedResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class MarkUnplayedResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public MarkUnplayedResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public MarkUnplayedResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public MarkUnplayedResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public MarkUnplayedResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public MarkUnplayedResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public MarkUnplayedResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarkUnplayedResponseBody other = (MarkUnplayedResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(MarkUnplayedResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public MarkUnplayedResponseBody build() { - return new MarkUnplayedResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/PerformSearchErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/PerformSearchErrors.java deleted file mode 100644 index 29ab6a22..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/PerformSearchErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class PerformSearchErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public PerformSearchErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public PerformSearchErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public PerformSearchErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public PerformSearchErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public PerformSearchErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public PerformSearchErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public PerformSearchErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public PerformSearchErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PerformSearchErrors other = (PerformSearchErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(PerformSearchErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public PerformSearchErrors build() { - return new PerformSearchErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/PerformSearchResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/PerformSearchResponseBody.java deleted file mode 100644 index ee4978a1..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/PerformSearchResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * PerformSearchResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class PerformSearchResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public PerformSearchResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public PerformSearchResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public PerformSearchResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public PerformSearchResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PerformSearchResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PerformSearchResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PerformSearchResponseBody other = (PerformSearchResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(PerformSearchResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public PerformSearchResponseBody build() { - return new PerformSearchResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/PerformVoiceSearchErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/PerformVoiceSearchErrors.java deleted file mode 100644 index 8369c2e0..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/PerformVoiceSearchErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class PerformVoiceSearchErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public PerformVoiceSearchErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public PerformVoiceSearchErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public PerformVoiceSearchErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public PerformVoiceSearchErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public PerformVoiceSearchErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public PerformVoiceSearchErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public PerformVoiceSearchErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public PerformVoiceSearchErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PerformVoiceSearchErrors other = (PerformVoiceSearchErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(PerformVoiceSearchErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public PerformVoiceSearchErrors build() { - return new PerformVoiceSearchErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/PerformVoiceSearchResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/PerformVoiceSearchResponseBody.java deleted file mode 100644 index 710af69d..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/PerformVoiceSearchResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * PerformVoiceSearchResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class PerformVoiceSearchResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public PerformVoiceSearchResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public PerformVoiceSearchResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public PerformVoiceSearchResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public PerformVoiceSearchResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PerformVoiceSearchResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PerformVoiceSearchResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PerformVoiceSearchResponseBody other = (PerformVoiceSearchResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(PerformVoiceSearchResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public PerformVoiceSearchResponseBody build() { - return new PerformVoiceSearchResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/RefreshLibraryErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/RefreshLibraryErrors.java deleted file mode 100644 index f434f489..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/RefreshLibraryErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class RefreshLibraryErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public RefreshLibraryErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public RefreshLibraryErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public RefreshLibraryErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public RefreshLibraryErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public RefreshLibraryErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public RefreshLibraryErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public RefreshLibraryErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public RefreshLibraryErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RefreshLibraryErrors other = (RefreshLibraryErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(RefreshLibraryErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public RefreshLibraryErrors build() { - return new RefreshLibraryErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/RefreshLibraryResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/RefreshLibraryResponseBody.java deleted file mode 100644 index a53ed32f..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/RefreshLibraryResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * RefreshLibraryResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class RefreshLibraryResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public RefreshLibraryResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public RefreshLibraryResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public RefreshLibraryResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public RefreshLibraryResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public RefreshLibraryResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public RefreshLibraryResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RefreshLibraryResponseBody other = (RefreshLibraryResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(RefreshLibraryResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public RefreshLibraryResponseBody build() { - return new RefreshLibraryResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/SDKError.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/SDKError.java deleted file mode 100644 index 03bdfe4f..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/SDKError.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import java.net.http.HttpResponse; -import java.io.InputStream; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * Thrown by a service call when an error response occurs. Contains details about the response. - */ -@SuppressWarnings("serial") -public class SDKError extends Exception { - - private final HttpResponse rawResponse; - private final int code; - private final String message; - private final byte[] body; - - public SDKError( - HttpResponse rawResponse, - int code, - String message, - byte[] body) { - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(body, "body"); - this.rawResponse = rawResponse; - this.code = code; - this.message = message; - this.body = body; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SDKError other = (SDKError) o; - return - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.body, other.body); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - rawResponse, - code, - message, - body); - } - - @Override - public String toString() { - return Utils.toString(SDKError.class, - "rawResponse", rawResponse, - "code", code, - "message", message, - "body", body); - } - - public HttpResponse rawResponse() { - return this.rawResponse; - } - - public int code() { - return this.code; - } - - public String message() { - return this.message; - } - - public byte[] body() { - return this.body; - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/SearchLibraryErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/SearchLibraryErrors.java deleted file mode 100644 index ff7287e9..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/SearchLibraryErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class SearchLibraryErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public SearchLibraryErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public SearchLibraryErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public SearchLibraryErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public SearchLibraryErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public SearchLibraryErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public SearchLibraryErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public SearchLibraryErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public SearchLibraryErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SearchLibraryErrors other = (SearchLibraryErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(SearchLibraryErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public SearchLibraryErrors build() { - return new SearchLibraryErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/SearchLibraryResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/SearchLibraryResponseBody.java deleted file mode 100644 index f292e3d5..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/SearchLibraryResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * SearchLibraryResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class SearchLibraryResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public SearchLibraryResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public SearchLibraryResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public SearchLibraryResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public SearchLibraryResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public SearchLibraryResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public SearchLibraryResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SearchLibraryResponseBody other = (SearchLibraryResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(SearchLibraryResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public SearchLibraryResponseBody build() { - return new SearchLibraryResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StartAllTasksErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/StartAllTasksErrors.java deleted file mode 100644 index 8a7f794a..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StartAllTasksErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class StartAllTasksErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public StartAllTasksErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public StartAllTasksErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public StartAllTasksErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public StartAllTasksErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public StartAllTasksErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public StartAllTasksErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public StartAllTasksErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public StartAllTasksErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - StartAllTasksErrors other = (StartAllTasksErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(StartAllTasksErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public StartAllTasksErrors build() { - return new StartAllTasksErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StartAllTasksResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/StartAllTasksResponseBody.java deleted file mode 100644 index 63181357..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StartAllTasksResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * StartAllTasksResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class StartAllTasksResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public StartAllTasksResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public StartAllTasksResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public StartAllTasksResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public StartAllTasksResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public StartAllTasksResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public StartAllTasksResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - StartAllTasksResponseBody other = (StartAllTasksResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(StartAllTasksResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public StartAllTasksResponseBody build() { - return new StartAllTasksResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StartTaskErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/StartTaskErrors.java deleted file mode 100644 index 74253502..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StartTaskErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class StartTaskErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public StartTaskErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public StartTaskErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public StartTaskErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public StartTaskErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public StartTaskErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public StartTaskErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public StartTaskErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public StartTaskErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - StartTaskErrors other = (StartTaskErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(StartTaskErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public StartTaskErrors build() { - return new StartTaskErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StartTaskResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/StartTaskResponseBody.java deleted file mode 100644 index d8574b53..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StartTaskResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * StartTaskResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class StartTaskResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public StartTaskResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public StartTaskResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public StartTaskResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public StartTaskResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public StartTaskResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public StartTaskResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - StartTaskResponseBody other = (StartTaskResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(StartTaskResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public StartTaskResponseBody build() { - return new StartTaskResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StartUniversalTranscodeErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/StartUniversalTranscodeErrors.java deleted file mode 100644 index 3cadb915..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StartUniversalTranscodeErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class StartUniversalTranscodeErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public StartUniversalTranscodeErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public StartUniversalTranscodeErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public StartUniversalTranscodeErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public StartUniversalTranscodeErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public StartUniversalTranscodeErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public StartUniversalTranscodeErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public StartUniversalTranscodeErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public StartUniversalTranscodeErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - StartUniversalTranscodeErrors other = (StartUniversalTranscodeErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(StartUniversalTranscodeErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public StartUniversalTranscodeErrors build() { - return new StartUniversalTranscodeErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StartUniversalTranscodeResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/StartUniversalTranscodeResponseBody.java deleted file mode 100644 index af84337e..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StartUniversalTranscodeResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * StartUniversalTranscodeResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class StartUniversalTranscodeResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public StartUniversalTranscodeResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public StartUniversalTranscodeResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public StartUniversalTranscodeResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public StartUniversalTranscodeResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public StartUniversalTranscodeResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public StartUniversalTranscodeResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - StartUniversalTranscodeResponseBody other = (StartUniversalTranscodeResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(StartUniversalTranscodeResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public StartUniversalTranscodeResponseBody build() { - return new StartUniversalTranscodeResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StopAllTasksErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/StopAllTasksErrors.java deleted file mode 100644 index cb94aa93..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StopAllTasksErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class StopAllTasksErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public StopAllTasksErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public StopAllTasksErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public StopAllTasksErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public StopAllTasksErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public StopAllTasksErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public StopAllTasksErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public StopAllTasksErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public StopAllTasksErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - StopAllTasksErrors other = (StopAllTasksErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(StopAllTasksErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public StopAllTasksErrors build() { - return new StopAllTasksErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StopAllTasksResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/StopAllTasksResponseBody.java deleted file mode 100644 index 18d0d9c0..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StopAllTasksResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * StopAllTasksResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class StopAllTasksResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public StopAllTasksResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public StopAllTasksResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public StopAllTasksResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public StopAllTasksResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public StopAllTasksResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public StopAllTasksResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - StopAllTasksResponseBody other = (StopAllTasksResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(StopAllTasksResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public StopAllTasksResponseBody build() { - return new StopAllTasksResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StopTaskErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/StopTaskErrors.java deleted file mode 100644 index 76d95a09..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StopTaskErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class StopTaskErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public StopTaskErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public StopTaskErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public StopTaskErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public StopTaskErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public StopTaskErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public StopTaskErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public StopTaskErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public StopTaskErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - StopTaskErrors other = (StopTaskErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(StopTaskErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public StopTaskErrors build() { - return new StopTaskErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StopTaskResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/StopTaskResponseBody.java deleted file mode 100644 index 48de29be..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StopTaskResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * StopTaskResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class StopTaskResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public StopTaskResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public StopTaskResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public StopTaskResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public StopTaskResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public StopTaskResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public StopTaskResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - StopTaskResponseBody other = (StopTaskResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(StopTaskResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public StopTaskResponseBody build() { - return new StopTaskResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StopTranscodeSessionErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/StopTranscodeSessionErrors.java deleted file mode 100644 index 1d7dc06d..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StopTranscodeSessionErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class StopTranscodeSessionErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public StopTranscodeSessionErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public StopTranscodeSessionErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public StopTranscodeSessionErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public StopTranscodeSessionErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public StopTranscodeSessionErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public StopTranscodeSessionErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public StopTranscodeSessionErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public StopTranscodeSessionErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - StopTranscodeSessionErrors other = (StopTranscodeSessionErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(StopTranscodeSessionErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public StopTranscodeSessionErrors build() { - return new StopTranscodeSessionErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StopTranscodeSessionResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/StopTranscodeSessionResponseBody.java deleted file mode 100644 index e4983bb4..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/StopTranscodeSessionResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * StopTranscodeSessionResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class StopTranscodeSessionResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public StopTranscodeSessionResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public StopTranscodeSessionResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public StopTranscodeSessionResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public StopTranscodeSessionResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public StopTranscodeSessionResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public StopTranscodeSessionResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - StopTranscodeSessionResponseBody other = (StopTranscodeSessionResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(StopTranscodeSessionResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public StopTranscodeSessionResponseBody build() { - return new StopTranscodeSessionResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/UpdatePlayProgressErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/UpdatePlayProgressErrors.java deleted file mode 100644 index b4c2c7b9..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/UpdatePlayProgressErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class UpdatePlayProgressErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public UpdatePlayProgressErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public UpdatePlayProgressErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public UpdatePlayProgressErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public UpdatePlayProgressErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public UpdatePlayProgressErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public UpdatePlayProgressErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public UpdatePlayProgressErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public UpdatePlayProgressErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UpdatePlayProgressErrors other = (UpdatePlayProgressErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(UpdatePlayProgressErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public UpdatePlayProgressErrors build() { - return new UpdatePlayProgressErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/UpdatePlayProgressResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/UpdatePlayProgressResponseBody.java deleted file mode 100644 index 64bfee76..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/UpdatePlayProgressResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * UpdatePlayProgressResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class UpdatePlayProgressResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public UpdatePlayProgressResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public UpdatePlayProgressResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public UpdatePlayProgressResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public UpdatePlayProgressResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public UpdatePlayProgressResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public UpdatePlayProgressResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UpdatePlayProgressResponseBody other = (UpdatePlayProgressResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(UpdatePlayProgressResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public UpdatePlayProgressResponseBody build() { - return new UpdatePlayProgressResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/UpdatePlaylistErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/UpdatePlaylistErrors.java deleted file mode 100644 index 060ec334..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/UpdatePlaylistErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class UpdatePlaylistErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public UpdatePlaylistErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public UpdatePlaylistErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public UpdatePlaylistErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public UpdatePlaylistErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public UpdatePlaylistErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public UpdatePlaylistErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public UpdatePlaylistErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public UpdatePlaylistErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UpdatePlaylistErrors other = (UpdatePlaylistErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(UpdatePlaylistErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public UpdatePlaylistErrors build() { - return new UpdatePlaylistErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/UpdatePlaylistResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/UpdatePlaylistResponseBody.java deleted file mode 100644 index 17c1b88e..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/UpdatePlaylistResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * UpdatePlaylistResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class UpdatePlaylistResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public UpdatePlaylistResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public UpdatePlaylistResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public UpdatePlaylistResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public UpdatePlaylistResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public UpdatePlaylistResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public UpdatePlaylistResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UpdatePlaylistResponseBody other = (UpdatePlaylistResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(UpdatePlaylistResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public UpdatePlaylistResponseBody build() { - return new UpdatePlaylistResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/UploadPlaylistErrors.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/UploadPlaylistErrors.java deleted file mode 100644 index af74b8b4..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/UploadPlaylistErrors.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class UploadPlaylistErrors { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("message") - private Optional message; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonCreator - public UploadPlaylistErrors( - @JsonProperty("code") Optional code, - @JsonProperty("message") Optional message, - @JsonProperty("status") Optional status) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(status, "status"); - this.code = code; - this.message = message; - this.status = status; - } - - public UploadPlaylistErrors() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional message() { - return (Optional) message; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - public final static Builder builder() { - return new Builder(); - } - - public UploadPlaylistErrors withCode(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public UploadPlaylistErrors withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public UploadPlaylistErrors withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public UploadPlaylistErrors withMessage(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public UploadPlaylistErrors withStatus(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public UploadPlaylistErrors withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UploadPlaylistErrors other = (UploadPlaylistErrors) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - message, - status); - } - - @Override - public String toString() { - return Utils.toString(UploadPlaylistErrors.class, - "code", code, - "message", message, - "status", status); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); - - private Optional status = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(double code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = Optional.ofNullable(message); - return this; - } - - public Builder message(Optional message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public Builder status(double status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public UploadPlaylistErrors build() { - return new UploadPlaylistErrors( - code, - message, - status); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/errors/UploadPlaylistResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/errors/UploadPlaylistResponseBody.java deleted file mode 100644 index 5eb96d1d..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/errors/UploadPlaylistResponseBody.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * UploadPlaylistResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. - */ -public class UploadPlaylistResponseBody extends RuntimeException { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errors") - private Optional> errors; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("-") - private Optional> rawResponse; - - @JsonCreator - public UploadPlaylistResponseBody( - @JsonProperty("errors") Optional> errors, - @JsonProperty("RawResponse") Optional> rawResponse) { - Utils.checkNotNull(errors, "errors"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.errors = errors; - this.rawResponse = rawResponse; - } - - public UploadPlaylistResponseBody() { - this(Optional.empty(), Optional.empty()); - } - - public Optional> errors(){ - return errors; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Optional> rawResponse(){ - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - public UploadPlaylistResponseBody withErrors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public UploadPlaylistResponseBody withErrors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public UploadPlaylistResponseBody withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public UploadPlaylistResponseBody withRawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UploadPlaylistResponseBody other = (UploadPlaylistResponseBody) o; - return - java.util.Objects.deepEquals(this.errors, other.errors) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - errors, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(UploadPlaylistResponseBody.class, - "errors", errors, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private Optional> errors = Optional.empty(); - - private Optional> rawResponse; - - private Builder() { - // force use of static builder() method - } - - public Builder errors(java.util.List errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = Optional.ofNullable(errors); - return this; - } - - public Builder errors(Optional> errors) { - Utils.checkNotNull(errors, "errors"); - this.errors = errors; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = Optional.ofNullable(rawResponse); - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(Optional> rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public UploadPlaylistResponseBody build() { - return new UploadPlaylistResponseBody( - errors, - rawResponse); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Account.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Account.java deleted file mode 100644 index f367f5e0..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Account.java +++ /dev/null @@ -1,412 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class Account { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("defaultAudioLanguage") - private Optional defaultAudioLanguage; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("autoSelectAudio") - private Optional autoSelectAudio; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("defaultSubtitleLanguage") - private Optional defaultSubtitleLanguage; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("subtitleMode") - private Optional subtitleMode; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("thumb") - private Optional thumb; - - @JsonCreator - public Account( - @JsonProperty("id") Optional id, - @JsonProperty("key") Optional key, - @JsonProperty("name") Optional name, - @JsonProperty("defaultAudioLanguage") Optional defaultAudioLanguage, - @JsonProperty("autoSelectAudio") Optional autoSelectAudio, - @JsonProperty("defaultSubtitleLanguage") Optional defaultSubtitleLanguage, - @JsonProperty("subtitleMode") Optional subtitleMode, - @JsonProperty("thumb") Optional thumb) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(defaultAudioLanguage, "defaultAudioLanguage"); - Utils.checkNotNull(autoSelectAudio, "autoSelectAudio"); - Utils.checkNotNull(defaultSubtitleLanguage, "defaultSubtitleLanguage"); - Utils.checkNotNull(subtitleMode, "subtitleMode"); - Utils.checkNotNull(thumb, "thumb"); - this.id = id; - this.key = key; - this.name = name; - this.defaultAudioLanguage = defaultAudioLanguage; - this.autoSelectAudio = autoSelectAudio; - this.defaultSubtitleLanguage = defaultSubtitleLanguage; - this.subtitleMode = subtitleMode; - this.thumb = thumb; - } - - public Account() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional name() { - return (Optional) name; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional defaultAudioLanguage() { - return (Optional) defaultAudioLanguage; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional autoSelectAudio() { - return (Optional) autoSelectAudio; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional defaultSubtitleLanguage() { - return (Optional) defaultSubtitleLanguage; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional subtitleMode() { - return (Optional) subtitleMode; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional thumb() { - return (Optional) thumb; - } - - public final static Builder builder() { - return new Builder(); - } - - public Account withId(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Account withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Account withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Account withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Account withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Account withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Account withDefaultAudioLanguage(String defaultAudioLanguage) { - Utils.checkNotNull(defaultAudioLanguage, "defaultAudioLanguage"); - this.defaultAudioLanguage = Optional.ofNullable(defaultAudioLanguage); - return this; - } - - public Account withDefaultAudioLanguage(Optional defaultAudioLanguage) { - Utils.checkNotNull(defaultAudioLanguage, "defaultAudioLanguage"); - this.defaultAudioLanguage = defaultAudioLanguage; - return this; - } - - public Account withAutoSelectAudio(boolean autoSelectAudio) { - Utils.checkNotNull(autoSelectAudio, "autoSelectAudio"); - this.autoSelectAudio = Optional.ofNullable(autoSelectAudio); - return this; - } - - public Account withAutoSelectAudio(Optional autoSelectAudio) { - Utils.checkNotNull(autoSelectAudio, "autoSelectAudio"); - this.autoSelectAudio = autoSelectAudio; - return this; - } - - public Account withDefaultSubtitleLanguage(String defaultSubtitleLanguage) { - Utils.checkNotNull(defaultSubtitleLanguage, "defaultSubtitleLanguage"); - this.defaultSubtitleLanguage = Optional.ofNullable(defaultSubtitleLanguage); - return this; - } - - public Account withDefaultSubtitleLanguage(Optional defaultSubtitleLanguage) { - Utils.checkNotNull(defaultSubtitleLanguage, "defaultSubtitleLanguage"); - this.defaultSubtitleLanguage = defaultSubtitleLanguage; - return this; - } - - public Account withSubtitleMode(int subtitleMode) { - Utils.checkNotNull(subtitleMode, "subtitleMode"); - this.subtitleMode = Optional.ofNullable(subtitleMode); - return this; - } - - public Account withSubtitleMode(Optional subtitleMode) { - Utils.checkNotNull(subtitleMode, "subtitleMode"); - this.subtitleMode = subtitleMode; - return this; - } - - public Account withThumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public Account withThumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Account other = (Account) o; - return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.name, other.name) && - java.util.Objects.deepEquals(this.defaultAudioLanguage, other.defaultAudioLanguage) && - java.util.Objects.deepEquals(this.autoSelectAudio, other.autoSelectAudio) && - java.util.Objects.deepEquals(this.defaultSubtitleLanguage, other.defaultSubtitleLanguage) && - java.util.Objects.deepEquals(this.subtitleMode, other.subtitleMode) && - java.util.Objects.deepEquals(this.thumb, other.thumb); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id, - key, - name, - defaultAudioLanguage, - autoSelectAudio, - defaultSubtitleLanguage, - subtitleMode, - thumb); - } - - @Override - public String toString() { - return Utils.toString(Account.class, - "id", id, - "key", key, - "name", name, - "defaultAudioLanguage", defaultAudioLanguage, - "autoSelectAudio", autoSelectAudio, - "defaultSubtitleLanguage", defaultSubtitleLanguage, - "subtitleMode", subtitleMode, - "thumb", thumb); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional name = Optional.empty(); - - private Optional defaultAudioLanguage = Optional.empty(); - - private Optional autoSelectAudio = Optional.empty(); - - private Optional defaultSubtitleLanguage = Optional.empty(); - - private Optional subtitleMode = Optional.empty(); - - private Optional thumb = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Builder defaultAudioLanguage(String defaultAudioLanguage) { - Utils.checkNotNull(defaultAudioLanguage, "defaultAudioLanguage"); - this.defaultAudioLanguage = Optional.ofNullable(defaultAudioLanguage); - return this; - } - - public Builder defaultAudioLanguage(Optional defaultAudioLanguage) { - Utils.checkNotNull(defaultAudioLanguage, "defaultAudioLanguage"); - this.defaultAudioLanguage = defaultAudioLanguage; - return this; - } - - public Builder autoSelectAudio(boolean autoSelectAudio) { - Utils.checkNotNull(autoSelectAudio, "autoSelectAudio"); - this.autoSelectAudio = Optional.ofNullable(autoSelectAudio); - return this; - } - - public Builder autoSelectAudio(Optional autoSelectAudio) { - Utils.checkNotNull(autoSelectAudio, "autoSelectAudio"); - this.autoSelectAudio = autoSelectAudio; - return this; - } - - public Builder defaultSubtitleLanguage(String defaultSubtitleLanguage) { - Utils.checkNotNull(defaultSubtitleLanguage, "defaultSubtitleLanguage"); - this.defaultSubtitleLanguage = Optional.ofNullable(defaultSubtitleLanguage); - return this; - } - - public Builder defaultSubtitleLanguage(Optional defaultSubtitleLanguage) { - Utils.checkNotNull(defaultSubtitleLanguage, "defaultSubtitleLanguage"); - this.defaultSubtitleLanguage = defaultSubtitleLanguage; - return this; - } - - public Builder subtitleMode(int subtitleMode) { - Utils.checkNotNull(subtitleMode, "subtitleMode"); - this.subtitleMode = Optional.ofNullable(subtitleMode); - return this; - } - - public Builder subtitleMode(Optional subtitleMode) { - Utils.checkNotNull(subtitleMode, "subtitleMode"); - this.subtitleMode = subtitleMode; - return this; - } - - public Builder thumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public Builder thumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public Account build() { - return new Account( - id, - key, - name, - defaultAudioLanguage, - autoSelectAudio, - defaultSubtitleLanguage, - subtitleMode, - thumb); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Activity.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Activity.java deleted file mode 100644 index 62e86624..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Activity.java +++ /dev/null @@ -1,412 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class Activity { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("uuid") - private Optional uuid; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("cancellable") - private Optional cancellable; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("userID") - private Optional userID; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title") - private Optional title; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("subtitle") - private Optional subtitle; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("progress") - private Optional progress; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Context") - private Optional context; - - @JsonCreator - public Activity( - @JsonProperty("uuid") Optional uuid, - @JsonProperty("type") Optional type, - @JsonProperty("cancellable") Optional cancellable, - @JsonProperty("userID") Optional userID, - @JsonProperty("title") Optional title, - @JsonProperty("subtitle") Optional subtitle, - @JsonProperty("progress") Optional progress, - @JsonProperty("Context") Optional context) { - Utils.checkNotNull(uuid, "uuid"); - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(cancellable, "cancellable"); - Utils.checkNotNull(userID, "userID"); - Utils.checkNotNull(title, "title"); - Utils.checkNotNull(subtitle, "subtitle"); - Utils.checkNotNull(progress, "progress"); - Utils.checkNotNull(context, "context"); - this.uuid = uuid; - this.type = type; - this.cancellable = cancellable; - this.userID = userID; - this.title = title; - this.subtitle = subtitle; - this.progress = progress; - this.context = context; - } - - public Activity() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional uuid() { - return (Optional) uuid; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional cancellable() { - return (Optional) cancellable; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional userID() { - return (Optional) userID; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title() { - return (Optional) title; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional subtitle() { - return (Optional) subtitle; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional progress() { - return (Optional) progress; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional context() { - return (Optional) context; - } - - public final static Builder builder() { - return new Builder(); - } - - public Activity withUuid(String uuid) { - Utils.checkNotNull(uuid, "uuid"); - this.uuid = Optional.ofNullable(uuid); - return this; - } - - public Activity withUuid(Optional uuid) { - Utils.checkNotNull(uuid, "uuid"); - this.uuid = uuid; - return this; - } - - public Activity withType(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Activity withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Activity withCancellable(boolean cancellable) { - Utils.checkNotNull(cancellable, "cancellable"); - this.cancellable = Optional.ofNullable(cancellable); - return this; - } - - public Activity withCancellable(Optional cancellable) { - Utils.checkNotNull(cancellable, "cancellable"); - this.cancellable = cancellable; - return this; - } - - public Activity withUserID(double userID) { - Utils.checkNotNull(userID, "userID"); - this.userID = Optional.ofNullable(userID); - return this; - } - - public Activity withUserID(Optional userID) { - Utils.checkNotNull(userID, "userID"); - this.userID = userID; - return this; - } - - public Activity withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Activity withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Activity withSubtitle(String subtitle) { - Utils.checkNotNull(subtitle, "subtitle"); - this.subtitle = Optional.ofNullable(subtitle); - return this; - } - - public Activity withSubtitle(Optional subtitle) { - Utils.checkNotNull(subtitle, "subtitle"); - this.subtitle = subtitle; - return this; - } - - public Activity withProgress(double progress) { - Utils.checkNotNull(progress, "progress"); - this.progress = Optional.ofNullable(progress); - return this; - } - - public Activity withProgress(Optional progress) { - Utils.checkNotNull(progress, "progress"); - this.progress = progress; - return this; - } - - public Activity withContext(Context context) { - Utils.checkNotNull(context, "context"); - this.context = Optional.ofNullable(context); - return this; - } - - public Activity withContext(Optional context) { - Utils.checkNotNull(context, "context"); - this.context = context; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Activity other = (Activity) o; - return - java.util.Objects.deepEquals(this.uuid, other.uuid) && - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.cancellable, other.cancellable) && - java.util.Objects.deepEquals(this.userID, other.userID) && - java.util.Objects.deepEquals(this.title, other.title) && - java.util.Objects.deepEquals(this.subtitle, other.subtitle) && - java.util.Objects.deepEquals(this.progress, other.progress) && - java.util.Objects.deepEquals(this.context, other.context); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - uuid, - type, - cancellable, - userID, - title, - subtitle, - progress, - context); - } - - @Override - public String toString() { - return Utils.toString(Activity.class, - "uuid", uuid, - "type", type, - "cancellable", cancellable, - "userID", userID, - "title", title, - "subtitle", subtitle, - "progress", progress, - "context", context); - } - - public final static class Builder { - - private Optional uuid = Optional.empty(); - - private Optional type = Optional.empty(); - - private Optional cancellable = Optional.empty(); - - private Optional userID = Optional.empty(); - - private Optional title = Optional.empty(); - - private Optional subtitle = Optional.empty(); - - private Optional progress = Optional.empty(); - - private Optional context = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder uuid(String uuid) { - Utils.checkNotNull(uuid, "uuid"); - this.uuid = Optional.ofNullable(uuid); - return this; - } - - public Builder uuid(Optional uuid) { - Utils.checkNotNull(uuid, "uuid"); - this.uuid = uuid; - return this; - } - - public Builder type(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Builder cancellable(boolean cancellable) { - Utils.checkNotNull(cancellable, "cancellable"); - this.cancellable = Optional.ofNullable(cancellable); - return this; - } - - public Builder cancellable(Optional cancellable) { - Utils.checkNotNull(cancellable, "cancellable"); - this.cancellable = cancellable; - return this; - } - - public Builder userID(double userID) { - Utils.checkNotNull(userID, "userID"); - this.userID = Optional.ofNullable(userID); - return this; - } - - public Builder userID(Optional userID) { - Utils.checkNotNull(userID, "userID"); - this.userID = userID; - return this; - } - - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Builder subtitle(String subtitle) { - Utils.checkNotNull(subtitle, "subtitle"); - this.subtitle = Optional.ofNullable(subtitle); - return this; - } - - public Builder subtitle(Optional subtitle) { - Utils.checkNotNull(subtitle, "subtitle"); - this.subtitle = subtitle; - return this; - } - - public Builder progress(double progress) { - Utils.checkNotNull(progress, "progress"); - this.progress = Optional.ofNullable(progress); - return this; - } - - public Builder progress(Optional progress) { - Utils.checkNotNull(progress, "progress"); - this.progress = progress; - return this; - } - - public Builder context(Context context) { - Utils.checkNotNull(context, "context"); - this.context = Optional.ofNullable(context); - return this; - } - - public Builder context(Optional context) { - Utils.checkNotNull(context, "context"); - this.context = context; - return this; - } - - public Activity build() { - return new Activity( - uuid, - type, - cancellable, - userID, - title, - subtitle, - progress, - context); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsMediaContainer.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsMediaContainer.java deleted file mode 100644 index 68a1bff0..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsMediaContainer.java +++ /dev/null @@ -1,240 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class AddPlaylistContentsMediaContainer { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("leafCountAdded") - private Optional leafCountAdded; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("leafCountRequested") - private Optional leafCountRequested; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Metadata") - private Optional> metadata; - - @JsonCreator - public AddPlaylistContentsMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("leafCountAdded") Optional leafCountAdded, - @JsonProperty("leafCountRequested") Optional leafCountRequested, - @JsonProperty("Metadata") Optional> metadata) { - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(leafCountAdded, "leafCountAdded"); - Utils.checkNotNull(leafCountRequested, "leafCountRequested"); - Utils.checkNotNull(metadata, "metadata"); - this.size = size; - this.leafCountAdded = leafCountAdded; - this.leafCountRequested = leafCountRequested; - this.metadata = metadata; - } - - public AddPlaylistContentsMediaContainer() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional leafCountAdded() { - return (Optional) leafCountAdded; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional leafCountRequested() { - return (Optional) leafCountRequested; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; - } - - public final static Builder builder() { - return new Builder(); - } - - public AddPlaylistContentsMediaContainer withSize(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public AddPlaylistContentsMediaContainer withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public AddPlaylistContentsMediaContainer withLeafCountAdded(int leafCountAdded) { - Utils.checkNotNull(leafCountAdded, "leafCountAdded"); - this.leafCountAdded = Optional.ofNullable(leafCountAdded); - return this; - } - - public AddPlaylistContentsMediaContainer withLeafCountAdded(Optional leafCountAdded) { - Utils.checkNotNull(leafCountAdded, "leafCountAdded"); - this.leafCountAdded = leafCountAdded; - return this; - } - - public AddPlaylistContentsMediaContainer withLeafCountRequested(int leafCountRequested) { - Utils.checkNotNull(leafCountRequested, "leafCountRequested"); - this.leafCountRequested = Optional.ofNullable(leafCountRequested); - return this; - } - - public AddPlaylistContentsMediaContainer withLeafCountRequested(Optional leafCountRequested) { - Utils.checkNotNull(leafCountRequested, "leafCountRequested"); - this.leafCountRequested = leafCountRequested; - return this; - } - - public AddPlaylistContentsMediaContainer withMetadata(java.util.List metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public AddPlaylistContentsMediaContainer withMetadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AddPlaylistContentsMediaContainer other = (AddPlaylistContentsMediaContainer) o; - return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.leafCountAdded, other.leafCountAdded) && - java.util.Objects.deepEquals(this.leafCountRequested, other.leafCountRequested) && - java.util.Objects.deepEquals(this.metadata, other.metadata); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - size, - leafCountAdded, - leafCountRequested, - metadata); - } - - @Override - public String toString() { - return Utils.toString(AddPlaylistContentsMediaContainer.class, - "size", size, - "leafCountAdded", leafCountAdded, - "leafCountRequested", leafCountRequested, - "metadata", metadata); - } - - public final static class Builder { - - private Optional size = Optional.empty(); - - private Optional leafCountAdded = Optional.empty(); - - private Optional leafCountRequested = Optional.empty(); - - private Optional> metadata = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder size(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder leafCountAdded(int leafCountAdded) { - Utils.checkNotNull(leafCountAdded, "leafCountAdded"); - this.leafCountAdded = Optional.ofNullable(leafCountAdded); - return this; - } - - public Builder leafCountAdded(Optional leafCountAdded) { - Utils.checkNotNull(leafCountAdded, "leafCountAdded"); - this.leafCountAdded = leafCountAdded; - return this; - } - - public Builder leafCountRequested(int leafCountRequested) { - Utils.checkNotNull(leafCountRequested, "leafCountRequested"); - this.leafCountRequested = Optional.ofNullable(leafCountRequested); - return this; - } - - public Builder leafCountRequested(Optional leafCountRequested) { - Utils.checkNotNull(leafCountRequested, "leafCountRequested"); - this.leafCountRequested = leafCountRequested; - return this; - } - - public Builder metadata(java.util.List metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public Builder metadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public AddPlaylistContentsMediaContainer build() { - return new AddPlaylistContentsMediaContainer( - size, - leafCountAdded, - leafCountRequested, - metadata); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsMetadata.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsMetadata.java deleted file mode 100644 index 2a44cda8..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsMetadata.java +++ /dev/null @@ -1,627 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class AddPlaylistContentsMetadata { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ratingKey") - private Optional ratingKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("guid") - private Optional guid; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title") - private Optional title; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("summary") - private Optional summary; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("smart") - private Optional smart; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("playlistType") - private Optional playlistType; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("composite") - private Optional composite; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("duration") - private Optional duration; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("leafCount") - private Optional leafCount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("addedAt") - private Optional addedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updatedAt") - private Optional updatedAt; - - @JsonCreator - public AddPlaylistContentsMetadata( - @JsonProperty("ratingKey") Optional ratingKey, - @JsonProperty("key") Optional key, - @JsonProperty("guid") Optional guid, - @JsonProperty("type") Optional type, - @JsonProperty("title") Optional title, - @JsonProperty("summary") Optional summary, - @JsonProperty("smart") Optional smart, - @JsonProperty("playlistType") Optional playlistType, - @JsonProperty("composite") Optional composite, - @JsonProperty("duration") Optional duration, - @JsonProperty("leafCount") Optional leafCount, - @JsonProperty("addedAt") Optional addedAt, - @JsonProperty("updatedAt") Optional updatedAt) { - Utils.checkNotNull(ratingKey, "ratingKey"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(guid, "guid"); - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(title, "title"); - Utils.checkNotNull(summary, "summary"); - Utils.checkNotNull(smart, "smart"); - Utils.checkNotNull(playlistType, "playlistType"); - Utils.checkNotNull(composite, "composite"); - Utils.checkNotNull(duration, "duration"); - Utils.checkNotNull(leafCount, "leafCount"); - Utils.checkNotNull(addedAt, "addedAt"); - Utils.checkNotNull(updatedAt, "updatedAt"); - 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; - } - - public AddPlaylistContentsMetadata() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional ratingKey() { - return (Optional) ratingKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional guid() { - return (Optional) guid; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title() { - return (Optional) title; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional summary() { - return (Optional) summary; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional smart() { - return (Optional) smart; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional playlistType() { - return (Optional) playlistType; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional composite() { - return (Optional) composite; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional duration() { - return (Optional) duration; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional leafCount() { - return (Optional) leafCount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional addedAt() { - return (Optional) addedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional updatedAt() { - return (Optional) updatedAt; - } - - public final static Builder builder() { - return new Builder(); - } - - public AddPlaylistContentsMetadata withRatingKey(String ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public AddPlaylistContentsMetadata withRatingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public AddPlaylistContentsMetadata withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public AddPlaylistContentsMetadata withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public AddPlaylistContentsMetadata withGuid(String guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = Optional.ofNullable(guid); - return this; - } - - public AddPlaylistContentsMetadata withGuid(Optional guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = guid; - return this; - } - - public AddPlaylistContentsMetadata withType(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public AddPlaylistContentsMetadata withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public AddPlaylistContentsMetadata withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public AddPlaylistContentsMetadata withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public AddPlaylistContentsMetadata withSummary(String summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = Optional.ofNullable(summary); - return this; - } - - public AddPlaylistContentsMetadata withSummary(Optional summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = summary; - return this; - } - - public AddPlaylistContentsMetadata withSmart(boolean smart) { - Utils.checkNotNull(smart, "smart"); - this.smart = Optional.ofNullable(smart); - return this; - } - - public AddPlaylistContentsMetadata withSmart(Optional smart) { - Utils.checkNotNull(smart, "smart"); - this.smart = smart; - return this; - } - - public AddPlaylistContentsMetadata withPlaylistType(String playlistType) { - Utils.checkNotNull(playlistType, "playlistType"); - this.playlistType = Optional.ofNullable(playlistType); - return this; - } - - public AddPlaylistContentsMetadata withPlaylistType(Optional playlistType) { - Utils.checkNotNull(playlistType, "playlistType"); - this.playlistType = playlistType; - return this; - } - - public AddPlaylistContentsMetadata withComposite(String composite) { - Utils.checkNotNull(composite, "composite"); - this.composite = Optional.ofNullable(composite); - return this; - } - - public AddPlaylistContentsMetadata withComposite(Optional composite) { - Utils.checkNotNull(composite, "composite"); - this.composite = composite; - return this; - } - - public AddPlaylistContentsMetadata withDuration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public AddPlaylistContentsMetadata withDuration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public AddPlaylistContentsMetadata withLeafCount(int leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = Optional.ofNullable(leafCount); - return this; - } - - public AddPlaylistContentsMetadata withLeafCount(Optional leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = leafCount; - return this; - } - - public AddPlaylistContentsMetadata withAddedAt(int addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = Optional.ofNullable(addedAt); - return this; - } - - public AddPlaylistContentsMetadata withAddedAt(Optional addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = addedAt; - return this; - } - - public AddPlaylistContentsMetadata withUpdatedAt(int updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public AddPlaylistContentsMetadata withUpdatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AddPlaylistContentsMetadata other = (AddPlaylistContentsMetadata) o; - return - java.util.Objects.deepEquals(this.ratingKey, other.ratingKey) && - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.guid, other.guid) && - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.title, other.title) && - java.util.Objects.deepEquals(this.summary, other.summary) && - java.util.Objects.deepEquals(this.smart, other.smart) && - java.util.Objects.deepEquals(this.playlistType, other.playlistType) && - java.util.Objects.deepEquals(this.composite, other.composite) && - java.util.Objects.deepEquals(this.duration, other.duration) && - java.util.Objects.deepEquals(this.leafCount, other.leafCount) && - java.util.Objects.deepEquals(this.addedAt, other.addedAt) && - java.util.Objects.deepEquals(this.updatedAt, other.updatedAt); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - ratingKey, - key, - guid, - type, - title, - summary, - smart, - playlistType, - composite, - duration, - leafCount, - addedAt, - updatedAt); - } - - @Override - public String toString() { - return Utils.toString(AddPlaylistContentsMetadata.class, - "ratingKey", ratingKey, - "key", key, - "guid", guid, - "type", type, - "title", title, - "summary", summary, - "smart", smart, - "playlistType", playlistType, - "composite", composite, - "duration", duration, - "leafCount", leafCount, - "addedAt", addedAt, - "updatedAt", updatedAt); - } - - public final static class Builder { - - private Optional ratingKey = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional guid = Optional.empty(); - - private Optional type = Optional.empty(); - - private Optional title = Optional.empty(); - - private Optional summary = Optional.empty(); - - private Optional smart = Optional.empty(); - - private Optional playlistType = Optional.empty(); - - private Optional composite = Optional.empty(); - - private Optional duration = Optional.empty(); - - private Optional leafCount = Optional.empty(); - - private Optional addedAt = Optional.empty(); - - private Optional updatedAt = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder ratingKey(String ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public Builder ratingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder guid(String guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = Optional.ofNullable(guid); - return this; - } - - public Builder guid(Optional guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = guid; - return this; - } - - public Builder type(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Builder summary(String summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = Optional.ofNullable(summary); - return this; - } - - public Builder summary(Optional summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = summary; - return this; - } - - public Builder smart(boolean smart) { - Utils.checkNotNull(smart, "smart"); - this.smart = Optional.ofNullable(smart); - return this; - } - - public Builder smart(Optional smart) { - Utils.checkNotNull(smart, "smart"); - this.smart = smart; - return this; - } - - public Builder playlistType(String playlistType) { - Utils.checkNotNull(playlistType, "playlistType"); - this.playlistType = Optional.ofNullable(playlistType); - return this; - } - - public Builder playlistType(Optional playlistType) { - Utils.checkNotNull(playlistType, "playlistType"); - this.playlistType = playlistType; - return this; - } - - public Builder composite(String composite) { - Utils.checkNotNull(composite, "composite"); - this.composite = Optional.ofNullable(composite); - return this; - } - - public Builder composite(Optional composite) { - Utils.checkNotNull(composite, "composite"); - this.composite = composite; - return this; - } - - public Builder duration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public Builder duration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public Builder leafCount(int leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = Optional.ofNullable(leafCount); - return this; - } - - public Builder leafCount(Optional leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = leafCount; - return this; - } - - public Builder addedAt(int addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = Optional.ofNullable(addedAt); - return this; - } - - public Builder addedAt(Optional addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = addedAt; - return this; - } - - public Builder updatedAt(int updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public Builder updatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public AddPlaylistContentsMetadata build() { - return new AddPlaylistContentsMetadata( - ratingKey, - key, - guid, - type, - title, - summary, - smart, - playlistType, - composite, - duration, - leafCount, - addedAt, - updatedAt); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsRequest.java deleted file mode 100644 index 414ef883..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsRequest.java +++ /dev/null @@ -1,210 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class AddPlaylistContentsRequest { - - /** - * the ID of the playlist - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=playlistID") - private double playlistID; - - /** - * the content URI for the playlist - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=uri") - private String uri; - - /** - * the play queue to add to a playlist - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=playQueueID") - private Optional playQueueID; - - @JsonCreator - public AddPlaylistContentsRequest( - double playlistID, - String uri, - Optional playQueueID) { - Utils.checkNotNull(playlistID, "playlistID"); - Utils.checkNotNull(uri, "uri"); - Utils.checkNotNull(playQueueID, "playQueueID"); - this.playlistID = playlistID; - this.uri = uri; - this.playQueueID = playQueueID; - } - - public AddPlaylistContentsRequest( - double playlistID, - String uri) { - this(playlistID, uri, Optional.empty()); - } - - /** - * the ID of the playlist - */ - @JsonIgnore - public double playlistID() { - return playlistID; - } - - /** - * the content URI for the playlist - */ - @JsonIgnore - public String uri() { - return uri; - } - - /** - * the play queue to add to a playlist - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional playQueueID() { - return (Optional) playQueueID; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * the ID of the playlist - */ - public AddPlaylistContentsRequest withPlaylistID(double playlistID) { - Utils.checkNotNull(playlistID, "playlistID"); - this.playlistID = playlistID; - return this; - } - - /** - * the content URI for the playlist - */ - public AddPlaylistContentsRequest withUri(String uri) { - Utils.checkNotNull(uri, "uri"); - this.uri = uri; - return this; - } - - /** - * the play queue to add to a playlist - */ - public AddPlaylistContentsRequest withPlayQueueID(double playQueueID) { - Utils.checkNotNull(playQueueID, "playQueueID"); - this.playQueueID = Optional.ofNullable(playQueueID); - return this; - } - - /** - * the play queue to add to a playlist - */ - public AddPlaylistContentsRequest withPlayQueueID(Optional playQueueID) { - Utils.checkNotNull(playQueueID, "playQueueID"); - this.playQueueID = playQueueID; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AddPlaylistContentsRequest other = (AddPlaylistContentsRequest) o; - return - java.util.Objects.deepEquals(this.playlistID, other.playlistID) && - java.util.Objects.deepEquals(this.uri, other.uri) && - java.util.Objects.deepEquals(this.playQueueID, other.playQueueID); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - playlistID, - uri, - playQueueID); - } - - @Override - public String toString() { - return Utils.toString(AddPlaylistContentsRequest.class, - "playlistID", playlistID, - "uri", uri, - "playQueueID", playQueueID); - } - - public final static class Builder { - - private Double playlistID; - - private String uri; - - private Optional playQueueID = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * the ID of the playlist - */ - public Builder playlistID(double playlistID) { - Utils.checkNotNull(playlistID, "playlistID"); - this.playlistID = playlistID; - return this; - } - - /** - * the content URI for the playlist - */ - public Builder uri(String uri) { - Utils.checkNotNull(uri, "uri"); - this.uri = uri; - return this; - } - - /** - * the play queue to add to a playlist - */ - public Builder playQueueID(double playQueueID) { - Utils.checkNotNull(playQueueID, "playQueueID"); - this.playQueueID = Optional.ofNullable(playQueueID); - return this; - } - - /** - * the play queue to add to a playlist - */ - public Builder playQueueID(Optional playQueueID) { - Utils.checkNotNull(playQueueID, "playQueueID"); - this.playQueueID = playQueueID; - return this; - } - - public AddPlaylistContentsRequest build() { - return new AddPlaylistContentsRequest( - playlistID, - uri, - playQueueID); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsRequestBuilder.java deleted file mode 100644 index 9b74e390..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsRequestBuilder.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class AddPlaylistContentsRequestBuilder { - - private Double playlistID; - private String uri; - private Optional playQueueID = Optional.empty(); - private final SDKMethodInterfaces.MethodCallAddPlaylistContents sdk; - - public AddPlaylistContentsRequestBuilder(SDKMethodInterfaces.MethodCallAddPlaylistContents sdk) { - this.sdk = sdk; - } - - public AddPlaylistContentsRequestBuilder playlistID(double playlistID) { - Utils.checkNotNull(playlistID, "playlistID"); - this.playlistID = playlistID; - return this; - } - - public AddPlaylistContentsRequestBuilder uri(String uri) { - Utils.checkNotNull(uri, "uri"); - this.uri = uri; - return this; - } - - public AddPlaylistContentsRequestBuilder playQueueID(double playQueueID) { - Utils.checkNotNull(playQueueID, "playQueueID"); - this.playQueueID = Optional.of(playQueueID); - return this; - } - - public AddPlaylistContentsRequestBuilder playQueueID(Optional playQueueID) { - Utils.checkNotNull(playQueueID, "playQueueID"); - this.playQueueID = playQueueID; - return this; - } - - public AddPlaylistContentsResponse call() throws Exception { - - return sdk.addPlaylistContents( - playlistID, - uri, - playQueueID); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsResponse.java deleted file mode 100644 index 829d9543..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsResponse.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class AddPlaylistContentsResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Playlist Updated - */ - private Optional object; - - @JsonCreator - public AddPlaylistContentsResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional object) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.object = object; - } - - public AddPlaylistContentsResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Playlist Updated - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional object() { - return (Optional) object; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public AddPlaylistContentsResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public AddPlaylistContentsResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public AddPlaylistContentsResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Playlist Updated - */ - public AddPlaylistContentsResponse withObject(AddPlaylistContentsResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * Playlist Updated - */ - public AddPlaylistContentsResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AddPlaylistContentsResponse other = (AddPlaylistContentsResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.object, other.object); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse, - object); - } - - @Override - public String toString() { - return Utils.toString(AddPlaylistContentsResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "object", object); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional object = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Playlist Updated - */ - public Builder object(AddPlaylistContentsResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * Playlist Updated - */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - public AddPlaylistContentsResponse build() { - return new AddPlaylistContentsResponse( - contentType, - statusCode, - rawResponse, - object); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsResponseBody.java deleted file mode 100644 index 4485abff..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/AddPlaylistContentsResponseBody.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -/** - * AddPlaylistContentsResponseBody - Playlist Updated - */ - -public class AddPlaylistContentsResponseBody { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("MediaContainer") - private Optional mediaContainer; - - @JsonCreator - public AddPlaylistContentsResponseBody( - @JsonProperty("MediaContainer") Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - } - - public AddPlaylistContentsResponseBody() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaContainer() { - return (Optional) mediaContainer; - } - - public final static Builder builder() { - return new Builder(); - } - - public AddPlaylistContentsResponseBody withMediaContainer(AddPlaylistContentsMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public AddPlaylistContentsResponseBody withMediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AddPlaylistContentsResponseBody other = (AddPlaylistContentsResponseBody) o; - return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - mediaContainer); - } - - @Override - public String toString() { - return Utils.toString(AddPlaylistContentsResponseBody.class, - "mediaContainer", mediaContainer); - } - - public final static class Builder { - - private Optional mediaContainer = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder mediaContainer(AddPlaylistContentsMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public Builder mediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - public AddPlaylistContentsResponseBody build() { - return new AddPlaylistContentsResponseBody( - mediaContainer); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/ApplyUpdatesRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/ApplyUpdatesRequest.java deleted file mode 100644 index 17950e45..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/ApplyUpdatesRequest.java +++ /dev/null @@ -1,186 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class ApplyUpdatesRequest { - - /** - * 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 - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=tonight") - private Optional tonight; - - /** - * Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=skip") - private Optional skip; - - @JsonCreator - public ApplyUpdatesRequest( - Optional tonight, - Optional skip) { - Utils.checkNotNull(tonight, "tonight"); - Utils.checkNotNull(skip, "skip"); - this.tonight = tonight; - this.skip = skip; - } - - public ApplyUpdatesRequest() { - this(Optional.empty(), Optional.empty()); - } - - /** - * 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 - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tonight() { - return (Optional) tonight; - } - - /** - * Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional skip() { - return (Optional) skip; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * 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 - */ - public ApplyUpdatesRequest withTonight(Tonight tonight) { - Utils.checkNotNull(tonight, "tonight"); - this.tonight = Optional.ofNullable(tonight); - return this; - } - - /** - * 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 - */ - public ApplyUpdatesRequest withTonight(Optional tonight) { - Utils.checkNotNull(tonight, "tonight"); - this.tonight = tonight; - return this; - } - - /** - * Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`. - */ - public ApplyUpdatesRequest withSkip(Skip skip) { - Utils.checkNotNull(skip, "skip"); - this.skip = Optional.ofNullable(skip); - return this; - } - - /** - * Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`. - */ - public ApplyUpdatesRequest withSkip(Optional skip) { - Utils.checkNotNull(skip, "skip"); - this.skip = skip; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApplyUpdatesRequest other = (ApplyUpdatesRequest) o; - return - java.util.Objects.deepEquals(this.tonight, other.tonight) && - java.util.Objects.deepEquals(this.skip, other.skip); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - tonight, - skip); - } - - @Override - public String toString() { - return Utils.toString(ApplyUpdatesRequest.class, - "tonight", tonight, - "skip", skip); - } - - public final static class Builder { - - private Optional tonight = Optional.empty(); - - private Optional skip = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * 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 - */ - public Builder tonight(Tonight tonight) { - Utils.checkNotNull(tonight, "tonight"); - this.tonight = Optional.ofNullable(tonight); - return this; - } - - /** - * 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 - */ - public Builder tonight(Optional tonight) { - Utils.checkNotNull(tonight, "tonight"); - this.tonight = tonight; - return this; - } - - /** - * Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`. - */ - public Builder skip(Skip skip) { - Utils.checkNotNull(skip, "skip"); - this.skip = Optional.ofNullable(skip); - return this; - } - - /** - * Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`. - */ - public Builder skip(Optional skip) { - Utils.checkNotNull(skip, "skip"); - this.skip = skip; - return this; - } - - public ApplyUpdatesRequest build() { - return new ApplyUpdatesRequest( - tonight, - skip); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/ApplyUpdatesRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/ApplyUpdatesRequestBuilder.java deleted file mode 100644 index f3d258cf..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/ApplyUpdatesRequestBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class ApplyUpdatesRequestBuilder { - - private Optional tonight = Optional.empty(); - private Optional skip = Optional.empty(); - private final SDKMethodInterfaces.MethodCallApplyUpdates sdk; - - public ApplyUpdatesRequestBuilder(SDKMethodInterfaces.MethodCallApplyUpdates sdk) { - this.sdk = sdk; - } - - public ApplyUpdatesRequestBuilder tonight(Tonight tonight) { - Utils.checkNotNull(tonight, "tonight"); - this.tonight = Optional.of(tonight); - return this; - } - - public ApplyUpdatesRequestBuilder tonight(Optional tonight) { - Utils.checkNotNull(tonight, "tonight"); - this.tonight = tonight; - return this; - } - - public ApplyUpdatesRequestBuilder skip(Skip skip) { - Utils.checkNotNull(skip, "skip"); - this.skip = Optional.of(skip); - return this; - } - - public ApplyUpdatesRequestBuilder skip(Optional skip) { - Utils.checkNotNull(skip, "skip"); - this.skip = skip; - return this; - } - - public ApplyUpdatesResponse call() throws Exception { - - return sdk.applyUpdates( - tonight, - skip); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/ApplyUpdatesResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/ApplyUpdatesResponse.java deleted file mode 100644 index d51f79d3..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/ApplyUpdatesResponse.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class ApplyUpdatesResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - @JsonCreator - public ApplyUpdatesResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public ApplyUpdatesResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public ApplyUpdatesResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public ApplyUpdatesResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApplyUpdatesResponse other = (ApplyUpdatesResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(ApplyUpdatesResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public ApplyUpdatesResponse build() { - return new ApplyUpdatesResponse( - contentType, - statusCode, - rawResponse); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/ButlerTask.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/ButlerTask.java deleted file mode 100644 index 4e708e59..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/ButlerTask.java +++ /dev/null @@ -1,326 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class ButlerTask { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("interval") - private Optional interval; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("scheduleRandomized") - private Optional scheduleRandomized; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("enabled") - private Optional enabled; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title") - private Optional title; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("description") - private Optional description; - - @JsonCreator - public ButlerTask( - @JsonProperty("name") Optional name, - @JsonProperty("interval") Optional interval, - @JsonProperty("scheduleRandomized") Optional scheduleRandomized, - @JsonProperty("enabled") Optional enabled, - @JsonProperty("title") Optional title, - @JsonProperty("description") Optional description) { - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(interval, "interval"); - Utils.checkNotNull(scheduleRandomized, "scheduleRandomized"); - Utils.checkNotNull(enabled, "enabled"); - Utils.checkNotNull(title, "title"); - Utils.checkNotNull(description, "description"); - this.name = name; - this.interval = interval; - this.scheduleRandomized = scheduleRandomized; - this.enabled = enabled; - this.title = title; - this.description = description; - } - - public ButlerTask() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional name() { - return (Optional) name; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional interval() { - return (Optional) interval; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional scheduleRandomized() { - return (Optional) scheduleRandomized; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional enabled() { - return (Optional) enabled; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title() { - return (Optional) title; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional description() { - return (Optional) description; - } - - public final static Builder builder() { - return new Builder(); - } - - public ButlerTask withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public ButlerTask withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public ButlerTask withInterval(double interval) { - Utils.checkNotNull(interval, "interval"); - this.interval = Optional.ofNullable(interval); - return this; - } - - public ButlerTask withInterval(Optional interval) { - Utils.checkNotNull(interval, "interval"); - this.interval = interval; - return this; - } - - public ButlerTask withScheduleRandomized(boolean scheduleRandomized) { - Utils.checkNotNull(scheduleRandomized, "scheduleRandomized"); - this.scheduleRandomized = Optional.ofNullable(scheduleRandomized); - return this; - } - - public ButlerTask withScheduleRandomized(Optional scheduleRandomized) { - Utils.checkNotNull(scheduleRandomized, "scheduleRandomized"); - this.scheduleRandomized = scheduleRandomized; - return this; - } - - public ButlerTask withEnabled(boolean enabled) { - Utils.checkNotNull(enabled, "enabled"); - this.enabled = Optional.ofNullable(enabled); - return this; - } - - public ButlerTask withEnabled(Optional enabled) { - Utils.checkNotNull(enabled, "enabled"); - this.enabled = enabled; - return this; - } - - public ButlerTask withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public ButlerTask withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public ButlerTask withDescription(String description) { - Utils.checkNotNull(description, "description"); - this.description = Optional.ofNullable(description); - return this; - } - - public ButlerTask withDescription(Optional description) { - Utils.checkNotNull(description, "description"); - this.description = description; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ButlerTask other = (ButlerTask) o; - return - java.util.Objects.deepEquals(this.name, other.name) && - java.util.Objects.deepEquals(this.interval, other.interval) && - java.util.Objects.deepEquals(this.scheduleRandomized, other.scheduleRandomized) && - java.util.Objects.deepEquals(this.enabled, other.enabled) && - java.util.Objects.deepEquals(this.title, other.title) && - java.util.Objects.deepEquals(this.description, other.description); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - name, - interval, - scheduleRandomized, - enabled, - title, - description); - } - - @Override - public String toString() { - return Utils.toString(ButlerTask.class, - "name", name, - "interval", interval, - "scheduleRandomized", scheduleRandomized, - "enabled", enabled, - "title", title, - "description", description); - } - - public final static class Builder { - - private Optional name = Optional.empty(); - - private Optional interval = Optional.empty(); - - private Optional scheduleRandomized = Optional.empty(); - - private Optional enabled = Optional.empty(); - - private Optional title = Optional.empty(); - - private Optional description = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Builder interval(double interval) { - Utils.checkNotNull(interval, "interval"); - this.interval = Optional.ofNullable(interval); - return this; - } - - public Builder interval(Optional interval) { - Utils.checkNotNull(interval, "interval"); - this.interval = interval; - return this; - } - - public Builder scheduleRandomized(boolean scheduleRandomized) { - Utils.checkNotNull(scheduleRandomized, "scheduleRandomized"); - this.scheduleRandomized = Optional.ofNullable(scheduleRandomized); - return this; - } - - public Builder scheduleRandomized(Optional scheduleRandomized) { - Utils.checkNotNull(scheduleRandomized, "scheduleRandomized"); - this.scheduleRandomized = scheduleRandomized; - return this; - } - - public Builder enabled(boolean enabled) { - Utils.checkNotNull(enabled, "enabled"); - this.enabled = Optional.ofNullable(enabled); - return this; - } - - public Builder enabled(Optional enabled) { - Utils.checkNotNull(enabled, "enabled"); - this.enabled = enabled; - return this; - } - - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Builder description(String description) { - Utils.checkNotNull(description, "description"); - this.description = Optional.ofNullable(description); - return this; - } - - public Builder description(Optional description) { - Utils.checkNotNull(description, "description"); - this.description = description; - return this; - } - - public ButlerTask build() { - return new ButlerTask( - name, - interval, - scheduleRandomized, - enabled, - title, - description); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/ButlerTasks.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/ButlerTasks.java deleted file mode 100644 index b5e4092f..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/ButlerTasks.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class ButlerTasks { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ButlerTask") - private Optional> butlerTask; - - @JsonCreator - public ButlerTasks( - @JsonProperty("ButlerTask") Optional> butlerTask) { - Utils.checkNotNull(butlerTask, "butlerTask"); - this.butlerTask = butlerTask; - } - - public ButlerTasks() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> butlerTask() { - return (Optional>) butlerTask; - } - - public final static Builder builder() { - return new Builder(); - } - - public ButlerTasks withButlerTask(java.util.List butlerTask) { - Utils.checkNotNull(butlerTask, "butlerTask"); - this.butlerTask = Optional.ofNullable(butlerTask); - return this; - } - - public ButlerTasks withButlerTask(Optional> butlerTask) { - Utils.checkNotNull(butlerTask, "butlerTask"); - this.butlerTask = butlerTask; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ButlerTasks other = (ButlerTasks) o; - return - java.util.Objects.deepEquals(this.butlerTask, other.butlerTask); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - butlerTask); - } - - @Override - public String toString() { - return Utils.toString(ButlerTasks.class, - "butlerTask", butlerTask); - } - - public final static class Builder { - - private Optional> butlerTask = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder butlerTask(java.util.List butlerTask) { - Utils.checkNotNull(butlerTask, "butlerTask"); - this.butlerTask = Optional.ofNullable(butlerTask); - return this; - } - - public Builder butlerTask(Optional> butlerTask) { - Utils.checkNotNull(butlerTask, "butlerTask"); - this.butlerTask = butlerTask; - return this; - } - - public ButlerTasks build() { - return new ButlerTasks( - butlerTask); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CancelServerActivitiesRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/CancelServerActivitiesRequest.java deleted file mode 100644 index 61005fb6..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CancelServerActivitiesRequest.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class CancelServerActivitiesRequest { - - /** - * The UUID of the activity to cancel. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=activityUUID") - private String activityUUID; - - @JsonCreator - public CancelServerActivitiesRequest( - String activityUUID) { - Utils.checkNotNull(activityUUID, "activityUUID"); - this.activityUUID = activityUUID; - } - - /** - * The UUID of the activity to cancel. - */ - @JsonIgnore - public String activityUUID() { - return activityUUID; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * The UUID of the activity to cancel. - */ - public CancelServerActivitiesRequest withActivityUUID(String activityUUID) { - Utils.checkNotNull(activityUUID, "activityUUID"); - this.activityUUID = activityUUID; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CancelServerActivitiesRequest other = (CancelServerActivitiesRequest) o; - return - java.util.Objects.deepEquals(this.activityUUID, other.activityUUID); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - activityUUID); - } - - @Override - public String toString() { - return Utils.toString(CancelServerActivitiesRequest.class, - "activityUUID", activityUUID); - } - - public final static class Builder { - - private String activityUUID; - - private Builder() { - // force use of static builder() method - } - - /** - * The UUID of the activity to cancel. - */ - public Builder activityUUID(String activityUUID) { - Utils.checkNotNull(activityUUID, "activityUUID"); - this.activityUUID = activityUUID; - return this; - } - - public CancelServerActivitiesRequest build() { - return new CancelServerActivitiesRequest( - activityUUID); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CancelServerActivitiesRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/CancelServerActivitiesRequestBuilder.java deleted file mode 100644 index 4144afe8..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CancelServerActivitiesRequestBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class CancelServerActivitiesRequestBuilder { - - private String activityUUID; - private final SDKMethodInterfaces.MethodCallCancelServerActivities sdk; - - public CancelServerActivitiesRequestBuilder(SDKMethodInterfaces.MethodCallCancelServerActivities sdk) { - this.sdk = sdk; - } - - public CancelServerActivitiesRequestBuilder activityUUID(String activityUUID) { - Utils.checkNotNull(activityUUID, "activityUUID"); - this.activityUUID = activityUUID; - return this; - } - - public CancelServerActivitiesResponse call() throws Exception { - - return sdk.cancelServerActivities( - activityUUID); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CancelServerActivitiesResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/CancelServerActivitiesResponse.java deleted file mode 100644 index 92db5bd2..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CancelServerActivitiesResponse.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class CancelServerActivitiesResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - @JsonCreator - public CancelServerActivitiesResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public CancelServerActivitiesResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public CancelServerActivitiesResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public CancelServerActivitiesResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CancelServerActivitiesResponse other = (CancelServerActivitiesResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(CancelServerActivitiesResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public CancelServerActivitiesResponse build() { - return new CancelServerActivitiesResponse( - contentType, - statusCode, - rawResponse); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CheckForUpdatesRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/CheckForUpdatesRequest.java deleted file mode 100644 index cc319c12..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CheckForUpdatesRequest.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class CheckForUpdatesRequest { - - /** - * Indicate that you want to start download any updates found. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=download") - private Optional download; - - @JsonCreator - public CheckForUpdatesRequest( - Optional download) { - Utils.checkNotNull(download, "download"); - this.download = download; - } - - public CheckForUpdatesRequest() { - this(Optional.empty()); - } - - /** - * Indicate that you want to start download any updates found. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional download() { - return (Optional) download; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * Indicate that you want to start download any updates found. - */ - public CheckForUpdatesRequest withDownload(Download download) { - Utils.checkNotNull(download, "download"); - this.download = Optional.ofNullable(download); - return this; - } - - /** - * Indicate that you want to start download any updates found. - */ - public CheckForUpdatesRequest withDownload(Optional download) { - Utils.checkNotNull(download, "download"); - this.download = download; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CheckForUpdatesRequest other = (CheckForUpdatesRequest) o; - return - java.util.Objects.deepEquals(this.download, other.download); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - download); - } - - @Override - public String toString() { - return Utils.toString(CheckForUpdatesRequest.class, - "download", download); - } - - public final static class Builder { - - private Optional download = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * Indicate that you want to start download any updates found. - */ - public Builder download(Download download) { - Utils.checkNotNull(download, "download"); - this.download = Optional.ofNullable(download); - return this; - } - - /** - * Indicate that you want to start download any updates found. - */ - public Builder download(Optional download) { - Utils.checkNotNull(download, "download"); - this.download = download; - return this; - } - - public CheckForUpdatesRequest build() { - return new CheckForUpdatesRequest( - download); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CheckForUpdatesRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/CheckForUpdatesRequestBuilder.java deleted file mode 100644 index 6d786564..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CheckForUpdatesRequestBuilder.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class CheckForUpdatesRequestBuilder { - - private Optional download = Optional.empty(); - private final SDKMethodInterfaces.MethodCallCheckForUpdates sdk; - - public CheckForUpdatesRequestBuilder(SDKMethodInterfaces.MethodCallCheckForUpdates sdk) { - this.sdk = sdk; - } - - public CheckForUpdatesRequestBuilder download(Download download) { - Utils.checkNotNull(download, "download"); - this.download = Optional.of(download); - return this; - } - - public CheckForUpdatesRequestBuilder download(Optional download) { - Utils.checkNotNull(download, "download"); - this.download = download; - return this; - } - - public CheckForUpdatesResponse call() throws Exception { - - return sdk.checkForUpdates( - download); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CheckForUpdatesResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/CheckForUpdatesResponse.java deleted file mode 100644 index c08748fd..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CheckForUpdatesResponse.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class CheckForUpdatesResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - @JsonCreator - public CheckForUpdatesResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public CheckForUpdatesResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public CheckForUpdatesResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public CheckForUpdatesResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CheckForUpdatesResponse other = (CheckForUpdatesResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(CheckForUpdatesResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public CheckForUpdatesResponse build() { - return new CheckForUpdatesResponse( - contentType, - statusCode, - rawResponse); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/ClearPlaylistContentsRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/ClearPlaylistContentsRequest.java deleted file mode 100644 index 52830a8c..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/ClearPlaylistContentsRequest.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class ClearPlaylistContentsRequest { - - /** - * the ID of the playlist - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=playlistID") - private double playlistID; - - @JsonCreator - public ClearPlaylistContentsRequest( - double playlistID) { - Utils.checkNotNull(playlistID, "playlistID"); - this.playlistID = playlistID; - } - - /** - * the ID of the playlist - */ - @JsonIgnore - public double playlistID() { - return playlistID; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * the ID of the playlist - */ - public ClearPlaylistContentsRequest withPlaylistID(double playlistID) { - Utils.checkNotNull(playlistID, "playlistID"); - this.playlistID = playlistID; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ClearPlaylistContentsRequest other = (ClearPlaylistContentsRequest) o; - return - java.util.Objects.deepEquals(this.playlistID, other.playlistID); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - playlistID); - } - - @Override - public String toString() { - return Utils.toString(ClearPlaylistContentsRequest.class, - "playlistID", playlistID); - } - - public final static class Builder { - - private Double playlistID; - - private Builder() { - // force use of static builder() method - } - - /** - * the ID of the playlist - */ - public Builder playlistID(double playlistID) { - Utils.checkNotNull(playlistID, "playlistID"); - this.playlistID = playlistID; - return this; - } - - public ClearPlaylistContentsRequest build() { - return new ClearPlaylistContentsRequest( - playlistID); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/ClearPlaylistContentsRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/ClearPlaylistContentsRequestBuilder.java deleted file mode 100644 index 87385609..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/ClearPlaylistContentsRequestBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class ClearPlaylistContentsRequestBuilder { - - private Double playlistID; - private final SDKMethodInterfaces.MethodCallClearPlaylistContents sdk; - - public ClearPlaylistContentsRequestBuilder(SDKMethodInterfaces.MethodCallClearPlaylistContents sdk) { - this.sdk = sdk; - } - - public ClearPlaylistContentsRequestBuilder playlistID(double playlistID) { - Utils.checkNotNull(playlistID, "playlistID"); - this.playlistID = playlistID; - return this; - } - - public ClearPlaylistContentsResponse call() throws Exception { - - return sdk.clearPlaylistContents( - playlistID); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/ClearPlaylistContentsResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/ClearPlaylistContentsResponse.java deleted file mode 100644 index dc845b85..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/ClearPlaylistContentsResponse.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class ClearPlaylistContentsResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - @JsonCreator - public ClearPlaylistContentsResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public ClearPlaylistContentsResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public ClearPlaylistContentsResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public ClearPlaylistContentsResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ClearPlaylistContentsResponse other = (ClearPlaylistContentsResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(ClearPlaylistContentsResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public ClearPlaylistContentsResponse build() { - return new ClearPlaylistContentsResponse( - contentType, - statusCode, - rawResponse); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Context.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Context.java deleted file mode 100644 index 1d6e528d..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Context.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class Context { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionID") - private Optional librarySectionID; - - @JsonCreator - public Context( - @JsonProperty("librarySectionID") Optional librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = librarySectionID; - } - - public Context() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionID() { - return (Optional) librarySectionID; - } - - public final static Builder builder() { - return new Builder(); - } - - public Context withLibrarySectionID(String librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = Optional.ofNullable(librarySectionID); - return this; - } - - public Context withLibrarySectionID(Optional librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = librarySectionID; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Context other = (Context) o; - return - java.util.Objects.deepEquals(this.librarySectionID, other.librarySectionID); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - librarySectionID); - } - - @Override - public String toString() { - return Utils.toString(Context.class, - "librarySectionID", librarySectionID); - } - - public final static class Builder { - - private Optional librarySectionID = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder librarySectionID(String librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = Optional.ofNullable(librarySectionID); - return this; - } - - public Builder librarySectionID(Optional librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = librarySectionID; - return this; - } - - public Context build() { - return new Context( - librarySectionID); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Country.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Country.java deleted file mode 100644 index 272c0640..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Country.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class Country { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tag") - private Optional tag; - - @JsonCreator - public Country( - @JsonProperty("tag") Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - } - - public Country() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tag() { - return (Optional) tag; - } - - public final static Builder builder() { - return new Builder(); - } - - public Country withTag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Country withTag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Country other = (Country) o; - return - java.util.Objects.deepEquals(this.tag, other.tag); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - tag); - } - - @Override - public String toString() { - return Utils.toString(Country.class, - "tag", tag); - } - - public final static class Builder { - - private Optional tag = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder tag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Builder tag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public Country build() { - return new Country( - tag); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistMediaContainer.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistMediaContainer.java deleted file mode 100644 index ae93834f..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistMediaContainer.java +++ /dev/null @@ -1,154 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class CreatePlaylistMediaContainer { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Metadata") - private Optional> metadata; - - @JsonCreator - public CreatePlaylistMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("Metadata") Optional> metadata) { - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(metadata, "metadata"); - this.size = size; - this.metadata = metadata; - } - - public CreatePlaylistMediaContainer() { - this(Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; - } - - public final static Builder builder() { - return new Builder(); - } - - public CreatePlaylistMediaContainer withSize(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public CreatePlaylistMediaContainer withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public CreatePlaylistMediaContainer withMetadata(java.util.List metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public CreatePlaylistMediaContainer withMetadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreatePlaylistMediaContainer other = (CreatePlaylistMediaContainer) o; - return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.metadata, other.metadata); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - size, - metadata); - } - - @Override - public String toString() { - return Utils.toString(CreatePlaylistMediaContainer.class, - "size", size, - "metadata", metadata); - } - - public final static class Builder { - - private Optional size = Optional.empty(); - - private Optional> metadata = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder size(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder metadata(java.util.List metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public Builder metadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public CreatePlaylistMediaContainer build() { - return new CreatePlaylistMediaContainer( - size, - metadata); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistMetadata.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistMetadata.java deleted file mode 100644 index c2bff368..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistMetadata.java +++ /dev/null @@ -1,756 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class CreatePlaylistMetadata { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ratingKey") - private Optional ratingKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("guid") - private Optional guid; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title") - private Optional title; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("summary") - private Optional summary; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("smart") - private Optional smart; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("playlistType") - private Optional playlistType; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("icon") - private Optional icon; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("viewCount") - private Optional viewCount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("lastViewedAt") - private Optional lastViewedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("leafCount") - private Optional leafCount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("addedAt") - private Optional addedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updatedAt") - private Optional updatedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("composite") - private Optional composite; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("duration") - private Optional duration; - - @JsonCreator - public CreatePlaylistMetadata( - @JsonProperty("ratingKey") Optional ratingKey, - @JsonProperty("key") Optional key, - @JsonProperty("guid") Optional guid, - @JsonProperty("type") Optional type, - @JsonProperty("title") Optional title, - @JsonProperty("summary") Optional summary, - @JsonProperty("smart") Optional smart, - @JsonProperty("playlistType") Optional playlistType, - @JsonProperty("icon") Optional icon, - @JsonProperty("viewCount") Optional viewCount, - @JsonProperty("lastViewedAt") Optional lastViewedAt, - @JsonProperty("leafCount") Optional leafCount, - @JsonProperty("addedAt") Optional addedAt, - @JsonProperty("updatedAt") Optional updatedAt, - @JsonProperty("composite") Optional composite, - @JsonProperty("duration") Optional duration) { - Utils.checkNotNull(ratingKey, "ratingKey"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(guid, "guid"); - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(title, "title"); - Utils.checkNotNull(summary, "summary"); - Utils.checkNotNull(smart, "smart"); - Utils.checkNotNull(playlistType, "playlistType"); - Utils.checkNotNull(icon, "icon"); - Utils.checkNotNull(viewCount, "viewCount"); - Utils.checkNotNull(lastViewedAt, "lastViewedAt"); - Utils.checkNotNull(leafCount, "leafCount"); - Utils.checkNotNull(addedAt, "addedAt"); - Utils.checkNotNull(updatedAt, "updatedAt"); - Utils.checkNotNull(composite, "composite"); - Utils.checkNotNull(duration, "duration"); - 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; - } - - public CreatePlaylistMetadata() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional ratingKey() { - return (Optional) ratingKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional guid() { - return (Optional) guid; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title() { - return (Optional) title; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional summary() { - return (Optional) summary; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional smart() { - return (Optional) smart; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional playlistType() { - return (Optional) playlistType; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional icon() { - return (Optional) icon; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional viewCount() { - return (Optional) viewCount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional lastViewedAt() { - return (Optional) lastViewedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional leafCount() { - return (Optional) leafCount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional addedAt() { - return (Optional) addedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional updatedAt() { - return (Optional) updatedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional composite() { - return (Optional) composite; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional duration() { - return (Optional) duration; - } - - public final static Builder builder() { - return new Builder(); - } - - public CreatePlaylistMetadata withRatingKey(String ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public CreatePlaylistMetadata withRatingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public CreatePlaylistMetadata withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public CreatePlaylistMetadata withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public CreatePlaylistMetadata withGuid(String guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = Optional.ofNullable(guid); - return this; - } - - public CreatePlaylistMetadata withGuid(Optional guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = guid; - return this; - } - - public CreatePlaylistMetadata withType(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public CreatePlaylistMetadata withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public CreatePlaylistMetadata withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public CreatePlaylistMetadata withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public CreatePlaylistMetadata withSummary(String summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = Optional.ofNullable(summary); - return this; - } - - public CreatePlaylistMetadata withSummary(Optional summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = summary; - return this; - } - - public CreatePlaylistMetadata withSmart(boolean smart) { - Utils.checkNotNull(smart, "smart"); - this.smart = Optional.ofNullable(smart); - return this; - } - - public CreatePlaylistMetadata withSmart(Optional smart) { - Utils.checkNotNull(smart, "smart"); - this.smart = smart; - return this; - } - - public CreatePlaylistMetadata withPlaylistType(String playlistType) { - Utils.checkNotNull(playlistType, "playlistType"); - this.playlistType = Optional.ofNullable(playlistType); - return this; - } - - public CreatePlaylistMetadata withPlaylistType(Optional playlistType) { - Utils.checkNotNull(playlistType, "playlistType"); - this.playlistType = playlistType; - return this; - } - - public CreatePlaylistMetadata withIcon(String icon) { - Utils.checkNotNull(icon, "icon"); - this.icon = Optional.ofNullable(icon); - return this; - } - - public CreatePlaylistMetadata withIcon(Optional icon) { - Utils.checkNotNull(icon, "icon"); - this.icon = icon; - return this; - } - - public CreatePlaylistMetadata withViewCount(int viewCount) { - Utils.checkNotNull(viewCount, "viewCount"); - this.viewCount = Optional.ofNullable(viewCount); - return this; - } - - public CreatePlaylistMetadata withViewCount(Optional viewCount) { - Utils.checkNotNull(viewCount, "viewCount"); - this.viewCount = viewCount; - return this; - } - - public CreatePlaylistMetadata withLastViewedAt(int lastViewedAt) { - Utils.checkNotNull(lastViewedAt, "lastViewedAt"); - this.lastViewedAt = Optional.ofNullable(lastViewedAt); - return this; - } - - public CreatePlaylistMetadata withLastViewedAt(Optional lastViewedAt) { - Utils.checkNotNull(lastViewedAt, "lastViewedAt"); - this.lastViewedAt = lastViewedAt; - return this; - } - - public CreatePlaylistMetadata withLeafCount(int leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = Optional.ofNullable(leafCount); - return this; - } - - public CreatePlaylistMetadata withLeafCount(Optional leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = leafCount; - return this; - } - - public CreatePlaylistMetadata withAddedAt(int addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = Optional.ofNullable(addedAt); - return this; - } - - public CreatePlaylistMetadata withAddedAt(Optional addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = addedAt; - return this; - } - - public CreatePlaylistMetadata withUpdatedAt(int updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public CreatePlaylistMetadata withUpdatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public CreatePlaylistMetadata withComposite(String composite) { - Utils.checkNotNull(composite, "composite"); - this.composite = Optional.ofNullable(composite); - return this; - } - - public CreatePlaylistMetadata withComposite(Optional composite) { - Utils.checkNotNull(composite, "composite"); - this.composite = composite; - return this; - } - - public CreatePlaylistMetadata withDuration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public CreatePlaylistMetadata withDuration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreatePlaylistMetadata other = (CreatePlaylistMetadata) o; - return - java.util.Objects.deepEquals(this.ratingKey, other.ratingKey) && - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.guid, other.guid) && - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.title, other.title) && - java.util.Objects.deepEquals(this.summary, other.summary) && - java.util.Objects.deepEquals(this.smart, other.smart) && - java.util.Objects.deepEquals(this.playlistType, other.playlistType) && - java.util.Objects.deepEquals(this.icon, other.icon) && - java.util.Objects.deepEquals(this.viewCount, other.viewCount) && - java.util.Objects.deepEquals(this.lastViewedAt, other.lastViewedAt) && - java.util.Objects.deepEquals(this.leafCount, other.leafCount) && - java.util.Objects.deepEquals(this.addedAt, other.addedAt) && - java.util.Objects.deepEquals(this.updatedAt, other.updatedAt) && - java.util.Objects.deepEquals(this.composite, other.composite) && - java.util.Objects.deepEquals(this.duration, other.duration); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - ratingKey, - key, - guid, - type, - title, - summary, - smart, - playlistType, - icon, - viewCount, - lastViewedAt, - leafCount, - addedAt, - updatedAt, - composite, - duration); - } - - @Override - public String toString() { - return Utils.toString(CreatePlaylistMetadata.class, - "ratingKey", ratingKey, - "key", key, - "guid", guid, - "type", type, - "title", title, - "summary", summary, - "smart", smart, - "playlistType", playlistType, - "icon", icon, - "viewCount", viewCount, - "lastViewedAt", lastViewedAt, - "leafCount", leafCount, - "addedAt", addedAt, - "updatedAt", updatedAt, - "composite", composite, - "duration", duration); - } - - public final static class Builder { - - private Optional ratingKey = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional guid = Optional.empty(); - - private Optional type = Optional.empty(); - - private Optional title = Optional.empty(); - - private Optional summary = Optional.empty(); - - private Optional smart = Optional.empty(); - - private Optional playlistType = Optional.empty(); - - private Optional icon = Optional.empty(); - - private Optional viewCount = Optional.empty(); - - private Optional lastViewedAt = Optional.empty(); - - private Optional leafCount = Optional.empty(); - - private Optional addedAt = Optional.empty(); - - private Optional updatedAt = Optional.empty(); - - private Optional composite = Optional.empty(); - - private Optional duration = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder ratingKey(String ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public Builder ratingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder guid(String guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = Optional.ofNullable(guid); - return this; - } - - public Builder guid(Optional guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = guid; - return this; - } - - public Builder type(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Builder summary(String summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = Optional.ofNullable(summary); - return this; - } - - public Builder summary(Optional summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = summary; - return this; - } - - public Builder smart(boolean smart) { - Utils.checkNotNull(smart, "smart"); - this.smart = Optional.ofNullable(smart); - return this; - } - - public Builder smart(Optional smart) { - Utils.checkNotNull(smart, "smart"); - this.smart = smart; - return this; - } - - public Builder playlistType(String playlistType) { - Utils.checkNotNull(playlistType, "playlistType"); - this.playlistType = Optional.ofNullable(playlistType); - return this; - } - - public Builder playlistType(Optional playlistType) { - Utils.checkNotNull(playlistType, "playlistType"); - this.playlistType = playlistType; - return this; - } - - public Builder icon(String icon) { - Utils.checkNotNull(icon, "icon"); - this.icon = Optional.ofNullable(icon); - return this; - } - - public Builder icon(Optional icon) { - Utils.checkNotNull(icon, "icon"); - this.icon = icon; - return this; - } - - public Builder viewCount(int viewCount) { - Utils.checkNotNull(viewCount, "viewCount"); - this.viewCount = Optional.ofNullable(viewCount); - return this; - } - - public Builder viewCount(Optional viewCount) { - Utils.checkNotNull(viewCount, "viewCount"); - this.viewCount = viewCount; - return this; - } - - public Builder lastViewedAt(int lastViewedAt) { - Utils.checkNotNull(lastViewedAt, "lastViewedAt"); - this.lastViewedAt = Optional.ofNullable(lastViewedAt); - return this; - } - - public Builder lastViewedAt(Optional lastViewedAt) { - Utils.checkNotNull(lastViewedAt, "lastViewedAt"); - this.lastViewedAt = lastViewedAt; - return this; - } - - public Builder leafCount(int leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = Optional.ofNullable(leafCount); - return this; - } - - public Builder leafCount(Optional leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = leafCount; - return this; - } - - public Builder addedAt(int addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = Optional.ofNullable(addedAt); - return this; - } - - public Builder addedAt(Optional addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = addedAt; - return this; - } - - public Builder updatedAt(int updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public Builder updatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public Builder composite(String composite) { - Utils.checkNotNull(composite, "composite"); - this.composite = Optional.ofNullable(composite); - return this; - } - - public Builder composite(Optional composite) { - Utils.checkNotNull(composite, "composite"); - this.composite = composite; - return this; - } - - public Builder duration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public Builder duration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public CreatePlaylistMetadata build() { - return new CreatePlaylistMetadata( - ratingKey, - key, - guid, - type, - title, - summary, - smart, - playlistType, - icon, - viewCount, - lastViewedAt, - leafCount, - addedAt, - updatedAt, - composite, - duration); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistRequest.java deleted file mode 100644 index 7978d402..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistRequest.java +++ /dev/null @@ -1,294 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class CreatePlaylistRequest { - - /** - * name of the playlist - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=title") - private String title; - - /** - * type of playlist to create - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=type") - private QueryParamType type; - - /** - * whether the playlist is smart or not - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=smart") - private Smart smart; - - /** - * the content URI for the playlist - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=uri") - private String uri; - - /** - * the play queue to copy to a playlist - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=playQueueID") - private Optional playQueueID; - - @JsonCreator - public CreatePlaylistRequest( - String title, - QueryParamType type, - Smart smart, - String uri, - Optional playQueueID) { - Utils.checkNotNull(title, "title"); - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(smart, "smart"); - Utils.checkNotNull(uri, "uri"); - Utils.checkNotNull(playQueueID, "playQueueID"); - this.title = title; - this.type = type; - this.smart = smart; - this.uri = uri; - this.playQueueID = playQueueID; - } - - public CreatePlaylistRequest( - String title, - QueryParamType type, - Smart smart, - String uri) { - this(title, type, smart, uri, Optional.empty()); - } - - /** - * name of the playlist - */ - @JsonIgnore - public String title() { - return title; - } - - /** - * type of playlist to create - */ - @JsonIgnore - public QueryParamType type() { - return type; - } - - /** - * whether the playlist is smart or not - */ - @JsonIgnore - public Smart smart() { - return smart; - } - - /** - * the content URI for the playlist - */ - @JsonIgnore - public String uri() { - return uri; - } - - /** - * the play queue to copy to a playlist - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional playQueueID() { - return (Optional) playQueueID; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * name of the playlist - */ - public CreatePlaylistRequest withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - /** - * type of playlist to create - */ - public CreatePlaylistRequest withType(QueryParamType type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - /** - * whether the playlist is smart or not - */ - public CreatePlaylistRequest withSmart(Smart smart) { - Utils.checkNotNull(smart, "smart"); - this.smart = smart; - return this; - } - - /** - * the content URI for the playlist - */ - public CreatePlaylistRequest withUri(String uri) { - Utils.checkNotNull(uri, "uri"); - this.uri = uri; - return this; - } - - /** - * the play queue to copy to a playlist - */ - public CreatePlaylistRequest withPlayQueueID(double playQueueID) { - Utils.checkNotNull(playQueueID, "playQueueID"); - this.playQueueID = Optional.ofNullable(playQueueID); - return this; - } - - /** - * the play queue to copy to a playlist - */ - public CreatePlaylistRequest withPlayQueueID(Optional playQueueID) { - Utils.checkNotNull(playQueueID, "playQueueID"); - this.playQueueID = playQueueID; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreatePlaylistRequest other = (CreatePlaylistRequest) o; - return - java.util.Objects.deepEquals(this.title, other.title) && - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.smart, other.smart) && - java.util.Objects.deepEquals(this.uri, other.uri) && - java.util.Objects.deepEquals(this.playQueueID, other.playQueueID); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - title, - type, - smart, - uri, - playQueueID); - } - - @Override - public String toString() { - return Utils.toString(CreatePlaylistRequest.class, - "title", title, - "type", type, - "smart", smart, - "uri", uri, - "playQueueID", playQueueID); - } - - public final static class Builder { - - private String title; - - private QueryParamType type; - - private Smart smart; - - private String uri; - - private Optional playQueueID = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * name of the playlist - */ - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - /** - * type of playlist to create - */ - public Builder type(QueryParamType type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - /** - * whether the playlist is smart or not - */ - public Builder smart(Smart smart) { - Utils.checkNotNull(smart, "smart"); - this.smart = smart; - return this; - } - - /** - * the content URI for the playlist - */ - public Builder uri(String uri) { - Utils.checkNotNull(uri, "uri"); - this.uri = uri; - return this; - } - - /** - * the play queue to copy to a playlist - */ - public Builder playQueueID(double playQueueID) { - Utils.checkNotNull(playQueueID, "playQueueID"); - this.playQueueID = Optional.ofNullable(playQueueID); - return this; - } - - /** - * the play queue to copy to a playlist - */ - public Builder playQueueID(Optional playQueueID) { - Utils.checkNotNull(playQueueID, "playQueueID"); - this.playQueueID = playQueueID; - return this; - } - - public CreatePlaylistRequest build() { - return new CreatePlaylistRequest( - title, - type, - smart, - uri, - playQueueID); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistRequestBuilder.java deleted file mode 100644 index 5ee54171..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistRequestBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class CreatePlaylistRequestBuilder { - - private CreatePlaylistRequest request; - private final SDKMethodInterfaces.MethodCallCreatePlaylist sdk; - - public CreatePlaylistRequestBuilder(SDKMethodInterfaces.MethodCallCreatePlaylist sdk) { - this.sdk = sdk; - } - - public CreatePlaylistRequestBuilder request(CreatePlaylistRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public CreatePlaylistResponse call() throws Exception { - - return sdk.createPlaylist( - request); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistResponse.java deleted file mode 100644 index 30f531d3..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistResponse.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class CreatePlaylistResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * returns all playlists - */ - private Optional object; - - @JsonCreator - public CreatePlaylistResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional object) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.object = object; - } - - public CreatePlaylistResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * returns all playlists - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional object() { - return (Optional) object; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public CreatePlaylistResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public CreatePlaylistResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public CreatePlaylistResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * returns all playlists - */ - public CreatePlaylistResponse withObject(CreatePlaylistResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * returns all playlists - */ - public CreatePlaylistResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreatePlaylistResponse other = (CreatePlaylistResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.object, other.object); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse, - object); - } - - @Override - public String toString() { - return Utils.toString(CreatePlaylistResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "object", object); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional object = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * returns all playlists - */ - public Builder object(CreatePlaylistResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * returns all playlists - */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - public CreatePlaylistResponse build() { - return new CreatePlaylistResponse( - contentType, - statusCode, - rawResponse, - object); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistResponseBody.java deleted file mode 100644 index 3250a628..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/CreatePlaylistResponseBody.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -/** - * CreatePlaylistResponseBody - returns all playlists - */ - -public class CreatePlaylistResponseBody { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("MediaContainer") - private Optional mediaContainer; - - @JsonCreator - public CreatePlaylistResponseBody( - @JsonProperty("MediaContainer") Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - } - - public CreatePlaylistResponseBody() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaContainer() { - return (Optional) mediaContainer; - } - - public final static Builder builder() { - return new Builder(); - } - - public CreatePlaylistResponseBody withMediaContainer(CreatePlaylistMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public CreatePlaylistResponseBody withMediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreatePlaylistResponseBody other = (CreatePlaylistResponseBody) o; - return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - mediaContainer); - } - - @Override - public String toString() { - return Utils.toString(CreatePlaylistResponseBody.class, - "mediaContainer", mediaContainer); - } - - public final static class Builder { - - private Optional mediaContainer = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder mediaContainer(CreatePlaylistMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public Builder mediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - public CreatePlaylistResponseBody build() { - return new CreatePlaylistResponseBody( - mediaContainer); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/DeleteLibraryRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/DeleteLibraryRequest.java deleted file mode 100644 index 8ca98ca8..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/DeleteLibraryRequest.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class DeleteLibraryRequest { - - /** - * the Id of the library to query - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionId") - private double sectionId; - - @JsonCreator - public DeleteLibraryRequest( - double sectionId) { - Utils.checkNotNull(sectionId, "sectionId"); - this.sectionId = sectionId; - } - - /** - * the Id of the library to query - */ - @JsonIgnore - public double sectionId() { - return sectionId; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * the Id of the library to query - */ - public DeleteLibraryRequest withSectionId(double sectionId) { - Utils.checkNotNull(sectionId, "sectionId"); - this.sectionId = sectionId; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DeleteLibraryRequest other = (DeleteLibraryRequest) o; - return - java.util.Objects.deepEquals(this.sectionId, other.sectionId); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - sectionId); - } - - @Override - public String toString() { - return Utils.toString(DeleteLibraryRequest.class, - "sectionId", sectionId); - } - - public final static class Builder { - - private Double sectionId; - - private Builder() { - // force use of static builder() method - } - - /** - * the Id of the library to query - */ - public Builder sectionId(double sectionId) { - Utils.checkNotNull(sectionId, "sectionId"); - this.sectionId = sectionId; - return this; - } - - public DeleteLibraryRequest build() { - return new DeleteLibraryRequest( - sectionId); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/DeleteLibraryRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/DeleteLibraryRequestBuilder.java deleted file mode 100644 index ea4a4116..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/DeleteLibraryRequestBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class DeleteLibraryRequestBuilder { - - private Double sectionId; - private final SDKMethodInterfaces.MethodCallDeleteLibrary sdk; - - public DeleteLibraryRequestBuilder(SDKMethodInterfaces.MethodCallDeleteLibrary sdk) { - this.sdk = sdk; - } - - public DeleteLibraryRequestBuilder sectionId(double sectionId) { - Utils.checkNotNull(sectionId, "sectionId"); - this.sectionId = sectionId; - return this; - } - - public DeleteLibraryResponse call() throws Exception { - - return sdk.deleteLibrary( - sectionId); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/DeleteLibraryResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/DeleteLibraryResponse.java deleted file mode 100644 index 140a8f45..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/DeleteLibraryResponse.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class DeleteLibraryResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - @JsonCreator - public DeleteLibraryResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public DeleteLibraryResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public DeleteLibraryResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public DeleteLibraryResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DeleteLibraryResponse other = (DeleteLibraryResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(DeleteLibraryResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public DeleteLibraryResponse build() { - return new DeleteLibraryResponse( - contentType, - statusCode, - rawResponse); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/DeletePlaylistRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/DeletePlaylistRequest.java deleted file mode 100644 index 0b07d522..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/DeletePlaylistRequest.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class DeletePlaylistRequest { - - /** - * the ID of the playlist - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=playlistID") - private double playlistID; - - @JsonCreator - public DeletePlaylistRequest( - double playlistID) { - Utils.checkNotNull(playlistID, "playlistID"); - this.playlistID = playlistID; - } - - /** - * the ID of the playlist - */ - @JsonIgnore - public double playlistID() { - return playlistID; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * the ID of the playlist - */ - public DeletePlaylistRequest withPlaylistID(double playlistID) { - Utils.checkNotNull(playlistID, "playlistID"); - this.playlistID = playlistID; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DeletePlaylistRequest other = (DeletePlaylistRequest) o; - return - java.util.Objects.deepEquals(this.playlistID, other.playlistID); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - playlistID); - } - - @Override - public String toString() { - return Utils.toString(DeletePlaylistRequest.class, - "playlistID", playlistID); - } - - public final static class Builder { - - private Double playlistID; - - private Builder() { - // force use of static builder() method - } - - /** - * the ID of the playlist - */ - public Builder playlistID(double playlistID) { - Utils.checkNotNull(playlistID, "playlistID"); - this.playlistID = playlistID; - return this; - } - - public DeletePlaylistRequest build() { - return new DeletePlaylistRequest( - playlistID); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/DeletePlaylistRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/DeletePlaylistRequestBuilder.java deleted file mode 100644 index 12e13e42..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/DeletePlaylistRequestBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class DeletePlaylistRequestBuilder { - - private Double playlistID; - private final SDKMethodInterfaces.MethodCallDeletePlaylist sdk; - - public DeletePlaylistRequestBuilder(SDKMethodInterfaces.MethodCallDeletePlaylist sdk) { - this.sdk = sdk; - } - - public DeletePlaylistRequestBuilder playlistID(double playlistID) { - Utils.checkNotNull(playlistID, "playlistID"); - this.playlistID = playlistID; - return this; - } - - public DeletePlaylistResponse call() throws Exception { - - return sdk.deletePlaylist( - playlistID); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/DeletePlaylistResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/DeletePlaylistResponse.java deleted file mode 100644 index b4a1fa50..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/DeletePlaylistResponse.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class DeletePlaylistResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - @JsonCreator - public DeletePlaylistResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public DeletePlaylistResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public DeletePlaylistResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public DeletePlaylistResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DeletePlaylistResponse other = (DeletePlaylistResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(DeletePlaylistResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public DeletePlaylistResponse build() { - return new DeletePlaylistResponse( - contentType, - statusCode, - rawResponse); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Device.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Device.java deleted file mode 100644 index 52955c43..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Device.java +++ /dev/null @@ -1,283 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class Device { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("platform") - private Optional platform; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("clientIdentifier") - private Optional clientIdentifier; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("createdAt") - private Optional createdAt; - - @JsonCreator - public Device( - @JsonProperty("id") Optional id, - @JsonProperty("name") Optional name, - @JsonProperty("platform") Optional platform, - @JsonProperty("clientIdentifier") Optional clientIdentifier, - @JsonProperty("createdAt") Optional createdAt) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(platform, "platform"); - Utils.checkNotNull(clientIdentifier, "clientIdentifier"); - Utils.checkNotNull(createdAt, "createdAt"); - this.id = id; - this.name = name; - this.platform = platform; - this.clientIdentifier = clientIdentifier; - this.createdAt = createdAt; - } - - public Device() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional name() { - return (Optional) name; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional platform() { - return (Optional) platform; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional clientIdentifier() { - return (Optional) clientIdentifier; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional createdAt() { - return (Optional) createdAt; - } - - public final static Builder builder() { - return new Builder(); - } - - public Device withId(double id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Device withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Device withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Device withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Device withPlatform(String platform) { - Utils.checkNotNull(platform, "platform"); - this.platform = Optional.ofNullable(platform); - return this; - } - - public Device withPlatform(Optional platform) { - Utils.checkNotNull(platform, "platform"); - this.platform = platform; - return this; - } - - public Device withClientIdentifier(String clientIdentifier) { - Utils.checkNotNull(clientIdentifier, "clientIdentifier"); - this.clientIdentifier = Optional.ofNullable(clientIdentifier); - return this; - } - - public Device withClientIdentifier(Optional clientIdentifier) { - Utils.checkNotNull(clientIdentifier, "clientIdentifier"); - this.clientIdentifier = clientIdentifier; - return this; - } - - public Device withCreatedAt(double createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = Optional.ofNullable(createdAt); - return this; - } - - public Device withCreatedAt(Optional createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Device other = (Device) o; - return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.name, other.name) && - java.util.Objects.deepEquals(this.platform, other.platform) && - java.util.Objects.deepEquals(this.clientIdentifier, other.clientIdentifier) && - java.util.Objects.deepEquals(this.createdAt, other.createdAt); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id, - name, - platform, - clientIdentifier, - createdAt); - } - - @Override - public String toString() { - return Utils.toString(Device.class, - "id", id, - "name", name, - "platform", platform, - "clientIdentifier", clientIdentifier, - "createdAt", createdAt); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional name = Optional.empty(); - - private Optional platform = Optional.empty(); - - private Optional clientIdentifier = Optional.empty(); - - private Optional createdAt = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(double id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Builder platform(String platform) { - Utils.checkNotNull(platform, "platform"); - this.platform = Optional.ofNullable(platform); - return this; - } - - public Builder platform(Optional platform) { - Utils.checkNotNull(platform, "platform"); - this.platform = platform; - return this; - } - - public Builder clientIdentifier(String clientIdentifier) { - Utils.checkNotNull(clientIdentifier, "clientIdentifier"); - this.clientIdentifier = Optional.ofNullable(clientIdentifier); - return this; - } - - public Builder clientIdentifier(Optional clientIdentifier) { - Utils.checkNotNull(clientIdentifier, "clientIdentifier"); - this.clientIdentifier = clientIdentifier; - return this; - } - - public Builder createdAt(double createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = Optional.ofNullable(createdAt); - return this; - } - - public Builder createdAt(Optional createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - public Device build() { - return new Device( - id, - name, - platform, - clientIdentifier, - createdAt); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Director.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Director.java deleted file mode 100644 index 63661e1c..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Director.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class Director { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tag") - private Optional tag; - - @JsonCreator - public Director( - @JsonProperty("tag") Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - } - - public Director() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tag() { - return (Optional) tag; - } - - public final static Builder builder() { - return new Builder(); - } - - public Director withTag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Director withTag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Director other = (Director) o; - return - java.util.Objects.deepEquals(this.tag, other.tag); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - tag); - } - - @Override - public String toString() { - return Utils.toString(Director.class, - "tag", tag); - } - - public final static class Builder { - - private Optional tag = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder tag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Builder tag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public Director build() { - return new Director( - tag); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Directory.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Directory.java deleted file mode 100644 index 17e4fce4..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Directory.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class Directory { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("count") - private Optional count; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title") - private Optional title; - - @JsonCreator - public Directory( - @JsonProperty("count") Optional count, - @JsonProperty("key") Optional key, - @JsonProperty("title") Optional title) { - Utils.checkNotNull(count, "count"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(title, "title"); - this.count = count; - this.key = key; - this.title = title; - } - - public Directory() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional count() { - return (Optional) count; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title() { - return (Optional) title; - } - - public final static Builder builder() { - return new Builder(); - } - - public Directory withCount(double count) { - Utils.checkNotNull(count, "count"); - this.count = Optional.ofNullable(count); - return this; - } - - public Directory withCount(Optional count) { - Utils.checkNotNull(count, "count"); - this.count = count; - return this; - } - - public Directory withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Directory withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Directory withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Directory withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Directory other = (Directory) o; - return - java.util.Objects.deepEquals(this.count, other.count) && - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.title, other.title); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - count, - key, - title); - } - - @Override - public String toString() { - return Utils.toString(Directory.class, - "count", count, - "key", key, - "title", title); - } - - public final static class Builder { - - private Optional count = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional title = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder count(double count) { - Utils.checkNotNull(count, "count"); - this.count = Optional.ofNullable(count); - return this; - } - - public Builder count(Optional count) { - Utils.checkNotNull(count, "count"); - this.count = count; - return this; - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Directory build() { - return new Directory( - count, - key, - title); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Download.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Download.java deleted file mode 100644 index adc0f62a..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Download.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * Download - Indicate that you want to start download any updates found. - */ -public enum Download { - ZERO(0L), - ONE(1L); - - @JsonValue - private final long value; - - private Download(long value) { - this.value = value; - } - - public long value() { - return value; - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/EnablePaperTrailRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/EnablePaperTrailRequestBuilder.java deleted file mode 100644 index c60e9fb0..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/EnablePaperTrailRequestBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class EnablePaperTrailRequestBuilder { - - private final SDKMethodInterfaces.MethodCallEnablePaperTrail sdk; - - public EnablePaperTrailRequestBuilder(SDKMethodInterfaces.MethodCallEnablePaperTrail sdk) { - this.sdk = sdk; - } - - public EnablePaperTrailResponse call() throws Exception { - - return sdk.enablePaperTrailDirect(); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/EnablePaperTrailResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/EnablePaperTrailResponse.java deleted file mode 100644 index 04349d9f..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/EnablePaperTrailResponse.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class EnablePaperTrailResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - @JsonCreator - public EnablePaperTrailResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public EnablePaperTrailResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public EnablePaperTrailResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public EnablePaperTrailResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - EnablePaperTrailResponse other = (EnablePaperTrailResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(EnablePaperTrailResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public EnablePaperTrailResponse build() { - return new EnablePaperTrailResponse( - contentType, - statusCode, - rawResponse); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Field.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Field.java deleted file mode 100644 index b999837b..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Field.java +++ /dev/null @@ -1,240 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class Field { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title") - private Optional title; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("subType") - private Optional subType; - - @JsonCreator - public Field( - @JsonProperty("key") Optional key, - @JsonProperty("title") Optional title, - @JsonProperty("type") Optional type, - @JsonProperty("subType") Optional subType) { - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(title, "title"); - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(subType, "subType"); - this.key = key; - this.title = title; - this.type = type; - this.subType = subType; - } - - public Field() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title() { - return (Optional) title; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional subType() { - return (Optional) subType; - } - - public final static Builder builder() { - return new Builder(); - } - - public Field withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Field withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Field withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Field withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Field withType(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Field withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Field withSubType(String subType) { - Utils.checkNotNull(subType, "subType"); - this.subType = Optional.ofNullable(subType); - return this; - } - - public Field withSubType(Optional subType) { - Utils.checkNotNull(subType, "subType"); - this.subType = subType; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Field other = (Field) o; - return - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.title, other.title) && - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.subType, other.subType); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - key, - title, - type, - subType); - } - - @Override - public String toString() { - return Utils.toString(Field.class, - "key", key, - "title", title, - "type", type, - "subType", subType); - } - - public final static class Builder { - - private Optional key = Optional.empty(); - - private Optional title = Optional.empty(); - - private Optional type = Optional.empty(); - - private Optional subType = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Builder type(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Builder subType(String subType) { - Utils.checkNotNull(subType, "subType"); - this.subType = Optional.ofNullable(subType); - return this; - } - - public Builder subType(Optional subType) { - Utils.checkNotNull(subType, "subType"); - this.subType = subType; - return this; - } - - public Field build() { - return new Field( - key, - title, - type, - subType); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/FieldType.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/FieldType.java deleted file mode 100644 index cada09db..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/FieldType.java +++ /dev/null @@ -1,154 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class FieldType { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Operator") - private Optional> operator; - - @JsonCreator - public FieldType( - @JsonProperty("type") Optional type, - @JsonProperty("Operator") Optional> operator) { - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(operator, "operator"); - this.type = type; - this.operator = operator; - } - - public FieldType() { - this(Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> operator() { - return (Optional>) operator; - } - - public final static Builder builder() { - return new Builder(); - } - - public FieldType withType(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public FieldType withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public FieldType withOperator(java.util.List operator) { - Utils.checkNotNull(operator, "operator"); - this.operator = Optional.ofNullable(operator); - return this; - } - - public FieldType withOperator(Optional> operator) { - Utils.checkNotNull(operator, "operator"); - this.operator = operator; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - FieldType other = (FieldType) o; - return - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.operator, other.operator); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - type, - operator); - } - - @Override - public String toString() { - return Utils.toString(FieldType.class, - "type", type, - "operator", operator); - } - - public final static class Builder { - - private Optional type = Optional.empty(); - - private Optional> operator = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder type(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Builder operator(java.util.List operator) { - Utils.checkNotNull(operator, "operator"); - this.operator = Optional.ofNullable(operator); - return this; - } - - public Builder operator(Optional> operator) { - Utils.checkNotNull(operator, "operator"); - this.operator = operator; - return this; - } - - public FieldType build() { - return new FieldType( - type, - operator); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Filter.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Filter.java deleted file mode 100644 index bb0f7f06..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Filter.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.Utils; -/** - * Filter - Filters content by field and direction/equality - * (Unknown if viewedAt is the only supported column) - * - */ - -public class Filter { - - @JsonCreator - public Filter() { - - - } - - public final static Builder builder() { - return new Builder(); - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - ); - } - - @Override - public String toString() { - return Utils.toString(Filter.class); - } - - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public Filter build() { - return new Filter( - ); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Force.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Force.java deleted file mode 100644 index 82ea74a4..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Force.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * Force - 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. - * - */ -public enum Force { - ZERO(0L), - ONE(1L); - - @JsonValue - private final long value; - - private Force(long value) { - this.value = value; - } - - public long value() { - return value; - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Genre.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Genre.java deleted file mode 100644 index c9206374..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Genre.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class Genre { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tag") - private Optional tag; - - @JsonCreator - public Genre( - @JsonProperty("tag") Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - } - - public Genre() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tag() { - return (Optional) tag; - } - - public final static Builder builder() { - return new Builder(); - } - - public Genre withTag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Genre withTag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Genre other = (Genre) o; - return - java.util.Objects.deepEquals(this.tag, other.tag); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - tag); - } - - @Override - public String toString() { - return Utils.toString(Genre.class, - "tag", tag); - } - - public final static class Builder { - - private Optional tag = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder tag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Builder tag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public Genre build() { - return new Genre( - tag); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetAvailableClientsMediaContainer.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetAvailableClientsMediaContainer.java deleted file mode 100644 index 5011c7ce..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetAvailableClientsMediaContainer.java +++ /dev/null @@ -1,154 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetAvailableClientsMediaContainer { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Server") - private Optional> server; - - @JsonCreator - public GetAvailableClientsMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("Server") Optional> server) { - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(server, "server"); - this.size = size; - this.server = server; - } - - public GetAvailableClientsMediaContainer() { - this(Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> server() { - return (Optional>) server; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetAvailableClientsMediaContainer withSize(double size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public GetAvailableClientsMediaContainer withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public GetAvailableClientsMediaContainer withServer(java.util.List server) { - Utils.checkNotNull(server, "server"); - this.server = Optional.ofNullable(server); - return this; - } - - public GetAvailableClientsMediaContainer withServer(Optional> server) { - Utils.checkNotNull(server, "server"); - this.server = server; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetAvailableClientsMediaContainer other = (GetAvailableClientsMediaContainer) o; - return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.server, other.server); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - size, - server); - } - - @Override - public String toString() { - return Utils.toString(GetAvailableClientsMediaContainer.class, - "size", size, - "server", server); - } - - public final static class Builder { - - private Optional size = Optional.empty(); - - private Optional> server = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder size(double size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder server(java.util.List server) { - Utils.checkNotNull(server, "server"); - this.server = Optional.ofNullable(server); - return this; - } - - public Builder server(Optional> server) { - Utils.checkNotNull(server, "server"); - this.server = server; - return this; - } - - public GetAvailableClientsMediaContainer build() { - return new GetAvailableClientsMediaContainer( - size, - server); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetAvailableClientsRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetAvailableClientsRequestBuilder.java deleted file mode 100644 index ac83ab03..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetAvailableClientsRequestBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetAvailableClientsRequestBuilder { - - private final SDKMethodInterfaces.MethodCallGetAvailableClients sdk; - - public GetAvailableClientsRequestBuilder(SDKMethodInterfaces.MethodCallGetAvailableClients sdk) { - this.sdk = sdk; - } - - public GetAvailableClientsResponse call() throws Exception { - - return sdk.getAvailableClientsDirect(); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetAvailableClientsResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetAvailableClientsResponse.java deleted file mode 100644 index 9e772e64..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetAvailableClientsResponse.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetAvailableClientsResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Available Clients - */ - private Optional object; - - @JsonCreator - public GetAvailableClientsResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional object) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.object = object; - } - - public GetAvailableClientsResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Available Clients - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional object() { - return (Optional) object; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetAvailableClientsResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetAvailableClientsResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetAvailableClientsResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Available Clients - */ - public GetAvailableClientsResponse withObject(GetAvailableClientsResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * Available Clients - */ - public GetAvailableClientsResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetAvailableClientsResponse other = (GetAvailableClientsResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.object, other.object); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse, - object); - } - - @Override - public String toString() { - return Utils.toString(GetAvailableClientsResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "object", object); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional object = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Available Clients - */ - public Builder object(GetAvailableClientsResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * Available Clients - */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - public GetAvailableClientsResponse build() { - return new GetAvailableClientsResponse( - contentType, - statusCode, - rawResponse, - object); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetAvailableClientsResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetAvailableClientsResponseBody.java deleted file mode 100644 index 678bf7f3..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetAvailableClientsResponseBody.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -/** - * GetAvailableClientsResponseBody - Available Clients - */ - -public class GetAvailableClientsResponseBody { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("MediaContainer") - private Optional mediaContainer; - - @JsonCreator - public GetAvailableClientsResponseBody( - @JsonProperty("MediaContainer") Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - } - - public GetAvailableClientsResponseBody() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaContainer() { - return (Optional) mediaContainer; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetAvailableClientsResponseBody withMediaContainer(GetAvailableClientsMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public GetAvailableClientsResponseBody withMediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetAvailableClientsResponseBody other = (GetAvailableClientsResponseBody) o; - return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - mediaContainer); - } - - @Override - public String toString() { - return Utils.toString(GetAvailableClientsResponseBody.class, - "mediaContainer", mediaContainer); - } - - public final static class Builder { - - private Optional mediaContainer = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder mediaContainer(GetAvailableClientsMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public Builder mediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - public GetAvailableClientsResponseBody build() { - return new GetAvailableClientsResponseBody( - mediaContainer); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsAccount.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsAccount.java deleted file mode 100644 index f6d92eb0..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsAccount.java +++ /dev/null @@ -1,412 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetBandwidthStatisticsAccount { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("defaultAudioLanguage") - private Optional defaultAudioLanguage; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("autoSelectAudio") - private Optional autoSelectAudio; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("defaultSubtitleLanguage") - private Optional defaultSubtitleLanguage; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("subtitleMode") - private Optional subtitleMode; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("thumb") - private Optional thumb; - - @JsonCreator - public GetBandwidthStatisticsAccount( - @JsonProperty("id") Optional id, - @JsonProperty("key") Optional key, - @JsonProperty("name") Optional name, - @JsonProperty("defaultAudioLanguage") Optional defaultAudioLanguage, - @JsonProperty("autoSelectAudio") Optional autoSelectAudio, - @JsonProperty("defaultSubtitleLanguage") Optional defaultSubtitleLanguage, - @JsonProperty("subtitleMode") Optional subtitleMode, - @JsonProperty("thumb") Optional thumb) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(defaultAudioLanguage, "defaultAudioLanguage"); - Utils.checkNotNull(autoSelectAudio, "autoSelectAudio"); - Utils.checkNotNull(defaultSubtitleLanguage, "defaultSubtitleLanguage"); - Utils.checkNotNull(subtitleMode, "subtitleMode"); - Utils.checkNotNull(thumb, "thumb"); - this.id = id; - this.key = key; - this.name = name; - this.defaultAudioLanguage = defaultAudioLanguage; - this.autoSelectAudio = autoSelectAudio; - this.defaultSubtitleLanguage = defaultSubtitleLanguage; - this.subtitleMode = subtitleMode; - this.thumb = thumb; - } - - public GetBandwidthStatisticsAccount() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional name() { - return (Optional) name; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional defaultAudioLanguage() { - return (Optional) defaultAudioLanguage; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional autoSelectAudio() { - return (Optional) autoSelectAudio; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional defaultSubtitleLanguage() { - return (Optional) defaultSubtitleLanguage; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional subtitleMode() { - return (Optional) subtitleMode; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional thumb() { - return (Optional) thumb; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetBandwidthStatisticsAccount withId(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public GetBandwidthStatisticsAccount withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public GetBandwidthStatisticsAccount withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public GetBandwidthStatisticsAccount withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public GetBandwidthStatisticsAccount withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public GetBandwidthStatisticsAccount withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public GetBandwidthStatisticsAccount withDefaultAudioLanguage(String defaultAudioLanguage) { - Utils.checkNotNull(defaultAudioLanguage, "defaultAudioLanguage"); - this.defaultAudioLanguage = Optional.ofNullable(defaultAudioLanguage); - return this; - } - - public GetBandwidthStatisticsAccount withDefaultAudioLanguage(Optional defaultAudioLanguage) { - Utils.checkNotNull(defaultAudioLanguage, "defaultAudioLanguage"); - this.defaultAudioLanguage = defaultAudioLanguage; - return this; - } - - public GetBandwidthStatisticsAccount withAutoSelectAudio(boolean autoSelectAudio) { - Utils.checkNotNull(autoSelectAudio, "autoSelectAudio"); - this.autoSelectAudio = Optional.ofNullable(autoSelectAudio); - return this; - } - - public GetBandwidthStatisticsAccount withAutoSelectAudio(Optional autoSelectAudio) { - Utils.checkNotNull(autoSelectAudio, "autoSelectAudio"); - this.autoSelectAudio = autoSelectAudio; - return this; - } - - public GetBandwidthStatisticsAccount withDefaultSubtitleLanguage(String defaultSubtitleLanguage) { - Utils.checkNotNull(defaultSubtitleLanguage, "defaultSubtitleLanguage"); - this.defaultSubtitleLanguage = Optional.ofNullable(defaultSubtitleLanguage); - return this; - } - - public GetBandwidthStatisticsAccount withDefaultSubtitleLanguage(Optional defaultSubtitleLanguage) { - Utils.checkNotNull(defaultSubtitleLanguage, "defaultSubtitleLanguage"); - this.defaultSubtitleLanguage = defaultSubtitleLanguage; - return this; - } - - public GetBandwidthStatisticsAccount withSubtitleMode(int subtitleMode) { - Utils.checkNotNull(subtitleMode, "subtitleMode"); - this.subtitleMode = Optional.ofNullable(subtitleMode); - return this; - } - - public GetBandwidthStatisticsAccount withSubtitleMode(Optional subtitleMode) { - Utils.checkNotNull(subtitleMode, "subtitleMode"); - this.subtitleMode = subtitleMode; - return this; - } - - public GetBandwidthStatisticsAccount withThumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public GetBandwidthStatisticsAccount withThumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetBandwidthStatisticsAccount other = (GetBandwidthStatisticsAccount) o; - return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.name, other.name) && - java.util.Objects.deepEquals(this.defaultAudioLanguage, other.defaultAudioLanguage) && - java.util.Objects.deepEquals(this.autoSelectAudio, other.autoSelectAudio) && - java.util.Objects.deepEquals(this.defaultSubtitleLanguage, other.defaultSubtitleLanguage) && - java.util.Objects.deepEquals(this.subtitleMode, other.subtitleMode) && - java.util.Objects.deepEquals(this.thumb, other.thumb); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id, - key, - name, - defaultAudioLanguage, - autoSelectAudio, - defaultSubtitleLanguage, - subtitleMode, - thumb); - } - - @Override - public String toString() { - return Utils.toString(GetBandwidthStatisticsAccount.class, - "id", id, - "key", key, - "name", name, - "defaultAudioLanguage", defaultAudioLanguage, - "autoSelectAudio", autoSelectAudio, - "defaultSubtitleLanguage", defaultSubtitleLanguage, - "subtitleMode", subtitleMode, - "thumb", thumb); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional name = Optional.empty(); - - private Optional defaultAudioLanguage = Optional.empty(); - - private Optional autoSelectAudio = Optional.empty(); - - private Optional defaultSubtitleLanguage = Optional.empty(); - - private Optional subtitleMode = Optional.empty(); - - private Optional thumb = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Builder defaultAudioLanguage(String defaultAudioLanguage) { - Utils.checkNotNull(defaultAudioLanguage, "defaultAudioLanguage"); - this.defaultAudioLanguage = Optional.ofNullable(defaultAudioLanguage); - return this; - } - - public Builder defaultAudioLanguage(Optional defaultAudioLanguage) { - Utils.checkNotNull(defaultAudioLanguage, "defaultAudioLanguage"); - this.defaultAudioLanguage = defaultAudioLanguage; - return this; - } - - public Builder autoSelectAudio(boolean autoSelectAudio) { - Utils.checkNotNull(autoSelectAudio, "autoSelectAudio"); - this.autoSelectAudio = Optional.ofNullable(autoSelectAudio); - return this; - } - - public Builder autoSelectAudio(Optional autoSelectAudio) { - Utils.checkNotNull(autoSelectAudio, "autoSelectAudio"); - this.autoSelectAudio = autoSelectAudio; - return this; - } - - public Builder defaultSubtitleLanguage(String defaultSubtitleLanguage) { - Utils.checkNotNull(defaultSubtitleLanguage, "defaultSubtitleLanguage"); - this.defaultSubtitleLanguage = Optional.ofNullable(defaultSubtitleLanguage); - return this; - } - - public Builder defaultSubtitleLanguage(Optional defaultSubtitleLanguage) { - Utils.checkNotNull(defaultSubtitleLanguage, "defaultSubtitleLanguage"); - this.defaultSubtitleLanguage = defaultSubtitleLanguage; - return this; - } - - public Builder subtitleMode(int subtitleMode) { - Utils.checkNotNull(subtitleMode, "subtitleMode"); - this.subtitleMode = Optional.ofNullable(subtitleMode); - return this; - } - - public Builder subtitleMode(Optional subtitleMode) { - Utils.checkNotNull(subtitleMode, "subtitleMode"); - this.subtitleMode = subtitleMode; - return this; - } - - public Builder thumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public Builder thumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public GetBandwidthStatisticsAccount build() { - return new GetBandwidthStatisticsAccount( - id, - key, - name, - defaultAudioLanguage, - autoSelectAudio, - defaultSubtitleLanguage, - subtitleMode, - thumb); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsDevice.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsDevice.java deleted file mode 100644 index 3fd6d871..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsDevice.java +++ /dev/null @@ -1,283 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetBandwidthStatisticsDevice { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("platform") - private Optional platform; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("clientIdentifier") - private Optional clientIdentifier; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("createdAt") - private Optional createdAt; - - @JsonCreator - public GetBandwidthStatisticsDevice( - @JsonProperty("id") Optional id, - @JsonProperty("name") Optional name, - @JsonProperty("platform") Optional platform, - @JsonProperty("clientIdentifier") Optional clientIdentifier, - @JsonProperty("createdAt") Optional createdAt) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(platform, "platform"); - Utils.checkNotNull(clientIdentifier, "clientIdentifier"); - Utils.checkNotNull(createdAt, "createdAt"); - this.id = id; - this.name = name; - this.platform = platform; - this.clientIdentifier = clientIdentifier; - this.createdAt = createdAt; - } - - public GetBandwidthStatisticsDevice() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional name() { - return (Optional) name; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional platform() { - return (Optional) platform; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional clientIdentifier() { - return (Optional) clientIdentifier; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional createdAt() { - return (Optional) createdAt; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetBandwidthStatisticsDevice withId(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public GetBandwidthStatisticsDevice withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public GetBandwidthStatisticsDevice withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public GetBandwidthStatisticsDevice withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public GetBandwidthStatisticsDevice withPlatform(String platform) { - Utils.checkNotNull(platform, "platform"); - this.platform = Optional.ofNullable(platform); - return this; - } - - public GetBandwidthStatisticsDevice withPlatform(Optional platform) { - Utils.checkNotNull(platform, "platform"); - this.platform = platform; - return this; - } - - public GetBandwidthStatisticsDevice withClientIdentifier(String clientIdentifier) { - Utils.checkNotNull(clientIdentifier, "clientIdentifier"); - this.clientIdentifier = Optional.ofNullable(clientIdentifier); - return this; - } - - public GetBandwidthStatisticsDevice withClientIdentifier(Optional clientIdentifier) { - Utils.checkNotNull(clientIdentifier, "clientIdentifier"); - this.clientIdentifier = clientIdentifier; - return this; - } - - public GetBandwidthStatisticsDevice withCreatedAt(int createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = Optional.ofNullable(createdAt); - return this; - } - - public GetBandwidthStatisticsDevice withCreatedAt(Optional createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetBandwidthStatisticsDevice other = (GetBandwidthStatisticsDevice) o; - return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.name, other.name) && - java.util.Objects.deepEquals(this.platform, other.platform) && - java.util.Objects.deepEquals(this.clientIdentifier, other.clientIdentifier) && - java.util.Objects.deepEquals(this.createdAt, other.createdAt); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id, - name, - platform, - clientIdentifier, - createdAt); - } - - @Override - public String toString() { - return Utils.toString(GetBandwidthStatisticsDevice.class, - "id", id, - "name", name, - "platform", platform, - "clientIdentifier", clientIdentifier, - "createdAt", createdAt); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional name = Optional.empty(); - - private Optional platform = Optional.empty(); - - private Optional clientIdentifier = Optional.empty(); - - private Optional createdAt = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Builder platform(String platform) { - Utils.checkNotNull(platform, "platform"); - this.platform = Optional.ofNullable(platform); - return this; - } - - public Builder platform(Optional platform) { - Utils.checkNotNull(platform, "platform"); - this.platform = platform; - return this; - } - - public Builder clientIdentifier(String clientIdentifier) { - Utils.checkNotNull(clientIdentifier, "clientIdentifier"); - this.clientIdentifier = Optional.ofNullable(clientIdentifier); - return this; - } - - public Builder clientIdentifier(Optional clientIdentifier) { - Utils.checkNotNull(clientIdentifier, "clientIdentifier"); - this.clientIdentifier = clientIdentifier; - return this; - } - - public Builder createdAt(int createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = Optional.ofNullable(createdAt); - return this; - } - - public Builder createdAt(Optional createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - public GetBandwidthStatisticsDevice build() { - return new GetBandwidthStatisticsDevice( - id, - name, - platform, - clientIdentifier, - createdAt); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsMediaContainer.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsMediaContainer.java deleted file mode 100644 index c7176e19..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsMediaContainer.java +++ /dev/null @@ -1,240 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetBandwidthStatisticsMediaContainer { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Device") - private Optional> device; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Account") - private Optional> account; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("StatisticsBandwidth") - private Optional> statisticsBandwidth; - - @JsonCreator - public GetBandwidthStatisticsMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("Device") Optional> device, - @JsonProperty("Account") Optional> account, - @JsonProperty("StatisticsBandwidth") Optional> statisticsBandwidth) { - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(device, "device"); - Utils.checkNotNull(account, "account"); - Utils.checkNotNull(statisticsBandwidth, "statisticsBandwidth"); - this.size = size; - this.device = device; - this.account = account; - this.statisticsBandwidth = statisticsBandwidth; - } - - public GetBandwidthStatisticsMediaContainer() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> device() { - return (Optional>) device; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> account() { - return (Optional>) account; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> statisticsBandwidth() { - return (Optional>) statisticsBandwidth; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetBandwidthStatisticsMediaContainer withSize(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public GetBandwidthStatisticsMediaContainer withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public GetBandwidthStatisticsMediaContainer withDevice(java.util.List device) { - Utils.checkNotNull(device, "device"); - this.device = Optional.ofNullable(device); - return this; - } - - public GetBandwidthStatisticsMediaContainer withDevice(Optional> device) { - Utils.checkNotNull(device, "device"); - this.device = device; - return this; - } - - public GetBandwidthStatisticsMediaContainer withAccount(java.util.List account) { - Utils.checkNotNull(account, "account"); - this.account = Optional.ofNullable(account); - return this; - } - - public GetBandwidthStatisticsMediaContainer withAccount(Optional> account) { - Utils.checkNotNull(account, "account"); - this.account = account; - return this; - } - - public GetBandwidthStatisticsMediaContainer withStatisticsBandwidth(java.util.List statisticsBandwidth) { - Utils.checkNotNull(statisticsBandwidth, "statisticsBandwidth"); - this.statisticsBandwidth = Optional.ofNullable(statisticsBandwidth); - return this; - } - - public GetBandwidthStatisticsMediaContainer withStatisticsBandwidth(Optional> statisticsBandwidth) { - Utils.checkNotNull(statisticsBandwidth, "statisticsBandwidth"); - this.statisticsBandwidth = statisticsBandwidth; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetBandwidthStatisticsMediaContainer other = (GetBandwidthStatisticsMediaContainer) o; - return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.device, other.device) && - java.util.Objects.deepEquals(this.account, other.account) && - java.util.Objects.deepEquals(this.statisticsBandwidth, other.statisticsBandwidth); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - size, - device, - account, - statisticsBandwidth); - } - - @Override - public String toString() { - return Utils.toString(GetBandwidthStatisticsMediaContainer.class, - "size", size, - "device", device, - "account", account, - "statisticsBandwidth", statisticsBandwidth); - } - - public final static class Builder { - - private Optional size = Optional.empty(); - - private Optional> device = Optional.empty(); - - private Optional> account = Optional.empty(); - - private Optional> statisticsBandwidth = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder size(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder device(java.util.List device) { - Utils.checkNotNull(device, "device"); - this.device = Optional.ofNullable(device); - return this; - } - - public Builder device(Optional> device) { - Utils.checkNotNull(device, "device"); - this.device = device; - return this; - } - - public Builder account(java.util.List account) { - Utils.checkNotNull(account, "account"); - this.account = Optional.ofNullable(account); - return this; - } - - public Builder account(Optional> account) { - Utils.checkNotNull(account, "account"); - this.account = account; - return this; - } - - public Builder statisticsBandwidth(java.util.List statisticsBandwidth) { - Utils.checkNotNull(statisticsBandwidth, "statisticsBandwidth"); - this.statisticsBandwidth = Optional.ofNullable(statisticsBandwidth); - return this; - } - - public Builder statisticsBandwidth(Optional> statisticsBandwidth) { - Utils.checkNotNull(statisticsBandwidth, "statisticsBandwidth"); - this.statisticsBandwidth = statisticsBandwidth; - return this; - } - - public GetBandwidthStatisticsMediaContainer build() { - return new GetBandwidthStatisticsMediaContainer( - size, - device, - account, - statisticsBandwidth); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsRequest.java deleted file mode 100644 index ae0da93a..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsRequest.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetBandwidthStatisticsRequest { - - /** - * The timespan to retrieve statistics for - * the exact meaning of this parameter is not known - * - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=Timespan") - private Optional timespan; - - @JsonCreator - public GetBandwidthStatisticsRequest( - Optional timespan) { - Utils.checkNotNull(timespan, "timespan"); - this.timespan = timespan; - } - - public GetBandwidthStatisticsRequest() { - this(Optional.empty()); - } - - /** - * The timespan to retrieve statistics for - * the exact meaning of this parameter is not known - * - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional timespan() { - return (Optional) timespan; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * The timespan to retrieve statistics for - * the exact meaning of this parameter is not known - * - */ - public GetBandwidthStatisticsRequest withTimespan(long timespan) { - Utils.checkNotNull(timespan, "timespan"); - this.timespan = Optional.ofNullable(timespan); - return this; - } - - /** - * The timespan to retrieve statistics for - * the exact meaning of this parameter is not known - * - */ - public GetBandwidthStatisticsRequest withTimespan(Optional timespan) { - Utils.checkNotNull(timespan, "timespan"); - this.timespan = timespan; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetBandwidthStatisticsRequest other = (GetBandwidthStatisticsRequest) o; - return - java.util.Objects.deepEquals(this.timespan, other.timespan); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - timespan); - } - - @Override - public String toString() { - return Utils.toString(GetBandwidthStatisticsRequest.class, - "timespan", timespan); - } - - public final static class Builder { - - private Optional timespan = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * The timespan to retrieve statistics for - * the exact meaning of this parameter is not known - * - */ - public Builder timespan(long timespan) { - Utils.checkNotNull(timespan, "timespan"); - this.timespan = Optional.ofNullable(timespan); - return this; - } - - /** - * The timespan to retrieve statistics for - * the exact meaning of this parameter is not known - * - */ - public Builder timespan(Optional timespan) { - Utils.checkNotNull(timespan, "timespan"); - this.timespan = timespan; - return this; - } - - public GetBandwidthStatisticsRequest build() { - return new GetBandwidthStatisticsRequest( - timespan); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsRequestBuilder.java deleted file mode 100644 index 8d2e7608..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsRequestBuilder.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetBandwidthStatisticsRequestBuilder { - - private Optional timespan = Optional.empty(); - private final SDKMethodInterfaces.MethodCallGetBandwidthStatistics sdk; - - public GetBandwidthStatisticsRequestBuilder(SDKMethodInterfaces.MethodCallGetBandwidthStatistics sdk) { - this.sdk = sdk; - } - - public GetBandwidthStatisticsRequestBuilder timespan(long timespan) { - Utils.checkNotNull(timespan, "timespan"); - this.timespan = Optional.of(timespan); - return this; - } - - public GetBandwidthStatisticsRequestBuilder timespan(Optional timespan) { - Utils.checkNotNull(timespan, "timespan"); - this.timespan = timespan; - return this; - } - - public GetBandwidthStatisticsResponse call() throws Exception { - - return sdk.getBandwidthStatistics( - timespan); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsResponse.java deleted file mode 100644 index e5a09de0..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsResponse.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetBandwidthStatisticsResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Bandwidth Statistics - */ - private Optional object; - - @JsonCreator - public GetBandwidthStatisticsResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional object) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.object = object; - } - - public GetBandwidthStatisticsResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Bandwidth Statistics - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional object() { - return (Optional) object; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetBandwidthStatisticsResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetBandwidthStatisticsResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetBandwidthStatisticsResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Bandwidth Statistics - */ - public GetBandwidthStatisticsResponse withObject(GetBandwidthStatisticsResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * Bandwidth Statistics - */ - public GetBandwidthStatisticsResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetBandwidthStatisticsResponse other = (GetBandwidthStatisticsResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.object, other.object); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse, - object); - } - - @Override - public String toString() { - return Utils.toString(GetBandwidthStatisticsResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "object", object); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional object = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Bandwidth Statistics - */ - public Builder object(GetBandwidthStatisticsResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * Bandwidth Statistics - */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - public GetBandwidthStatisticsResponse build() { - return new GetBandwidthStatisticsResponse( - contentType, - statusCode, - rawResponse, - object); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsResponseBody.java deleted file mode 100644 index b73b1a2f..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetBandwidthStatisticsResponseBody.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -/** - * GetBandwidthStatisticsResponseBody - Bandwidth Statistics - */ - -public class GetBandwidthStatisticsResponseBody { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("MediaContainer") - private Optional mediaContainer; - - @JsonCreator - public GetBandwidthStatisticsResponseBody( - @JsonProperty("MediaContainer") Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - } - - public GetBandwidthStatisticsResponseBody() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaContainer() { - return (Optional) mediaContainer; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetBandwidthStatisticsResponseBody withMediaContainer(GetBandwidthStatisticsMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public GetBandwidthStatisticsResponseBody withMediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetBandwidthStatisticsResponseBody other = (GetBandwidthStatisticsResponseBody) o; - return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - mediaContainer); - } - - @Override - public String toString() { - return Utils.toString(GetBandwidthStatisticsResponseBody.class, - "mediaContainer", mediaContainer); - } - - public final static class Builder { - - private Optional mediaContainer = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder mediaContainer(GetBandwidthStatisticsMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public Builder mediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - public GetBandwidthStatisticsResponseBody build() { - return new GetBandwidthStatisticsResponseBody( - mediaContainer); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetButlerTasksRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetButlerTasksRequestBuilder.java deleted file mode 100644 index 21e21bb5..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetButlerTasksRequestBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetButlerTasksRequestBuilder { - - private final SDKMethodInterfaces.MethodCallGetButlerTasks sdk; - - public GetButlerTasksRequestBuilder(SDKMethodInterfaces.MethodCallGetButlerTasks sdk) { - this.sdk = sdk; - } - - public GetButlerTasksResponse call() throws Exception { - - return sdk.getButlerTasksDirect(); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetButlerTasksResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetButlerTasksResponse.java deleted file mode 100644 index d7be4b47..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetButlerTasksResponse.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetButlerTasksResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * All butler tasks - */ - private Optional object; - - @JsonCreator - public GetButlerTasksResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional object) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.object = object; - } - - public GetButlerTasksResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * All butler tasks - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional object() { - return (Optional) object; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetButlerTasksResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetButlerTasksResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetButlerTasksResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * All butler tasks - */ - public GetButlerTasksResponse withObject(GetButlerTasksResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * All butler tasks - */ - public GetButlerTasksResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetButlerTasksResponse other = (GetButlerTasksResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.object, other.object); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse, - object); - } - - @Override - public String toString() { - return Utils.toString(GetButlerTasksResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "object", object); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional object = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * All butler tasks - */ - public Builder object(GetButlerTasksResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * All butler tasks - */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - public GetButlerTasksResponse build() { - return new GetButlerTasksResponse( - contentType, - statusCode, - rawResponse, - object); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetButlerTasksResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetButlerTasksResponseBody.java deleted file mode 100644 index 43a4b19f..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetButlerTasksResponseBody.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -/** - * GetButlerTasksResponseBody - All butler tasks - */ - -public class GetButlerTasksResponseBody { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ButlerTasks") - private Optional butlerTasks; - - @JsonCreator - public GetButlerTasksResponseBody( - @JsonProperty("ButlerTasks") Optional butlerTasks) { - Utils.checkNotNull(butlerTasks, "butlerTasks"); - this.butlerTasks = butlerTasks; - } - - public GetButlerTasksResponseBody() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional butlerTasks() { - return (Optional) butlerTasks; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetButlerTasksResponseBody withButlerTasks(ButlerTasks butlerTasks) { - Utils.checkNotNull(butlerTasks, "butlerTasks"); - this.butlerTasks = Optional.ofNullable(butlerTasks); - return this; - } - - public GetButlerTasksResponseBody withButlerTasks(Optional butlerTasks) { - Utils.checkNotNull(butlerTasks, "butlerTasks"); - this.butlerTasks = butlerTasks; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetButlerTasksResponseBody other = (GetButlerTasksResponseBody) o; - return - java.util.Objects.deepEquals(this.butlerTasks, other.butlerTasks); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - butlerTasks); - } - - @Override - public String toString() { - return Utils.toString(GetButlerTasksResponseBody.class, - "butlerTasks", butlerTasks); - } - - public final static class Builder { - - private Optional butlerTasks = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder butlerTasks(ButlerTasks butlerTasks) { - Utils.checkNotNull(butlerTasks, "butlerTasks"); - this.butlerTasks = Optional.ofNullable(butlerTasks); - return this; - } - - public Builder butlerTasks(Optional butlerTasks) { - Utils.checkNotNull(butlerTasks, "butlerTasks"); - this.butlerTasks = butlerTasks; - return this; - } - - public GetButlerTasksResponseBody build() { - return new GetButlerTasksResponseBody( - butlerTasks); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetDevicesMediaContainer.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetDevicesMediaContainer.java deleted file mode 100644 index dbbfeb75..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetDevicesMediaContainer.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetDevicesMediaContainer { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("identifier") - private Optional identifier; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Device") - private Optional> device; - - @JsonCreator - public GetDevicesMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("identifier") Optional identifier, - @JsonProperty("Device") Optional> device) { - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(identifier, "identifier"); - Utils.checkNotNull(device, "device"); - this.size = size; - this.identifier = identifier; - this.device = device; - } - - public GetDevicesMediaContainer() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional identifier() { - return (Optional) identifier; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> device() { - return (Optional>) device; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetDevicesMediaContainer withSize(double size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public GetDevicesMediaContainer withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public GetDevicesMediaContainer withIdentifier(String identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = Optional.ofNullable(identifier); - return this; - } - - public GetDevicesMediaContainer withIdentifier(Optional identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = identifier; - return this; - } - - public GetDevicesMediaContainer withDevice(java.util.List device) { - Utils.checkNotNull(device, "device"); - this.device = Optional.ofNullable(device); - return this; - } - - public GetDevicesMediaContainer withDevice(Optional> device) { - Utils.checkNotNull(device, "device"); - this.device = device; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetDevicesMediaContainer other = (GetDevicesMediaContainer) o; - return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.identifier, other.identifier) && - java.util.Objects.deepEquals(this.device, other.device); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - size, - identifier, - device); - } - - @Override - public String toString() { - return Utils.toString(GetDevicesMediaContainer.class, - "size", size, - "identifier", identifier, - "device", device); - } - - public final static class Builder { - - private Optional size = Optional.empty(); - - private Optional identifier = Optional.empty(); - - private Optional> device = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder size(double size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder identifier(String identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = Optional.ofNullable(identifier); - return this; - } - - public Builder identifier(Optional identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = identifier; - return this; - } - - public Builder device(java.util.List device) { - Utils.checkNotNull(device, "device"); - this.device = Optional.ofNullable(device); - return this; - } - - public Builder device(Optional> device) { - Utils.checkNotNull(device, "device"); - this.device = device; - return this; - } - - public GetDevicesMediaContainer build() { - return new GetDevicesMediaContainer( - size, - identifier, - device); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetDevicesRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetDevicesRequestBuilder.java deleted file mode 100644 index 6f1c322f..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetDevicesRequestBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetDevicesRequestBuilder { - - private final SDKMethodInterfaces.MethodCallGetDevices sdk; - - public GetDevicesRequestBuilder(SDKMethodInterfaces.MethodCallGetDevices sdk) { - this.sdk = sdk; - } - - public GetDevicesResponse call() throws Exception { - - return sdk.getDevicesDirect(); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetDevicesResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetDevicesResponse.java deleted file mode 100644 index 7d593daa..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetDevicesResponse.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetDevicesResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Devices - */ - private Optional object; - - @JsonCreator - public GetDevicesResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional object) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.object = object; - } - - public GetDevicesResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Devices - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional object() { - return (Optional) object; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetDevicesResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetDevicesResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetDevicesResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Devices - */ - public GetDevicesResponse withObject(GetDevicesResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * Devices - */ - public GetDevicesResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetDevicesResponse other = (GetDevicesResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.object, other.object); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse, - object); - } - - @Override - public String toString() { - return Utils.toString(GetDevicesResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "object", object); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional object = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Devices - */ - public Builder object(GetDevicesResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * Devices - */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - public GetDevicesResponse build() { - return new GetDevicesResponse( - contentType, - statusCode, - rawResponse, - object); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetDevicesResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetDevicesResponseBody.java deleted file mode 100644 index c5d1f9bc..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetDevicesResponseBody.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -/** - * GetDevicesResponseBody - Devices - */ - -public class GetDevicesResponseBody { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("MediaContainer") - private Optional mediaContainer; - - @JsonCreator - public GetDevicesResponseBody( - @JsonProperty("MediaContainer") Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - } - - public GetDevicesResponseBody() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaContainer() { - return (Optional) mediaContainer; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetDevicesResponseBody withMediaContainer(GetDevicesMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public GetDevicesResponseBody withMediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetDevicesResponseBody other = (GetDevicesResponseBody) o; - return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - mediaContainer); - } - - @Override - public String toString() { - return Utils.toString(GetDevicesResponseBody.class, - "mediaContainer", mediaContainer); - } - - public final static class Builder { - - private Optional mediaContainer = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder mediaContainer(GetDevicesMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public Builder mediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - public GetDevicesResponseBody build() { - return new GetDevicesResponseBody( - mediaContainer); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetFileHashRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetFileHashRequest.java deleted file mode 100644 index 9d73d246..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetFileHashRequest.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetFileHashRequest { - - /** - * This is the path to the local file, must be prefixed by `file://` - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=url") - private String url; - - /** - * Item type - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=type") - private Optional type; - - @JsonCreator - public GetFileHashRequest( - String url, - Optional type) { - Utils.checkNotNull(url, "url"); - Utils.checkNotNull(type, "type"); - this.url = url; - this.type = type; - } - - public GetFileHashRequest( - String url) { - this(url, Optional.empty()); - } - - /** - * This is the path to the local file, must be prefixed by `file://` - */ - @JsonIgnore - public String url() { - return url; - } - - /** - * Item type - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * This is the path to the local file, must be prefixed by `file://` - */ - public GetFileHashRequest withUrl(String url) { - Utils.checkNotNull(url, "url"); - this.url = url; - return this; - } - - /** - * Item type - */ - public GetFileHashRequest withType(double type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - /** - * Item type - */ - public GetFileHashRequest withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetFileHashRequest other = (GetFileHashRequest) o; - return - java.util.Objects.deepEquals(this.url, other.url) && - java.util.Objects.deepEquals(this.type, other.type); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - url, - type); - } - - @Override - public String toString() { - return Utils.toString(GetFileHashRequest.class, - "url", url, - "type", type); - } - - public final static class Builder { - - private String url; - - private Optional type = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * This is the path to the local file, must be prefixed by `file://` - */ - public Builder url(String url) { - Utils.checkNotNull(url, "url"); - this.url = url; - return this; - } - - /** - * Item type - */ - public Builder type(double type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - /** - * Item type - */ - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public GetFileHashRequest build() { - return new GetFileHashRequest( - url, - type); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetFileHashRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetFileHashRequestBuilder.java deleted file mode 100644 index 77bec0a9..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetFileHashRequestBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetFileHashRequestBuilder { - - private String url; - private Optional type = Optional.empty(); - private final SDKMethodInterfaces.MethodCallGetFileHash sdk; - - public GetFileHashRequestBuilder(SDKMethodInterfaces.MethodCallGetFileHash sdk) { - this.sdk = sdk; - } - - public GetFileHashRequestBuilder url(String url) { - Utils.checkNotNull(url, "url"); - this.url = url; - return this; - } - - public GetFileHashRequestBuilder type(double type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.of(type); - return this; - } - - public GetFileHashRequestBuilder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public GetFileHashResponse call() throws Exception { - - return sdk.getFileHash( - url, - type); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetFileHashResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetFileHashResponse.java deleted file mode 100644 index 1446279a..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetFileHashResponse.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetFileHashResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - @JsonCreator - public GetFileHashResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetFileHashResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetFileHashResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetFileHashResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetFileHashResponse other = (GetFileHashResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetFileHashResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetFileHashResponse build() { - return new GetFileHashResponse( - contentType, - statusCode, - rawResponse); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsMediaContainer.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsMediaContainer.java deleted file mode 100644 index b88f5120..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsMediaContainer.java +++ /dev/null @@ -1,240 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetGlobalHubsMediaContainer { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("allowSync") - private Optional allowSync; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("identifier") - private Optional identifier; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Hub") - private Optional> hub; - - @JsonCreator - public GetGlobalHubsMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("allowSync") Optional allowSync, - @JsonProperty("identifier") Optional identifier, - @JsonProperty("Hub") Optional> hub) { - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(allowSync, "allowSync"); - Utils.checkNotNull(identifier, "identifier"); - Utils.checkNotNull(hub, "hub"); - this.size = size; - this.allowSync = allowSync; - this.identifier = identifier; - this.hub = hub; - } - - public GetGlobalHubsMediaContainer() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional allowSync() { - return (Optional) allowSync; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional identifier() { - return (Optional) identifier; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> hub() { - return (Optional>) hub; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetGlobalHubsMediaContainer withSize(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public GetGlobalHubsMediaContainer withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public GetGlobalHubsMediaContainer withAllowSync(boolean allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = Optional.ofNullable(allowSync); - return this; - } - - public GetGlobalHubsMediaContainer withAllowSync(Optional allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = allowSync; - return this; - } - - public GetGlobalHubsMediaContainer withIdentifier(String identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = Optional.ofNullable(identifier); - return this; - } - - public GetGlobalHubsMediaContainer withIdentifier(Optional identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = identifier; - return this; - } - - public GetGlobalHubsMediaContainer withHub(java.util.List hub) { - Utils.checkNotNull(hub, "hub"); - this.hub = Optional.ofNullable(hub); - return this; - } - - public GetGlobalHubsMediaContainer withHub(Optional> hub) { - Utils.checkNotNull(hub, "hub"); - this.hub = hub; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetGlobalHubsMediaContainer other = (GetGlobalHubsMediaContainer) o; - return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.allowSync, other.allowSync) && - java.util.Objects.deepEquals(this.identifier, other.identifier) && - java.util.Objects.deepEquals(this.hub, other.hub); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - size, - allowSync, - identifier, - hub); - } - - @Override - public String toString() { - return Utils.toString(GetGlobalHubsMediaContainer.class, - "size", size, - "allowSync", allowSync, - "identifier", identifier, - "hub", hub); - } - - public final static class Builder { - - private Optional size = Optional.empty(); - - private Optional allowSync = Optional.empty(); - - private Optional identifier = Optional.empty(); - - private Optional> hub = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder size(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder allowSync(boolean allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = Optional.ofNullable(allowSync); - return this; - } - - public Builder allowSync(Optional allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = allowSync; - return this; - } - - public Builder identifier(String identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = Optional.ofNullable(identifier); - return this; - } - - public Builder identifier(Optional identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = identifier; - return this; - } - - public Builder hub(java.util.List hub) { - Utils.checkNotNull(hub, "hub"); - this.hub = Optional.ofNullable(hub); - return this; - } - - public Builder hub(Optional> hub) { - Utils.checkNotNull(hub, "hub"); - this.hub = hub; - return this; - } - - public GetGlobalHubsMediaContainer build() { - return new GetGlobalHubsMediaContainer( - size, - allowSync, - identifier, - hub); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsMetadata.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsMetadata.java deleted file mode 100644 index dc56d3c3..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsMetadata.java +++ /dev/null @@ -1,799 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetGlobalHubsMetadata { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ratingKey") - private Optional ratingKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("guid") - private Optional guid; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title") - private Optional title; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("titleSort") - private Optional titleSort; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("summary") - private Optional summary; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("smart") - private Optional smart; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("playlistType") - private Optional playlistType; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("composite") - private Optional composite; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("icon") - private Optional icon; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("viewCount") - private Optional viewCount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("lastViewedAt") - private Optional lastViewedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("duration") - private Optional duration; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("leafCount") - private Optional leafCount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("addedAt") - private Optional addedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updatedAt") - private Optional updatedAt; - - @JsonCreator - public GetGlobalHubsMetadata( - @JsonProperty("ratingKey") Optional ratingKey, - @JsonProperty("key") Optional key, - @JsonProperty("guid") Optional guid, - @JsonProperty("type") Optional type, - @JsonProperty("title") Optional title, - @JsonProperty("titleSort") Optional titleSort, - @JsonProperty("summary") Optional summary, - @JsonProperty("smart") Optional smart, - @JsonProperty("playlistType") Optional playlistType, - @JsonProperty("composite") Optional composite, - @JsonProperty("icon") Optional icon, - @JsonProperty("viewCount") Optional viewCount, - @JsonProperty("lastViewedAt") Optional lastViewedAt, - @JsonProperty("duration") Optional duration, - @JsonProperty("leafCount") Optional leafCount, - @JsonProperty("addedAt") Optional addedAt, - @JsonProperty("updatedAt") Optional updatedAt) { - Utils.checkNotNull(ratingKey, "ratingKey"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(guid, "guid"); - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(title, "title"); - Utils.checkNotNull(titleSort, "titleSort"); - Utils.checkNotNull(summary, "summary"); - Utils.checkNotNull(smart, "smart"); - Utils.checkNotNull(playlistType, "playlistType"); - Utils.checkNotNull(composite, "composite"); - Utils.checkNotNull(icon, "icon"); - Utils.checkNotNull(viewCount, "viewCount"); - Utils.checkNotNull(lastViewedAt, "lastViewedAt"); - Utils.checkNotNull(duration, "duration"); - Utils.checkNotNull(leafCount, "leafCount"); - Utils.checkNotNull(addedAt, "addedAt"); - Utils.checkNotNull(updatedAt, "updatedAt"); - 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; - } - - public GetGlobalHubsMetadata() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional ratingKey() { - return (Optional) ratingKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional guid() { - return (Optional) guid; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title() { - return (Optional) title; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional titleSort() { - return (Optional) titleSort; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional summary() { - return (Optional) summary; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional smart() { - return (Optional) smart; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional playlistType() { - return (Optional) playlistType; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional composite() { - return (Optional) composite; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional icon() { - return (Optional) icon; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional viewCount() { - return (Optional) viewCount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional lastViewedAt() { - return (Optional) lastViewedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional duration() { - return (Optional) duration; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional leafCount() { - return (Optional) leafCount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional addedAt() { - return (Optional) addedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional updatedAt() { - return (Optional) updatedAt; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetGlobalHubsMetadata withRatingKey(String ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public GetGlobalHubsMetadata withRatingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public GetGlobalHubsMetadata withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public GetGlobalHubsMetadata withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public GetGlobalHubsMetadata withGuid(String guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = Optional.ofNullable(guid); - return this; - } - - public GetGlobalHubsMetadata withGuid(Optional guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = guid; - return this; - } - - public GetGlobalHubsMetadata withType(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public GetGlobalHubsMetadata withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public GetGlobalHubsMetadata withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public GetGlobalHubsMetadata withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public GetGlobalHubsMetadata withTitleSort(String titleSort) { - Utils.checkNotNull(titleSort, "titleSort"); - this.titleSort = Optional.ofNullable(titleSort); - return this; - } - - public GetGlobalHubsMetadata withTitleSort(Optional titleSort) { - Utils.checkNotNull(titleSort, "titleSort"); - this.titleSort = titleSort; - return this; - } - - public GetGlobalHubsMetadata withSummary(String summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = Optional.ofNullable(summary); - return this; - } - - public GetGlobalHubsMetadata withSummary(Optional summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = summary; - return this; - } - - public GetGlobalHubsMetadata withSmart(boolean smart) { - Utils.checkNotNull(smart, "smart"); - this.smart = Optional.ofNullable(smart); - return this; - } - - public GetGlobalHubsMetadata withSmart(Optional smart) { - Utils.checkNotNull(smart, "smart"); - this.smart = smart; - return this; - } - - public GetGlobalHubsMetadata withPlaylistType(String playlistType) { - Utils.checkNotNull(playlistType, "playlistType"); - this.playlistType = Optional.ofNullable(playlistType); - return this; - } - - public GetGlobalHubsMetadata withPlaylistType(Optional playlistType) { - Utils.checkNotNull(playlistType, "playlistType"); - this.playlistType = playlistType; - return this; - } - - public GetGlobalHubsMetadata withComposite(String composite) { - Utils.checkNotNull(composite, "composite"); - this.composite = Optional.ofNullable(composite); - return this; - } - - public GetGlobalHubsMetadata withComposite(Optional composite) { - Utils.checkNotNull(composite, "composite"); - this.composite = composite; - return this; - } - - public GetGlobalHubsMetadata withIcon(String icon) { - Utils.checkNotNull(icon, "icon"); - this.icon = Optional.ofNullable(icon); - return this; - } - - public GetGlobalHubsMetadata withIcon(Optional icon) { - Utils.checkNotNull(icon, "icon"); - this.icon = icon; - return this; - } - - public GetGlobalHubsMetadata withViewCount(int viewCount) { - Utils.checkNotNull(viewCount, "viewCount"); - this.viewCount = Optional.ofNullable(viewCount); - return this; - } - - public GetGlobalHubsMetadata withViewCount(Optional viewCount) { - Utils.checkNotNull(viewCount, "viewCount"); - this.viewCount = viewCount; - return this; - } - - public GetGlobalHubsMetadata withLastViewedAt(int lastViewedAt) { - Utils.checkNotNull(lastViewedAt, "lastViewedAt"); - this.lastViewedAt = Optional.ofNullable(lastViewedAt); - return this; - } - - public GetGlobalHubsMetadata withLastViewedAt(Optional lastViewedAt) { - Utils.checkNotNull(lastViewedAt, "lastViewedAt"); - this.lastViewedAt = lastViewedAt; - return this; - } - - public GetGlobalHubsMetadata withDuration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public GetGlobalHubsMetadata withDuration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public GetGlobalHubsMetadata withLeafCount(int leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = Optional.ofNullable(leafCount); - return this; - } - - public GetGlobalHubsMetadata withLeafCount(Optional leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = leafCount; - return this; - } - - public GetGlobalHubsMetadata withAddedAt(int addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = Optional.ofNullable(addedAt); - return this; - } - - public GetGlobalHubsMetadata withAddedAt(Optional addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = addedAt; - return this; - } - - public GetGlobalHubsMetadata withUpdatedAt(int updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public GetGlobalHubsMetadata withUpdatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetGlobalHubsMetadata other = (GetGlobalHubsMetadata) o; - return - java.util.Objects.deepEquals(this.ratingKey, other.ratingKey) && - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.guid, other.guid) && - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.title, other.title) && - java.util.Objects.deepEquals(this.titleSort, other.titleSort) && - java.util.Objects.deepEquals(this.summary, other.summary) && - java.util.Objects.deepEquals(this.smart, other.smart) && - java.util.Objects.deepEquals(this.playlistType, other.playlistType) && - java.util.Objects.deepEquals(this.composite, other.composite) && - java.util.Objects.deepEquals(this.icon, other.icon) && - java.util.Objects.deepEquals(this.viewCount, other.viewCount) && - java.util.Objects.deepEquals(this.lastViewedAt, other.lastViewedAt) && - java.util.Objects.deepEquals(this.duration, other.duration) && - java.util.Objects.deepEquals(this.leafCount, other.leafCount) && - java.util.Objects.deepEquals(this.addedAt, other.addedAt) && - java.util.Objects.deepEquals(this.updatedAt, other.updatedAt); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - ratingKey, - key, - guid, - type, - title, - titleSort, - summary, - smart, - playlistType, - composite, - icon, - viewCount, - lastViewedAt, - duration, - leafCount, - addedAt, - updatedAt); - } - - @Override - public String toString() { - return Utils.toString(GetGlobalHubsMetadata.class, - "ratingKey", ratingKey, - "key", key, - "guid", guid, - "type", type, - "title", title, - "titleSort", titleSort, - "summary", summary, - "smart", smart, - "playlistType", playlistType, - "composite", composite, - "icon", icon, - "viewCount", viewCount, - "lastViewedAt", lastViewedAt, - "duration", duration, - "leafCount", leafCount, - "addedAt", addedAt, - "updatedAt", updatedAt); - } - - public final static class Builder { - - private Optional ratingKey = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional guid = Optional.empty(); - - private Optional type = Optional.empty(); - - private Optional title = Optional.empty(); - - private Optional titleSort = Optional.empty(); - - private Optional summary = Optional.empty(); - - private Optional smart = Optional.empty(); - - private Optional playlistType = Optional.empty(); - - private Optional composite = Optional.empty(); - - private Optional icon = Optional.empty(); - - private Optional viewCount = Optional.empty(); - - private Optional lastViewedAt = Optional.empty(); - - private Optional duration = Optional.empty(); - - private Optional leafCount = Optional.empty(); - - private Optional addedAt = Optional.empty(); - - private Optional updatedAt = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder ratingKey(String ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public Builder ratingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder guid(String guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = Optional.ofNullable(guid); - return this; - } - - public Builder guid(Optional guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = guid; - return this; - } - - public Builder type(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Builder titleSort(String titleSort) { - Utils.checkNotNull(titleSort, "titleSort"); - this.titleSort = Optional.ofNullable(titleSort); - return this; - } - - public Builder titleSort(Optional titleSort) { - Utils.checkNotNull(titleSort, "titleSort"); - this.titleSort = titleSort; - return this; - } - - public Builder summary(String summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = Optional.ofNullable(summary); - return this; - } - - public Builder summary(Optional summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = summary; - return this; - } - - public Builder smart(boolean smart) { - Utils.checkNotNull(smart, "smart"); - this.smart = Optional.ofNullable(smart); - return this; - } - - public Builder smart(Optional smart) { - Utils.checkNotNull(smart, "smart"); - this.smart = smart; - return this; - } - - public Builder playlistType(String playlistType) { - Utils.checkNotNull(playlistType, "playlistType"); - this.playlistType = Optional.ofNullable(playlistType); - return this; - } - - public Builder playlistType(Optional playlistType) { - Utils.checkNotNull(playlistType, "playlistType"); - this.playlistType = playlistType; - return this; - } - - public Builder composite(String composite) { - Utils.checkNotNull(composite, "composite"); - this.composite = Optional.ofNullable(composite); - return this; - } - - public Builder composite(Optional composite) { - Utils.checkNotNull(composite, "composite"); - this.composite = composite; - return this; - } - - public Builder icon(String icon) { - Utils.checkNotNull(icon, "icon"); - this.icon = Optional.ofNullable(icon); - return this; - } - - public Builder icon(Optional icon) { - Utils.checkNotNull(icon, "icon"); - this.icon = icon; - return this; - } - - public Builder viewCount(int viewCount) { - Utils.checkNotNull(viewCount, "viewCount"); - this.viewCount = Optional.ofNullable(viewCount); - return this; - } - - public Builder viewCount(Optional viewCount) { - Utils.checkNotNull(viewCount, "viewCount"); - this.viewCount = viewCount; - return this; - } - - public Builder lastViewedAt(int lastViewedAt) { - Utils.checkNotNull(lastViewedAt, "lastViewedAt"); - this.lastViewedAt = Optional.ofNullable(lastViewedAt); - return this; - } - - public Builder lastViewedAt(Optional lastViewedAt) { - Utils.checkNotNull(lastViewedAt, "lastViewedAt"); - this.lastViewedAt = lastViewedAt; - return this; - } - - public Builder duration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public Builder duration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public Builder leafCount(int leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = Optional.ofNullable(leafCount); - return this; - } - - public Builder leafCount(Optional leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = leafCount; - return this; - } - - public Builder addedAt(int addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = Optional.ofNullable(addedAt); - return this; - } - - public Builder addedAt(Optional addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = addedAt; - return this; - } - - public Builder updatedAt(int updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public Builder updatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public GetGlobalHubsMetadata build() { - return new GetGlobalHubsMetadata( - ratingKey, - key, - guid, - type, - title, - titleSort, - summary, - smart, - playlistType, - composite, - icon, - viewCount, - lastViewedAt, - duration, - leafCount, - addedAt, - updatedAt); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsRequest.java deleted file mode 100644 index 2a7328f2..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsRequest.java +++ /dev/null @@ -1,186 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetGlobalHubsRequest { - - /** - * The number of items to return with each hub. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=count") - private Optional count; - - /** - * 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). - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=onlyTransient") - private Optional onlyTransient; - - @JsonCreator - public GetGlobalHubsRequest( - Optional count, - Optional onlyTransient) { - Utils.checkNotNull(count, "count"); - Utils.checkNotNull(onlyTransient, "onlyTransient"); - this.count = count; - this.onlyTransient = onlyTransient; - } - - public GetGlobalHubsRequest() { - this(Optional.empty(), Optional.empty()); - } - - /** - * The number of items to return with each hub. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional count() { - return (Optional) count; - } - - /** - * 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). - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional onlyTransient() { - return (Optional) onlyTransient; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * The number of items to return with each hub. - */ - public GetGlobalHubsRequest withCount(double count) { - Utils.checkNotNull(count, "count"); - this.count = Optional.ofNullable(count); - return this; - } - - /** - * The number of items to return with each hub. - */ - public GetGlobalHubsRequest withCount(Optional count) { - Utils.checkNotNull(count, "count"); - this.count = count; - return this; - } - - /** - * 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). - */ - public GetGlobalHubsRequest withOnlyTransient(OnlyTransient onlyTransient) { - Utils.checkNotNull(onlyTransient, "onlyTransient"); - this.onlyTransient = Optional.ofNullable(onlyTransient); - return this; - } - - /** - * 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). - */ - public GetGlobalHubsRequest withOnlyTransient(Optional onlyTransient) { - Utils.checkNotNull(onlyTransient, "onlyTransient"); - this.onlyTransient = onlyTransient; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetGlobalHubsRequest other = (GetGlobalHubsRequest) o; - return - java.util.Objects.deepEquals(this.count, other.count) && - java.util.Objects.deepEquals(this.onlyTransient, other.onlyTransient); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - count, - onlyTransient); - } - - @Override - public String toString() { - return Utils.toString(GetGlobalHubsRequest.class, - "count", count, - "onlyTransient", onlyTransient); - } - - public final static class Builder { - - private Optional count = Optional.empty(); - - private Optional onlyTransient = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * The number of items to return with each hub. - */ - public Builder count(double count) { - Utils.checkNotNull(count, "count"); - this.count = Optional.ofNullable(count); - return this; - } - - /** - * The number of items to return with each hub. - */ - public Builder count(Optional count) { - Utils.checkNotNull(count, "count"); - this.count = count; - return this; - } - - /** - * 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). - */ - public Builder onlyTransient(OnlyTransient onlyTransient) { - Utils.checkNotNull(onlyTransient, "onlyTransient"); - this.onlyTransient = Optional.ofNullable(onlyTransient); - return this; - } - - /** - * 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). - */ - public Builder onlyTransient(Optional onlyTransient) { - Utils.checkNotNull(onlyTransient, "onlyTransient"); - this.onlyTransient = onlyTransient; - return this; - } - - public GetGlobalHubsRequest build() { - return new GetGlobalHubsRequest( - count, - onlyTransient); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsRequestBuilder.java deleted file mode 100644 index f79e45df..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsRequestBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetGlobalHubsRequestBuilder { - - private Optional count = Optional.empty(); - private Optional onlyTransient = Optional.empty(); - private final SDKMethodInterfaces.MethodCallGetGlobalHubs sdk; - - public GetGlobalHubsRequestBuilder(SDKMethodInterfaces.MethodCallGetGlobalHubs sdk) { - this.sdk = sdk; - } - - public GetGlobalHubsRequestBuilder count(double count) { - Utils.checkNotNull(count, "count"); - this.count = Optional.of(count); - return this; - } - - public GetGlobalHubsRequestBuilder count(Optional count) { - Utils.checkNotNull(count, "count"); - this.count = count; - return this; - } - - public GetGlobalHubsRequestBuilder onlyTransient(OnlyTransient onlyTransient) { - Utils.checkNotNull(onlyTransient, "onlyTransient"); - this.onlyTransient = Optional.of(onlyTransient); - return this; - } - - public GetGlobalHubsRequestBuilder onlyTransient(Optional onlyTransient) { - Utils.checkNotNull(onlyTransient, "onlyTransient"); - this.onlyTransient = onlyTransient; - return this; - } - - public GetGlobalHubsResponse call() throws Exception { - - return sdk.getGlobalHubs( - count, - onlyTransient); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsResponse.java deleted file mode 100644 index 12407ec6..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsResponse.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetGlobalHubsResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * returns global hubs - */ - private Optional object; - - @JsonCreator - public GetGlobalHubsResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional object) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.object = object; - } - - public GetGlobalHubsResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * returns global hubs - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional object() { - return (Optional) object; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetGlobalHubsResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetGlobalHubsResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetGlobalHubsResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * returns global hubs - */ - public GetGlobalHubsResponse withObject(GetGlobalHubsResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * returns global hubs - */ - public GetGlobalHubsResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetGlobalHubsResponse other = (GetGlobalHubsResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.object, other.object); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse, - object); - } - - @Override - public String toString() { - return Utils.toString(GetGlobalHubsResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "object", object); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional object = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * returns global hubs - */ - public Builder object(GetGlobalHubsResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * returns global hubs - */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - public GetGlobalHubsResponse build() { - return new GetGlobalHubsResponse( - contentType, - statusCode, - rawResponse, - object); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsResponseBody.java deleted file mode 100644 index 2c79f4b2..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetGlobalHubsResponseBody.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -/** - * GetGlobalHubsResponseBody - returns global hubs - */ - -public class GetGlobalHubsResponseBody { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("MediaContainer") - private Optional mediaContainer; - - @JsonCreator - public GetGlobalHubsResponseBody( - @JsonProperty("MediaContainer") Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - } - - public GetGlobalHubsResponseBody() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaContainer() { - return (Optional) mediaContainer; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetGlobalHubsResponseBody withMediaContainer(GetGlobalHubsMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public GetGlobalHubsResponseBody withMediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetGlobalHubsResponseBody other = (GetGlobalHubsResponseBody) o; - return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - mediaContainer); - } - - @Override - public String toString() { - return Utils.toString(GetGlobalHubsResponseBody.class, - "mediaContainer", mediaContainer); - } - - public final static class Builder { - - private Optional mediaContainer = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder mediaContainer(GetGlobalHubsMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public Builder mediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - public GetGlobalHubsResponseBody build() { - return new GetGlobalHubsResponseBody( - mediaContainer); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetHomeDataRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetHomeDataRequestBuilder.java deleted file mode 100644 index 682ce0aa..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetHomeDataRequestBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetHomeDataRequestBuilder { - - private final SDKMethodInterfaces.MethodCallGetHomeData sdk; - - public GetHomeDataRequestBuilder(SDKMethodInterfaces.MethodCallGetHomeData sdk) { - this.sdk = sdk; - } - - public GetHomeDataResponse call() throws Exception { - - return sdk.getHomeDataDirect(); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetHomeDataResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetHomeDataResponse.java deleted file mode 100644 index 73e54742..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetHomeDataResponse.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetHomeDataResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Home Data - */ - private Optional object; - - @JsonCreator - public GetHomeDataResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional object) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.object = object; - } - - public GetHomeDataResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Home Data - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional object() { - return (Optional) object; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetHomeDataResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetHomeDataResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetHomeDataResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Home Data - */ - public GetHomeDataResponse withObject(GetHomeDataResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * Home Data - */ - public GetHomeDataResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetHomeDataResponse other = (GetHomeDataResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.object, other.object); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse, - object); - } - - @Override - public String toString() { - return Utils.toString(GetHomeDataResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "object", object); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional object = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Home Data - */ - public Builder object(GetHomeDataResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * Home Data - */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - public GetHomeDataResponse build() { - return new GetHomeDataResponse( - contentType, - statusCode, - rawResponse, - object); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetHomeDataResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetHomeDataResponseBody.java deleted file mode 100644 index 306bc3d3..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetHomeDataResponseBody.java +++ /dev/null @@ -1,329 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -/** - * GetHomeDataResponseBody - Home Data - */ - -public class GetHomeDataResponseBody { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("guestUserID") - private Optional guestUserID; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("guestUserUUID") - private Optional guestUserUUID; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("guestEnabled") - private Optional guestEnabled; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("subscription") - private Optional subscription; - - @JsonCreator - public GetHomeDataResponseBody( - @JsonProperty("id") Optional id, - @JsonProperty("name") Optional name, - @JsonProperty("guestUserID") Optional guestUserID, - @JsonProperty("guestUserUUID") Optional guestUserUUID, - @JsonProperty("guestEnabled") Optional guestEnabled, - @JsonProperty("subscription") Optional subscription) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(guestUserID, "guestUserID"); - Utils.checkNotNull(guestUserUUID, "guestUserUUID"); - Utils.checkNotNull(guestEnabled, "guestEnabled"); - Utils.checkNotNull(subscription, "subscription"); - this.id = id; - this.name = name; - this.guestUserID = guestUserID; - this.guestUserUUID = guestUserUUID; - this.guestEnabled = guestEnabled; - this.subscription = subscription; - } - - public GetHomeDataResponseBody() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional name() { - return (Optional) name; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional guestUserID() { - return (Optional) guestUserID; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional guestUserUUID() { - return (Optional) guestUserUUID; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional guestEnabled() { - return (Optional) guestEnabled; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional subscription() { - return (Optional) subscription; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetHomeDataResponseBody withId(double id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public GetHomeDataResponseBody withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public GetHomeDataResponseBody withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public GetHomeDataResponseBody withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public GetHomeDataResponseBody withGuestUserID(double guestUserID) { - Utils.checkNotNull(guestUserID, "guestUserID"); - this.guestUserID = Optional.ofNullable(guestUserID); - return this; - } - - public GetHomeDataResponseBody withGuestUserID(Optional guestUserID) { - Utils.checkNotNull(guestUserID, "guestUserID"); - this.guestUserID = guestUserID; - return this; - } - - public GetHomeDataResponseBody withGuestUserUUID(String guestUserUUID) { - Utils.checkNotNull(guestUserUUID, "guestUserUUID"); - this.guestUserUUID = Optional.ofNullable(guestUserUUID); - return this; - } - - public GetHomeDataResponseBody withGuestUserUUID(Optional guestUserUUID) { - Utils.checkNotNull(guestUserUUID, "guestUserUUID"); - this.guestUserUUID = guestUserUUID; - return this; - } - - public GetHomeDataResponseBody withGuestEnabled(boolean guestEnabled) { - Utils.checkNotNull(guestEnabled, "guestEnabled"); - this.guestEnabled = Optional.ofNullable(guestEnabled); - return this; - } - - public GetHomeDataResponseBody withGuestEnabled(Optional guestEnabled) { - Utils.checkNotNull(guestEnabled, "guestEnabled"); - this.guestEnabled = guestEnabled; - return this; - } - - public GetHomeDataResponseBody withSubscription(boolean subscription) { - Utils.checkNotNull(subscription, "subscription"); - this.subscription = Optional.ofNullable(subscription); - return this; - } - - public GetHomeDataResponseBody withSubscription(Optional subscription) { - Utils.checkNotNull(subscription, "subscription"); - this.subscription = subscription; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetHomeDataResponseBody other = (GetHomeDataResponseBody) o; - return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.name, other.name) && - java.util.Objects.deepEquals(this.guestUserID, other.guestUserID) && - java.util.Objects.deepEquals(this.guestUserUUID, other.guestUserUUID) && - java.util.Objects.deepEquals(this.guestEnabled, other.guestEnabled) && - java.util.Objects.deepEquals(this.subscription, other.subscription); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id, - name, - guestUserID, - guestUserUUID, - guestEnabled, - subscription); - } - - @Override - public String toString() { - return Utils.toString(GetHomeDataResponseBody.class, - "id", id, - "name", name, - "guestUserID", guestUserID, - "guestUserUUID", guestUserUUID, - "guestEnabled", guestEnabled, - "subscription", subscription); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional name = Optional.empty(); - - private Optional guestUserID = Optional.empty(); - - private Optional guestUserUUID = Optional.empty(); - - private Optional guestEnabled = Optional.empty(); - - private Optional subscription = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(double id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Builder guestUserID(double guestUserID) { - Utils.checkNotNull(guestUserID, "guestUserID"); - this.guestUserID = Optional.ofNullable(guestUserID); - return this; - } - - public Builder guestUserID(Optional guestUserID) { - Utils.checkNotNull(guestUserID, "guestUserID"); - this.guestUserID = guestUserID; - return this; - } - - public Builder guestUserUUID(String guestUserUUID) { - Utils.checkNotNull(guestUserUUID, "guestUserUUID"); - this.guestUserUUID = Optional.ofNullable(guestUserUUID); - return this; - } - - public Builder guestUserUUID(Optional guestUserUUID) { - Utils.checkNotNull(guestUserUUID, "guestUserUUID"); - this.guestUserUUID = guestUserUUID; - return this; - } - - public Builder guestEnabled(boolean guestEnabled) { - Utils.checkNotNull(guestEnabled, "guestEnabled"); - this.guestEnabled = Optional.ofNullable(guestEnabled); - return this; - } - - public Builder guestEnabled(Optional guestEnabled) { - Utils.checkNotNull(guestEnabled, "guestEnabled"); - this.guestEnabled = guestEnabled; - return this; - } - - public Builder subscription(boolean subscription) { - Utils.checkNotNull(subscription, "subscription"); - this.subscription = Optional.ofNullable(subscription); - return this; - } - - public Builder subscription(Optional subscription) { - Utils.checkNotNull(subscription, "subscription"); - this.subscription = subscription; - return this; - } - - public GetHomeDataResponseBody build() { - return new GetHomeDataResponseBody( - id, - name, - guestUserID, - guestUserUUID, - guestEnabled, - subscription); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesDirectory.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesDirectory.java deleted file mode 100644 index c1ceb26a..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesDirectory.java +++ /dev/null @@ -1,971 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetLibrariesDirectory { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("allowSync") - private Optional allowSync; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("art") - private Optional art; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("composite") - private Optional composite; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("filters") - private Optional filters; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("refreshing") - private Optional refreshing; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("thumb") - private Optional thumb; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title") - private Optional title; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("agent") - private Optional agent; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("scanner") - private Optional scanner; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("language") - private Optional language; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("uuid") - private Optional uuid; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updatedAt") - private Optional updatedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("createdAt") - private Optional createdAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("scannedAt") - private Optional scannedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("content") - private Optional content; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("directory") - private Optional directory; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("contentChangedAt") - private Optional contentChangedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("hidden") - private Optional hidden; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Location") - private Optional> location; - - @JsonCreator - public GetLibrariesDirectory( - @JsonProperty("allowSync") Optional allowSync, - @JsonProperty("art") Optional art, - @JsonProperty("composite") Optional composite, - @JsonProperty("filters") Optional filters, - @JsonProperty("refreshing") Optional refreshing, - @JsonProperty("thumb") Optional thumb, - @JsonProperty("key") Optional key, - @JsonProperty("type") Optional type, - @JsonProperty("title") Optional title, - @JsonProperty("agent") Optional agent, - @JsonProperty("scanner") Optional scanner, - @JsonProperty("language") Optional language, - @JsonProperty("uuid") Optional uuid, - @JsonProperty("updatedAt") Optional updatedAt, - @JsonProperty("createdAt") Optional createdAt, - @JsonProperty("scannedAt") Optional scannedAt, - @JsonProperty("content") Optional content, - @JsonProperty("directory") Optional directory, - @JsonProperty("contentChangedAt") Optional contentChangedAt, - @JsonProperty("hidden") Optional hidden, - @JsonProperty("Location") Optional> location) { - Utils.checkNotNull(allowSync, "allowSync"); - Utils.checkNotNull(art, "art"); - Utils.checkNotNull(composite, "composite"); - Utils.checkNotNull(filters, "filters"); - Utils.checkNotNull(refreshing, "refreshing"); - Utils.checkNotNull(thumb, "thumb"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(title, "title"); - Utils.checkNotNull(agent, "agent"); - Utils.checkNotNull(scanner, "scanner"); - Utils.checkNotNull(language, "language"); - Utils.checkNotNull(uuid, "uuid"); - Utils.checkNotNull(updatedAt, "updatedAt"); - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(scannedAt, "scannedAt"); - Utils.checkNotNull(content, "content"); - Utils.checkNotNull(directory, "directory"); - Utils.checkNotNull(contentChangedAt, "contentChangedAt"); - Utils.checkNotNull(hidden, "hidden"); - Utils.checkNotNull(location, "location"); - 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; - } - - public GetLibrariesDirectory() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional allowSync() { - return (Optional) allowSync; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional art() { - return (Optional) art; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional composite() { - return (Optional) composite; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional filters() { - return (Optional) filters; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional refreshing() { - return (Optional) refreshing; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional thumb() { - return (Optional) thumb; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title() { - return (Optional) title; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional agent() { - return (Optional) agent; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional scanner() { - return (Optional) scanner; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional language() { - return (Optional) language; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional uuid() { - return (Optional) uuid; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional updatedAt() { - return (Optional) updatedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional createdAt() { - return (Optional) createdAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional scannedAt() { - return (Optional) scannedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional content() { - return (Optional) content; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional directory() { - return (Optional) directory; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional contentChangedAt() { - return (Optional) contentChangedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional hidden() { - return (Optional) hidden; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> location() { - return (Optional>) location; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibrariesDirectory withAllowSync(boolean allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = Optional.ofNullable(allowSync); - return this; - } - - public GetLibrariesDirectory withAllowSync(Optional allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = allowSync; - return this; - } - - public GetLibrariesDirectory withArt(String art) { - Utils.checkNotNull(art, "art"); - this.art = Optional.ofNullable(art); - return this; - } - - public GetLibrariesDirectory withArt(Optional art) { - Utils.checkNotNull(art, "art"); - this.art = art; - return this; - } - - public GetLibrariesDirectory withComposite(String composite) { - Utils.checkNotNull(composite, "composite"); - this.composite = Optional.ofNullable(composite); - return this; - } - - public GetLibrariesDirectory withComposite(Optional composite) { - Utils.checkNotNull(composite, "composite"); - this.composite = composite; - return this; - } - - public GetLibrariesDirectory withFilters(boolean filters) { - Utils.checkNotNull(filters, "filters"); - this.filters = Optional.ofNullable(filters); - return this; - } - - public GetLibrariesDirectory withFilters(Optional filters) { - Utils.checkNotNull(filters, "filters"); - this.filters = filters; - return this; - } - - public GetLibrariesDirectory withRefreshing(boolean refreshing) { - Utils.checkNotNull(refreshing, "refreshing"); - this.refreshing = Optional.ofNullable(refreshing); - return this; - } - - public GetLibrariesDirectory withRefreshing(Optional refreshing) { - Utils.checkNotNull(refreshing, "refreshing"); - this.refreshing = refreshing; - return this; - } - - public GetLibrariesDirectory withThumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public GetLibrariesDirectory withThumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public GetLibrariesDirectory withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public GetLibrariesDirectory withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public GetLibrariesDirectory withType(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public GetLibrariesDirectory withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public GetLibrariesDirectory withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public GetLibrariesDirectory withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public GetLibrariesDirectory withAgent(String agent) { - Utils.checkNotNull(agent, "agent"); - this.agent = Optional.ofNullable(agent); - return this; - } - - public GetLibrariesDirectory withAgent(Optional agent) { - Utils.checkNotNull(agent, "agent"); - this.agent = agent; - return this; - } - - public GetLibrariesDirectory withScanner(String scanner) { - Utils.checkNotNull(scanner, "scanner"); - this.scanner = Optional.ofNullable(scanner); - return this; - } - - public GetLibrariesDirectory withScanner(Optional scanner) { - Utils.checkNotNull(scanner, "scanner"); - this.scanner = scanner; - return this; - } - - public GetLibrariesDirectory withLanguage(String language) { - Utils.checkNotNull(language, "language"); - this.language = Optional.ofNullable(language); - return this; - } - - public GetLibrariesDirectory withLanguage(Optional language) { - Utils.checkNotNull(language, "language"); - this.language = language; - return this; - } - - public GetLibrariesDirectory withUuid(String uuid) { - Utils.checkNotNull(uuid, "uuid"); - this.uuid = Optional.ofNullable(uuid); - return this; - } - - public GetLibrariesDirectory withUuid(Optional uuid) { - Utils.checkNotNull(uuid, "uuid"); - this.uuid = uuid; - return this; - } - - public GetLibrariesDirectory withUpdatedAt(int updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public GetLibrariesDirectory withUpdatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public GetLibrariesDirectory withCreatedAt(int createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = Optional.ofNullable(createdAt); - return this; - } - - public GetLibrariesDirectory withCreatedAt(Optional createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - public GetLibrariesDirectory withScannedAt(int scannedAt) { - Utils.checkNotNull(scannedAt, "scannedAt"); - this.scannedAt = Optional.ofNullable(scannedAt); - return this; - } - - public GetLibrariesDirectory withScannedAt(Optional scannedAt) { - Utils.checkNotNull(scannedAt, "scannedAt"); - this.scannedAt = scannedAt; - return this; - } - - public GetLibrariesDirectory withContent(boolean content) { - Utils.checkNotNull(content, "content"); - this.content = Optional.ofNullable(content); - return this; - } - - public GetLibrariesDirectory withContent(Optional content) { - Utils.checkNotNull(content, "content"); - this.content = content; - return this; - } - - public GetLibrariesDirectory withDirectory(boolean directory) { - Utils.checkNotNull(directory, "directory"); - this.directory = Optional.ofNullable(directory); - return this; - } - - public GetLibrariesDirectory withDirectory(Optional directory) { - Utils.checkNotNull(directory, "directory"); - this.directory = directory; - return this; - } - - public GetLibrariesDirectory withContentChangedAt(int contentChangedAt) { - Utils.checkNotNull(contentChangedAt, "contentChangedAt"); - this.contentChangedAt = Optional.ofNullable(contentChangedAt); - return this; - } - - public GetLibrariesDirectory withContentChangedAt(Optional contentChangedAt) { - Utils.checkNotNull(contentChangedAt, "contentChangedAt"); - this.contentChangedAt = contentChangedAt; - return this; - } - - public GetLibrariesDirectory withHidden(int hidden) { - Utils.checkNotNull(hidden, "hidden"); - this.hidden = Optional.ofNullable(hidden); - return this; - } - - public GetLibrariesDirectory withHidden(Optional hidden) { - Utils.checkNotNull(hidden, "hidden"); - this.hidden = hidden; - return this; - } - - public GetLibrariesDirectory withLocation(java.util.List location) { - Utils.checkNotNull(location, "location"); - this.location = Optional.ofNullable(location); - return this; - } - - public GetLibrariesDirectory withLocation(Optional> location) { - Utils.checkNotNull(location, "location"); - this.location = location; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibrariesDirectory other = (GetLibrariesDirectory) o; - return - java.util.Objects.deepEquals(this.allowSync, other.allowSync) && - java.util.Objects.deepEquals(this.art, other.art) && - java.util.Objects.deepEquals(this.composite, other.composite) && - java.util.Objects.deepEquals(this.filters, other.filters) && - java.util.Objects.deepEquals(this.refreshing, other.refreshing) && - java.util.Objects.deepEquals(this.thumb, other.thumb) && - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.title, other.title) && - java.util.Objects.deepEquals(this.agent, other.agent) && - java.util.Objects.deepEquals(this.scanner, other.scanner) && - java.util.Objects.deepEquals(this.language, other.language) && - java.util.Objects.deepEquals(this.uuid, other.uuid) && - java.util.Objects.deepEquals(this.updatedAt, other.updatedAt) && - java.util.Objects.deepEquals(this.createdAt, other.createdAt) && - java.util.Objects.deepEquals(this.scannedAt, other.scannedAt) && - java.util.Objects.deepEquals(this.content, other.content) && - java.util.Objects.deepEquals(this.directory, other.directory) && - java.util.Objects.deepEquals(this.contentChangedAt, other.contentChangedAt) && - java.util.Objects.deepEquals(this.hidden, other.hidden) && - java.util.Objects.deepEquals(this.location, other.location); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - allowSync, - art, - composite, - filters, - refreshing, - thumb, - key, - type, - title, - agent, - scanner, - language, - uuid, - updatedAt, - createdAt, - scannedAt, - content, - directory, - contentChangedAt, - hidden, - location); - } - - @Override - public String toString() { - return Utils.toString(GetLibrariesDirectory.class, - "allowSync", allowSync, - "art", art, - "composite", composite, - "filters", filters, - "refreshing", refreshing, - "thumb", thumb, - "key", key, - "type", type, - "title", title, - "agent", agent, - "scanner", scanner, - "language", language, - "uuid", uuid, - "updatedAt", updatedAt, - "createdAt", createdAt, - "scannedAt", scannedAt, - "content", content, - "directory", directory, - "contentChangedAt", contentChangedAt, - "hidden", hidden, - "location", location); - } - - public final static class Builder { - - private Optional allowSync = Optional.empty(); - - private Optional art = Optional.empty(); - - private Optional composite = Optional.empty(); - - private Optional filters = Optional.empty(); - - private Optional refreshing = Optional.empty(); - - private Optional thumb = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional type = Optional.empty(); - - private Optional title = Optional.empty(); - - private Optional agent = Optional.empty(); - - private Optional scanner = Optional.empty(); - - private Optional language = Optional.empty(); - - private Optional uuid = Optional.empty(); - - private Optional updatedAt = Optional.empty(); - - private Optional createdAt = Optional.empty(); - - private Optional scannedAt = Optional.empty(); - - private Optional content = Optional.empty(); - - private Optional directory = Optional.empty(); - - private Optional contentChangedAt = Optional.empty(); - - private Optional hidden = Optional.empty(); - - private Optional> location = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder allowSync(boolean allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = Optional.ofNullable(allowSync); - return this; - } - - public Builder allowSync(Optional allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = allowSync; - return this; - } - - public Builder art(String art) { - Utils.checkNotNull(art, "art"); - this.art = Optional.ofNullable(art); - return this; - } - - public Builder art(Optional art) { - Utils.checkNotNull(art, "art"); - this.art = art; - return this; - } - - public Builder composite(String composite) { - Utils.checkNotNull(composite, "composite"); - this.composite = Optional.ofNullable(composite); - return this; - } - - public Builder composite(Optional composite) { - Utils.checkNotNull(composite, "composite"); - this.composite = composite; - return this; - } - - public Builder filters(boolean filters) { - Utils.checkNotNull(filters, "filters"); - this.filters = Optional.ofNullable(filters); - return this; - } - - public Builder filters(Optional filters) { - Utils.checkNotNull(filters, "filters"); - this.filters = filters; - return this; - } - - public Builder refreshing(boolean refreshing) { - Utils.checkNotNull(refreshing, "refreshing"); - this.refreshing = Optional.ofNullable(refreshing); - return this; - } - - public Builder refreshing(Optional refreshing) { - Utils.checkNotNull(refreshing, "refreshing"); - this.refreshing = refreshing; - return this; - } - - public Builder thumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public Builder thumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder type(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Builder agent(String agent) { - Utils.checkNotNull(agent, "agent"); - this.agent = Optional.ofNullable(agent); - return this; - } - - public Builder agent(Optional agent) { - Utils.checkNotNull(agent, "agent"); - this.agent = agent; - return this; - } - - public Builder scanner(String scanner) { - Utils.checkNotNull(scanner, "scanner"); - this.scanner = Optional.ofNullable(scanner); - return this; - } - - public Builder scanner(Optional scanner) { - Utils.checkNotNull(scanner, "scanner"); - this.scanner = scanner; - return this; - } - - public Builder language(String language) { - Utils.checkNotNull(language, "language"); - this.language = Optional.ofNullable(language); - return this; - } - - public Builder language(Optional language) { - Utils.checkNotNull(language, "language"); - this.language = language; - return this; - } - - public Builder uuid(String uuid) { - Utils.checkNotNull(uuid, "uuid"); - this.uuid = Optional.ofNullable(uuid); - return this; - } - - public Builder uuid(Optional uuid) { - Utils.checkNotNull(uuid, "uuid"); - this.uuid = uuid; - return this; - } - - public Builder updatedAt(int updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public Builder updatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public Builder createdAt(int createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = Optional.ofNullable(createdAt); - return this; - } - - public Builder createdAt(Optional createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - public Builder scannedAt(int scannedAt) { - Utils.checkNotNull(scannedAt, "scannedAt"); - this.scannedAt = Optional.ofNullable(scannedAt); - return this; - } - - public Builder scannedAt(Optional scannedAt) { - Utils.checkNotNull(scannedAt, "scannedAt"); - this.scannedAt = scannedAt; - return this; - } - - public Builder content(boolean content) { - Utils.checkNotNull(content, "content"); - this.content = Optional.ofNullable(content); - return this; - } - - public Builder content(Optional content) { - Utils.checkNotNull(content, "content"); - this.content = content; - return this; - } - - public Builder directory(boolean directory) { - Utils.checkNotNull(directory, "directory"); - this.directory = Optional.ofNullable(directory); - return this; - } - - public Builder directory(Optional directory) { - Utils.checkNotNull(directory, "directory"); - this.directory = directory; - return this; - } - - public Builder contentChangedAt(int contentChangedAt) { - Utils.checkNotNull(contentChangedAt, "contentChangedAt"); - this.contentChangedAt = Optional.ofNullable(contentChangedAt); - return this; - } - - public Builder contentChangedAt(Optional contentChangedAt) { - Utils.checkNotNull(contentChangedAt, "contentChangedAt"); - this.contentChangedAt = contentChangedAt; - return this; - } - - public Builder hidden(int hidden) { - Utils.checkNotNull(hidden, "hidden"); - this.hidden = Optional.ofNullable(hidden); - return this; - } - - public Builder hidden(Optional hidden) { - Utils.checkNotNull(hidden, "hidden"); - this.hidden = hidden; - return this; - } - - public Builder location(java.util.List location) { - Utils.checkNotNull(location, "location"); - this.location = Optional.ofNullable(location); - return this; - } - - public Builder location(Optional> location) { - Utils.checkNotNull(location, "location"); - this.location = location; - return this; - } - - public GetLibrariesDirectory build() { - return new GetLibrariesDirectory( - allowSync, - art, - composite, - filters, - refreshing, - thumb, - key, - type, - title, - agent, - scanner, - language, - uuid, - updatedAt, - createdAt, - scannedAt, - content, - directory, - contentChangedAt, - hidden, - location); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesLocation.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesLocation.java deleted file mode 100644 index 0d892811..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesLocation.java +++ /dev/null @@ -1,154 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetLibrariesLocation { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("path") - private Optional path; - - @JsonCreator - public GetLibrariesLocation( - @JsonProperty("id") Optional id, - @JsonProperty("path") Optional path) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(path, "path"); - this.id = id; - this.path = path; - } - - public GetLibrariesLocation() { - this(Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional path() { - return (Optional) path; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibrariesLocation withId(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public GetLibrariesLocation withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public GetLibrariesLocation withPath(String path) { - Utils.checkNotNull(path, "path"); - this.path = Optional.ofNullable(path); - return this; - } - - public GetLibrariesLocation withPath(Optional path) { - Utils.checkNotNull(path, "path"); - this.path = path; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibrariesLocation other = (GetLibrariesLocation) o; - return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.path, other.path); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id, - path); - } - - @Override - public String toString() { - return Utils.toString(GetLibrariesLocation.class, - "id", id, - "path", path); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional path = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder path(String path) { - Utils.checkNotNull(path, "path"); - this.path = Optional.ofNullable(path); - return this; - } - - public Builder path(Optional path) { - Utils.checkNotNull(path, "path"); - this.path = path; - return this; - } - - public GetLibrariesLocation build() { - return new GetLibrariesLocation( - id, - path); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesMediaContainer.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesMediaContainer.java deleted file mode 100644 index 99a627da..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesMediaContainer.java +++ /dev/null @@ -1,240 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetLibrariesMediaContainer { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("allowSync") - private Optional allowSync; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title1") - private Optional title1; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Directory") - private Optional> directory; - - @JsonCreator - public GetLibrariesMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("allowSync") Optional allowSync, - @JsonProperty("title1") Optional title1, - @JsonProperty("Directory") Optional> directory) { - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(allowSync, "allowSync"); - Utils.checkNotNull(title1, "title1"); - Utils.checkNotNull(directory, "directory"); - this.size = size; - this.allowSync = allowSync; - this.title1 = title1; - this.directory = directory; - } - - public GetLibrariesMediaContainer() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional allowSync() { - return (Optional) allowSync; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title1() { - return (Optional) title1; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> directory() { - return (Optional>) directory; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibrariesMediaContainer withSize(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public GetLibrariesMediaContainer withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public GetLibrariesMediaContainer withAllowSync(boolean allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = Optional.ofNullable(allowSync); - return this; - } - - public GetLibrariesMediaContainer withAllowSync(Optional allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = allowSync; - return this; - } - - public GetLibrariesMediaContainer withTitle1(String title1) { - Utils.checkNotNull(title1, "title1"); - this.title1 = Optional.ofNullable(title1); - return this; - } - - public GetLibrariesMediaContainer withTitle1(Optional title1) { - Utils.checkNotNull(title1, "title1"); - this.title1 = title1; - return this; - } - - public GetLibrariesMediaContainer withDirectory(java.util.List directory) { - Utils.checkNotNull(directory, "directory"); - this.directory = Optional.ofNullable(directory); - return this; - } - - public GetLibrariesMediaContainer withDirectory(Optional> directory) { - Utils.checkNotNull(directory, "directory"); - this.directory = directory; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibrariesMediaContainer other = (GetLibrariesMediaContainer) o; - return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.allowSync, other.allowSync) && - java.util.Objects.deepEquals(this.title1, other.title1) && - java.util.Objects.deepEquals(this.directory, other.directory); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - size, - allowSync, - title1, - directory); - } - - @Override - public String toString() { - return Utils.toString(GetLibrariesMediaContainer.class, - "size", size, - "allowSync", allowSync, - "title1", title1, - "directory", directory); - } - - public final static class Builder { - - private Optional size = Optional.empty(); - - private Optional allowSync = Optional.empty(); - - private Optional title1 = Optional.empty(); - - private Optional> directory = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder size(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder allowSync(boolean allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = Optional.ofNullable(allowSync); - return this; - } - - public Builder allowSync(Optional allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = allowSync; - return this; - } - - public Builder title1(String title1) { - Utils.checkNotNull(title1, "title1"); - this.title1 = Optional.ofNullable(title1); - return this; - } - - public Builder title1(Optional title1) { - Utils.checkNotNull(title1, "title1"); - this.title1 = title1; - return this; - } - - public Builder directory(java.util.List directory) { - Utils.checkNotNull(directory, "directory"); - this.directory = Optional.ofNullable(directory); - return this; - } - - public Builder directory(Optional> directory) { - Utils.checkNotNull(directory, "directory"); - this.directory = directory; - return this; - } - - public GetLibrariesMediaContainer build() { - return new GetLibrariesMediaContainer( - size, - allowSync, - title1, - directory); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesRequestBuilder.java deleted file mode 100644 index f5e4b18d..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesRequestBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetLibrariesRequestBuilder { - - private final SDKMethodInterfaces.MethodCallGetLibraries sdk; - - public GetLibrariesRequestBuilder(SDKMethodInterfaces.MethodCallGetLibraries sdk) { - this.sdk = sdk; - } - - public GetLibrariesResponse call() throws Exception { - - return sdk.getLibrariesDirect(); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesResponse.java deleted file mode 100644 index 74c339ec..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesResponse.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetLibrariesResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * The libraries available on the Server - */ - private Optional object; - - @JsonCreator - public GetLibrariesResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional object) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.object = object; - } - - public GetLibrariesResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * The libraries available on the Server - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional object() { - return (Optional) object; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetLibrariesResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetLibrariesResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetLibrariesResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * The libraries available on the Server - */ - public GetLibrariesResponse withObject(GetLibrariesResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * The libraries available on the Server - */ - public GetLibrariesResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibrariesResponse other = (GetLibrariesResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.object, other.object); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse, - object); - } - - @Override - public String toString() { - return Utils.toString(GetLibrariesResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "object", object); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional object = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * The libraries available on the Server - */ - public Builder object(GetLibrariesResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * The libraries available on the Server - */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - public GetLibrariesResponse build() { - return new GetLibrariesResponse( - contentType, - statusCode, - rawResponse, - object); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesResponseBody.java deleted file mode 100644 index bb6baf22..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibrariesResponseBody.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -/** - * GetLibrariesResponseBody - The libraries available on the Server - */ - -public class GetLibrariesResponseBody { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("MediaContainer") - private Optional mediaContainer; - - @JsonCreator - public GetLibrariesResponseBody( - @JsonProperty("MediaContainer") Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - } - - public GetLibrariesResponseBody() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaContainer() { - return (Optional) mediaContainer; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibrariesResponseBody withMediaContainer(GetLibrariesMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public GetLibrariesResponseBody withMediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibrariesResponseBody other = (GetLibrariesResponseBody) o; - return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - mediaContainer); - } - - @Override - public String toString() { - return Utils.toString(GetLibrariesResponseBody.class, - "mediaContainer", mediaContainer); - } - - public final static class Builder { - - private Optional mediaContainer = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder mediaContainer(GetLibrariesMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public Builder mediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - public GetLibrariesResponseBody build() { - return new GetLibrariesResponseBody( - mediaContainer); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryDirectory.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryDirectory.java deleted file mode 100644 index 9bb0d734..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryDirectory.java +++ /dev/null @@ -1,283 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetLibraryDirectory { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title") - private Optional title; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("secondary") - private Optional secondary; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("prompt") - private Optional prompt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("search") - private Optional search; - - @JsonCreator - public GetLibraryDirectory( - @JsonProperty("key") Optional key, - @JsonProperty("title") Optional title, - @JsonProperty("secondary") Optional secondary, - @JsonProperty("prompt") Optional prompt, - @JsonProperty("search") Optional search) { - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(title, "title"); - Utils.checkNotNull(secondary, "secondary"); - Utils.checkNotNull(prompt, "prompt"); - Utils.checkNotNull(search, "search"); - this.key = key; - this.title = title; - this.secondary = secondary; - this.prompt = prompt; - this.search = search; - } - - public GetLibraryDirectory() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title() { - return (Optional) title; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional secondary() { - return (Optional) secondary; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional prompt() { - return (Optional) prompt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional search() { - return (Optional) search; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibraryDirectory withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public GetLibraryDirectory withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public GetLibraryDirectory withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public GetLibraryDirectory withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public GetLibraryDirectory withSecondary(boolean secondary) { - Utils.checkNotNull(secondary, "secondary"); - this.secondary = Optional.ofNullable(secondary); - return this; - } - - public GetLibraryDirectory withSecondary(Optional secondary) { - Utils.checkNotNull(secondary, "secondary"); - this.secondary = secondary; - return this; - } - - public GetLibraryDirectory withPrompt(String prompt) { - Utils.checkNotNull(prompt, "prompt"); - this.prompt = Optional.ofNullable(prompt); - return this; - } - - public GetLibraryDirectory withPrompt(Optional prompt) { - Utils.checkNotNull(prompt, "prompt"); - this.prompt = prompt; - return this; - } - - public GetLibraryDirectory withSearch(boolean search) { - Utils.checkNotNull(search, "search"); - this.search = Optional.ofNullable(search); - return this; - } - - public GetLibraryDirectory withSearch(Optional search) { - Utils.checkNotNull(search, "search"); - this.search = search; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryDirectory other = (GetLibraryDirectory) o; - return - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.title, other.title) && - java.util.Objects.deepEquals(this.secondary, other.secondary) && - java.util.Objects.deepEquals(this.prompt, other.prompt) && - java.util.Objects.deepEquals(this.search, other.search); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - key, - title, - secondary, - prompt, - search); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryDirectory.class, - "key", key, - "title", title, - "secondary", secondary, - "prompt", prompt, - "search", search); - } - - public final static class Builder { - - private Optional key = Optional.empty(); - - private Optional title = Optional.empty(); - - private Optional secondary = Optional.empty(); - - private Optional prompt = Optional.empty(); - - private Optional search = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Builder secondary(boolean secondary) { - Utils.checkNotNull(secondary, "secondary"); - this.secondary = Optional.ofNullable(secondary); - return this; - } - - public Builder secondary(Optional secondary) { - Utils.checkNotNull(secondary, "secondary"); - this.secondary = secondary; - return this; - } - - public Builder prompt(String prompt) { - Utils.checkNotNull(prompt, "prompt"); - this.prompt = Optional.ofNullable(prompt); - return this; - } - - public Builder prompt(Optional prompt) { - Utils.checkNotNull(prompt, "prompt"); - this.prompt = prompt; - return this; - } - - public Builder search(boolean search) { - Utils.checkNotNull(search, "search"); - this.search = Optional.ofNullable(search); - return this; - } - - public Builder search(Optional search) { - Utils.checkNotNull(search, "search"); - this.search = search; - return this; - } - - public GetLibraryDirectory build() { - return new GetLibraryDirectory( - key, - title, - secondary, - prompt, - search); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryFilter.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryFilter.java deleted file mode 100644 index 2ba9e778..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryFilter.java +++ /dev/null @@ -1,283 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetLibraryFilter { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("filter") - private Optional filter; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("filterType") - private Optional filterType; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title") - private Optional title; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - @JsonCreator - public GetLibraryFilter( - @JsonProperty("filter") Optional filter, - @JsonProperty("filterType") Optional filterType, - @JsonProperty("key") Optional key, - @JsonProperty("title") Optional title, - @JsonProperty("type") Optional type) { - Utils.checkNotNull(filter, "filter"); - Utils.checkNotNull(filterType, "filterType"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(title, "title"); - Utils.checkNotNull(type, "type"); - this.filter = filter; - this.filterType = filterType; - this.key = key; - this.title = title; - this.type = type; - } - - public GetLibraryFilter() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional filter() { - return (Optional) filter; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional filterType() { - return (Optional) filterType; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title() { - return (Optional) title; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibraryFilter withFilter(String filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - public GetLibraryFilter withFilter(Optional filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - public GetLibraryFilter withFilterType(String filterType) { - Utils.checkNotNull(filterType, "filterType"); - this.filterType = Optional.ofNullable(filterType); - return this; - } - - public GetLibraryFilter withFilterType(Optional filterType) { - Utils.checkNotNull(filterType, "filterType"); - this.filterType = filterType; - return this; - } - - public GetLibraryFilter withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public GetLibraryFilter withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public GetLibraryFilter withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public GetLibraryFilter withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public GetLibraryFilter withType(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public GetLibraryFilter withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryFilter other = (GetLibraryFilter) o; - return - java.util.Objects.deepEquals(this.filter, other.filter) && - java.util.Objects.deepEquals(this.filterType, other.filterType) && - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.title, other.title) && - java.util.Objects.deepEquals(this.type, other.type); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - filter, - filterType, - key, - title, - type); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryFilter.class, - "filter", filter, - "filterType", filterType, - "key", key, - "title", title, - "type", type); - } - - public final static class Builder { - - private Optional filter = Optional.empty(); - - private Optional filterType = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional title = Optional.empty(); - - private Optional type = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder filter(String filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - public Builder filter(Optional filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - public Builder filterType(String filterType) { - Utils.checkNotNull(filterType, "filterType"); - this.filterType = Optional.ofNullable(filterType); - return this; - } - - public Builder filterType(Optional filterType) { - Utils.checkNotNull(filterType, "filterType"); - this.filterType = filterType; - return this; - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Builder type(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public GetLibraryFilter build() { - return new GetLibraryFilter( - filter, - filterType, - key, - title, - type); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsCountry.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsCountry.java deleted file mode 100644 index 3596b570..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsCountry.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetLibraryHubsCountry { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tag") - private Optional tag; - - @JsonCreator - public GetLibraryHubsCountry( - @JsonProperty("tag") Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - } - - public GetLibraryHubsCountry() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tag() { - return (Optional) tag; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibraryHubsCountry withTag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public GetLibraryHubsCountry withTag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryHubsCountry other = (GetLibraryHubsCountry) o; - return - java.util.Objects.deepEquals(this.tag, other.tag); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - tag); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryHubsCountry.class, - "tag", tag); - } - - public final static class Builder { - - private Optional tag = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder tag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Builder tag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public GetLibraryHubsCountry build() { - return new GetLibraryHubsCountry( - tag); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsDirector.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsDirector.java deleted file mode 100644 index 7f4b3e57..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsDirector.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetLibraryHubsDirector { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tag") - private Optional tag; - - @JsonCreator - public GetLibraryHubsDirector( - @JsonProperty("tag") Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - } - - public GetLibraryHubsDirector() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tag() { - return (Optional) tag; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibraryHubsDirector withTag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public GetLibraryHubsDirector withTag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryHubsDirector other = (GetLibraryHubsDirector) o; - return - java.util.Objects.deepEquals(this.tag, other.tag); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - tag); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryHubsDirector.class, - "tag", tag); - } - - public final static class Builder { - - private Optional tag = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder tag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Builder tag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public GetLibraryHubsDirector build() { - return new GetLibraryHubsDirector( - tag); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsGenre.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsGenre.java deleted file mode 100644 index 12177dbf..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsGenre.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetLibraryHubsGenre { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tag") - private Optional tag; - - @JsonCreator - public GetLibraryHubsGenre( - @JsonProperty("tag") Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - } - - public GetLibraryHubsGenre() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tag() { - return (Optional) tag; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibraryHubsGenre withTag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public GetLibraryHubsGenre withTag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryHubsGenre other = (GetLibraryHubsGenre) o; - return - java.util.Objects.deepEquals(this.tag, other.tag); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - tag); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryHubsGenre.class, - "tag", tag); - } - - public final static class Builder { - - private Optional tag = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder tag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Builder tag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public GetLibraryHubsGenre build() { - return new GetLibraryHubsGenre( - tag); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsHub.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsHub.java deleted file mode 100644 index b4b0e6dc..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsHub.java +++ /dev/null @@ -1,584 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetLibraryHubsHub { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title") - private Optional title; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("hubIdentifier") - private Optional hubIdentifier; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("context") - private Optional context; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("more") - private Optional more; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("style") - private Optional style; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("hubKey") - private Optional hubKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Metadata") - private Optional> metadata; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("promoted") - private Optional promoted; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("random") - private Optional random; - - @JsonCreator - public GetLibraryHubsHub( - @JsonProperty("key") Optional key, - @JsonProperty("title") Optional title, - @JsonProperty("type") Optional type, - @JsonProperty("hubIdentifier") Optional hubIdentifier, - @JsonProperty("context") Optional context, - @JsonProperty("size") Optional size, - @JsonProperty("more") Optional more, - @JsonProperty("style") Optional style, - @JsonProperty("hubKey") Optional hubKey, - @JsonProperty("Metadata") Optional> metadata, - @JsonProperty("promoted") Optional promoted, - @JsonProperty("random") Optional random) { - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(title, "title"); - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(hubIdentifier, "hubIdentifier"); - Utils.checkNotNull(context, "context"); - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(more, "more"); - Utils.checkNotNull(style, "style"); - Utils.checkNotNull(hubKey, "hubKey"); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(promoted, "promoted"); - Utils.checkNotNull(random, "random"); - 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; - } - - public GetLibraryHubsHub() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title() { - return (Optional) title; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional hubIdentifier() { - return (Optional) hubIdentifier; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional context() { - return (Optional) context; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional more() { - return (Optional) more; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional style() { - return (Optional) style; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional hubKey() { - return (Optional) hubKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional promoted() { - return (Optional) promoted; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional random() { - return (Optional) random; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibraryHubsHub withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public GetLibraryHubsHub withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public GetLibraryHubsHub withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public GetLibraryHubsHub withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public GetLibraryHubsHub withType(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public GetLibraryHubsHub withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public GetLibraryHubsHub withHubIdentifier(String hubIdentifier) { - Utils.checkNotNull(hubIdentifier, "hubIdentifier"); - this.hubIdentifier = Optional.ofNullable(hubIdentifier); - return this; - } - - public GetLibraryHubsHub withHubIdentifier(Optional hubIdentifier) { - Utils.checkNotNull(hubIdentifier, "hubIdentifier"); - this.hubIdentifier = hubIdentifier; - return this; - } - - public GetLibraryHubsHub withContext(String context) { - Utils.checkNotNull(context, "context"); - this.context = Optional.ofNullable(context); - return this; - } - - public GetLibraryHubsHub withContext(Optional context) { - Utils.checkNotNull(context, "context"); - this.context = context; - return this; - } - - public GetLibraryHubsHub withSize(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public GetLibraryHubsHub withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public GetLibraryHubsHub withMore(boolean more) { - Utils.checkNotNull(more, "more"); - this.more = Optional.ofNullable(more); - return this; - } - - public GetLibraryHubsHub withMore(Optional more) { - Utils.checkNotNull(more, "more"); - this.more = more; - return this; - } - - public GetLibraryHubsHub withStyle(String style) { - Utils.checkNotNull(style, "style"); - this.style = Optional.ofNullable(style); - return this; - } - - public GetLibraryHubsHub withStyle(Optional style) { - Utils.checkNotNull(style, "style"); - this.style = style; - return this; - } - - public GetLibraryHubsHub withHubKey(String hubKey) { - Utils.checkNotNull(hubKey, "hubKey"); - this.hubKey = Optional.ofNullable(hubKey); - return this; - } - - public GetLibraryHubsHub withHubKey(Optional hubKey) { - Utils.checkNotNull(hubKey, "hubKey"); - this.hubKey = hubKey; - return this; - } - - public GetLibraryHubsHub withMetadata(java.util.List metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public GetLibraryHubsHub withMetadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public GetLibraryHubsHub withPromoted(boolean promoted) { - Utils.checkNotNull(promoted, "promoted"); - this.promoted = Optional.ofNullable(promoted); - return this; - } - - public GetLibraryHubsHub withPromoted(Optional promoted) { - Utils.checkNotNull(promoted, "promoted"); - this.promoted = promoted; - return this; - } - - public GetLibraryHubsHub withRandom(boolean random) { - Utils.checkNotNull(random, "random"); - this.random = Optional.ofNullable(random); - return this; - } - - public GetLibraryHubsHub withRandom(Optional random) { - Utils.checkNotNull(random, "random"); - this.random = random; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryHubsHub other = (GetLibraryHubsHub) o; - return - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.title, other.title) && - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.hubIdentifier, other.hubIdentifier) && - java.util.Objects.deepEquals(this.context, other.context) && - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.more, other.more) && - java.util.Objects.deepEquals(this.style, other.style) && - java.util.Objects.deepEquals(this.hubKey, other.hubKey) && - java.util.Objects.deepEquals(this.metadata, other.metadata) && - java.util.Objects.deepEquals(this.promoted, other.promoted) && - java.util.Objects.deepEquals(this.random, other.random); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - key, - title, - type, - hubIdentifier, - context, - size, - more, - style, - hubKey, - metadata, - promoted, - random); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryHubsHub.class, - "key", key, - "title", title, - "type", type, - "hubIdentifier", hubIdentifier, - "context", context, - "size", size, - "more", more, - "style", style, - "hubKey", hubKey, - "metadata", metadata, - "promoted", promoted, - "random", random); - } - - public final static class Builder { - - private Optional key = Optional.empty(); - - private Optional title = Optional.empty(); - - private Optional type = Optional.empty(); - - private Optional hubIdentifier = Optional.empty(); - - private Optional context = Optional.empty(); - - private Optional size = Optional.empty(); - - private Optional more = Optional.empty(); - - private Optional style = Optional.empty(); - - private Optional hubKey = Optional.empty(); - - private Optional> metadata = Optional.empty(); - - private Optional promoted = Optional.empty(); - - private Optional random = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Builder type(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Builder hubIdentifier(String hubIdentifier) { - Utils.checkNotNull(hubIdentifier, "hubIdentifier"); - this.hubIdentifier = Optional.ofNullable(hubIdentifier); - return this; - } - - public Builder hubIdentifier(Optional hubIdentifier) { - Utils.checkNotNull(hubIdentifier, "hubIdentifier"); - this.hubIdentifier = hubIdentifier; - return this; - } - - public Builder context(String context) { - Utils.checkNotNull(context, "context"); - this.context = Optional.ofNullable(context); - return this; - } - - public Builder context(Optional context) { - Utils.checkNotNull(context, "context"); - this.context = context; - return this; - } - - public Builder size(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder more(boolean more) { - Utils.checkNotNull(more, "more"); - this.more = Optional.ofNullable(more); - return this; - } - - public Builder more(Optional more) { - Utils.checkNotNull(more, "more"); - this.more = more; - return this; - } - - public Builder style(String style) { - Utils.checkNotNull(style, "style"); - this.style = Optional.ofNullable(style); - return this; - } - - public Builder style(Optional style) { - Utils.checkNotNull(style, "style"); - this.style = style; - return this; - } - - public Builder hubKey(String hubKey) { - Utils.checkNotNull(hubKey, "hubKey"); - this.hubKey = Optional.ofNullable(hubKey); - return this; - } - - public Builder hubKey(Optional hubKey) { - Utils.checkNotNull(hubKey, "hubKey"); - this.hubKey = hubKey; - return this; - } - - public Builder metadata(java.util.List metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public Builder metadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public Builder promoted(boolean promoted) { - Utils.checkNotNull(promoted, "promoted"); - this.promoted = Optional.ofNullable(promoted); - return this; - } - - public Builder promoted(Optional promoted) { - Utils.checkNotNull(promoted, "promoted"); - this.promoted = promoted; - return this; - } - - public Builder random(boolean random) { - Utils.checkNotNull(random, "random"); - this.random = Optional.ofNullable(random); - return this; - } - - public Builder random(Optional random) { - Utils.checkNotNull(random, "random"); - this.random = random; - return this; - } - - public GetLibraryHubsHub build() { - return new GetLibraryHubsHub( - key, - title, - type, - hubIdentifier, - context, - size, - more, - style, - hubKey, - metadata, - promoted, - random); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsMedia.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsMedia.java deleted file mode 100644 index 275735e5..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsMedia.java +++ /dev/null @@ -1,799 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetLibraryHubsMedia { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("duration") - private Optional duration; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("bitrate") - private Optional bitrate; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("width") - private Optional width; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("height") - private Optional height; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("aspectRatio") - private Optional aspectRatio; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audioChannels") - private Optional audioChannels; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audioCodec") - private Optional audioCodec; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("videoCodec") - private Optional videoCodec; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("videoResolution") - private Optional videoResolution; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("container") - private Optional container; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("videoFrameRate") - private Optional videoFrameRate; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("optimizedForStreaming") - private Optional optimizedForStreaming; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audioProfile") - private Optional audioProfile; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("has64bitOffsets") - private Optional has64bitOffsets; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("videoProfile") - private Optional videoProfile; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Part") - private Optional> part; - - @JsonCreator - public GetLibraryHubsMedia( - @JsonProperty("id") Optional id, - @JsonProperty("duration") Optional duration, - @JsonProperty("bitrate") Optional bitrate, - @JsonProperty("width") Optional width, - @JsonProperty("height") Optional height, - @JsonProperty("aspectRatio") Optional aspectRatio, - @JsonProperty("audioChannels") Optional audioChannels, - @JsonProperty("audioCodec") Optional audioCodec, - @JsonProperty("videoCodec") Optional videoCodec, - @JsonProperty("videoResolution") Optional videoResolution, - @JsonProperty("container") Optional container, - @JsonProperty("videoFrameRate") Optional videoFrameRate, - @JsonProperty("optimizedForStreaming") Optional optimizedForStreaming, - @JsonProperty("audioProfile") Optional audioProfile, - @JsonProperty("has64bitOffsets") Optional has64bitOffsets, - @JsonProperty("videoProfile") Optional videoProfile, - @JsonProperty("Part") Optional> part) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(duration, "duration"); - Utils.checkNotNull(bitrate, "bitrate"); - Utils.checkNotNull(width, "width"); - Utils.checkNotNull(height, "height"); - Utils.checkNotNull(aspectRatio, "aspectRatio"); - Utils.checkNotNull(audioChannels, "audioChannels"); - Utils.checkNotNull(audioCodec, "audioCodec"); - Utils.checkNotNull(videoCodec, "videoCodec"); - Utils.checkNotNull(videoResolution, "videoResolution"); - Utils.checkNotNull(container, "container"); - Utils.checkNotNull(videoFrameRate, "videoFrameRate"); - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - Utils.checkNotNull(audioProfile, "audioProfile"); - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - Utils.checkNotNull(videoProfile, "videoProfile"); - Utils.checkNotNull(part, "part"); - 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; - } - - public GetLibraryHubsMedia() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional duration() { - return (Optional) duration; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional bitrate() { - return (Optional) bitrate; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional width() { - return (Optional) width; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional height() { - return (Optional) height; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional aspectRatio() { - return (Optional) aspectRatio; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audioChannels() { - return (Optional) audioChannels; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audioCodec() { - return (Optional) audioCodec; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional videoCodec() { - return (Optional) videoCodec; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional videoResolution() { - return (Optional) videoResolution; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional container() { - return (Optional) container; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional videoFrameRate() { - return (Optional) videoFrameRate; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional optimizedForStreaming() { - return (Optional) optimizedForStreaming; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audioProfile() { - return (Optional) audioProfile; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional has64bitOffsets() { - return (Optional) has64bitOffsets; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional videoProfile() { - return (Optional) videoProfile; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> part() { - return (Optional>) part; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibraryHubsMedia withId(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public GetLibraryHubsMedia withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public GetLibraryHubsMedia withDuration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public GetLibraryHubsMedia withDuration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public GetLibraryHubsMedia withBitrate(int bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = Optional.ofNullable(bitrate); - return this; - } - - public GetLibraryHubsMedia withBitrate(Optional bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = bitrate; - return this; - } - - public GetLibraryHubsMedia withWidth(int width) { - Utils.checkNotNull(width, "width"); - this.width = Optional.ofNullable(width); - return this; - } - - public GetLibraryHubsMedia withWidth(Optional width) { - Utils.checkNotNull(width, "width"); - this.width = width; - return this; - } - - public GetLibraryHubsMedia withHeight(int height) { - Utils.checkNotNull(height, "height"); - this.height = Optional.ofNullable(height); - return this; - } - - public GetLibraryHubsMedia withHeight(Optional height) { - Utils.checkNotNull(height, "height"); - this.height = height; - return this; - } - - public GetLibraryHubsMedia withAspectRatio(double aspectRatio) { - Utils.checkNotNull(aspectRatio, "aspectRatio"); - this.aspectRatio = Optional.ofNullable(aspectRatio); - return this; - } - - public GetLibraryHubsMedia withAspectRatio(Optional aspectRatio) { - Utils.checkNotNull(aspectRatio, "aspectRatio"); - this.aspectRatio = aspectRatio; - return this; - } - - public GetLibraryHubsMedia withAudioChannels(int audioChannels) { - Utils.checkNotNull(audioChannels, "audioChannels"); - this.audioChannels = Optional.ofNullable(audioChannels); - return this; - } - - public GetLibraryHubsMedia withAudioChannels(Optional audioChannels) { - Utils.checkNotNull(audioChannels, "audioChannels"); - this.audioChannels = audioChannels; - return this; - } - - public GetLibraryHubsMedia withAudioCodec(String audioCodec) { - Utils.checkNotNull(audioCodec, "audioCodec"); - this.audioCodec = Optional.ofNullable(audioCodec); - return this; - } - - public GetLibraryHubsMedia withAudioCodec(Optional audioCodec) { - Utils.checkNotNull(audioCodec, "audioCodec"); - this.audioCodec = audioCodec; - return this; - } - - public GetLibraryHubsMedia withVideoCodec(String videoCodec) { - Utils.checkNotNull(videoCodec, "videoCodec"); - this.videoCodec = Optional.ofNullable(videoCodec); - return this; - } - - public GetLibraryHubsMedia withVideoCodec(Optional videoCodec) { - Utils.checkNotNull(videoCodec, "videoCodec"); - this.videoCodec = videoCodec; - return this; - } - - public GetLibraryHubsMedia withVideoResolution(String videoResolution) { - Utils.checkNotNull(videoResolution, "videoResolution"); - this.videoResolution = Optional.ofNullable(videoResolution); - return this; - } - - public GetLibraryHubsMedia withVideoResolution(Optional videoResolution) { - Utils.checkNotNull(videoResolution, "videoResolution"); - this.videoResolution = videoResolution; - return this; - } - - public GetLibraryHubsMedia withContainer(String container) { - Utils.checkNotNull(container, "container"); - this.container = Optional.ofNullable(container); - return this; - } - - public GetLibraryHubsMedia withContainer(Optional container) { - Utils.checkNotNull(container, "container"); - this.container = container; - return this; - } - - public GetLibraryHubsMedia withVideoFrameRate(String videoFrameRate) { - Utils.checkNotNull(videoFrameRate, "videoFrameRate"); - this.videoFrameRate = Optional.ofNullable(videoFrameRate); - return this; - } - - public GetLibraryHubsMedia withVideoFrameRate(Optional videoFrameRate) { - Utils.checkNotNull(videoFrameRate, "videoFrameRate"); - this.videoFrameRate = videoFrameRate; - return this; - } - - public GetLibraryHubsMedia withOptimizedForStreaming(int optimizedForStreaming) { - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - this.optimizedForStreaming = Optional.ofNullable(optimizedForStreaming); - return this; - } - - public GetLibraryHubsMedia withOptimizedForStreaming(Optional optimizedForStreaming) { - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - this.optimizedForStreaming = optimizedForStreaming; - return this; - } - - public GetLibraryHubsMedia withAudioProfile(String audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = Optional.ofNullable(audioProfile); - return this; - } - - public GetLibraryHubsMedia withAudioProfile(Optional audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = audioProfile; - return this; - } - - public GetLibraryHubsMedia withHas64bitOffsets(boolean has64bitOffsets) { - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - this.has64bitOffsets = Optional.ofNullable(has64bitOffsets); - return this; - } - - public GetLibraryHubsMedia withHas64bitOffsets(Optional has64bitOffsets) { - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - this.has64bitOffsets = has64bitOffsets; - return this; - } - - public GetLibraryHubsMedia withVideoProfile(String videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = Optional.ofNullable(videoProfile); - return this; - } - - public GetLibraryHubsMedia withVideoProfile(Optional videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = videoProfile; - return this; - } - - public GetLibraryHubsMedia withPart(java.util.List part) { - Utils.checkNotNull(part, "part"); - this.part = Optional.ofNullable(part); - return this; - } - - public GetLibraryHubsMedia withPart(Optional> part) { - Utils.checkNotNull(part, "part"); - this.part = part; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryHubsMedia other = (GetLibraryHubsMedia) o; - return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.duration, other.duration) && - java.util.Objects.deepEquals(this.bitrate, other.bitrate) && - java.util.Objects.deepEquals(this.width, other.width) && - java.util.Objects.deepEquals(this.height, other.height) && - java.util.Objects.deepEquals(this.aspectRatio, other.aspectRatio) && - java.util.Objects.deepEquals(this.audioChannels, other.audioChannels) && - java.util.Objects.deepEquals(this.audioCodec, other.audioCodec) && - java.util.Objects.deepEquals(this.videoCodec, other.videoCodec) && - java.util.Objects.deepEquals(this.videoResolution, other.videoResolution) && - java.util.Objects.deepEquals(this.container, other.container) && - java.util.Objects.deepEquals(this.videoFrameRate, other.videoFrameRate) && - java.util.Objects.deepEquals(this.optimizedForStreaming, other.optimizedForStreaming) && - java.util.Objects.deepEquals(this.audioProfile, other.audioProfile) && - java.util.Objects.deepEquals(this.has64bitOffsets, other.has64bitOffsets) && - java.util.Objects.deepEquals(this.videoProfile, other.videoProfile) && - java.util.Objects.deepEquals(this.part, other.part); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id, - duration, - bitrate, - width, - height, - aspectRatio, - audioChannels, - audioCodec, - videoCodec, - videoResolution, - container, - videoFrameRate, - optimizedForStreaming, - audioProfile, - has64bitOffsets, - videoProfile, - part); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryHubsMedia.class, - "id", id, - "duration", duration, - "bitrate", bitrate, - "width", width, - "height", height, - "aspectRatio", aspectRatio, - "audioChannels", audioChannels, - "audioCodec", audioCodec, - "videoCodec", videoCodec, - "videoResolution", videoResolution, - "container", container, - "videoFrameRate", videoFrameRate, - "optimizedForStreaming", optimizedForStreaming, - "audioProfile", audioProfile, - "has64bitOffsets", has64bitOffsets, - "videoProfile", videoProfile, - "part", part); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional duration = Optional.empty(); - - private Optional bitrate = Optional.empty(); - - private Optional width = Optional.empty(); - - private Optional height = Optional.empty(); - - private Optional aspectRatio = Optional.empty(); - - private Optional audioChannels = Optional.empty(); - - private Optional audioCodec = Optional.empty(); - - private Optional videoCodec = Optional.empty(); - - private Optional videoResolution = Optional.empty(); - - private Optional container = Optional.empty(); - - private Optional videoFrameRate = Optional.empty(); - - private Optional optimizedForStreaming = Optional.empty(); - - private Optional audioProfile = Optional.empty(); - - private Optional has64bitOffsets = Optional.empty(); - - private Optional videoProfile = Optional.empty(); - - private Optional> part = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder duration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public Builder duration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public Builder bitrate(int bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = Optional.ofNullable(bitrate); - return this; - } - - public Builder bitrate(Optional bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = bitrate; - return this; - } - - public Builder width(int width) { - Utils.checkNotNull(width, "width"); - this.width = Optional.ofNullable(width); - return this; - } - - public Builder width(Optional width) { - Utils.checkNotNull(width, "width"); - this.width = width; - return this; - } - - public Builder height(int height) { - Utils.checkNotNull(height, "height"); - this.height = Optional.ofNullable(height); - return this; - } - - public Builder height(Optional height) { - Utils.checkNotNull(height, "height"); - this.height = height; - return this; - } - - public Builder aspectRatio(double aspectRatio) { - Utils.checkNotNull(aspectRatio, "aspectRatio"); - this.aspectRatio = Optional.ofNullable(aspectRatio); - return this; - } - - public Builder aspectRatio(Optional aspectRatio) { - Utils.checkNotNull(aspectRatio, "aspectRatio"); - this.aspectRatio = aspectRatio; - return this; - } - - public Builder audioChannels(int audioChannels) { - Utils.checkNotNull(audioChannels, "audioChannels"); - this.audioChannels = Optional.ofNullable(audioChannels); - return this; - } - - public Builder audioChannels(Optional audioChannels) { - Utils.checkNotNull(audioChannels, "audioChannels"); - this.audioChannels = audioChannels; - return this; - } - - public Builder audioCodec(String audioCodec) { - Utils.checkNotNull(audioCodec, "audioCodec"); - this.audioCodec = Optional.ofNullable(audioCodec); - return this; - } - - public Builder audioCodec(Optional audioCodec) { - Utils.checkNotNull(audioCodec, "audioCodec"); - this.audioCodec = audioCodec; - return this; - } - - public Builder videoCodec(String videoCodec) { - Utils.checkNotNull(videoCodec, "videoCodec"); - this.videoCodec = Optional.ofNullable(videoCodec); - return this; - } - - public Builder videoCodec(Optional videoCodec) { - Utils.checkNotNull(videoCodec, "videoCodec"); - this.videoCodec = videoCodec; - return this; - } - - public Builder videoResolution(String videoResolution) { - Utils.checkNotNull(videoResolution, "videoResolution"); - this.videoResolution = Optional.ofNullable(videoResolution); - return this; - } - - public Builder videoResolution(Optional videoResolution) { - Utils.checkNotNull(videoResolution, "videoResolution"); - this.videoResolution = videoResolution; - return this; - } - - public Builder container(String container) { - Utils.checkNotNull(container, "container"); - this.container = Optional.ofNullable(container); - return this; - } - - public Builder container(Optional container) { - Utils.checkNotNull(container, "container"); - this.container = container; - return this; - } - - public Builder videoFrameRate(String videoFrameRate) { - Utils.checkNotNull(videoFrameRate, "videoFrameRate"); - this.videoFrameRate = Optional.ofNullable(videoFrameRate); - return this; - } - - public Builder videoFrameRate(Optional videoFrameRate) { - Utils.checkNotNull(videoFrameRate, "videoFrameRate"); - this.videoFrameRate = videoFrameRate; - return this; - } - - public Builder optimizedForStreaming(int optimizedForStreaming) { - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - this.optimizedForStreaming = Optional.ofNullable(optimizedForStreaming); - return this; - } - - public Builder optimizedForStreaming(Optional optimizedForStreaming) { - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - this.optimizedForStreaming = optimizedForStreaming; - return this; - } - - public Builder audioProfile(String audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = Optional.ofNullable(audioProfile); - return this; - } - - public Builder audioProfile(Optional audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = audioProfile; - return this; - } - - public Builder has64bitOffsets(boolean has64bitOffsets) { - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - this.has64bitOffsets = Optional.ofNullable(has64bitOffsets); - return this; - } - - public Builder has64bitOffsets(Optional has64bitOffsets) { - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - this.has64bitOffsets = has64bitOffsets; - return this; - } - - public Builder videoProfile(String videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = Optional.ofNullable(videoProfile); - return this; - } - - public Builder videoProfile(Optional videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = videoProfile; - return this; - } - - public Builder part(java.util.List part) { - Utils.checkNotNull(part, "part"); - this.part = Optional.ofNullable(part); - return this; - } - - public Builder part(Optional> part) { - Utils.checkNotNull(part, "part"); - this.part = part; - return this; - } - - public GetLibraryHubsMedia build() { - return new GetLibraryHubsMedia( - id, - duration, - bitrate, - width, - height, - aspectRatio, - audioChannels, - audioCodec, - videoCodec, - videoResolution, - container, - videoFrameRate, - optimizedForStreaming, - audioProfile, - has64bitOffsets, - videoProfile, - part); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsMediaContainer.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsMediaContainer.java deleted file mode 100644 index 066c4fa0..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsMediaContainer.java +++ /dev/null @@ -1,369 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetLibraryHubsMediaContainer { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("allowSync") - private Optional allowSync; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("identifier") - private Optional identifier; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionID") - private Optional librarySectionID; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionTitle") - private Optional librarySectionTitle; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionUUID") - private Optional librarySectionUUID; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Hub") - private Optional> hub; - - @JsonCreator - public GetLibraryHubsMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("allowSync") Optional allowSync, - @JsonProperty("identifier") Optional identifier, - @JsonProperty("librarySectionID") Optional librarySectionID, - @JsonProperty("librarySectionTitle") Optional librarySectionTitle, - @JsonProperty("librarySectionUUID") Optional librarySectionUUID, - @JsonProperty("Hub") Optional> hub) { - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(allowSync, "allowSync"); - Utils.checkNotNull(identifier, "identifier"); - Utils.checkNotNull(librarySectionID, "librarySectionID"); - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); - Utils.checkNotNull(hub, "hub"); - this.size = size; - this.allowSync = allowSync; - this.identifier = identifier; - this.librarySectionID = librarySectionID; - this.librarySectionTitle = librarySectionTitle; - this.librarySectionUUID = librarySectionUUID; - this.hub = hub; - } - - public GetLibraryHubsMediaContainer() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional allowSync() { - return (Optional) allowSync; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional identifier() { - return (Optional) identifier; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionID() { - return (Optional) librarySectionID; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionTitle() { - return (Optional) librarySectionTitle; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionUUID() { - return (Optional) librarySectionUUID; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> hub() { - return (Optional>) hub; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibraryHubsMediaContainer withSize(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public GetLibraryHubsMediaContainer withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public GetLibraryHubsMediaContainer withAllowSync(boolean allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = Optional.ofNullable(allowSync); - return this; - } - - public GetLibraryHubsMediaContainer withAllowSync(Optional allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = allowSync; - return this; - } - - public GetLibraryHubsMediaContainer withIdentifier(String identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = Optional.ofNullable(identifier); - return this; - } - - public GetLibraryHubsMediaContainer withIdentifier(Optional identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = identifier; - return this; - } - - public GetLibraryHubsMediaContainer withLibrarySectionID(int librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = Optional.ofNullable(librarySectionID); - return this; - } - - public GetLibraryHubsMediaContainer withLibrarySectionID(Optional librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = librarySectionID; - return this; - } - - public GetLibraryHubsMediaContainer withLibrarySectionTitle(String librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = Optional.ofNullable(librarySectionTitle); - return this; - } - - public GetLibraryHubsMediaContainer withLibrarySectionTitle(Optional librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = librarySectionTitle; - return this; - } - - public GetLibraryHubsMediaContainer withLibrarySectionUUID(String librarySectionUUID) { - Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); - this.librarySectionUUID = Optional.ofNullable(librarySectionUUID); - return this; - } - - public GetLibraryHubsMediaContainer withLibrarySectionUUID(Optional librarySectionUUID) { - Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); - this.librarySectionUUID = librarySectionUUID; - return this; - } - - public GetLibraryHubsMediaContainer withHub(java.util.List hub) { - Utils.checkNotNull(hub, "hub"); - this.hub = Optional.ofNullable(hub); - return this; - } - - public GetLibraryHubsMediaContainer withHub(Optional> hub) { - Utils.checkNotNull(hub, "hub"); - this.hub = hub; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryHubsMediaContainer other = (GetLibraryHubsMediaContainer) o; - return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.allowSync, other.allowSync) && - java.util.Objects.deepEquals(this.identifier, other.identifier) && - java.util.Objects.deepEquals(this.librarySectionID, other.librarySectionID) && - java.util.Objects.deepEquals(this.librarySectionTitle, other.librarySectionTitle) && - java.util.Objects.deepEquals(this.librarySectionUUID, other.librarySectionUUID) && - java.util.Objects.deepEquals(this.hub, other.hub); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - size, - allowSync, - identifier, - librarySectionID, - librarySectionTitle, - librarySectionUUID, - hub); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryHubsMediaContainer.class, - "size", size, - "allowSync", allowSync, - "identifier", identifier, - "librarySectionID", librarySectionID, - "librarySectionTitle", librarySectionTitle, - "librarySectionUUID", librarySectionUUID, - "hub", hub); - } - - public final static class Builder { - - private Optional size = Optional.empty(); - - private Optional allowSync = Optional.empty(); - - private Optional identifier = Optional.empty(); - - private Optional librarySectionID = Optional.empty(); - - private Optional librarySectionTitle = Optional.empty(); - - private Optional librarySectionUUID = Optional.empty(); - - private Optional> hub = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder size(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder allowSync(boolean allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = Optional.ofNullable(allowSync); - return this; - } - - public Builder allowSync(Optional allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = allowSync; - return this; - } - - public Builder identifier(String identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = Optional.ofNullable(identifier); - return this; - } - - public Builder identifier(Optional identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = identifier; - return this; - } - - public Builder librarySectionID(int librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = Optional.ofNullable(librarySectionID); - return this; - } - - public Builder librarySectionID(Optional librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = librarySectionID; - return this; - } - - public Builder librarySectionTitle(String librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = Optional.ofNullable(librarySectionTitle); - return this; - } - - public Builder librarySectionTitle(Optional librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = librarySectionTitle; - return this; - } - - public Builder librarySectionUUID(String librarySectionUUID) { - Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); - this.librarySectionUUID = Optional.ofNullable(librarySectionUUID); - return this; - } - - public Builder librarySectionUUID(Optional librarySectionUUID) { - Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); - this.librarySectionUUID = librarySectionUUID; - return this; - } - - public Builder hub(java.util.List hub) { - Utils.checkNotNull(hub, "hub"); - this.hub = Optional.ofNullable(hub); - return this; - } - - public Builder hub(Optional> hub) { - Utils.checkNotNull(hub, "hub"); - this.hub = hub; - return this; - } - - public GetLibraryHubsMediaContainer build() { - return new GetLibraryHubsMediaContainer( - size, - allowSync, - identifier, - librarySectionID, - librarySectionTitle, - librarySectionUUID, - hub); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsMetadata.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsMetadata.java deleted file mode 100644 index 34d1f030..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsMetadata.java +++ /dev/null @@ -1,1531 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetLibraryHubsMetadata { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ratingKey") - private Optional ratingKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("guid") - private Optional guid; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("studio") - private Optional studio; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title") - private Optional title; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionTitle") - private Optional librarySectionTitle; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionID") - private Optional librarySectionID; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionKey") - private Optional librarySectionKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("contentRating") - private Optional contentRating; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("summary") - private Optional summary; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("rating") - private Optional rating; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audienceRating") - private Optional audienceRating; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("viewCount") - private Optional viewCount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("lastViewedAt") - private Optional lastViewedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("year") - private Optional year; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tagline") - private Optional tagline; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("thumb") - private Optional thumb; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("art") - private Optional art; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("duration") - private Optional duration; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("originallyAvailableAt") - private Optional originallyAvailableAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("addedAt") - private Optional addedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updatedAt") - private Optional updatedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audienceRatingImage") - private Optional audienceRatingImage; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("primaryExtraKey") - private Optional primaryExtraKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ratingImage") - private Optional ratingImage; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Media") - private Optional> media; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Genre") - private Optional> genre; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Country") - private Optional> country; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Director") - private Optional> director; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Role") - private Optional> role; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Writer") - private Optional> writer; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("skipCount") - private Optional skipCount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("chapterSource") - private Optional chapterSource; - - @JsonCreator - public GetLibraryHubsMetadata( - @JsonProperty("ratingKey") Optional ratingKey, - @JsonProperty("key") Optional key, - @JsonProperty("guid") Optional guid, - @JsonProperty("studio") Optional studio, - @JsonProperty("type") Optional type, - @JsonProperty("title") Optional title, - @JsonProperty("librarySectionTitle") Optional librarySectionTitle, - @JsonProperty("librarySectionID") Optional librarySectionID, - @JsonProperty("librarySectionKey") Optional librarySectionKey, - @JsonProperty("contentRating") Optional contentRating, - @JsonProperty("summary") Optional summary, - @JsonProperty("rating") Optional rating, - @JsonProperty("audienceRating") Optional audienceRating, - @JsonProperty("viewCount") Optional viewCount, - @JsonProperty("lastViewedAt") Optional lastViewedAt, - @JsonProperty("year") Optional year, - @JsonProperty("tagline") Optional tagline, - @JsonProperty("thumb") Optional thumb, - @JsonProperty("art") Optional art, - @JsonProperty("duration") Optional duration, - @JsonProperty("originallyAvailableAt") Optional originallyAvailableAt, - @JsonProperty("addedAt") Optional addedAt, - @JsonProperty("updatedAt") Optional updatedAt, - @JsonProperty("audienceRatingImage") Optional audienceRatingImage, - @JsonProperty("primaryExtraKey") Optional primaryExtraKey, - @JsonProperty("ratingImage") Optional ratingImage, - @JsonProperty("Media") Optional> media, - @JsonProperty("Genre") Optional> genre, - @JsonProperty("Country") Optional> country, - @JsonProperty("Director") Optional> director, - @JsonProperty("Role") Optional> role, - @JsonProperty("Writer") Optional> writer, - @JsonProperty("skipCount") Optional skipCount, - @JsonProperty("chapterSource") Optional chapterSource) { - Utils.checkNotNull(ratingKey, "ratingKey"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(guid, "guid"); - Utils.checkNotNull(studio, "studio"); - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(title, "title"); - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - Utils.checkNotNull(librarySectionID, "librarySectionID"); - Utils.checkNotNull(librarySectionKey, "librarySectionKey"); - Utils.checkNotNull(contentRating, "contentRating"); - Utils.checkNotNull(summary, "summary"); - Utils.checkNotNull(rating, "rating"); - Utils.checkNotNull(audienceRating, "audienceRating"); - Utils.checkNotNull(viewCount, "viewCount"); - Utils.checkNotNull(lastViewedAt, "lastViewedAt"); - Utils.checkNotNull(year, "year"); - Utils.checkNotNull(tagline, "tagline"); - Utils.checkNotNull(thumb, "thumb"); - Utils.checkNotNull(art, "art"); - Utils.checkNotNull(duration, "duration"); - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - Utils.checkNotNull(addedAt, "addedAt"); - Utils.checkNotNull(updatedAt, "updatedAt"); - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - Utils.checkNotNull(primaryExtraKey, "primaryExtraKey"); - Utils.checkNotNull(ratingImage, "ratingImage"); - Utils.checkNotNull(media, "media"); - Utils.checkNotNull(genre, "genre"); - Utils.checkNotNull(country, "country"); - Utils.checkNotNull(director, "director"); - Utils.checkNotNull(role, "role"); - Utils.checkNotNull(writer, "writer"); - Utils.checkNotNull(skipCount, "skipCount"); - Utils.checkNotNull(chapterSource, "chapterSource"); - 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; - } - - public GetLibraryHubsMetadata() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional ratingKey() { - return (Optional) ratingKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional guid() { - return (Optional) guid; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional studio() { - return (Optional) studio; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title() { - return (Optional) title; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionTitle() { - return (Optional) librarySectionTitle; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionID() { - return (Optional) librarySectionID; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionKey() { - return (Optional) librarySectionKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional contentRating() { - return (Optional) contentRating; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional summary() { - return (Optional) summary; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional rating() { - return (Optional) rating; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audienceRating() { - return (Optional) audienceRating; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional viewCount() { - return (Optional) viewCount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional lastViewedAt() { - return (Optional) lastViewedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional year() { - return (Optional) year; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tagline() { - return (Optional) tagline; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional thumb() { - return (Optional) thumb; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional art() { - return (Optional) art; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional duration() { - return (Optional) duration; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional originallyAvailableAt() { - return (Optional) originallyAvailableAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional addedAt() { - return (Optional) addedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional updatedAt() { - return (Optional) updatedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audienceRatingImage() { - return (Optional) audienceRatingImage; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional primaryExtraKey() { - return (Optional) primaryExtraKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional ratingImage() { - return (Optional) ratingImage; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> media() { - return (Optional>) media; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> genre() { - return (Optional>) genre; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> country() { - return (Optional>) country; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> director() { - return (Optional>) director; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> role() { - return (Optional>) role; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> writer() { - return (Optional>) writer; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional skipCount() { - return (Optional) skipCount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional chapterSource() { - return (Optional) chapterSource; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibraryHubsMetadata withRatingKey(String ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public GetLibraryHubsMetadata withRatingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public GetLibraryHubsMetadata withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public GetLibraryHubsMetadata withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public GetLibraryHubsMetadata withGuid(String guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = Optional.ofNullable(guid); - return this; - } - - public GetLibraryHubsMetadata withGuid(Optional guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = guid; - return this; - } - - public GetLibraryHubsMetadata withStudio(String studio) { - Utils.checkNotNull(studio, "studio"); - this.studio = Optional.ofNullable(studio); - return this; - } - - public GetLibraryHubsMetadata withStudio(Optional studio) { - Utils.checkNotNull(studio, "studio"); - this.studio = studio; - return this; - } - - public GetLibraryHubsMetadata withType(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public GetLibraryHubsMetadata withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public GetLibraryHubsMetadata withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public GetLibraryHubsMetadata withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public GetLibraryHubsMetadata withLibrarySectionTitle(String librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = Optional.ofNullable(librarySectionTitle); - return this; - } - - public GetLibraryHubsMetadata withLibrarySectionTitle(Optional librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = librarySectionTitle; - return this; - } - - public GetLibraryHubsMetadata withLibrarySectionID(int librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = Optional.ofNullable(librarySectionID); - return this; - } - - public GetLibraryHubsMetadata withLibrarySectionID(Optional librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = librarySectionID; - return this; - } - - public GetLibraryHubsMetadata withLibrarySectionKey(String librarySectionKey) { - Utils.checkNotNull(librarySectionKey, "librarySectionKey"); - this.librarySectionKey = Optional.ofNullable(librarySectionKey); - return this; - } - - public GetLibraryHubsMetadata withLibrarySectionKey(Optional librarySectionKey) { - Utils.checkNotNull(librarySectionKey, "librarySectionKey"); - this.librarySectionKey = librarySectionKey; - return this; - } - - public GetLibraryHubsMetadata withContentRating(String contentRating) { - Utils.checkNotNull(contentRating, "contentRating"); - this.contentRating = Optional.ofNullable(contentRating); - return this; - } - - public GetLibraryHubsMetadata withContentRating(Optional contentRating) { - Utils.checkNotNull(contentRating, "contentRating"); - this.contentRating = contentRating; - return this; - } - - public GetLibraryHubsMetadata withSummary(String summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = Optional.ofNullable(summary); - return this; - } - - public GetLibraryHubsMetadata withSummary(Optional summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = summary; - return this; - } - - public GetLibraryHubsMetadata withRating(double rating) { - Utils.checkNotNull(rating, "rating"); - this.rating = Optional.ofNullable(rating); - return this; - } - - public GetLibraryHubsMetadata withRating(Optional rating) { - Utils.checkNotNull(rating, "rating"); - this.rating = rating; - return this; - } - - public GetLibraryHubsMetadata withAudienceRating(double audienceRating) { - Utils.checkNotNull(audienceRating, "audienceRating"); - this.audienceRating = Optional.ofNullable(audienceRating); - return this; - } - - public GetLibraryHubsMetadata withAudienceRating(Optional audienceRating) { - Utils.checkNotNull(audienceRating, "audienceRating"); - this.audienceRating = audienceRating; - return this; - } - - public GetLibraryHubsMetadata withViewCount(int viewCount) { - Utils.checkNotNull(viewCount, "viewCount"); - this.viewCount = Optional.ofNullable(viewCount); - return this; - } - - public GetLibraryHubsMetadata withViewCount(Optional viewCount) { - Utils.checkNotNull(viewCount, "viewCount"); - this.viewCount = viewCount; - return this; - } - - public GetLibraryHubsMetadata withLastViewedAt(int lastViewedAt) { - Utils.checkNotNull(lastViewedAt, "lastViewedAt"); - this.lastViewedAt = Optional.ofNullable(lastViewedAt); - return this; - } - - public GetLibraryHubsMetadata withLastViewedAt(Optional lastViewedAt) { - Utils.checkNotNull(lastViewedAt, "lastViewedAt"); - this.lastViewedAt = lastViewedAt; - return this; - } - - public GetLibraryHubsMetadata withYear(int year) { - Utils.checkNotNull(year, "year"); - this.year = Optional.ofNullable(year); - return this; - } - - public GetLibraryHubsMetadata withYear(Optional year) { - Utils.checkNotNull(year, "year"); - this.year = year; - return this; - } - - public GetLibraryHubsMetadata withTagline(String tagline) { - Utils.checkNotNull(tagline, "tagline"); - this.tagline = Optional.ofNullable(tagline); - return this; - } - - public GetLibraryHubsMetadata withTagline(Optional tagline) { - Utils.checkNotNull(tagline, "tagline"); - this.tagline = tagline; - return this; - } - - public GetLibraryHubsMetadata withThumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public GetLibraryHubsMetadata withThumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public GetLibraryHubsMetadata withArt(String art) { - Utils.checkNotNull(art, "art"); - this.art = Optional.ofNullable(art); - return this; - } - - public GetLibraryHubsMetadata withArt(Optional art) { - Utils.checkNotNull(art, "art"); - this.art = art; - return this; - } - - public GetLibraryHubsMetadata withDuration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public GetLibraryHubsMetadata withDuration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public GetLibraryHubsMetadata withOriginallyAvailableAt(LocalDate originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = Optional.ofNullable(originallyAvailableAt); - return this; - } - - public GetLibraryHubsMetadata withOriginallyAvailableAt(Optional originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = originallyAvailableAt; - return this; - } - - public GetLibraryHubsMetadata withAddedAt(int addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = Optional.ofNullable(addedAt); - return this; - } - - public GetLibraryHubsMetadata withAddedAt(Optional addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = addedAt; - return this; - } - - public GetLibraryHubsMetadata withUpdatedAt(int updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public GetLibraryHubsMetadata withUpdatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public GetLibraryHubsMetadata withAudienceRatingImage(String audienceRatingImage) { - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - this.audienceRatingImage = Optional.ofNullable(audienceRatingImage); - return this; - } - - public GetLibraryHubsMetadata withAudienceRatingImage(Optional audienceRatingImage) { - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - this.audienceRatingImage = audienceRatingImage; - return this; - } - - public GetLibraryHubsMetadata withPrimaryExtraKey(String primaryExtraKey) { - Utils.checkNotNull(primaryExtraKey, "primaryExtraKey"); - this.primaryExtraKey = Optional.ofNullable(primaryExtraKey); - return this; - } - - public GetLibraryHubsMetadata withPrimaryExtraKey(Optional primaryExtraKey) { - Utils.checkNotNull(primaryExtraKey, "primaryExtraKey"); - this.primaryExtraKey = primaryExtraKey; - return this; - } - - public GetLibraryHubsMetadata withRatingImage(String ratingImage) { - Utils.checkNotNull(ratingImage, "ratingImage"); - this.ratingImage = Optional.ofNullable(ratingImage); - return this; - } - - public GetLibraryHubsMetadata withRatingImage(Optional ratingImage) { - Utils.checkNotNull(ratingImage, "ratingImage"); - this.ratingImage = ratingImage; - return this; - } - - public GetLibraryHubsMetadata withMedia(java.util.List media) { - Utils.checkNotNull(media, "media"); - this.media = Optional.ofNullable(media); - return this; - } - - public GetLibraryHubsMetadata withMedia(Optional> media) { - Utils.checkNotNull(media, "media"); - this.media = media; - return this; - } - - public GetLibraryHubsMetadata withGenre(java.util.List genre) { - Utils.checkNotNull(genre, "genre"); - this.genre = Optional.ofNullable(genre); - return this; - } - - public GetLibraryHubsMetadata withGenre(Optional> genre) { - Utils.checkNotNull(genre, "genre"); - this.genre = genre; - return this; - } - - public GetLibraryHubsMetadata withCountry(java.util.List country) { - Utils.checkNotNull(country, "country"); - this.country = Optional.ofNullable(country); - return this; - } - - public GetLibraryHubsMetadata withCountry(Optional> country) { - Utils.checkNotNull(country, "country"); - this.country = country; - return this; - } - - public GetLibraryHubsMetadata withDirector(java.util.List director) { - Utils.checkNotNull(director, "director"); - this.director = Optional.ofNullable(director); - return this; - } - - public GetLibraryHubsMetadata withDirector(Optional> director) { - Utils.checkNotNull(director, "director"); - this.director = director; - return this; - } - - public GetLibraryHubsMetadata withRole(java.util.List role) { - Utils.checkNotNull(role, "role"); - this.role = Optional.ofNullable(role); - return this; - } - - public GetLibraryHubsMetadata withRole(Optional> role) { - Utils.checkNotNull(role, "role"); - this.role = role; - return this; - } - - public GetLibraryHubsMetadata withWriter(java.util.List writer) { - Utils.checkNotNull(writer, "writer"); - this.writer = Optional.ofNullable(writer); - return this; - } - - public GetLibraryHubsMetadata withWriter(Optional> writer) { - Utils.checkNotNull(writer, "writer"); - this.writer = writer; - return this; - } - - public GetLibraryHubsMetadata withSkipCount(int skipCount) { - Utils.checkNotNull(skipCount, "skipCount"); - this.skipCount = Optional.ofNullable(skipCount); - return this; - } - - public GetLibraryHubsMetadata withSkipCount(Optional skipCount) { - Utils.checkNotNull(skipCount, "skipCount"); - this.skipCount = skipCount; - return this; - } - - public GetLibraryHubsMetadata withChapterSource(String chapterSource) { - Utils.checkNotNull(chapterSource, "chapterSource"); - this.chapterSource = Optional.ofNullable(chapterSource); - return this; - } - - public GetLibraryHubsMetadata withChapterSource(Optional chapterSource) { - Utils.checkNotNull(chapterSource, "chapterSource"); - this.chapterSource = chapterSource; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryHubsMetadata other = (GetLibraryHubsMetadata) o; - return - java.util.Objects.deepEquals(this.ratingKey, other.ratingKey) && - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.guid, other.guid) && - java.util.Objects.deepEquals(this.studio, other.studio) && - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.title, other.title) && - java.util.Objects.deepEquals(this.librarySectionTitle, other.librarySectionTitle) && - java.util.Objects.deepEquals(this.librarySectionID, other.librarySectionID) && - java.util.Objects.deepEquals(this.librarySectionKey, other.librarySectionKey) && - java.util.Objects.deepEquals(this.contentRating, other.contentRating) && - java.util.Objects.deepEquals(this.summary, other.summary) && - java.util.Objects.deepEquals(this.rating, other.rating) && - java.util.Objects.deepEquals(this.audienceRating, other.audienceRating) && - java.util.Objects.deepEquals(this.viewCount, other.viewCount) && - java.util.Objects.deepEquals(this.lastViewedAt, other.lastViewedAt) && - java.util.Objects.deepEquals(this.year, other.year) && - java.util.Objects.deepEquals(this.tagline, other.tagline) && - java.util.Objects.deepEquals(this.thumb, other.thumb) && - java.util.Objects.deepEquals(this.art, other.art) && - java.util.Objects.deepEquals(this.duration, other.duration) && - java.util.Objects.deepEquals(this.originallyAvailableAt, other.originallyAvailableAt) && - java.util.Objects.deepEquals(this.addedAt, other.addedAt) && - java.util.Objects.deepEquals(this.updatedAt, other.updatedAt) && - java.util.Objects.deepEquals(this.audienceRatingImage, other.audienceRatingImage) && - java.util.Objects.deepEquals(this.primaryExtraKey, other.primaryExtraKey) && - java.util.Objects.deepEquals(this.ratingImage, other.ratingImage) && - java.util.Objects.deepEquals(this.media, other.media) && - java.util.Objects.deepEquals(this.genre, other.genre) && - java.util.Objects.deepEquals(this.country, other.country) && - java.util.Objects.deepEquals(this.director, other.director) && - java.util.Objects.deepEquals(this.role, other.role) && - java.util.Objects.deepEquals(this.writer, other.writer) && - java.util.Objects.deepEquals(this.skipCount, other.skipCount) && - java.util.Objects.deepEquals(this.chapterSource, other.chapterSource); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - ratingKey, - key, - guid, - studio, - type, - title, - librarySectionTitle, - librarySectionID, - librarySectionKey, - contentRating, - summary, - rating, - audienceRating, - viewCount, - lastViewedAt, - year, - tagline, - thumb, - art, - duration, - originallyAvailableAt, - addedAt, - updatedAt, - audienceRatingImage, - primaryExtraKey, - ratingImage, - media, - genre, - country, - director, - role, - writer, - skipCount, - chapterSource); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryHubsMetadata.class, - "ratingKey", ratingKey, - "key", key, - "guid", guid, - "studio", studio, - "type", type, - "title", title, - "librarySectionTitle", librarySectionTitle, - "librarySectionID", librarySectionID, - "librarySectionKey", librarySectionKey, - "contentRating", contentRating, - "summary", summary, - "rating", rating, - "audienceRating", audienceRating, - "viewCount", viewCount, - "lastViewedAt", lastViewedAt, - "year", year, - "tagline", tagline, - "thumb", thumb, - "art", art, - "duration", duration, - "originallyAvailableAt", originallyAvailableAt, - "addedAt", addedAt, - "updatedAt", updatedAt, - "audienceRatingImage", audienceRatingImage, - "primaryExtraKey", primaryExtraKey, - "ratingImage", ratingImage, - "media", media, - "genre", genre, - "country", country, - "director", director, - "role", role, - "writer", writer, - "skipCount", skipCount, - "chapterSource", chapterSource); - } - - public final static class Builder { - - private Optional ratingKey = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional guid = Optional.empty(); - - private Optional studio = Optional.empty(); - - private Optional type = Optional.empty(); - - private Optional title = Optional.empty(); - - private Optional librarySectionTitle = Optional.empty(); - - private Optional librarySectionID = Optional.empty(); - - private Optional librarySectionKey = Optional.empty(); - - private Optional contentRating = Optional.empty(); - - private Optional summary = Optional.empty(); - - private Optional rating = Optional.empty(); - - private Optional audienceRating = Optional.empty(); - - private Optional viewCount = Optional.empty(); - - private Optional lastViewedAt = Optional.empty(); - - private Optional year = Optional.empty(); - - private Optional tagline = Optional.empty(); - - private Optional thumb = Optional.empty(); - - private Optional art = Optional.empty(); - - private Optional duration = Optional.empty(); - - private Optional originallyAvailableAt = Optional.empty(); - - private Optional addedAt = Optional.empty(); - - private Optional updatedAt = Optional.empty(); - - private Optional audienceRatingImage = Optional.empty(); - - private Optional primaryExtraKey = Optional.empty(); - - private Optional ratingImage = Optional.empty(); - - private Optional> media = Optional.empty(); - - private Optional> genre = Optional.empty(); - - private Optional> country = Optional.empty(); - - private Optional> director = Optional.empty(); - - private Optional> role = Optional.empty(); - - private Optional> writer = Optional.empty(); - - private Optional skipCount = Optional.empty(); - - private Optional chapterSource = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder ratingKey(String ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public Builder ratingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder guid(String guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = Optional.ofNullable(guid); - return this; - } - - public Builder guid(Optional guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = guid; - return this; - } - - public Builder studio(String studio) { - Utils.checkNotNull(studio, "studio"); - this.studio = Optional.ofNullable(studio); - return this; - } - - public Builder studio(Optional studio) { - Utils.checkNotNull(studio, "studio"); - this.studio = studio; - return this; - } - - public Builder type(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Builder librarySectionTitle(String librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = Optional.ofNullable(librarySectionTitle); - return this; - } - - public Builder librarySectionTitle(Optional librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = librarySectionTitle; - return this; - } - - public Builder librarySectionID(int librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = Optional.ofNullable(librarySectionID); - return this; - } - - public Builder librarySectionID(Optional librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = librarySectionID; - return this; - } - - public Builder librarySectionKey(String librarySectionKey) { - Utils.checkNotNull(librarySectionKey, "librarySectionKey"); - this.librarySectionKey = Optional.ofNullable(librarySectionKey); - return this; - } - - public Builder librarySectionKey(Optional librarySectionKey) { - Utils.checkNotNull(librarySectionKey, "librarySectionKey"); - this.librarySectionKey = librarySectionKey; - return this; - } - - public Builder contentRating(String contentRating) { - Utils.checkNotNull(contentRating, "contentRating"); - this.contentRating = Optional.ofNullable(contentRating); - return this; - } - - public Builder contentRating(Optional contentRating) { - Utils.checkNotNull(contentRating, "contentRating"); - this.contentRating = contentRating; - return this; - } - - public Builder summary(String summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = Optional.ofNullable(summary); - return this; - } - - public Builder summary(Optional summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = summary; - return this; - } - - public Builder rating(double rating) { - Utils.checkNotNull(rating, "rating"); - this.rating = Optional.ofNullable(rating); - return this; - } - - public Builder rating(Optional rating) { - Utils.checkNotNull(rating, "rating"); - this.rating = rating; - return this; - } - - public Builder audienceRating(double audienceRating) { - Utils.checkNotNull(audienceRating, "audienceRating"); - this.audienceRating = Optional.ofNullable(audienceRating); - return this; - } - - public Builder audienceRating(Optional audienceRating) { - Utils.checkNotNull(audienceRating, "audienceRating"); - this.audienceRating = audienceRating; - return this; - } - - public Builder viewCount(int viewCount) { - Utils.checkNotNull(viewCount, "viewCount"); - this.viewCount = Optional.ofNullable(viewCount); - return this; - } - - public Builder viewCount(Optional viewCount) { - Utils.checkNotNull(viewCount, "viewCount"); - this.viewCount = viewCount; - return this; - } - - public Builder lastViewedAt(int lastViewedAt) { - Utils.checkNotNull(lastViewedAt, "lastViewedAt"); - this.lastViewedAt = Optional.ofNullable(lastViewedAt); - return this; - } - - public Builder lastViewedAt(Optional lastViewedAt) { - Utils.checkNotNull(lastViewedAt, "lastViewedAt"); - this.lastViewedAt = lastViewedAt; - return this; - } - - public Builder year(int year) { - Utils.checkNotNull(year, "year"); - this.year = Optional.ofNullable(year); - return this; - } - - public Builder year(Optional year) { - Utils.checkNotNull(year, "year"); - this.year = year; - return this; - } - - public Builder tagline(String tagline) { - Utils.checkNotNull(tagline, "tagline"); - this.tagline = Optional.ofNullable(tagline); - return this; - } - - public Builder tagline(Optional tagline) { - Utils.checkNotNull(tagline, "tagline"); - this.tagline = tagline; - return this; - } - - public Builder thumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public Builder thumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public Builder art(String art) { - Utils.checkNotNull(art, "art"); - this.art = Optional.ofNullable(art); - return this; - } - - public Builder art(Optional art) { - Utils.checkNotNull(art, "art"); - this.art = art; - return this; - } - - public Builder duration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public Builder duration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public Builder originallyAvailableAt(LocalDate originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = Optional.ofNullable(originallyAvailableAt); - return this; - } - - public Builder originallyAvailableAt(Optional originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = originallyAvailableAt; - return this; - } - - public Builder addedAt(int addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = Optional.ofNullable(addedAt); - return this; - } - - public Builder addedAt(Optional addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = addedAt; - return this; - } - - public Builder updatedAt(int updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public Builder updatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public Builder audienceRatingImage(String audienceRatingImage) { - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - this.audienceRatingImage = Optional.ofNullable(audienceRatingImage); - return this; - } - - public Builder audienceRatingImage(Optional audienceRatingImage) { - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - this.audienceRatingImage = audienceRatingImage; - return this; - } - - public Builder primaryExtraKey(String primaryExtraKey) { - Utils.checkNotNull(primaryExtraKey, "primaryExtraKey"); - this.primaryExtraKey = Optional.ofNullable(primaryExtraKey); - return this; - } - - public Builder primaryExtraKey(Optional primaryExtraKey) { - Utils.checkNotNull(primaryExtraKey, "primaryExtraKey"); - this.primaryExtraKey = primaryExtraKey; - return this; - } - - public Builder ratingImage(String ratingImage) { - Utils.checkNotNull(ratingImage, "ratingImage"); - this.ratingImage = Optional.ofNullable(ratingImage); - return this; - } - - public Builder ratingImage(Optional ratingImage) { - Utils.checkNotNull(ratingImage, "ratingImage"); - this.ratingImage = ratingImage; - return this; - } - - public Builder media(java.util.List media) { - Utils.checkNotNull(media, "media"); - this.media = Optional.ofNullable(media); - return this; - } - - public Builder media(Optional> media) { - Utils.checkNotNull(media, "media"); - this.media = media; - return this; - } - - public Builder genre(java.util.List genre) { - Utils.checkNotNull(genre, "genre"); - this.genre = Optional.ofNullable(genre); - return this; - } - - public Builder genre(Optional> genre) { - Utils.checkNotNull(genre, "genre"); - this.genre = genre; - return this; - } - - public Builder country(java.util.List country) { - Utils.checkNotNull(country, "country"); - this.country = Optional.ofNullable(country); - return this; - } - - public Builder country(Optional> country) { - Utils.checkNotNull(country, "country"); - this.country = country; - return this; - } - - public Builder director(java.util.List director) { - Utils.checkNotNull(director, "director"); - this.director = Optional.ofNullable(director); - return this; - } - - public Builder director(Optional> director) { - Utils.checkNotNull(director, "director"); - this.director = director; - return this; - } - - public Builder role(java.util.List role) { - Utils.checkNotNull(role, "role"); - this.role = Optional.ofNullable(role); - return this; - } - - public Builder role(Optional> role) { - Utils.checkNotNull(role, "role"); - this.role = role; - return this; - } - - public Builder writer(java.util.List writer) { - Utils.checkNotNull(writer, "writer"); - this.writer = Optional.ofNullable(writer); - return this; - } - - public Builder writer(Optional> writer) { - Utils.checkNotNull(writer, "writer"); - this.writer = writer; - return this; - } - - public Builder skipCount(int skipCount) { - Utils.checkNotNull(skipCount, "skipCount"); - this.skipCount = Optional.ofNullable(skipCount); - return this; - } - - public Builder skipCount(Optional skipCount) { - Utils.checkNotNull(skipCount, "skipCount"); - this.skipCount = skipCount; - return this; - } - - public Builder chapterSource(String chapterSource) { - Utils.checkNotNull(chapterSource, "chapterSource"); - this.chapterSource = Optional.ofNullable(chapterSource); - return this; - } - - public Builder chapterSource(Optional chapterSource) { - Utils.checkNotNull(chapterSource, "chapterSource"); - this.chapterSource = chapterSource; - return this; - } - - public GetLibraryHubsMetadata build() { - return new GetLibraryHubsMetadata( - ratingKey, - key, - guid, - studio, - type, - title, - librarySectionTitle, - librarySectionID, - librarySectionKey, - contentRating, - summary, - rating, - audienceRating, - viewCount, - lastViewedAt, - year, - tagline, - thumb, - art, - duration, - originallyAvailableAt, - addedAt, - updatedAt, - audienceRatingImage, - primaryExtraKey, - ratingImage, - media, - genre, - country, - director, - role, - writer, - skipCount, - chapterSource); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsPart.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsPart.java deleted file mode 100644 index 764ee443..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsPart.java +++ /dev/null @@ -1,498 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetLibraryHubsPart { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("duration") - private Optional duration; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("file") - private Optional file; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audioProfile") - private Optional audioProfile; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("container") - private Optional container; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("has64bitOffsets") - private Optional has64bitOffsets; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("optimizedForStreaming") - private Optional optimizedForStreaming; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("videoProfile") - private Optional videoProfile; - - @JsonCreator - public GetLibraryHubsPart( - @JsonProperty("id") Optional id, - @JsonProperty("key") Optional key, - @JsonProperty("duration") Optional duration, - @JsonProperty("file") Optional file, - @JsonProperty("size") Optional size, - @JsonProperty("audioProfile") Optional audioProfile, - @JsonProperty("container") Optional container, - @JsonProperty("has64bitOffsets") Optional has64bitOffsets, - @JsonProperty("optimizedForStreaming") Optional optimizedForStreaming, - @JsonProperty("videoProfile") Optional videoProfile) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(duration, "duration"); - Utils.checkNotNull(file, "file"); - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(audioProfile, "audioProfile"); - Utils.checkNotNull(container, "container"); - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - Utils.checkNotNull(videoProfile, "videoProfile"); - 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; - } - - public GetLibraryHubsPart() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional duration() { - return (Optional) duration; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional file() { - return (Optional) file; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audioProfile() { - return (Optional) audioProfile; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional container() { - return (Optional) container; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional has64bitOffsets() { - return (Optional) has64bitOffsets; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional optimizedForStreaming() { - return (Optional) optimizedForStreaming; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional videoProfile() { - return (Optional) videoProfile; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibraryHubsPart withId(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public GetLibraryHubsPart withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public GetLibraryHubsPart withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public GetLibraryHubsPart withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public GetLibraryHubsPart withDuration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public GetLibraryHubsPart withDuration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public GetLibraryHubsPart withFile(String file) { - Utils.checkNotNull(file, "file"); - this.file = Optional.ofNullable(file); - return this; - } - - public GetLibraryHubsPart withFile(Optional file) { - Utils.checkNotNull(file, "file"); - this.file = file; - return this; - } - - public GetLibraryHubsPart withSize(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public GetLibraryHubsPart withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public GetLibraryHubsPart withAudioProfile(String audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = Optional.ofNullable(audioProfile); - return this; - } - - public GetLibraryHubsPart withAudioProfile(Optional audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = audioProfile; - return this; - } - - public GetLibraryHubsPart withContainer(String container) { - Utils.checkNotNull(container, "container"); - this.container = Optional.ofNullable(container); - return this; - } - - public GetLibraryHubsPart withContainer(Optional container) { - Utils.checkNotNull(container, "container"); - this.container = container; - return this; - } - - public GetLibraryHubsPart withHas64bitOffsets(boolean has64bitOffsets) { - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - this.has64bitOffsets = Optional.ofNullable(has64bitOffsets); - return this; - } - - public GetLibraryHubsPart withHas64bitOffsets(Optional has64bitOffsets) { - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - this.has64bitOffsets = has64bitOffsets; - return this; - } - - public GetLibraryHubsPart withOptimizedForStreaming(boolean optimizedForStreaming) { - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - this.optimizedForStreaming = Optional.ofNullable(optimizedForStreaming); - return this; - } - - public GetLibraryHubsPart withOptimizedForStreaming(Optional optimizedForStreaming) { - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - this.optimizedForStreaming = optimizedForStreaming; - return this; - } - - public GetLibraryHubsPart withVideoProfile(String videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = Optional.ofNullable(videoProfile); - return this; - } - - public GetLibraryHubsPart withVideoProfile(Optional videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = videoProfile; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryHubsPart other = (GetLibraryHubsPart) o; - return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.duration, other.duration) && - java.util.Objects.deepEquals(this.file, other.file) && - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.audioProfile, other.audioProfile) && - java.util.Objects.deepEquals(this.container, other.container) && - java.util.Objects.deepEquals(this.has64bitOffsets, other.has64bitOffsets) && - java.util.Objects.deepEquals(this.optimizedForStreaming, other.optimizedForStreaming) && - java.util.Objects.deepEquals(this.videoProfile, other.videoProfile); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id, - key, - duration, - file, - size, - audioProfile, - container, - has64bitOffsets, - optimizedForStreaming, - videoProfile); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryHubsPart.class, - "id", id, - "key", key, - "duration", duration, - "file", file, - "size", size, - "audioProfile", audioProfile, - "container", container, - "has64bitOffsets", has64bitOffsets, - "optimizedForStreaming", optimizedForStreaming, - "videoProfile", videoProfile); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional duration = Optional.empty(); - - private Optional file = Optional.empty(); - - private Optional size = Optional.empty(); - - private Optional audioProfile = Optional.empty(); - - private Optional container = Optional.empty(); - - private Optional has64bitOffsets = Optional.empty(); - - private Optional optimizedForStreaming = Optional.empty(); - - private Optional videoProfile = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder duration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public Builder duration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public Builder file(String file) { - Utils.checkNotNull(file, "file"); - this.file = Optional.ofNullable(file); - return this; - } - - public Builder file(Optional file) { - Utils.checkNotNull(file, "file"); - this.file = file; - return this; - } - - public Builder size(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder audioProfile(String audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = Optional.ofNullable(audioProfile); - return this; - } - - public Builder audioProfile(Optional audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = audioProfile; - return this; - } - - public Builder container(String container) { - Utils.checkNotNull(container, "container"); - this.container = Optional.ofNullable(container); - return this; - } - - public Builder container(Optional container) { - Utils.checkNotNull(container, "container"); - this.container = container; - return this; - } - - public Builder has64bitOffsets(boolean has64bitOffsets) { - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - this.has64bitOffsets = Optional.ofNullable(has64bitOffsets); - return this; - } - - public Builder has64bitOffsets(Optional has64bitOffsets) { - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - this.has64bitOffsets = has64bitOffsets; - return this; - } - - public Builder optimizedForStreaming(boolean optimizedForStreaming) { - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - this.optimizedForStreaming = Optional.ofNullable(optimizedForStreaming); - return this; - } - - public Builder optimizedForStreaming(Optional optimizedForStreaming) { - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - this.optimizedForStreaming = optimizedForStreaming; - return this; - } - - public Builder videoProfile(String videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = Optional.ofNullable(videoProfile); - return this; - } - - public Builder videoProfile(Optional videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = videoProfile; - return this; - } - - public GetLibraryHubsPart build() { - return new GetLibraryHubsPart( - id, - key, - duration, - file, - size, - audioProfile, - container, - has64bitOffsets, - optimizedForStreaming, - videoProfile); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsRequest.java deleted file mode 100644 index 568efd05..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsRequest.java +++ /dev/null @@ -1,228 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetLibraryHubsRequest { - - /** - * the Id of the library to query - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionId") - private double sectionId; - - /** - * The number of items to return with each hub. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=count") - private Optional count; - - /** - * 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). - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=onlyTransient") - private Optional onlyTransient; - - @JsonCreator - public GetLibraryHubsRequest( - double sectionId, - Optional count, - Optional onlyTransient) { - Utils.checkNotNull(sectionId, "sectionId"); - Utils.checkNotNull(count, "count"); - Utils.checkNotNull(onlyTransient, "onlyTransient"); - this.sectionId = sectionId; - this.count = count; - this.onlyTransient = onlyTransient; - } - - public GetLibraryHubsRequest( - double sectionId) { - this(sectionId, Optional.empty(), Optional.empty()); - } - - /** - * the Id of the library to query - */ - @JsonIgnore - public double sectionId() { - return sectionId; - } - - /** - * The number of items to return with each hub. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional count() { - return (Optional) count; - } - - /** - * 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). - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional onlyTransient() { - return (Optional) onlyTransient; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * the Id of the library to query - */ - public GetLibraryHubsRequest withSectionId(double sectionId) { - Utils.checkNotNull(sectionId, "sectionId"); - this.sectionId = sectionId; - return this; - } - - /** - * The number of items to return with each hub. - */ - public GetLibraryHubsRequest withCount(double count) { - Utils.checkNotNull(count, "count"); - this.count = Optional.ofNullable(count); - return this; - } - - /** - * The number of items to return with each hub. - */ - public GetLibraryHubsRequest withCount(Optional count) { - Utils.checkNotNull(count, "count"); - this.count = count; - return this; - } - - /** - * 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). - */ - public GetLibraryHubsRequest withOnlyTransient(QueryParamOnlyTransient onlyTransient) { - Utils.checkNotNull(onlyTransient, "onlyTransient"); - this.onlyTransient = Optional.ofNullable(onlyTransient); - return this; - } - - /** - * 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). - */ - public GetLibraryHubsRequest withOnlyTransient(Optional onlyTransient) { - Utils.checkNotNull(onlyTransient, "onlyTransient"); - this.onlyTransient = onlyTransient; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryHubsRequest other = (GetLibraryHubsRequest) o; - return - java.util.Objects.deepEquals(this.sectionId, other.sectionId) && - java.util.Objects.deepEquals(this.count, other.count) && - java.util.Objects.deepEquals(this.onlyTransient, other.onlyTransient); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - sectionId, - count, - onlyTransient); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryHubsRequest.class, - "sectionId", sectionId, - "count", count, - "onlyTransient", onlyTransient); - } - - public final static class Builder { - - private Double sectionId; - - private Optional count = Optional.empty(); - - private Optional onlyTransient = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * the Id of the library to query - */ - public Builder sectionId(double sectionId) { - Utils.checkNotNull(sectionId, "sectionId"); - this.sectionId = sectionId; - return this; - } - - /** - * The number of items to return with each hub. - */ - public Builder count(double count) { - Utils.checkNotNull(count, "count"); - this.count = Optional.ofNullable(count); - return this; - } - - /** - * The number of items to return with each hub. - */ - public Builder count(Optional count) { - Utils.checkNotNull(count, "count"); - this.count = count; - return this; - } - - /** - * 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). - */ - public Builder onlyTransient(QueryParamOnlyTransient onlyTransient) { - Utils.checkNotNull(onlyTransient, "onlyTransient"); - this.onlyTransient = Optional.ofNullable(onlyTransient); - return this; - } - - /** - * 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). - */ - public Builder onlyTransient(Optional onlyTransient) { - Utils.checkNotNull(onlyTransient, "onlyTransient"); - this.onlyTransient = onlyTransient; - return this; - } - - public GetLibraryHubsRequest build() { - return new GetLibraryHubsRequest( - sectionId, - count, - onlyTransient); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsRequestBuilder.java deleted file mode 100644 index e9c97f5d..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsRequestBuilder.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetLibraryHubsRequestBuilder { - - private Double sectionId; - private Optional count = Optional.empty(); - private Optional onlyTransient = Optional.empty(); - private final SDKMethodInterfaces.MethodCallGetLibraryHubs sdk; - - public GetLibraryHubsRequestBuilder(SDKMethodInterfaces.MethodCallGetLibraryHubs sdk) { - this.sdk = sdk; - } - - public GetLibraryHubsRequestBuilder sectionId(double sectionId) { - Utils.checkNotNull(sectionId, "sectionId"); - this.sectionId = sectionId; - return this; - } - - public GetLibraryHubsRequestBuilder count(double count) { - Utils.checkNotNull(count, "count"); - this.count = Optional.of(count); - return this; - } - - public GetLibraryHubsRequestBuilder count(Optional count) { - Utils.checkNotNull(count, "count"); - this.count = count; - return this; - } - - public GetLibraryHubsRequestBuilder onlyTransient(QueryParamOnlyTransient onlyTransient) { - Utils.checkNotNull(onlyTransient, "onlyTransient"); - this.onlyTransient = Optional.of(onlyTransient); - return this; - } - - public GetLibraryHubsRequestBuilder onlyTransient(Optional onlyTransient) { - Utils.checkNotNull(onlyTransient, "onlyTransient"); - this.onlyTransient = onlyTransient; - return this; - } - - public GetLibraryHubsResponse call() throws Exception { - - return sdk.getLibraryHubs( - sectionId, - count, - onlyTransient); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsResponse.java deleted file mode 100644 index 00b4a484..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsResponse.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetLibraryHubsResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * The hubs specific to the library - */ - private Optional object; - - @JsonCreator - public GetLibraryHubsResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional object) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.object = object; - } - - public GetLibraryHubsResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * The hubs specific to the library - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional object() { - return (Optional) object; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetLibraryHubsResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetLibraryHubsResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetLibraryHubsResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * The hubs specific to the library - */ - public GetLibraryHubsResponse withObject(GetLibraryHubsResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * The hubs specific to the library - */ - public GetLibraryHubsResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryHubsResponse other = (GetLibraryHubsResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.object, other.object); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse, - object); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryHubsResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "object", object); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional object = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * The hubs specific to the library - */ - public Builder object(GetLibraryHubsResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * The hubs specific to the library - */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - public GetLibraryHubsResponse build() { - return new GetLibraryHubsResponse( - contentType, - statusCode, - rawResponse, - object); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsResponseBody.java deleted file mode 100644 index 59bdcafa..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsResponseBody.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -/** - * GetLibraryHubsResponseBody - The hubs specific to the library - */ - -public class GetLibraryHubsResponseBody { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("MediaContainer") - private Optional mediaContainer; - - @JsonCreator - public GetLibraryHubsResponseBody( - @JsonProperty("MediaContainer") Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - } - - public GetLibraryHubsResponseBody() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaContainer() { - return (Optional) mediaContainer; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibraryHubsResponseBody withMediaContainer(GetLibraryHubsMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public GetLibraryHubsResponseBody withMediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryHubsResponseBody other = (GetLibraryHubsResponseBody) o; - return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - mediaContainer); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryHubsResponseBody.class, - "mediaContainer", mediaContainer); - } - - public final static class Builder { - - private Optional mediaContainer = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder mediaContainer(GetLibraryHubsMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public Builder mediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - public GetLibraryHubsResponseBody build() { - return new GetLibraryHubsResponseBody( - mediaContainer); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsRole.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsRole.java deleted file mode 100644 index 02eecf73..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsRole.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetLibraryHubsRole { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tag") - private Optional tag; - - @JsonCreator - public GetLibraryHubsRole( - @JsonProperty("tag") Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - } - - public GetLibraryHubsRole() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tag() { - return (Optional) tag; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibraryHubsRole withTag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public GetLibraryHubsRole withTag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryHubsRole other = (GetLibraryHubsRole) o; - return - java.util.Objects.deepEquals(this.tag, other.tag); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - tag); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryHubsRole.class, - "tag", tag); - } - - public final static class Builder { - - private Optional tag = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder tag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Builder tag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public GetLibraryHubsRole build() { - return new GetLibraryHubsRole( - tag); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsWriter.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsWriter.java deleted file mode 100644 index 2ed2f3c6..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryHubsWriter.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetLibraryHubsWriter { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tag") - private Optional tag; - - @JsonCreator - public GetLibraryHubsWriter( - @JsonProperty("tag") Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - } - - public GetLibraryHubsWriter() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tag() { - return (Optional) tag; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibraryHubsWriter withTag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public GetLibraryHubsWriter withTag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryHubsWriter other = (GetLibraryHubsWriter) o; - return - java.util.Objects.deepEquals(this.tag, other.tag); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - tag); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryHubsWriter.class, - "tag", tag); - } - - public final static class Builder { - - private Optional tag = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder tag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Builder tag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public GetLibraryHubsWriter build() { - return new GetLibraryHubsWriter( - tag); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsCountry.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsCountry.java deleted file mode 100644 index 3c5e0603..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsCountry.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetLibraryItemsCountry { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tag") - private Optional tag; - - @JsonCreator - public GetLibraryItemsCountry( - @JsonProperty("tag") Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - } - - public GetLibraryItemsCountry() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tag() { - return (Optional) tag; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibraryItemsCountry withTag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public GetLibraryItemsCountry withTag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryItemsCountry other = (GetLibraryItemsCountry) o; - return - java.util.Objects.deepEquals(this.tag, other.tag); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - tag); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryItemsCountry.class, - "tag", tag); - } - - public final static class Builder { - - private Optional tag = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder tag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Builder tag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public GetLibraryItemsCountry build() { - return new GetLibraryItemsCountry( - tag); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsDirector.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsDirector.java deleted file mode 100644 index 9fb8c0a9..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsDirector.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetLibraryItemsDirector { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tag") - private Optional tag; - - @JsonCreator - public GetLibraryItemsDirector( - @JsonProperty("tag") Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - } - - public GetLibraryItemsDirector() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tag() { - return (Optional) tag; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibraryItemsDirector withTag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public GetLibraryItemsDirector withTag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryItemsDirector other = (GetLibraryItemsDirector) o; - return - java.util.Objects.deepEquals(this.tag, other.tag); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - tag); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryItemsDirector.class, - "tag", tag); - } - - public final static class Builder { - - private Optional tag = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder tag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Builder tag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public GetLibraryItemsDirector build() { - return new GetLibraryItemsDirector( - tag); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsGenre.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsGenre.java deleted file mode 100644 index 556135e4..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsGenre.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetLibraryItemsGenre { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tag") - private Optional tag; - - @JsonCreator - public GetLibraryItemsGenre( - @JsonProperty("tag") Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - } - - public GetLibraryItemsGenre() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tag() { - return (Optional) tag; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibraryItemsGenre withTag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public GetLibraryItemsGenre withTag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryItemsGenre other = (GetLibraryItemsGenre) o; - return - java.util.Objects.deepEquals(this.tag, other.tag); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - tag); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryItemsGenre.class, - "tag", tag); - } - - public final static class Builder { - - private Optional tag = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder tag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Builder tag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public GetLibraryItemsGenre build() { - return new GetLibraryItemsGenre( - tag); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsMedia.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsMedia.java deleted file mode 100644 index edb8299a..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsMedia.java +++ /dev/null @@ -1,670 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetLibraryItemsMedia { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("duration") - private Optional duration; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("bitrate") - private Optional bitrate; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("width") - private Optional width; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("height") - private Optional height; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("aspectRatio") - private Optional aspectRatio; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audioChannels") - private Optional audioChannels; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audioCodec") - private Optional audioCodec; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("videoCodec") - private Optional videoCodec; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("videoResolution") - private Optional videoResolution; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("container") - private Optional container; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("videoFrameRate") - private Optional videoFrameRate; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("videoProfile") - private Optional videoProfile; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Part") - private Optional> part; - - @JsonCreator - public GetLibraryItemsMedia( - @JsonProperty("id") Optional id, - @JsonProperty("duration") Optional duration, - @JsonProperty("bitrate") Optional bitrate, - @JsonProperty("width") Optional width, - @JsonProperty("height") Optional height, - @JsonProperty("aspectRatio") Optional aspectRatio, - @JsonProperty("audioChannels") Optional audioChannels, - @JsonProperty("audioCodec") Optional audioCodec, - @JsonProperty("videoCodec") Optional videoCodec, - @JsonProperty("videoResolution") Optional videoResolution, - @JsonProperty("container") Optional container, - @JsonProperty("videoFrameRate") Optional videoFrameRate, - @JsonProperty("videoProfile") Optional videoProfile, - @JsonProperty("Part") Optional> part) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(duration, "duration"); - Utils.checkNotNull(bitrate, "bitrate"); - Utils.checkNotNull(width, "width"); - Utils.checkNotNull(height, "height"); - Utils.checkNotNull(aspectRatio, "aspectRatio"); - Utils.checkNotNull(audioChannels, "audioChannels"); - Utils.checkNotNull(audioCodec, "audioCodec"); - Utils.checkNotNull(videoCodec, "videoCodec"); - Utils.checkNotNull(videoResolution, "videoResolution"); - Utils.checkNotNull(container, "container"); - Utils.checkNotNull(videoFrameRate, "videoFrameRate"); - Utils.checkNotNull(videoProfile, "videoProfile"); - Utils.checkNotNull(part, "part"); - 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; - } - - public GetLibraryItemsMedia() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional duration() { - return (Optional) duration; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional bitrate() { - return (Optional) bitrate; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional width() { - return (Optional) width; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional height() { - return (Optional) height; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional aspectRatio() { - return (Optional) aspectRatio; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audioChannels() { - return (Optional) audioChannels; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audioCodec() { - return (Optional) audioCodec; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional videoCodec() { - return (Optional) videoCodec; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional videoResolution() { - return (Optional) videoResolution; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional container() { - return (Optional) container; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional videoFrameRate() { - return (Optional) videoFrameRate; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional videoProfile() { - return (Optional) videoProfile; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> part() { - return (Optional>) part; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibraryItemsMedia withId(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public GetLibraryItemsMedia withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public GetLibraryItemsMedia withDuration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public GetLibraryItemsMedia withDuration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public GetLibraryItemsMedia withBitrate(int bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = Optional.ofNullable(bitrate); - return this; - } - - public GetLibraryItemsMedia withBitrate(Optional bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = bitrate; - return this; - } - - public GetLibraryItemsMedia withWidth(int width) { - Utils.checkNotNull(width, "width"); - this.width = Optional.ofNullable(width); - return this; - } - - public GetLibraryItemsMedia withWidth(Optional width) { - Utils.checkNotNull(width, "width"); - this.width = width; - return this; - } - - public GetLibraryItemsMedia withHeight(int height) { - Utils.checkNotNull(height, "height"); - this.height = Optional.ofNullable(height); - return this; - } - - public GetLibraryItemsMedia withHeight(Optional height) { - Utils.checkNotNull(height, "height"); - this.height = height; - return this; - } - - public GetLibraryItemsMedia withAspectRatio(double aspectRatio) { - Utils.checkNotNull(aspectRatio, "aspectRatio"); - this.aspectRatio = Optional.ofNullable(aspectRatio); - return this; - } - - public GetLibraryItemsMedia withAspectRatio(Optional aspectRatio) { - Utils.checkNotNull(aspectRatio, "aspectRatio"); - this.aspectRatio = aspectRatio; - return this; - } - - public GetLibraryItemsMedia withAudioChannels(int audioChannels) { - Utils.checkNotNull(audioChannels, "audioChannels"); - this.audioChannels = Optional.ofNullable(audioChannels); - return this; - } - - public GetLibraryItemsMedia withAudioChannels(Optional audioChannels) { - Utils.checkNotNull(audioChannels, "audioChannels"); - this.audioChannels = audioChannels; - return this; - } - - public GetLibraryItemsMedia withAudioCodec(String audioCodec) { - Utils.checkNotNull(audioCodec, "audioCodec"); - this.audioCodec = Optional.ofNullable(audioCodec); - return this; - } - - public GetLibraryItemsMedia withAudioCodec(Optional audioCodec) { - Utils.checkNotNull(audioCodec, "audioCodec"); - this.audioCodec = audioCodec; - return this; - } - - public GetLibraryItemsMedia withVideoCodec(String videoCodec) { - Utils.checkNotNull(videoCodec, "videoCodec"); - this.videoCodec = Optional.ofNullable(videoCodec); - return this; - } - - public GetLibraryItemsMedia withVideoCodec(Optional videoCodec) { - Utils.checkNotNull(videoCodec, "videoCodec"); - this.videoCodec = videoCodec; - return this; - } - - public GetLibraryItemsMedia withVideoResolution(String videoResolution) { - Utils.checkNotNull(videoResolution, "videoResolution"); - this.videoResolution = Optional.ofNullable(videoResolution); - return this; - } - - public GetLibraryItemsMedia withVideoResolution(Optional videoResolution) { - Utils.checkNotNull(videoResolution, "videoResolution"); - this.videoResolution = videoResolution; - return this; - } - - public GetLibraryItemsMedia withContainer(String container) { - Utils.checkNotNull(container, "container"); - this.container = Optional.ofNullable(container); - return this; - } - - public GetLibraryItemsMedia withContainer(Optional container) { - Utils.checkNotNull(container, "container"); - this.container = container; - return this; - } - - public GetLibraryItemsMedia withVideoFrameRate(String videoFrameRate) { - Utils.checkNotNull(videoFrameRate, "videoFrameRate"); - this.videoFrameRate = Optional.ofNullable(videoFrameRate); - return this; - } - - public GetLibraryItemsMedia withVideoFrameRate(Optional videoFrameRate) { - Utils.checkNotNull(videoFrameRate, "videoFrameRate"); - this.videoFrameRate = videoFrameRate; - return this; - } - - public GetLibraryItemsMedia withVideoProfile(String videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = Optional.ofNullable(videoProfile); - return this; - } - - public GetLibraryItemsMedia withVideoProfile(Optional videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = videoProfile; - return this; - } - - public GetLibraryItemsMedia withPart(java.util.List part) { - Utils.checkNotNull(part, "part"); - this.part = Optional.ofNullable(part); - return this; - } - - public GetLibraryItemsMedia withPart(Optional> part) { - Utils.checkNotNull(part, "part"); - this.part = part; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryItemsMedia other = (GetLibraryItemsMedia) o; - return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.duration, other.duration) && - java.util.Objects.deepEquals(this.bitrate, other.bitrate) && - java.util.Objects.deepEquals(this.width, other.width) && - java.util.Objects.deepEquals(this.height, other.height) && - java.util.Objects.deepEquals(this.aspectRatio, other.aspectRatio) && - java.util.Objects.deepEquals(this.audioChannels, other.audioChannels) && - java.util.Objects.deepEquals(this.audioCodec, other.audioCodec) && - java.util.Objects.deepEquals(this.videoCodec, other.videoCodec) && - java.util.Objects.deepEquals(this.videoResolution, other.videoResolution) && - java.util.Objects.deepEquals(this.container, other.container) && - java.util.Objects.deepEquals(this.videoFrameRate, other.videoFrameRate) && - java.util.Objects.deepEquals(this.videoProfile, other.videoProfile) && - java.util.Objects.deepEquals(this.part, other.part); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id, - duration, - bitrate, - width, - height, - aspectRatio, - audioChannels, - audioCodec, - videoCodec, - videoResolution, - container, - videoFrameRate, - videoProfile, - part); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryItemsMedia.class, - "id", id, - "duration", duration, - "bitrate", bitrate, - "width", width, - "height", height, - "aspectRatio", aspectRatio, - "audioChannels", audioChannels, - "audioCodec", audioCodec, - "videoCodec", videoCodec, - "videoResolution", videoResolution, - "container", container, - "videoFrameRate", videoFrameRate, - "videoProfile", videoProfile, - "part", part); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional duration = Optional.empty(); - - private Optional bitrate = Optional.empty(); - - private Optional width = Optional.empty(); - - private Optional height = Optional.empty(); - - private Optional aspectRatio = Optional.empty(); - - private Optional audioChannels = Optional.empty(); - - private Optional audioCodec = Optional.empty(); - - private Optional videoCodec = Optional.empty(); - - private Optional videoResolution = Optional.empty(); - - private Optional container = Optional.empty(); - - private Optional videoFrameRate = Optional.empty(); - - private Optional videoProfile = Optional.empty(); - - private Optional> part = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder duration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public Builder duration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public Builder bitrate(int bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = Optional.ofNullable(bitrate); - return this; - } - - public Builder bitrate(Optional bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = bitrate; - return this; - } - - public Builder width(int width) { - Utils.checkNotNull(width, "width"); - this.width = Optional.ofNullable(width); - return this; - } - - public Builder width(Optional width) { - Utils.checkNotNull(width, "width"); - this.width = width; - return this; - } - - public Builder height(int height) { - Utils.checkNotNull(height, "height"); - this.height = Optional.ofNullable(height); - return this; - } - - public Builder height(Optional height) { - Utils.checkNotNull(height, "height"); - this.height = height; - return this; - } - - public Builder aspectRatio(double aspectRatio) { - Utils.checkNotNull(aspectRatio, "aspectRatio"); - this.aspectRatio = Optional.ofNullable(aspectRatio); - return this; - } - - public Builder aspectRatio(Optional aspectRatio) { - Utils.checkNotNull(aspectRatio, "aspectRatio"); - this.aspectRatio = aspectRatio; - return this; - } - - public Builder audioChannels(int audioChannels) { - Utils.checkNotNull(audioChannels, "audioChannels"); - this.audioChannels = Optional.ofNullable(audioChannels); - return this; - } - - public Builder audioChannels(Optional audioChannels) { - Utils.checkNotNull(audioChannels, "audioChannels"); - this.audioChannels = audioChannels; - return this; - } - - public Builder audioCodec(String audioCodec) { - Utils.checkNotNull(audioCodec, "audioCodec"); - this.audioCodec = Optional.ofNullable(audioCodec); - return this; - } - - public Builder audioCodec(Optional audioCodec) { - Utils.checkNotNull(audioCodec, "audioCodec"); - this.audioCodec = audioCodec; - return this; - } - - public Builder videoCodec(String videoCodec) { - Utils.checkNotNull(videoCodec, "videoCodec"); - this.videoCodec = Optional.ofNullable(videoCodec); - return this; - } - - public Builder videoCodec(Optional videoCodec) { - Utils.checkNotNull(videoCodec, "videoCodec"); - this.videoCodec = videoCodec; - return this; - } - - public Builder videoResolution(String videoResolution) { - Utils.checkNotNull(videoResolution, "videoResolution"); - this.videoResolution = Optional.ofNullable(videoResolution); - return this; - } - - public Builder videoResolution(Optional videoResolution) { - Utils.checkNotNull(videoResolution, "videoResolution"); - this.videoResolution = videoResolution; - return this; - } - - public Builder container(String container) { - Utils.checkNotNull(container, "container"); - this.container = Optional.ofNullable(container); - return this; - } - - public Builder container(Optional container) { - Utils.checkNotNull(container, "container"); - this.container = container; - return this; - } - - public Builder videoFrameRate(String videoFrameRate) { - Utils.checkNotNull(videoFrameRate, "videoFrameRate"); - this.videoFrameRate = Optional.ofNullable(videoFrameRate); - return this; - } - - public Builder videoFrameRate(Optional videoFrameRate) { - Utils.checkNotNull(videoFrameRate, "videoFrameRate"); - this.videoFrameRate = videoFrameRate; - return this; - } - - public Builder videoProfile(String videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = Optional.ofNullable(videoProfile); - return this; - } - - public Builder videoProfile(Optional videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = videoProfile; - return this; - } - - public Builder part(java.util.List part) { - Utils.checkNotNull(part, "part"); - this.part = Optional.ofNullable(part); - return this; - } - - public Builder part(Optional> part) { - Utils.checkNotNull(part, "part"); - this.part = part; - return this; - } - - public GetLibraryItemsMedia build() { - return new GetLibraryItemsMedia( - id, - duration, - bitrate, - width, - height, - aspectRatio, - audioChannels, - audioCodec, - videoCodec, - videoResolution, - container, - videoFrameRate, - videoProfile, - part); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsMediaContainer.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsMediaContainer.java deleted file mode 100644 index cb24c80a..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsMediaContainer.java +++ /dev/null @@ -1,756 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetLibraryItemsMediaContainer { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("allowSync") - private Optional allowSync; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("art") - private Optional art; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("identifier") - private Optional identifier; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionID") - private Optional librarySectionID; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionTitle") - private Optional librarySectionTitle; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionUUID") - private Optional librarySectionUUID; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("mediaTagPrefix") - private Optional mediaTagPrefix; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("mediaTagVersion") - private Optional mediaTagVersion; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("thumb") - private Optional thumb; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title1") - private Optional title1; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title2") - private Optional title2; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("viewGroup") - private Optional viewGroup; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("viewMode") - private Optional viewMode; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("mixedParents") - private Optional mixedParents; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Metadata") - private Optional> metadata; - - @JsonCreator - public GetLibraryItemsMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("allowSync") Optional allowSync, - @JsonProperty("art") Optional art, - @JsonProperty("identifier") Optional identifier, - @JsonProperty("librarySectionID") Optional librarySectionID, - @JsonProperty("librarySectionTitle") Optional librarySectionTitle, - @JsonProperty("librarySectionUUID") Optional librarySectionUUID, - @JsonProperty("mediaTagPrefix") Optional mediaTagPrefix, - @JsonProperty("mediaTagVersion") Optional mediaTagVersion, - @JsonProperty("thumb") Optional thumb, - @JsonProperty("title1") Optional title1, - @JsonProperty("title2") Optional title2, - @JsonProperty("viewGroup") Optional viewGroup, - @JsonProperty("viewMode") Optional viewMode, - @JsonProperty("mixedParents") Optional mixedParents, - @JsonProperty("Metadata") Optional> metadata) { - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(allowSync, "allowSync"); - Utils.checkNotNull(art, "art"); - Utils.checkNotNull(identifier, "identifier"); - Utils.checkNotNull(librarySectionID, "librarySectionID"); - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - Utils.checkNotNull(thumb, "thumb"); - Utils.checkNotNull(title1, "title1"); - Utils.checkNotNull(title2, "title2"); - Utils.checkNotNull(viewGroup, "viewGroup"); - Utils.checkNotNull(viewMode, "viewMode"); - Utils.checkNotNull(mixedParents, "mixedParents"); - Utils.checkNotNull(metadata, "metadata"); - 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; - } - - public GetLibraryItemsMediaContainer() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional allowSync() { - return (Optional) allowSync; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional art() { - return (Optional) art; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional identifier() { - return (Optional) identifier; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionID() { - return (Optional) librarySectionID; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionTitle() { - return (Optional) librarySectionTitle; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionUUID() { - return (Optional) librarySectionUUID; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaTagPrefix() { - return (Optional) mediaTagPrefix; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaTagVersion() { - return (Optional) mediaTagVersion; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional thumb() { - return (Optional) thumb; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title1() { - return (Optional) title1; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title2() { - return (Optional) title2; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional viewGroup() { - return (Optional) viewGroup; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional viewMode() { - return (Optional) viewMode; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mixedParents() { - return (Optional) mixedParents; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibraryItemsMediaContainer withSize(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public GetLibraryItemsMediaContainer withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public GetLibraryItemsMediaContainer withAllowSync(boolean allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = Optional.ofNullable(allowSync); - return this; - } - - public GetLibraryItemsMediaContainer withAllowSync(Optional allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = allowSync; - return this; - } - - public GetLibraryItemsMediaContainer withArt(String art) { - Utils.checkNotNull(art, "art"); - this.art = Optional.ofNullable(art); - return this; - } - - public GetLibraryItemsMediaContainer withArt(Optional art) { - Utils.checkNotNull(art, "art"); - this.art = art; - return this; - } - - public GetLibraryItemsMediaContainer withIdentifier(String identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = Optional.ofNullable(identifier); - return this; - } - - public GetLibraryItemsMediaContainer withIdentifier(Optional identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = identifier; - return this; - } - - public GetLibraryItemsMediaContainer withLibrarySectionID(LibrarySectionID librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = Optional.ofNullable(librarySectionID); - return this; - } - - public GetLibraryItemsMediaContainer withLibrarySectionID(Optional librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = librarySectionID; - return this; - } - - public GetLibraryItemsMediaContainer withLibrarySectionTitle(String librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = Optional.ofNullable(librarySectionTitle); - return this; - } - - public GetLibraryItemsMediaContainer withLibrarySectionTitle(Optional librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = librarySectionTitle; - return this; - } - - public GetLibraryItemsMediaContainer withLibrarySectionUUID(String librarySectionUUID) { - Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); - this.librarySectionUUID = Optional.ofNullable(librarySectionUUID); - return this; - } - - public GetLibraryItemsMediaContainer withLibrarySectionUUID(Optional librarySectionUUID) { - Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); - this.librarySectionUUID = librarySectionUUID; - return this; - } - - public GetLibraryItemsMediaContainer withMediaTagPrefix(String mediaTagPrefix) { - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - this.mediaTagPrefix = Optional.ofNullable(mediaTagPrefix); - return this; - } - - public GetLibraryItemsMediaContainer withMediaTagPrefix(Optional mediaTagPrefix) { - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - this.mediaTagPrefix = mediaTagPrefix; - return this; - } - - public GetLibraryItemsMediaContainer withMediaTagVersion(int mediaTagVersion) { - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - this.mediaTagVersion = Optional.ofNullable(mediaTagVersion); - return this; - } - - public GetLibraryItemsMediaContainer withMediaTagVersion(Optional mediaTagVersion) { - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - this.mediaTagVersion = mediaTagVersion; - return this; - } - - public GetLibraryItemsMediaContainer withThumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public GetLibraryItemsMediaContainer withThumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public GetLibraryItemsMediaContainer withTitle1(String title1) { - Utils.checkNotNull(title1, "title1"); - this.title1 = Optional.ofNullable(title1); - return this; - } - - public GetLibraryItemsMediaContainer withTitle1(Optional title1) { - Utils.checkNotNull(title1, "title1"); - this.title1 = title1; - return this; - } - - public GetLibraryItemsMediaContainer withTitle2(String title2) { - Utils.checkNotNull(title2, "title2"); - this.title2 = Optional.ofNullable(title2); - return this; - } - - public GetLibraryItemsMediaContainer withTitle2(Optional title2) { - Utils.checkNotNull(title2, "title2"); - this.title2 = title2; - return this; - } - - public GetLibraryItemsMediaContainer withViewGroup(String viewGroup) { - Utils.checkNotNull(viewGroup, "viewGroup"); - this.viewGroup = Optional.ofNullable(viewGroup); - return this; - } - - public GetLibraryItemsMediaContainer withViewGroup(Optional viewGroup) { - Utils.checkNotNull(viewGroup, "viewGroup"); - this.viewGroup = viewGroup; - return this; - } - - public GetLibraryItemsMediaContainer withViewMode(int viewMode) { - Utils.checkNotNull(viewMode, "viewMode"); - this.viewMode = Optional.ofNullable(viewMode); - return this; - } - - public GetLibraryItemsMediaContainer withViewMode(Optional viewMode) { - Utils.checkNotNull(viewMode, "viewMode"); - this.viewMode = viewMode; - return this; - } - - public GetLibraryItemsMediaContainer withMixedParents(boolean mixedParents) { - Utils.checkNotNull(mixedParents, "mixedParents"); - this.mixedParents = Optional.ofNullable(mixedParents); - return this; - } - - public GetLibraryItemsMediaContainer withMixedParents(Optional mixedParents) { - Utils.checkNotNull(mixedParents, "mixedParents"); - this.mixedParents = mixedParents; - return this; - } - - public GetLibraryItemsMediaContainer withMetadata(java.util.List metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public GetLibraryItemsMediaContainer withMetadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryItemsMediaContainer other = (GetLibraryItemsMediaContainer) o; - return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.allowSync, other.allowSync) && - java.util.Objects.deepEquals(this.art, other.art) && - java.util.Objects.deepEquals(this.identifier, other.identifier) && - java.util.Objects.deepEquals(this.librarySectionID, other.librarySectionID) && - java.util.Objects.deepEquals(this.librarySectionTitle, other.librarySectionTitle) && - java.util.Objects.deepEquals(this.librarySectionUUID, other.librarySectionUUID) && - java.util.Objects.deepEquals(this.mediaTagPrefix, other.mediaTagPrefix) && - java.util.Objects.deepEquals(this.mediaTagVersion, other.mediaTagVersion) && - java.util.Objects.deepEquals(this.thumb, other.thumb) && - java.util.Objects.deepEquals(this.title1, other.title1) && - java.util.Objects.deepEquals(this.title2, other.title2) && - java.util.Objects.deepEquals(this.viewGroup, other.viewGroup) && - java.util.Objects.deepEquals(this.viewMode, other.viewMode) && - java.util.Objects.deepEquals(this.mixedParents, other.mixedParents) && - java.util.Objects.deepEquals(this.metadata, other.metadata); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - size, - allowSync, - art, - identifier, - librarySectionID, - librarySectionTitle, - librarySectionUUID, - mediaTagPrefix, - mediaTagVersion, - thumb, - title1, - title2, - viewGroup, - viewMode, - mixedParents, - metadata); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryItemsMediaContainer.class, - "size", size, - "allowSync", allowSync, - "art", art, - "identifier", identifier, - "librarySectionID", librarySectionID, - "librarySectionTitle", librarySectionTitle, - "librarySectionUUID", librarySectionUUID, - "mediaTagPrefix", mediaTagPrefix, - "mediaTagVersion", mediaTagVersion, - "thumb", thumb, - "title1", title1, - "title2", title2, - "viewGroup", viewGroup, - "viewMode", viewMode, - "mixedParents", mixedParents, - "metadata", metadata); - } - - public final static class Builder { - - private Optional size = Optional.empty(); - - private Optional allowSync = Optional.empty(); - - private Optional art = Optional.empty(); - - private Optional identifier = Optional.empty(); - - private Optional librarySectionID = Optional.empty(); - - private Optional librarySectionTitle = Optional.empty(); - - private Optional librarySectionUUID = Optional.empty(); - - private Optional mediaTagPrefix = Optional.empty(); - - private Optional mediaTagVersion = Optional.empty(); - - private Optional thumb = Optional.empty(); - - private Optional title1 = Optional.empty(); - - private Optional title2 = Optional.empty(); - - private Optional viewGroup = Optional.empty(); - - private Optional viewMode = Optional.empty(); - - private Optional mixedParents = Optional.empty(); - - private Optional> metadata = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder size(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder allowSync(boolean allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = Optional.ofNullable(allowSync); - return this; - } - - public Builder allowSync(Optional allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = allowSync; - return this; - } - - public Builder art(String art) { - Utils.checkNotNull(art, "art"); - this.art = Optional.ofNullable(art); - return this; - } - - public Builder art(Optional art) { - Utils.checkNotNull(art, "art"); - this.art = art; - return this; - } - - public Builder identifier(String identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = Optional.ofNullable(identifier); - return this; - } - - public Builder identifier(Optional identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = identifier; - return this; - } - - public Builder librarySectionID(LibrarySectionID librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = Optional.ofNullable(librarySectionID); - return this; - } - - public Builder librarySectionID(Optional librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = librarySectionID; - return this; - } - - public Builder librarySectionTitle(String librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = Optional.ofNullable(librarySectionTitle); - return this; - } - - public Builder librarySectionTitle(Optional librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = librarySectionTitle; - return this; - } - - public Builder librarySectionUUID(String librarySectionUUID) { - Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); - this.librarySectionUUID = Optional.ofNullable(librarySectionUUID); - return this; - } - - public Builder librarySectionUUID(Optional librarySectionUUID) { - Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); - this.librarySectionUUID = librarySectionUUID; - return this; - } - - public Builder mediaTagPrefix(String mediaTagPrefix) { - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - this.mediaTagPrefix = Optional.ofNullable(mediaTagPrefix); - return this; - } - - public Builder mediaTagPrefix(Optional mediaTagPrefix) { - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - this.mediaTagPrefix = mediaTagPrefix; - return this; - } - - public Builder mediaTagVersion(int mediaTagVersion) { - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - this.mediaTagVersion = Optional.ofNullable(mediaTagVersion); - return this; - } - - public Builder mediaTagVersion(Optional mediaTagVersion) { - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - this.mediaTagVersion = mediaTagVersion; - return this; - } - - public Builder thumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public Builder thumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public Builder title1(String title1) { - Utils.checkNotNull(title1, "title1"); - this.title1 = Optional.ofNullable(title1); - return this; - } - - public Builder title1(Optional title1) { - Utils.checkNotNull(title1, "title1"); - this.title1 = title1; - return this; - } - - public Builder title2(String title2) { - Utils.checkNotNull(title2, "title2"); - this.title2 = Optional.ofNullable(title2); - return this; - } - - public Builder title2(Optional title2) { - Utils.checkNotNull(title2, "title2"); - this.title2 = title2; - return this; - } - - public Builder viewGroup(String viewGroup) { - Utils.checkNotNull(viewGroup, "viewGroup"); - this.viewGroup = Optional.ofNullable(viewGroup); - return this; - } - - public Builder viewGroup(Optional viewGroup) { - Utils.checkNotNull(viewGroup, "viewGroup"); - this.viewGroup = viewGroup; - return this; - } - - public Builder viewMode(int viewMode) { - Utils.checkNotNull(viewMode, "viewMode"); - this.viewMode = Optional.ofNullable(viewMode); - return this; - } - - public Builder viewMode(Optional viewMode) { - Utils.checkNotNull(viewMode, "viewMode"); - this.viewMode = viewMode; - return this; - } - - public Builder mixedParents(boolean mixedParents) { - Utils.checkNotNull(mixedParents, "mixedParents"); - this.mixedParents = Optional.ofNullable(mixedParents); - return this; - } - - public Builder mixedParents(Optional mixedParents) { - Utils.checkNotNull(mixedParents, "mixedParents"); - this.mixedParents = mixedParents; - return this; - } - - public Builder metadata(java.util.List metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public Builder metadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public GetLibraryItemsMediaContainer build() { - return new GetLibraryItemsMediaContainer( - size, - allowSync, - art, - identifier, - librarySectionID, - librarySectionTitle, - librarySectionUUID, - mediaTagPrefix, - mediaTagVersion, - thumb, - title1, - title2, - viewGroup, - viewMode, - mixedParents, - metadata); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsMetadata.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsMetadata.java deleted file mode 100644 index f73c1dc1..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsMetadata.java +++ /dev/null @@ -1,2520 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetLibraryItemsMetadata { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ratingKey") - private Optional ratingKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("guid") - private Optional guid; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("studio") - private Optional studio; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title") - private Optional title; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("contentRating") - private Optional contentRating; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("summary") - private Optional summary; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("rating") - private Optional rating; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audienceRating") - private Optional audienceRating; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("year") - private Optional year; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tagline") - private Optional tagline; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("thumb") - private Optional thumb; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("art") - private Optional art; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("duration") - private Optional duration; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("originallyAvailableAt") - private Optional originallyAvailableAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("addedAt") - private Optional addedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updatedAt") - private Optional updatedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audienceRatingImage") - private Optional audienceRatingImage; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("chapterSource") - private Optional chapterSource; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("primaryExtraKey") - private Optional primaryExtraKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ratingImage") - private Optional ratingImage; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("grandparentRatingKey") - private Optional grandparentRatingKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("grandparentGuid") - private Optional grandparentGuid; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("grandparentKey") - private Optional grandparentKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("grandparentTitle") - private Optional grandparentTitle; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("grandparentThumb") - private Optional grandparentThumb; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("grandparentArt") - private Optional grandparentArt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("grandparentTheme") - private Optional grandparentTheme; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Media") - private Optional> media; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Genre") - private Optional> genre; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Country") - private Optional> country; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Director") - private Optional> director; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Writer") - private Optional> writer; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Role") - private Optional> role; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("titleSort") - private Optional titleSort; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("viewCount") - private Optional viewCount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("lastViewedAt") - private Optional lastViewedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("originalTitle") - private Optional originalTitle; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("viewOffset") - private Optional viewOffset; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("skipCount") - private Optional skipCount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("index") - private Optional index; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("theme") - private Optional theme; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("leafCount") - private Optional leafCount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("viewedLeafCount") - private Optional viewedLeafCount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("childCount") - private Optional childCount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("hasPremiumExtras") - private Optional hasPremiumExtras; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("hasPremiumPrimaryExtra") - private Optional hasPremiumPrimaryExtra; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentRatingKey") - private Optional parentRatingKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentGuid") - private Optional parentGuid; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentStudio") - private Optional parentStudio; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentKey") - private Optional parentKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentTitle") - private Optional parentTitle; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentIndex") - private Optional parentIndex; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentYear") - private Optional parentYear; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentThumb") - private Optional parentThumb; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentTheme") - private Optional parentTheme; - - @JsonCreator - public GetLibraryItemsMetadata( - @JsonProperty("ratingKey") Optional ratingKey, - @JsonProperty("key") Optional key, - @JsonProperty("guid") Optional guid, - @JsonProperty("studio") Optional studio, - @JsonProperty("type") Optional type, - @JsonProperty("title") Optional title, - @JsonProperty("contentRating") Optional contentRating, - @JsonProperty("summary") Optional summary, - @JsonProperty("rating") Optional rating, - @JsonProperty("audienceRating") Optional audienceRating, - @JsonProperty("year") Optional year, - @JsonProperty("tagline") Optional tagline, - @JsonProperty("thumb") Optional thumb, - @JsonProperty("art") Optional art, - @JsonProperty("duration") Optional duration, - @JsonProperty("originallyAvailableAt") Optional originallyAvailableAt, - @JsonProperty("addedAt") Optional addedAt, - @JsonProperty("updatedAt") Optional updatedAt, - @JsonProperty("audienceRatingImage") Optional audienceRatingImage, - @JsonProperty("chapterSource") Optional chapterSource, - @JsonProperty("primaryExtraKey") Optional primaryExtraKey, - @JsonProperty("ratingImage") Optional ratingImage, - @JsonProperty("grandparentRatingKey") Optional grandparentRatingKey, - @JsonProperty("grandparentGuid") Optional grandparentGuid, - @JsonProperty("grandparentKey") Optional grandparentKey, - @JsonProperty("grandparentTitle") Optional grandparentTitle, - @JsonProperty("grandparentThumb") Optional grandparentThumb, - @JsonProperty("grandparentArt") Optional grandparentArt, - @JsonProperty("grandparentTheme") Optional grandparentTheme, - @JsonProperty("Media") Optional> media, - @JsonProperty("Genre") Optional> genre, - @JsonProperty("Country") Optional> country, - @JsonProperty("Director") Optional> director, - @JsonProperty("Writer") Optional> writer, - @JsonProperty("Role") Optional> role, - @JsonProperty("titleSort") Optional titleSort, - @JsonProperty("viewCount") Optional viewCount, - @JsonProperty("lastViewedAt") Optional lastViewedAt, - @JsonProperty("originalTitle") Optional originalTitle, - @JsonProperty("viewOffset") Optional viewOffset, - @JsonProperty("skipCount") Optional skipCount, - @JsonProperty("index") Optional index, - @JsonProperty("theme") Optional theme, - @JsonProperty("leafCount") Optional leafCount, - @JsonProperty("viewedLeafCount") Optional viewedLeafCount, - @JsonProperty("childCount") Optional childCount, - @JsonProperty("hasPremiumExtras") Optional hasPremiumExtras, - @JsonProperty("hasPremiumPrimaryExtra") Optional hasPremiumPrimaryExtra, - @JsonProperty("parentRatingKey") Optional parentRatingKey, - @JsonProperty("parentGuid") Optional parentGuid, - @JsonProperty("parentStudio") Optional parentStudio, - @JsonProperty("parentKey") Optional parentKey, - @JsonProperty("parentTitle") Optional parentTitle, - @JsonProperty("parentIndex") Optional parentIndex, - @JsonProperty("parentYear") Optional parentYear, - @JsonProperty("parentThumb") Optional parentThumb, - @JsonProperty("parentTheme") Optional parentTheme) { - Utils.checkNotNull(ratingKey, "ratingKey"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(guid, "guid"); - Utils.checkNotNull(studio, "studio"); - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(title, "title"); - Utils.checkNotNull(contentRating, "contentRating"); - Utils.checkNotNull(summary, "summary"); - Utils.checkNotNull(rating, "rating"); - Utils.checkNotNull(audienceRating, "audienceRating"); - Utils.checkNotNull(year, "year"); - Utils.checkNotNull(tagline, "tagline"); - Utils.checkNotNull(thumb, "thumb"); - Utils.checkNotNull(art, "art"); - Utils.checkNotNull(duration, "duration"); - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - Utils.checkNotNull(addedAt, "addedAt"); - Utils.checkNotNull(updatedAt, "updatedAt"); - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - Utils.checkNotNull(chapterSource, "chapterSource"); - Utils.checkNotNull(primaryExtraKey, "primaryExtraKey"); - Utils.checkNotNull(ratingImage, "ratingImage"); - Utils.checkNotNull(grandparentRatingKey, "grandparentRatingKey"); - Utils.checkNotNull(grandparentGuid, "grandparentGuid"); - Utils.checkNotNull(grandparentKey, "grandparentKey"); - Utils.checkNotNull(grandparentTitle, "grandparentTitle"); - Utils.checkNotNull(grandparentThumb, "grandparentThumb"); - Utils.checkNotNull(grandparentArt, "grandparentArt"); - Utils.checkNotNull(grandparentTheme, "grandparentTheme"); - Utils.checkNotNull(media, "media"); - Utils.checkNotNull(genre, "genre"); - Utils.checkNotNull(country, "country"); - Utils.checkNotNull(director, "director"); - Utils.checkNotNull(writer, "writer"); - Utils.checkNotNull(role, "role"); - Utils.checkNotNull(titleSort, "titleSort"); - Utils.checkNotNull(viewCount, "viewCount"); - Utils.checkNotNull(lastViewedAt, "lastViewedAt"); - Utils.checkNotNull(originalTitle, "originalTitle"); - Utils.checkNotNull(viewOffset, "viewOffset"); - Utils.checkNotNull(skipCount, "skipCount"); - Utils.checkNotNull(index, "index"); - Utils.checkNotNull(theme, "theme"); - Utils.checkNotNull(leafCount, "leafCount"); - Utils.checkNotNull(viewedLeafCount, "viewedLeafCount"); - Utils.checkNotNull(childCount, "childCount"); - Utils.checkNotNull(hasPremiumExtras, "hasPremiumExtras"); - Utils.checkNotNull(hasPremiumPrimaryExtra, "hasPremiumPrimaryExtra"); - Utils.checkNotNull(parentRatingKey, "parentRatingKey"); - Utils.checkNotNull(parentGuid, "parentGuid"); - Utils.checkNotNull(parentStudio, "parentStudio"); - Utils.checkNotNull(parentKey, "parentKey"); - Utils.checkNotNull(parentTitle, "parentTitle"); - Utils.checkNotNull(parentIndex, "parentIndex"); - Utils.checkNotNull(parentYear, "parentYear"); - Utils.checkNotNull(parentThumb, "parentThumb"); - Utils.checkNotNull(parentTheme, "parentTheme"); - 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; - } - - public GetLibraryItemsMetadata() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional ratingKey() { - return (Optional) ratingKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional guid() { - return (Optional) guid; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional studio() { - return (Optional) studio; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title() { - return (Optional) title; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional contentRating() { - return (Optional) contentRating; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional summary() { - return (Optional) summary; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional rating() { - return (Optional) rating; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audienceRating() { - return (Optional) audienceRating; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional year() { - return (Optional) year; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tagline() { - return (Optional) tagline; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional thumb() { - return (Optional) thumb; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional art() { - return (Optional) art; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional duration() { - return (Optional) duration; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional originallyAvailableAt() { - return (Optional) originallyAvailableAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional addedAt() { - return (Optional) addedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional updatedAt() { - return (Optional) updatedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audienceRatingImage() { - return (Optional) audienceRatingImage; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional chapterSource() { - return (Optional) chapterSource; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional primaryExtraKey() { - return (Optional) primaryExtraKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional ratingImage() { - return (Optional) ratingImage; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional grandparentRatingKey() { - return (Optional) grandparentRatingKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional grandparentGuid() { - return (Optional) grandparentGuid; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional grandparentKey() { - return (Optional) grandparentKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional grandparentTitle() { - return (Optional) grandparentTitle; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional grandparentThumb() { - return (Optional) grandparentThumb; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional grandparentArt() { - return (Optional) grandparentArt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional grandparentTheme() { - return (Optional) grandparentTheme; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> media() { - return (Optional>) media; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> genre() { - return (Optional>) genre; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> country() { - return (Optional>) country; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> director() { - return (Optional>) director; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> writer() { - return (Optional>) writer; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> role() { - return (Optional>) role; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional titleSort() { - return (Optional) titleSort; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional viewCount() { - return (Optional) viewCount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional lastViewedAt() { - return (Optional) lastViewedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional originalTitle() { - return (Optional) originalTitle; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional viewOffset() { - return (Optional) viewOffset; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional skipCount() { - return (Optional) skipCount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional index() { - return (Optional) index; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional theme() { - return (Optional) theme; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional leafCount() { - return (Optional) leafCount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional viewedLeafCount() { - return (Optional) viewedLeafCount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional childCount() { - return (Optional) childCount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional hasPremiumExtras() { - return (Optional) hasPremiumExtras; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional hasPremiumPrimaryExtra() { - return (Optional) hasPremiumPrimaryExtra; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentRatingKey() { - return (Optional) parentRatingKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentGuid() { - return (Optional) parentGuid; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentStudio() { - return (Optional) parentStudio; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentKey() { - return (Optional) parentKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentTitle() { - return (Optional) parentTitle; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentIndex() { - return (Optional) parentIndex; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentYear() { - return (Optional) parentYear; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentThumb() { - return (Optional) parentThumb; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentTheme() { - return (Optional) parentTheme; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibraryItemsMetadata withRatingKey(String ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public GetLibraryItemsMetadata withRatingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public GetLibraryItemsMetadata withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public GetLibraryItemsMetadata withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public GetLibraryItemsMetadata withGuid(String guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = Optional.ofNullable(guid); - return this; - } - - public GetLibraryItemsMetadata withGuid(Optional guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = guid; - return this; - } - - public GetLibraryItemsMetadata withStudio(String studio) { - Utils.checkNotNull(studio, "studio"); - this.studio = Optional.ofNullable(studio); - return this; - } - - public GetLibraryItemsMetadata withStudio(Optional studio) { - Utils.checkNotNull(studio, "studio"); - this.studio = studio; - return this; - } - - public GetLibraryItemsMetadata withType(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public GetLibraryItemsMetadata withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public GetLibraryItemsMetadata withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public GetLibraryItemsMetadata withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public GetLibraryItemsMetadata withContentRating(String contentRating) { - Utils.checkNotNull(contentRating, "contentRating"); - this.contentRating = Optional.ofNullable(contentRating); - return this; - } - - public GetLibraryItemsMetadata withContentRating(Optional contentRating) { - Utils.checkNotNull(contentRating, "contentRating"); - this.contentRating = contentRating; - return this; - } - - public GetLibraryItemsMetadata withSummary(String summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = Optional.ofNullable(summary); - return this; - } - - public GetLibraryItemsMetadata withSummary(Optional summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = summary; - return this; - } - - public GetLibraryItemsMetadata withRating(double rating) { - Utils.checkNotNull(rating, "rating"); - this.rating = Optional.ofNullable(rating); - return this; - } - - public GetLibraryItemsMetadata withRating(Optional rating) { - Utils.checkNotNull(rating, "rating"); - this.rating = rating; - return this; - } - - public GetLibraryItemsMetadata withAudienceRating(double audienceRating) { - Utils.checkNotNull(audienceRating, "audienceRating"); - this.audienceRating = Optional.ofNullable(audienceRating); - return this; - } - - public GetLibraryItemsMetadata withAudienceRating(Optional audienceRating) { - Utils.checkNotNull(audienceRating, "audienceRating"); - this.audienceRating = audienceRating; - return this; - } - - public GetLibraryItemsMetadata withYear(int year) { - Utils.checkNotNull(year, "year"); - this.year = Optional.ofNullable(year); - return this; - } - - public GetLibraryItemsMetadata withYear(Optional year) { - Utils.checkNotNull(year, "year"); - this.year = year; - return this; - } - - public GetLibraryItemsMetadata withTagline(String tagline) { - Utils.checkNotNull(tagline, "tagline"); - this.tagline = Optional.ofNullable(tagline); - return this; - } - - public GetLibraryItemsMetadata withTagline(Optional tagline) { - Utils.checkNotNull(tagline, "tagline"); - this.tagline = tagline; - return this; - } - - public GetLibraryItemsMetadata withThumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public GetLibraryItemsMetadata withThumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public GetLibraryItemsMetadata withArt(String art) { - Utils.checkNotNull(art, "art"); - this.art = Optional.ofNullable(art); - return this; - } - - public GetLibraryItemsMetadata withArt(Optional art) { - Utils.checkNotNull(art, "art"); - this.art = art; - return this; - } - - public GetLibraryItemsMetadata withDuration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public GetLibraryItemsMetadata withDuration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public GetLibraryItemsMetadata withOriginallyAvailableAt(LocalDate originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = Optional.ofNullable(originallyAvailableAt); - return this; - } - - public GetLibraryItemsMetadata withOriginallyAvailableAt(Optional originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = originallyAvailableAt; - return this; - } - - public GetLibraryItemsMetadata withAddedAt(int addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = Optional.ofNullable(addedAt); - return this; - } - - public GetLibraryItemsMetadata withAddedAt(Optional addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = addedAt; - return this; - } - - public GetLibraryItemsMetadata withUpdatedAt(int updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public GetLibraryItemsMetadata withUpdatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public GetLibraryItemsMetadata withAudienceRatingImage(String audienceRatingImage) { - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - this.audienceRatingImage = Optional.ofNullable(audienceRatingImage); - return this; - } - - public GetLibraryItemsMetadata withAudienceRatingImage(Optional audienceRatingImage) { - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - this.audienceRatingImage = audienceRatingImage; - return this; - } - - public GetLibraryItemsMetadata withChapterSource(String chapterSource) { - Utils.checkNotNull(chapterSource, "chapterSource"); - this.chapterSource = Optional.ofNullable(chapterSource); - return this; - } - - public GetLibraryItemsMetadata withChapterSource(Optional chapterSource) { - Utils.checkNotNull(chapterSource, "chapterSource"); - this.chapterSource = chapterSource; - return this; - } - - public GetLibraryItemsMetadata withPrimaryExtraKey(String primaryExtraKey) { - Utils.checkNotNull(primaryExtraKey, "primaryExtraKey"); - this.primaryExtraKey = Optional.ofNullable(primaryExtraKey); - return this; - } - - public GetLibraryItemsMetadata withPrimaryExtraKey(Optional primaryExtraKey) { - Utils.checkNotNull(primaryExtraKey, "primaryExtraKey"); - this.primaryExtraKey = primaryExtraKey; - return this; - } - - public GetLibraryItemsMetadata withRatingImage(String ratingImage) { - Utils.checkNotNull(ratingImage, "ratingImage"); - this.ratingImage = Optional.ofNullable(ratingImage); - return this; - } - - public GetLibraryItemsMetadata withRatingImage(Optional ratingImage) { - Utils.checkNotNull(ratingImage, "ratingImage"); - this.ratingImage = ratingImage; - return this; - } - - public GetLibraryItemsMetadata withGrandparentRatingKey(String grandparentRatingKey) { - Utils.checkNotNull(grandparentRatingKey, "grandparentRatingKey"); - this.grandparentRatingKey = Optional.ofNullable(grandparentRatingKey); - return this; - } - - public GetLibraryItemsMetadata withGrandparentRatingKey(Optional grandparentRatingKey) { - Utils.checkNotNull(grandparentRatingKey, "grandparentRatingKey"); - this.grandparentRatingKey = grandparentRatingKey; - return this; - } - - public GetLibraryItemsMetadata withGrandparentGuid(String grandparentGuid) { - Utils.checkNotNull(grandparentGuid, "grandparentGuid"); - this.grandparentGuid = Optional.ofNullable(grandparentGuid); - return this; - } - - public GetLibraryItemsMetadata withGrandparentGuid(Optional grandparentGuid) { - Utils.checkNotNull(grandparentGuid, "grandparentGuid"); - this.grandparentGuid = grandparentGuid; - return this; - } - - public GetLibraryItemsMetadata withGrandparentKey(String grandparentKey) { - Utils.checkNotNull(grandparentKey, "grandparentKey"); - this.grandparentKey = Optional.ofNullable(grandparentKey); - return this; - } - - public GetLibraryItemsMetadata withGrandparentKey(Optional grandparentKey) { - Utils.checkNotNull(grandparentKey, "grandparentKey"); - this.grandparentKey = grandparentKey; - return this; - } - - public GetLibraryItemsMetadata withGrandparentTitle(String grandparentTitle) { - Utils.checkNotNull(grandparentTitle, "grandparentTitle"); - this.grandparentTitle = Optional.ofNullable(grandparentTitle); - return this; - } - - public GetLibraryItemsMetadata withGrandparentTitle(Optional grandparentTitle) { - Utils.checkNotNull(grandparentTitle, "grandparentTitle"); - this.grandparentTitle = grandparentTitle; - return this; - } - - public GetLibraryItemsMetadata withGrandparentThumb(String grandparentThumb) { - Utils.checkNotNull(grandparentThumb, "grandparentThumb"); - this.grandparentThumb = Optional.ofNullable(grandparentThumb); - return this; - } - - public GetLibraryItemsMetadata withGrandparentThumb(Optional grandparentThumb) { - Utils.checkNotNull(grandparentThumb, "grandparentThumb"); - this.grandparentThumb = grandparentThumb; - return this; - } - - public GetLibraryItemsMetadata withGrandparentArt(String grandparentArt) { - Utils.checkNotNull(grandparentArt, "grandparentArt"); - this.grandparentArt = Optional.ofNullable(grandparentArt); - return this; - } - - public GetLibraryItemsMetadata withGrandparentArt(Optional grandparentArt) { - Utils.checkNotNull(grandparentArt, "grandparentArt"); - this.grandparentArt = grandparentArt; - return this; - } - - public GetLibraryItemsMetadata withGrandparentTheme(String grandparentTheme) { - Utils.checkNotNull(grandparentTheme, "grandparentTheme"); - this.grandparentTheme = Optional.ofNullable(grandparentTheme); - return this; - } - - public GetLibraryItemsMetadata withGrandparentTheme(Optional grandparentTheme) { - Utils.checkNotNull(grandparentTheme, "grandparentTheme"); - this.grandparentTheme = grandparentTheme; - return this; - } - - public GetLibraryItemsMetadata withMedia(java.util.List media) { - Utils.checkNotNull(media, "media"); - this.media = Optional.ofNullable(media); - return this; - } - - public GetLibraryItemsMetadata withMedia(Optional> media) { - Utils.checkNotNull(media, "media"); - this.media = media; - return this; - } - - public GetLibraryItemsMetadata withGenre(java.util.List genre) { - Utils.checkNotNull(genre, "genre"); - this.genre = Optional.ofNullable(genre); - return this; - } - - public GetLibraryItemsMetadata withGenre(Optional> genre) { - Utils.checkNotNull(genre, "genre"); - this.genre = genre; - return this; - } - - public GetLibraryItemsMetadata withCountry(java.util.List country) { - Utils.checkNotNull(country, "country"); - this.country = Optional.ofNullable(country); - return this; - } - - public GetLibraryItemsMetadata withCountry(Optional> country) { - Utils.checkNotNull(country, "country"); - this.country = country; - return this; - } - - public GetLibraryItemsMetadata withDirector(java.util.List director) { - Utils.checkNotNull(director, "director"); - this.director = Optional.ofNullable(director); - return this; - } - - public GetLibraryItemsMetadata withDirector(Optional> director) { - Utils.checkNotNull(director, "director"); - this.director = director; - return this; - } - - public GetLibraryItemsMetadata withWriter(java.util.List writer) { - Utils.checkNotNull(writer, "writer"); - this.writer = Optional.ofNullable(writer); - return this; - } - - public GetLibraryItemsMetadata withWriter(Optional> writer) { - Utils.checkNotNull(writer, "writer"); - this.writer = writer; - return this; - } - - public GetLibraryItemsMetadata withRole(java.util.List role) { - Utils.checkNotNull(role, "role"); - this.role = Optional.ofNullable(role); - return this; - } - - public GetLibraryItemsMetadata withRole(Optional> role) { - Utils.checkNotNull(role, "role"); - this.role = role; - return this; - } - - public GetLibraryItemsMetadata withTitleSort(String titleSort) { - Utils.checkNotNull(titleSort, "titleSort"); - this.titleSort = Optional.ofNullable(titleSort); - return this; - } - - public GetLibraryItemsMetadata withTitleSort(Optional titleSort) { - Utils.checkNotNull(titleSort, "titleSort"); - this.titleSort = titleSort; - return this; - } - - public GetLibraryItemsMetadata withViewCount(int viewCount) { - Utils.checkNotNull(viewCount, "viewCount"); - this.viewCount = Optional.ofNullable(viewCount); - return this; - } - - public GetLibraryItemsMetadata withViewCount(Optional viewCount) { - Utils.checkNotNull(viewCount, "viewCount"); - this.viewCount = viewCount; - return this; - } - - public GetLibraryItemsMetadata withLastViewedAt(int lastViewedAt) { - Utils.checkNotNull(lastViewedAt, "lastViewedAt"); - this.lastViewedAt = Optional.ofNullable(lastViewedAt); - return this; - } - - public GetLibraryItemsMetadata withLastViewedAt(Optional lastViewedAt) { - Utils.checkNotNull(lastViewedAt, "lastViewedAt"); - this.lastViewedAt = lastViewedAt; - return this; - } - - public GetLibraryItemsMetadata withOriginalTitle(String originalTitle) { - Utils.checkNotNull(originalTitle, "originalTitle"); - this.originalTitle = Optional.ofNullable(originalTitle); - return this; - } - - public GetLibraryItemsMetadata withOriginalTitle(Optional originalTitle) { - Utils.checkNotNull(originalTitle, "originalTitle"); - this.originalTitle = originalTitle; - return this; - } - - public GetLibraryItemsMetadata withViewOffset(int viewOffset) { - Utils.checkNotNull(viewOffset, "viewOffset"); - this.viewOffset = Optional.ofNullable(viewOffset); - return this; - } - - public GetLibraryItemsMetadata withViewOffset(Optional viewOffset) { - Utils.checkNotNull(viewOffset, "viewOffset"); - this.viewOffset = viewOffset; - return this; - } - - public GetLibraryItemsMetadata withSkipCount(int skipCount) { - Utils.checkNotNull(skipCount, "skipCount"); - this.skipCount = Optional.ofNullable(skipCount); - return this; - } - - public GetLibraryItemsMetadata withSkipCount(Optional skipCount) { - Utils.checkNotNull(skipCount, "skipCount"); - this.skipCount = skipCount; - return this; - } - - public GetLibraryItemsMetadata withIndex(int index) { - Utils.checkNotNull(index, "index"); - this.index = Optional.ofNullable(index); - return this; - } - - public GetLibraryItemsMetadata withIndex(Optional index) { - Utils.checkNotNull(index, "index"); - this.index = index; - return this; - } - - public GetLibraryItemsMetadata withTheme(String theme) { - Utils.checkNotNull(theme, "theme"); - this.theme = Optional.ofNullable(theme); - return this; - } - - public GetLibraryItemsMetadata withTheme(Optional theme) { - Utils.checkNotNull(theme, "theme"); - this.theme = theme; - return this; - } - - public GetLibraryItemsMetadata withLeafCount(int leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = Optional.ofNullable(leafCount); - return this; - } - - public GetLibraryItemsMetadata withLeafCount(Optional leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = leafCount; - return this; - } - - public GetLibraryItemsMetadata withViewedLeafCount(int viewedLeafCount) { - Utils.checkNotNull(viewedLeafCount, "viewedLeafCount"); - this.viewedLeafCount = Optional.ofNullable(viewedLeafCount); - return this; - } - - public GetLibraryItemsMetadata withViewedLeafCount(Optional viewedLeafCount) { - Utils.checkNotNull(viewedLeafCount, "viewedLeafCount"); - this.viewedLeafCount = viewedLeafCount; - return this; - } - - public GetLibraryItemsMetadata withChildCount(int childCount) { - Utils.checkNotNull(childCount, "childCount"); - this.childCount = Optional.ofNullable(childCount); - return this; - } - - public GetLibraryItemsMetadata withChildCount(Optional childCount) { - Utils.checkNotNull(childCount, "childCount"); - this.childCount = childCount; - return this; - } - - public GetLibraryItemsMetadata withHasPremiumExtras(String hasPremiumExtras) { - Utils.checkNotNull(hasPremiumExtras, "hasPremiumExtras"); - this.hasPremiumExtras = Optional.ofNullable(hasPremiumExtras); - return this; - } - - public GetLibraryItemsMetadata withHasPremiumExtras(Optional hasPremiumExtras) { - Utils.checkNotNull(hasPremiumExtras, "hasPremiumExtras"); - this.hasPremiumExtras = hasPremiumExtras; - return this; - } - - public GetLibraryItemsMetadata withHasPremiumPrimaryExtra(String hasPremiumPrimaryExtra) { - Utils.checkNotNull(hasPremiumPrimaryExtra, "hasPremiumPrimaryExtra"); - this.hasPremiumPrimaryExtra = Optional.ofNullable(hasPremiumPrimaryExtra); - return this; - } - - public GetLibraryItemsMetadata withHasPremiumPrimaryExtra(Optional hasPremiumPrimaryExtra) { - Utils.checkNotNull(hasPremiumPrimaryExtra, "hasPremiumPrimaryExtra"); - this.hasPremiumPrimaryExtra = hasPremiumPrimaryExtra; - return this; - } - - public GetLibraryItemsMetadata withParentRatingKey(String parentRatingKey) { - Utils.checkNotNull(parentRatingKey, "parentRatingKey"); - this.parentRatingKey = Optional.ofNullable(parentRatingKey); - return this; - } - - public GetLibraryItemsMetadata withParentRatingKey(Optional parentRatingKey) { - Utils.checkNotNull(parentRatingKey, "parentRatingKey"); - this.parentRatingKey = parentRatingKey; - return this; - } - - public GetLibraryItemsMetadata withParentGuid(String parentGuid) { - Utils.checkNotNull(parentGuid, "parentGuid"); - this.parentGuid = Optional.ofNullable(parentGuid); - return this; - } - - public GetLibraryItemsMetadata withParentGuid(Optional parentGuid) { - Utils.checkNotNull(parentGuid, "parentGuid"); - this.parentGuid = parentGuid; - return this; - } - - public GetLibraryItemsMetadata withParentStudio(String parentStudio) { - Utils.checkNotNull(parentStudio, "parentStudio"); - this.parentStudio = Optional.ofNullable(parentStudio); - return this; - } - - public GetLibraryItemsMetadata withParentStudio(Optional parentStudio) { - Utils.checkNotNull(parentStudio, "parentStudio"); - this.parentStudio = parentStudio; - return this; - } - - public GetLibraryItemsMetadata withParentKey(String parentKey) { - Utils.checkNotNull(parentKey, "parentKey"); - this.parentKey = Optional.ofNullable(parentKey); - return this; - } - - public GetLibraryItemsMetadata withParentKey(Optional parentKey) { - Utils.checkNotNull(parentKey, "parentKey"); - this.parentKey = parentKey; - return this; - } - - public GetLibraryItemsMetadata withParentTitle(String parentTitle) { - Utils.checkNotNull(parentTitle, "parentTitle"); - this.parentTitle = Optional.ofNullable(parentTitle); - return this; - } - - public GetLibraryItemsMetadata withParentTitle(Optional parentTitle) { - Utils.checkNotNull(parentTitle, "parentTitle"); - this.parentTitle = parentTitle; - return this; - } - - public GetLibraryItemsMetadata withParentIndex(int parentIndex) { - Utils.checkNotNull(parentIndex, "parentIndex"); - this.parentIndex = Optional.ofNullable(parentIndex); - return this; - } - - public GetLibraryItemsMetadata withParentIndex(Optional parentIndex) { - Utils.checkNotNull(parentIndex, "parentIndex"); - this.parentIndex = parentIndex; - return this; - } - - public GetLibraryItemsMetadata withParentYear(int parentYear) { - Utils.checkNotNull(parentYear, "parentYear"); - this.parentYear = Optional.ofNullable(parentYear); - return this; - } - - public GetLibraryItemsMetadata withParentYear(Optional parentYear) { - Utils.checkNotNull(parentYear, "parentYear"); - this.parentYear = parentYear; - return this; - } - - public GetLibraryItemsMetadata withParentThumb(String parentThumb) { - Utils.checkNotNull(parentThumb, "parentThumb"); - this.parentThumb = Optional.ofNullable(parentThumb); - return this; - } - - public GetLibraryItemsMetadata withParentThumb(Optional parentThumb) { - Utils.checkNotNull(parentThumb, "parentThumb"); - this.parentThumb = parentThumb; - return this; - } - - public GetLibraryItemsMetadata withParentTheme(String parentTheme) { - Utils.checkNotNull(parentTheme, "parentTheme"); - this.parentTheme = Optional.ofNullable(parentTheme); - return this; - } - - public GetLibraryItemsMetadata withParentTheme(Optional parentTheme) { - Utils.checkNotNull(parentTheme, "parentTheme"); - this.parentTheme = parentTheme; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryItemsMetadata other = (GetLibraryItemsMetadata) o; - return - java.util.Objects.deepEquals(this.ratingKey, other.ratingKey) && - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.guid, other.guid) && - java.util.Objects.deepEquals(this.studio, other.studio) && - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.title, other.title) && - java.util.Objects.deepEquals(this.contentRating, other.contentRating) && - java.util.Objects.deepEquals(this.summary, other.summary) && - java.util.Objects.deepEquals(this.rating, other.rating) && - java.util.Objects.deepEquals(this.audienceRating, other.audienceRating) && - java.util.Objects.deepEquals(this.year, other.year) && - java.util.Objects.deepEquals(this.tagline, other.tagline) && - java.util.Objects.deepEquals(this.thumb, other.thumb) && - java.util.Objects.deepEquals(this.art, other.art) && - java.util.Objects.deepEquals(this.duration, other.duration) && - java.util.Objects.deepEquals(this.originallyAvailableAt, other.originallyAvailableAt) && - java.util.Objects.deepEquals(this.addedAt, other.addedAt) && - java.util.Objects.deepEquals(this.updatedAt, other.updatedAt) && - java.util.Objects.deepEquals(this.audienceRatingImage, other.audienceRatingImage) && - java.util.Objects.deepEquals(this.chapterSource, other.chapterSource) && - java.util.Objects.deepEquals(this.primaryExtraKey, other.primaryExtraKey) && - java.util.Objects.deepEquals(this.ratingImage, other.ratingImage) && - java.util.Objects.deepEquals(this.grandparentRatingKey, other.grandparentRatingKey) && - java.util.Objects.deepEquals(this.grandparentGuid, other.grandparentGuid) && - java.util.Objects.deepEquals(this.grandparentKey, other.grandparentKey) && - java.util.Objects.deepEquals(this.grandparentTitle, other.grandparentTitle) && - java.util.Objects.deepEquals(this.grandparentThumb, other.grandparentThumb) && - java.util.Objects.deepEquals(this.grandparentArt, other.grandparentArt) && - java.util.Objects.deepEquals(this.grandparentTheme, other.grandparentTheme) && - java.util.Objects.deepEquals(this.media, other.media) && - java.util.Objects.deepEquals(this.genre, other.genre) && - java.util.Objects.deepEquals(this.country, other.country) && - java.util.Objects.deepEquals(this.director, other.director) && - java.util.Objects.deepEquals(this.writer, other.writer) && - java.util.Objects.deepEquals(this.role, other.role) && - java.util.Objects.deepEquals(this.titleSort, other.titleSort) && - java.util.Objects.deepEquals(this.viewCount, other.viewCount) && - java.util.Objects.deepEquals(this.lastViewedAt, other.lastViewedAt) && - java.util.Objects.deepEquals(this.originalTitle, other.originalTitle) && - java.util.Objects.deepEquals(this.viewOffset, other.viewOffset) && - java.util.Objects.deepEquals(this.skipCount, other.skipCount) && - java.util.Objects.deepEquals(this.index, other.index) && - java.util.Objects.deepEquals(this.theme, other.theme) && - java.util.Objects.deepEquals(this.leafCount, other.leafCount) && - java.util.Objects.deepEquals(this.viewedLeafCount, other.viewedLeafCount) && - java.util.Objects.deepEquals(this.childCount, other.childCount) && - java.util.Objects.deepEquals(this.hasPremiumExtras, other.hasPremiumExtras) && - java.util.Objects.deepEquals(this.hasPremiumPrimaryExtra, other.hasPremiumPrimaryExtra) && - java.util.Objects.deepEquals(this.parentRatingKey, other.parentRatingKey) && - java.util.Objects.deepEquals(this.parentGuid, other.parentGuid) && - java.util.Objects.deepEquals(this.parentStudio, other.parentStudio) && - java.util.Objects.deepEquals(this.parentKey, other.parentKey) && - java.util.Objects.deepEquals(this.parentTitle, other.parentTitle) && - java.util.Objects.deepEquals(this.parentIndex, other.parentIndex) && - java.util.Objects.deepEquals(this.parentYear, other.parentYear) && - java.util.Objects.deepEquals(this.parentThumb, other.parentThumb) && - java.util.Objects.deepEquals(this.parentTheme, other.parentTheme); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - ratingKey, - key, - guid, - studio, - type, - title, - contentRating, - summary, - rating, - audienceRating, - year, - tagline, - thumb, - art, - duration, - originallyAvailableAt, - addedAt, - updatedAt, - audienceRatingImage, - chapterSource, - primaryExtraKey, - ratingImage, - grandparentRatingKey, - grandparentGuid, - grandparentKey, - grandparentTitle, - grandparentThumb, - grandparentArt, - grandparentTheme, - media, - genre, - country, - director, - writer, - role, - titleSort, - viewCount, - lastViewedAt, - originalTitle, - viewOffset, - skipCount, - index, - theme, - leafCount, - viewedLeafCount, - childCount, - hasPremiumExtras, - hasPremiumPrimaryExtra, - parentRatingKey, - parentGuid, - parentStudio, - parentKey, - parentTitle, - parentIndex, - parentYear, - parentThumb, - parentTheme); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryItemsMetadata.class, - "ratingKey", ratingKey, - "key", key, - "guid", guid, - "studio", studio, - "type", type, - "title", title, - "contentRating", contentRating, - "summary", summary, - "rating", rating, - "audienceRating", audienceRating, - "year", year, - "tagline", tagline, - "thumb", thumb, - "art", art, - "duration", duration, - "originallyAvailableAt", originallyAvailableAt, - "addedAt", addedAt, - "updatedAt", updatedAt, - "audienceRatingImage", audienceRatingImage, - "chapterSource", chapterSource, - "primaryExtraKey", primaryExtraKey, - "ratingImage", ratingImage, - "grandparentRatingKey", grandparentRatingKey, - "grandparentGuid", grandparentGuid, - "grandparentKey", grandparentKey, - "grandparentTitle", grandparentTitle, - "grandparentThumb", grandparentThumb, - "grandparentArt", grandparentArt, - "grandparentTheme", grandparentTheme, - "media", media, - "genre", genre, - "country", country, - "director", director, - "writer", writer, - "role", role, - "titleSort", titleSort, - "viewCount", viewCount, - "lastViewedAt", lastViewedAt, - "originalTitle", originalTitle, - "viewOffset", viewOffset, - "skipCount", skipCount, - "index", index, - "theme", theme, - "leafCount", leafCount, - "viewedLeafCount", viewedLeafCount, - "childCount", childCount, - "hasPremiumExtras", hasPremiumExtras, - "hasPremiumPrimaryExtra", hasPremiumPrimaryExtra, - "parentRatingKey", parentRatingKey, - "parentGuid", parentGuid, - "parentStudio", parentStudio, - "parentKey", parentKey, - "parentTitle", parentTitle, - "parentIndex", parentIndex, - "parentYear", parentYear, - "parentThumb", parentThumb, - "parentTheme", parentTheme); - } - - public final static class Builder { - - private Optional ratingKey = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional guid = Optional.empty(); - - private Optional studio = Optional.empty(); - - private Optional type = Optional.empty(); - - private Optional title = Optional.empty(); - - private Optional contentRating = Optional.empty(); - - private Optional summary = Optional.empty(); - - private Optional rating = Optional.empty(); - - private Optional audienceRating = Optional.empty(); - - private Optional year = Optional.empty(); - - private Optional tagline = Optional.empty(); - - private Optional thumb = Optional.empty(); - - private Optional art = Optional.empty(); - - private Optional duration = Optional.empty(); - - private Optional originallyAvailableAt = Optional.empty(); - - private Optional addedAt = Optional.empty(); - - private Optional updatedAt = Optional.empty(); - - private Optional audienceRatingImage = Optional.empty(); - - private Optional chapterSource = Optional.empty(); - - private Optional primaryExtraKey = Optional.empty(); - - private Optional ratingImage = Optional.empty(); - - private Optional grandparentRatingKey = Optional.empty(); - - private Optional grandparentGuid = Optional.empty(); - - private Optional grandparentKey = Optional.empty(); - - private Optional grandparentTitle = Optional.empty(); - - private Optional grandparentThumb = Optional.empty(); - - private Optional grandparentArt = Optional.empty(); - - private Optional grandparentTheme = Optional.empty(); - - private Optional> media = Optional.empty(); - - private Optional> genre = Optional.empty(); - - private Optional> country = Optional.empty(); - - private Optional> director = Optional.empty(); - - private Optional> writer = Optional.empty(); - - private Optional> role = Optional.empty(); - - private Optional titleSort = Optional.empty(); - - private Optional viewCount = Optional.empty(); - - private Optional lastViewedAt = Optional.empty(); - - private Optional originalTitle = Optional.empty(); - - private Optional viewOffset = Optional.empty(); - - private Optional skipCount = Optional.empty(); - - private Optional index = Optional.empty(); - - private Optional theme = Optional.empty(); - - private Optional leafCount = Optional.empty(); - - private Optional viewedLeafCount = Optional.empty(); - - private Optional childCount = Optional.empty(); - - private Optional hasPremiumExtras = Optional.empty(); - - private Optional hasPremiumPrimaryExtra = Optional.empty(); - - private Optional parentRatingKey = Optional.empty(); - - private Optional parentGuid = Optional.empty(); - - private Optional parentStudio = Optional.empty(); - - private Optional parentKey = Optional.empty(); - - private Optional parentTitle = Optional.empty(); - - private Optional parentIndex = Optional.empty(); - - private Optional parentYear = Optional.empty(); - - private Optional parentThumb = Optional.empty(); - - private Optional parentTheme = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder ratingKey(String ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public Builder ratingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder guid(String guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = Optional.ofNullable(guid); - return this; - } - - public Builder guid(Optional guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = guid; - return this; - } - - public Builder studio(String studio) { - Utils.checkNotNull(studio, "studio"); - this.studio = Optional.ofNullable(studio); - return this; - } - - public Builder studio(Optional studio) { - Utils.checkNotNull(studio, "studio"); - this.studio = studio; - return this; - } - - public Builder type(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Builder contentRating(String contentRating) { - Utils.checkNotNull(contentRating, "contentRating"); - this.contentRating = Optional.ofNullable(contentRating); - return this; - } - - public Builder contentRating(Optional contentRating) { - Utils.checkNotNull(contentRating, "contentRating"); - this.contentRating = contentRating; - return this; - } - - public Builder summary(String summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = Optional.ofNullable(summary); - return this; - } - - public Builder summary(Optional summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = summary; - return this; - } - - public Builder rating(double rating) { - Utils.checkNotNull(rating, "rating"); - this.rating = Optional.ofNullable(rating); - return this; - } - - public Builder rating(Optional rating) { - Utils.checkNotNull(rating, "rating"); - this.rating = rating; - return this; - } - - public Builder audienceRating(double audienceRating) { - Utils.checkNotNull(audienceRating, "audienceRating"); - this.audienceRating = Optional.ofNullable(audienceRating); - return this; - } - - public Builder audienceRating(Optional audienceRating) { - Utils.checkNotNull(audienceRating, "audienceRating"); - this.audienceRating = audienceRating; - return this; - } - - public Builder year(int year) { - Utils.checkNotNull(year, "year"); - this.year = Optional.ofNullable(year); - return this; - } - - public Builder year(Optional year) { - Utils.checkNotNull(year, "year"); - this.year = year; - return this; - } - - public Builder tagline(String tagline) { - Utils.checkNotNull(tagline, "tagline"); - this.tagline = Optional.ofNullable(tagline); - return this; - } - - public Builder tagline(Optional tagline) { - Utils.checkNotNull(tagline, "tagline"); - this.tagline = tagline; - return this; - } - - public Builder thumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public Builder thumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public Builder art(String art) { - Utils.checkNotNull(art, "art"); - this.art = Optional.ofNullable(art); - return this; - } - - public Builder art(Optional art) { - Utils.checkNotNull(art, "art"); - this.art = art; - return this; - } - - public Builder duration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public Builder duration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public Builder originallyAvailableAt(LocalDate originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = Optional.ofNullable(originallyAvailableAt); - return this; - } - - public Builder originallyAvailableAt(Optional originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = originallyAvailableAt; - return this; - } - - public Builder addedAt(int addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = Optional.ofNullable(addedAt); - return this; - } - - public Builder addedAt(Optional addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = addedAt; - return this; - } - - public Builder updatedAt(int updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public Builder updatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public Builder audienceRatingImage(String audienceRatingImage) { - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - this.audienceRatingImage = Optional.ofNullable(audienceRatingImage); - return this; - } - - public Builder audienceRatingImage(Optional audienceRatingImage) { - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - this.audienceRatingImage = audienceRatingImage; - return this; - } - - public Builder chapterSource(String chapterSource) { - Utils.checkNotNull(chapterSource, "chapterSource"); - this.chapterSource = Optional.ofNullable(chapterSource); - return this; - } - - public Builder chapterSource(Optional chapterSource) { - Utils.checkNotNull(chapterSource, "chapterSource"); - this.chapterSource = chapterSource; - return this; - } - - public Builder primaryExtraKey(String primaryExtraKey) { - Utils.checkNotNull(primaryExtraKey, "primaryExtraKey"); - this.primaryExtraKey = Optional.ofNullable(primaryExtraKey); - return this; - } - - public Builder primaryExtraKey(Optional primaryExtraKey) { - Utils.checkNotNull(primaryExtraKey, "primaryExtraKey"); - this.primaryExtraKey = primaryExtraKey; - return this; - } - - public Builder ratingImage(String ratingImage) { - Utils.checkNotNull(ratingImage, "ratingImage"); - this.ratingImage = Optional.ofNullable(ratingImage); - return this; - } - - public Builder ratingImage(Optional ratingImage) { - Utils.checkNotNull(ratingImage, "ratingImage"); - this.ratingImage = ratingImage; - return this; - } - - public Builder grandparentRatingKey(String grandparentRatingKey) { - Utils.checkNotNull(grandparentRatingKey, "grandparentRatingKey"); - this.grandparentRatingKey = Optional.ofNullable(grandparentRatingKey); - return this; - } - - public Builder grandparentRatingKey(Optional grandparentRatingKey) { - Utils.checkNotNull(grandparentRatingKey, "grandparentRatingKey"); - this.grandparentRatingKey = grandparentRatingKey; - return this; - } - - public Builder grandparentGuid(String grandparentGuid) { - Utils.checkNotNull(grandparentGuid, "grandparentGuid"); - this.grandparentGuid = Optional.ofNullable(grandparentGuid); - return this; - } - - public Builder grandparentGuid(Optional grandparentGuid) { - Utils.checkNotNull(grandparentGuid, "grandparentGuid"); - this.grandparentGuid = grandparentGuid; - return this; - } - - public Builder grandparentKey(String grandparentKey) { - Utils.checkNotNull(grandparentKey, "grandparentKey"); - this.grandparentKey = Optional.ofNullable(grandparentKey); - return this; - } - - public Builder grandparentKey(Optional grandparentKey) { - Utils.checkNotNull(grandparentKey, "grandparentKey"); - this.grandparentKey = grandparentKey; - return this; - } - - public Builder grandparentTitle(String grandparentTitle) { - Utils.checkNotNull(grandparentTitle, "grandparentTitle"); - this.grandparentTitle = Optional.ofNullable(grandparentTitle); - return this; - } - - public Builder grandparentTitle(Optional grandparentTitle) { - Utils.checkNotNull(grandparentTitle, "grandparentTitle"); - this.grandparentTitle = grandparentTitle; - return this; - } - - public Builder grandparentThumb(String grandparentThumb) { - Utils.checkNotNull(grandparentThumb, "grandparentThumb"); - this.grandparentThumb = Optional.ofNullable(grandparentThumb); - return this; - } - - public Builder grandparentThumb(Optional grandparentThumb) { - Utils.checkNotNull(grandparentThumb, "grandparentThumb"); - this.grandparentThumb = grandparentThumb; - return this; - } - - public Builder grandparentArt(String grandparentArt) { - Utils.checkNotNull(grandparentArt, "grandparentArt"); - this.grandparentArt = Optional.ofNullable(grandparentArt); - return this; - } - - public Builder grandparentArt(Optional grandparentArt) { - Utils.checkNotNull(grandparentArt, "grandparentArt"); - this.grandparentArt = grandparentArt; - return this; - } - - public Builder grandparentTheme(String grandparentTheme) { - Utils.checkNotNull(grandparentTheme, "grandparentTheme"); - this.grandparentTheme = Optional.ofNullable(grandparentTheme); - return this; - } - - public Builder grandparentTheme(Optional grandparentTheme) { - Utils.checkNotNull(grandparentTheme, "grandparentTheme"); - this.grandparentTheme = grandparentTheme; - return this; - } - - public Builder media(java.util.List media) { - Utils.checkNotNull(media, "media"); - this.media = Optional.ofNullable(media); - return this; - } - - public Builder media(Optional> media) { - Utils.checkNotNull(media, "media"); - this.media = media; - return this; - } - - public Builder genre(java.util.List genre) { - Utils.checkNotNull(genre, "genre"); - this.genre = Optional.ofNullable(genre); - return this; - } - - public Builder genre(Optional> genre) { - Utils.checkNotNull(genre, "genre"); - this.genre = genre; - return this; - } - - public Builder country(java.util.List country) { - Utils.checkNotNull(country, "country"); - this.country = Optional.ofNullable(country); - return this; - } - - public Builder country(Optional> country) { - Utils.checkNotNull(country, "country"); - this.country = country; - return this; - } - - public Builder director(java.util.List director) { - Utils.checkNotNull(director, "director"); - this.director = Optional.ofNullable(director); - return this; - } - - public Builder director(Optional> director) { - Utils.checkNotNull(director, "director"); - this.director = director; - return this; - } - - public Builder writer(java.util.List writer) { - Utils.checkNotNull(writer, "writer"); - this.writer = Optional.ofNullable(writer); - return this; - } - - public Builder writer(Optional> writer) { - Utils.checkNotNull(writer, "writer"); - this.writer = writer; - return this; - } - - public Builder role(java.util.List role) { - Utils.checkNotNull(role, "role"); - this.role = Optional.ofNullable(role); - return this; - } - - public Builder role(Optional> role) { - Utils.checkNotNull(role, "role"); - this.role = role; - return this; - } - - public Builder titleSort(String titleSort) { - Utils.checkNotNull(titleSort, "titleSort"); - this.titleSort = Optional.ofNullable(titleSort); - return this; - } - - public Builder titleSort(Optional titleSort) { - Utils.checkNotNull(titleSort, "titleSort"); - this.titleSort = titleSort; - return this; - } - - public Builder viewCount(int viewCount) { - Utils.checkNotNull(viewCount, "viewCount"); - this.viewCount = Optional.ofNullable(viewCount); - return this; - } - - public Builder viewCount(Optional viewCount) { - Utils.checkNotNull(viewCount, "viewCount"); - this.viewCount = viewCount; - return this; - } - - public Builder lastViewedAt(int lastViewedAt) { - Utils.checkNotNull(lastViewedAt, "lastViewedAt"); - this.lastViewedAt = Optional.ofNullable(lastViewedAt); - return this; - } - - public Builder lastViewedAt(Optional lastViewedAt) { - Utils.checkNotNull(lastViewedAt, "lastViewedAt"); - this.lastViewedAt = lastViewedAt; - return this; - } - - public Builder originalTitle(String originalTitle) { - Utils.checkNotNull(originalTitle, "originalTitle"); - this.originalTitle = Optional.ofNullable(originalTitle); - return this; - } - - public Builder originalTitle(Optional originalTitle) { - Utils.checkNotNull(originalTitle, "originalTitle"); - this.originalTitle = originalTitle; - return this; - } - - public Builder viewOffset(int viewOffset) { - Utils.checkNotNull(viewOffset, "viewOffset"); - this.viewOffset = Optional.ofNullable(viewOffset); - return this; - } - - public Builder viewOffset(Optional viewOffset) { - Utils.checkNotNull(viewOffset, "viewOffset"); - this.viewOffset = viewOffset; - return this; - } - - public Builder skipCount(int skipCount) { - Utils.checkNotNull(skipCount, "skipCount"); - this.skipCount = Optional.ofNullable(skipCount); - return this; - } - - public Builder skipCount(Optional skipCount) { - Utils.checkNotNull(skipCount, "skipCount"); - this.skipCount = skipCount; - return this; - } - - public Builder index(int index) { - Utils.checkNotNull(index, "index"); - this.index = Optional.ofNullable(index); - return this; - } - - public Builder index(Optional index) { - Utils.checkNotNull(index, "index"); - this.index = index; - return this; - } - - public Builder theme(String theme) { - Utils.checkNotNull(theme, "theme"); - this.theme = Optional.ofNullable(theme); - return this; - } - - public Builder theme(Optional theme) { - Utils.checkNotNull(theme, "theme"); - this.theme = theme; - return this; - } - - public Builder leafCount(int leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = Optional.ofNullable(leafCount); - return this; - } - - public Builder leafCount(Optional leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = leafCount; - return this; - } - - public Builder viewedLeafCount(int viewedLeafCount) { - Utils.checkNotNull(viewedLeafCount, "viewedLeafCount"); - this.viewedLeafCount = Optional.ofNullable(viewedLeafCount); - return this; - } - - public Builder viewedLeafCount(Optional viewedLeafCount) { - Utils.checkNotNull(viewedLeafCount, "viewedLeafCount"); - this.viewedLeafCount = viewedLeafCount; - return this; - } - - public Builder childCount(int childCount) { - Utils.checkNotNull(childCount, "childCount"); - this.childCount = Optional.ofNullable(childCount); - return this; - } - - public Builder childCount(Optional childCount) { - Utils.checkNotNull(childCount, "childCount"); - this.childCount = childCount; - return this; - } - - public Builder hasPremiumExtras(String hasPremiumExtras) { - Utils.checkNotNull(hasPremiumExtras, "hasPremiumExtras"); - this.hasPremiumExtras = Optional.ofNullable(hasPremiumExtras); - return this; - } - - public Builder hasPremiumExtras(Optional hasPremiumExtras) { - Utils.checkNotNull(hasPremiumExtras, "hasPremiumExtras"); - this.hasPremiumExtras = hasPremiumExtras; - return this; - } - - public Builder hasPremiumPrimaryExtra(String hasPremiumPrimaryExtra) { - Utils.checkNotNull(hasPremiumPrimaryExtra, "hasPremiumPrimaryExtra"); - this.hasPremiumPrimaryExtra = Optional.ofNullable(hasPremiumPrimaryExtra); - return this; - } - - public Builder hasPremiumPrimaryExtra(Optional hasPremiumPrimaryExtra) { - Utils.checkNotNull(hasPremiumPrimaryExtra, "hasPremiumPrimaryExtra"); - this.hasPremiumPrimaryExtra = hasPremiumPrimaryExtra; - return this; - } - - public Builder parentRatingKey(String parentRatingKey) { - Utils.checkNotNull(parentRatingKey, "parentRatingKey"); - this.parentRatingKey = Optional.ofNullable(parentRatingKey); - return this; - } - - public Builder parentRatingKey(Optional parentRatingKey) { - Utils.checkNotNull(parentRatingKey, "parentRatingKey"); - this.parentRatingKey = parentRatingKey; - return this; - } - - public Builder parentGuid(String parentGuid) { - Utils.checkNotNull(parentGuid, "parentGuid"); - this.parentGuid = Optional.ofNullable(parentGuid); - return this; - } - - public Builder parentGuid(Optional parentGuid) { - Utils.checkNotNull(parentGuid, "parentGuid"); - this.parentGuid = parentGuid; - return this; - } - - public Builder parentStudio(String parentStudio) { - Utils.checkNotNull(parentStudio, "parentStudio"); - this.parentStudio = Optional.ofNullable(parentStudio); - return this; - } - - public Builder parentStudio(Optional parentStudio) { - Utils.checkNotNull(parentStudio, "parentStudio"); - this.parentStudio = parentStudio; - return this; - } - - public Builder parentKey(String parentKey) { - Utils.checkNotNull(parentKey, "parentKey"); - this.parentKey = Optional.ofNullable(parentKey); - return this; - } - - public Builder parentKey(Optional parentKey) { - Utils.checkNotNull(parentKey, "parentKey"); - this.parentKey = parentKey; - return this; - } - - public Builder parentTitle(String parentTitle) { - Utils.checkNotNull(parentTitle, "parentTitle"); - this.parentTitle = Optional.ofNullable(parentTitle); - return this; - } - - public Builder parentTitle(Optional parentTitle) { - Utils.checkNotNull(parentTitle, "parentTitle"); - this.parentTitle = parentTitle; - return this; - } - - public Builder parentIndex(int parentIndex) { - Utils.checkNotNull(parentIndex, "parentIndex"); - this.parentIndex = Optional.ofNullable(parentIndex); - return this; - } - - public Builder parentIndex(Optional parentIndex) { - Utils.checkNotNull(parentIndex, "parentIndex"); - this.parentIndex = parentIndex; - return this; - } - - public Builder parentYear(int parentYear) { - Utils.checkNotNull(parentYear, "parentYear"); - this.parentYear = Optional.ofNullable(parentYear); - return this; - } - - public Builder parentYear(Optional parentYear) { - Utils.checkNotNull(parentYear, "parentYear"); - this.parentYear = parentYear; - return this; - } - - public Builder parentThumb(String parentThumb) { - Utils.checkNotNull(parentThumb, "parentThumb"); - this.parentThumb = Optional.ofNullable(parentThumb); - return this; - } - - public Builder parentThumb(Optional parentThumb) { - Utils.checkNotNull(parentThumb, "parentThumb"); - this.parentThumb = parentThumb; - return this; - } - - public Builder parentTheme(String parentTheme) { - Utils.checkNotNull(parentTheme, "parentTheme"); - this.parentTheme = Optional.ofNullable(parentTheme); - return this; - } - - public Builder parentTheme(Optional parentTheme) { - Utils.checkNotNull(parentTheme, "parentTheme"); - this.parentTheme = parentTheme; - return this; - } - - public GetLibraryItemsMetadata build() { - return new GetLibraryItemsMetadata( - ratingKey, - key, - guid, - studio, - type, - title, - contentRating, - summary, - rating, - audienceRating, - year, - tagline, - thumb, - art, - duration, - originallyAvailableAt, - addedAt, - updatedAt, - audienceRatingImage, - chapterSource, - primaryExtraKey, - ratingImage, - grandparentRatingKey, - grandparentGuid, - grandparentKey, - grandparentTitle, - grandparentThumb, - grandparentArt, - grandparentTheme, - media, - genre, - country, - director, - writer, - role, - titleSort, - viewCount, - lastViewedAt, - originalTitle, - viewOffset, - skipCount, - index, - theme, - leafCount, - viewedLeafCount, - childCount, - hasPremiumExtras, - hasPremiumPrimaryExtra, - parentRatingKey, - parentGuid, - parentStudio, - parentKey, - parentTitle, - parentIndex, - parentYear, - parentThumb, - parentTheme); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsPart.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsPart.java deleted file mode 100644 index 3030623f..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsPart.java +++ /dev/null @@ -1,369 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetLibraryItemsPart { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("duration") - private Optional duration; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("file") - private Optional file; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("container") - private Optional container; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("videoProfile") - private Optional videoProfile; - - @JsonCreator - public GetLibraryItemsPart( - @JsonProperty("id") Optional id, - @JsonProperty("key") Optional key, - @JsonProperty("duration") Optional duration, - @JsonProperty("file") Optional file, - @JsonProperty("size") Optional size, - @JsonProperty("container") Optional container, - @JsonProperty("videoProfile") Optional videoProfile) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(duration, "duration"); - Utils.checkNotNull(file, "file"); - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(container, "container"); - Utils.checkNotNull(videoProfile, "videoProfile"); - this.id = id; - this.key = key; - this.duration = duration; - this.file = file; - this.size = size; - this.container = container; - this.videoProfile = videoProfile; - } - - public GetLibraryItemsPart() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional duration() { - return (Optional) duration; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional file() { - return (Optional) file; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional container() { - return (Optional) container; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional videoProfile() { - return (Optional) videoProfile; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibraryItemsPart withId(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public GetLibraryItemsPart withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public GetLibraryItemsPart withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public GetLibraryItemsPart withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public GetLibraryItemsPart withDuration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public GetLibraryItemsPart withDuration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public GetLibraryItemsPart withFile(String file) { - Utils.checkNotNull(file, "file"); - this.file = Optional.ofNullable(file); - return this; - } - - public GetLibraryItemsPart withFile(Optional file) { - Utils.checkNotNull(file, "file"); - this.file = file; - return this; - } - - public GetLibraryItemsPart withSize(long size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public GetLibraryItemsPart withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public GetLibraryItemsPart withContainer(String container) { - Utils.checkNotNull(container, "container"); - this.container = Optional.ofNullable(container); - return this; - } - - public GetLibraryItemsPart withContainer(Optional container) { - Utils.checkNotNull(container, "container"); - this.container = container; - return this; - } - - public GetLibraryItemsPart withVideoProfile(String videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = Optional.ofNullable(videoProfile); - return this; - } - - public GetLibraryItemsPart withVideoProfile(Optional videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = videoProfile; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryItemsPart other = (GetLibraryItemsPart) o; - return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.duration, other.duration) && - java.util.Objects.deepEquals(this.file, other.file) && - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.container, other.container) && - java.util.Objects.deepEquals(this.videoProfile, other.videoProfile); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id, - key, - duration, - file, - size, - container, - videoProfile); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryItemsPart.class, - "id", id, - "key", key, - "duration", duration, - "file", file, - "size", size, - "container", container, - "videoProfile", videoProfile); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional duration = Optional.empty(); - - private Optional file = Optional.empty(); - - private Optional size = Optional.empty(); - - private Optional container = Optional.empty(); - - private Optional videoProfile = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder duration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public Builder duration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public Builder file(String file) { - Utils.checkNotNull(file, "file"); - this.file = Optional.ofNullable(file); - return this; - } - - public Builder file(Optional file) { - Utils.checkNotNull(file, "file"); - this.file = file; - return this; - } - - public Builder size(long size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder container(String container) { - Utils.checkNotNull(container, "container"); - this.container = Optional.ofNullable(container); - return this; - } - - public Builder container(Optional container) { - Utils.checkNotNull(container, "container"); - this.container = container; - return this; - } - - public Builder videoProfile(String videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = Optional.ofNullable(videoProfile); - return this; - } - - public Builder videoProfile(Optional videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = videoProfile; - return this; - } - - public GetLibraryItemsPart build() { - return new GetLibraryItemsPart( - id, - key, - duration, - file, - size, - container, - videoProfile); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsRequest.java deleted file mode 100644 index ae3a0c00..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsRequest.java +++ /dev/null @@ -1,216 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetLibraryItemsRequest { - - /** - * the Id of the library to query - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionId") - private java.lang.Object sectionId; - - /** - * A key representing a specific tag within the section. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=tag") - private Tag tag; - - /** - * Adds the Guids object to the response - * - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeGuids") - private Optional includeGuids; - - @JsonCreator - public GetLibraryItemsRequest( - java.lang.Object sectionId, - Tag tag, - Optional includeGuids) { - Utils.checkNotNull(sectionId, "sectionId"); - Utils.checkNotNull(tag, "tag"); - Utils.checkNotNull(includeGuids, "includeGuids"); - this.sectionId = sectionId; - this.tag = tag; - this.includeGuids = includeGuids; - } - - public GetLibraryItemsRequest( - java.lang.Object sectionId, - Tag tag) { - this(sectionId, tag, Optional.empty()); - } - - /** - * the Id of the library to query - */ - @JsonIgnore - public java.lang.Object sectionId() { - return sectionId; - } - - /** - * A key representing a specific tag within the section. - */ - @JsonIgnore - public Tag tag() { - return tag; - } - - /** - * Adds the Guids object to the response - * - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional includeGuids() { - return (Optional) includeGuids; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * the Id of the library to query - */ - public GetLibraryItemsRequest withSectionId(java.lang.Object sectionId) { - Utils.checkNotNull(sectionId, "sectionId"); - this.sectionId = sectionId; - return this; - } - - /** - * A key representing a specific tag within the section. - */ - public GetLibraryItemsRequest withTag(Tag tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - /** - * Adds the Guids object to the response - * - */ - public GetLibraryItemsRequest withIncludeGuids(long includeGuids) { - Utils.checkNotNull(includeGuids, "includeGuids"); - this.includeGuids = Optional.ofNullable(includeGuids); - return this; - } - - /** - * Adds the Guids object to the response - * - */ - public GetLibraryItemsRequest withIncludeGuids(Optional includeGuids) { - Utils.checkNotNull(includeGuids, "includeGuids"); - this.includeGuids = includeGuids; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryItemsRequest other = (GetLibraryItemsRequest) o; - return - java.util.Objects.deepEquals(this.sectionId, other.sectionId) && - java.util.Objects.deepEquals(this.tag, other.tag) && - java.util.Objects.deepEquals(this.includeGuids, other.includeGuids); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - sectionId, - tag, - includeGuids); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryItemsRequest.class, - "sectionId", sectionId, - "tag", tag, - "includeGuids", includeGuids); - } - - public final static class Builder { - - private java.lang.Object sectionId; - - private Tag tag; - - private Optional includeGuids = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * the Id of the library to query - */ - public Builder sectionId(java.lang.Object sectionId) { - Utils.checkNotNull(sectionId, "sectionId"); - this.sectionId = sectionId; - return this; - } - - /** - * A key representing a specific tag within the section. - */ - public Builder tag(Tag tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - /** - * Adds the Guids object to the response - * - */ - public Builder includeGuids(long includeGuids) { - Utils.checkNotNull(includeGuids, "includeGuids"); - this.includeGuids = Optional.ofNullable(includeGuids); - return this; - } - - /** - * Adds the Guids object to the response - * - */ - public Builder includeGuids(Optional includeGuids) { - Utils.checkNotNull(includeGuids, "includeGuids"); - this.includeGuids = includeGuids; - return this; - } - - public GetLibraryItemsRequest build() { - return new GetLibraryItemsRequest( - sectionId, - tag, - includeGuids); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsRequestBuilder.java deleted file mode 100644 index d0d4df86..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsRequestBuilder.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetLibraryItemsRequestBuilder { - - private java.lang.Object sectionId; - private Tag tag; - private Optional includeGuids = Optional.empty(); - private final SDKMethodInterfaces.MethodCallGetLibraryItems sdk; - - public GetLibraryItemsRequestBuilder(SDKMethodInterfaces.MethodCallGetLibraryItems sdk) { - this.sdk = sdk; - } - - public GetLibraryItemsRequestBuilder sectionId(java.lang.Object sectionId) { - Utils.checkNotNull(sectionId, "sectionId"); - this.sectionId = sectionId; - return this; - } - - public GetLibraryItemsRequestBuilder tag(Tag tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public GetLibraryItemsRequestBuilder includeGuids(long includeGuids) { - Utils.checkNotNull(includeGuids, "includeGuids"); - this.includeGuids = Optional.of(includeGuids); - return this; - } - - public GetLibraryItemsRequestBuilder includeGuids(Optional includeGuids) { - Utils.checkNotNull(includeGuids, "includeGuids"); - this.includeGuids = includeGuids; - return this; - } - - public GetLibraryItemsResponse call() throws Exception { - - return sdk.getLibraryItems( - sectionId, - tag, - includeGuids); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsResponse.java deleted file mode 100644 index b02ae3d5..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsResponse.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetLibraryItemsResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * The contents of the library by section and tag - */ - private Optional object; - - @JsonCreator - public GetLibraryItemsResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional object) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.object = object; - } - - public GetLibraryItemsResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * The contents of the library by section and tag - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional object() { - return (Optional) object; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetLibraryItemsResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetLibraryItemsResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetLibraryItemsResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * The contents of the library by section and tag - */ - public GetLibraryItemsResponse withObject(GetLibraryItemsResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * The contents of the library by section and tag - */ - public GetLibraryItemsResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryItemsResponse other = (GetLibraryItemsResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.object, other.object); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse, - object); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryItemsResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "object", object); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional object = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * The contents of the library by section and tag - */ - public Builder object(GetLibraryItemsResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * The contents of the library by section and tag - */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - public GetLibraryItemsResponse build() { - return new GetLibraryItemsResponse( - contentType, - statusCode, - rawResponse, - object); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsResponseBody.java deleted file mode 100644 index c71bfc4e..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsResponseBody.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -/** - * GetLibraryItemsResponseBody - The contents of the library by section and tag - */ - -public class GetLibraryItemsResponseBody { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("MediaContainer") - private Optional mediaContainer; - - @JsonCreator - public GetLibraryItemsResponseBody( - @JsonProperty("MediaContainer") Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - } - - public GetLibraryItemsResponseBody() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaContainer() { - return (Optional) mediaContainer; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibraryItemsResponseBody withMediaContainer(GetLibraryItemsMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public GetLibraryItemsResponseBody withMediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryItemsResponseBody other = (GetLibraryItemsResponseBody) o; - return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - mediaContainer); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryItemsResponseBody.class, - "mediaContainer", mediaContainer); - } - - public final static class Builder { - - private Optional mediaContainer = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder mediaContainer(GetLibraryItemsMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public Builder mediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - public GetLibraryItemsResponseBody build() { - return new GetLibraryItemsResponseBody( - mediaContainer); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsRole.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsRole.java deleted file mode 100644 index 0b4224e5..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsRole.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetLibraryItemsRole { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tag") - private Optional tag; - - @JsonCreator - public GetLibraryItemsRole( - @JsonProperty("tag") Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - } - - public GetLibraryItemsRole() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tag() { - return (Optional) tag; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibraryItemsRole withTag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public GetLibraryItemsRole withTag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryItemsRole other = (GetLibraryItemsRole) o; - return - java.util.Objects.deepEquals(this.tag, other.tag); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - tag); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryItemsRole.class, - "tag", tag); - } - - public final static class Builder { - - private Optional tag = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder tag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Builder tag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public GetLibraryItemsRole build() { - return new GetLibraryItemsRole( - tag); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsWriter.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsWriter.java deleted file mode 100644 index e1f15e62..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryItemsWriter.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetLibraryItemsWriter { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tag") - private Optional tag; - - @JsonCreator - public GetLibraryItemsWriter( - @JsonProperty("tag") Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - } - - public GetLibraryItemsWriter() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tag() { - return (Optional) tag; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibraryItemsWriter withTag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public GetLibraryItemsWriter withTag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryItemsWriter other = (GetLibraryItemsWriter) o; - return - java.util.Objects.deepEquals(this.tag, other.tag); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - tag); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryItemsWriter.class, - "tag", tag); - } - - public final static class Builder { - - private Optional tag = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder tag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Builder tag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public GetLibraryItemsWriter build() { - return new GetLibraryItemsWriter( - tag); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryMediaContainer.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryMediaContainer.java deleted file mode 100644 index e9b6755b..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryMediaContainer.java +++ /dev/null @@ -1,713 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetLibraryMediaContainer { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("allowSync") - private Optional allowSync; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("art") - private Optional art; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("content") - private Optional content; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("identifier") - private Optional identifier; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionID") - private Optional librarySectionID; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("mediaTagPrefix") - private Optional mediaTagPrefix; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("mediaTagVersion") - private Optional mediaTagVersion; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("thumb") - private Optional thumb; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title1") - private Optional title1; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("viewGroup") - private Optional viewGroup; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("viewMode") - private Optional viewMode; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Directory") - private Optional> directory; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Type") - private Optional> type; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("FieldType") - private Optional> fieldType; - - @JsonCreator - public GetLibraryMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("allowSync") Optional allowSync, - @JsonProperty("art") Optional art, - @JsonProperty("content") Optional content, - @JsonProperty("identifier") Optional identifier, - @JsonProperty("librarySectionID") Optional librarySectionID, - @JsonProperty("mediaTagPrefix") Optional mediaTagPrefix, - @JsonProperty("mediaTagVersion") Optional mediaTagVersion, - @JsonProperty("thumb") Optional thumb, - @JsonProperty("title1") Optional title1, - @JsonProperty("viewGroup") Optional viewGroup, - @JsonProperty("viewMode") Optional viewMode, - @JsonProperty("Directory") Optional> directory, - @JsonProperty("Type") Optional> type, - @JsonProperty("FieldType") Optional> fieldType) { - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(allowSync, "allowSync"); - Utils.checkNotNull(art, "art"); - Utils.checkNotNull(content, "content"); - Utils.checkNotNull(identifier, "identifier"); - Utils.checkNotNull(librarySectionID, "librarySectionID"); - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - Utils.checkNotNull(thumb, "thumb"); - Utils.checkNotNull(title1, "title1"); - Utils.checkNotNull(viewGroup, "viewGroup"); - Utils.checkNotNull(viewMode, "viewMode"); - Utils.checkNotNull(directory, "directory"); - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(fieldType, "fieldType"); - 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; - } - - public GetLibraryMediaContainer() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional allowSync() { - return (Optional) allowSync; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional art() { - return (Optional) art; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional content() { - return (Optional) content; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional identifier() { - return (Optional) identifier; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionID() { - return (Optional) librarySectionID; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaTagPrefix() { - return (Optional) mediaTagPrefix; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaTagVersion() { - return (Optional) mediaTagVersion; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional thumb() { - return (Optional) thumb; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title1() { - return (Optional) title1; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional viewGroup() { - return (Optional) viewGroup; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional viewMode() { - return (Optional) viewMode; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> directory() { - return (Optional>) directory; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> type() { - return (Optional>) type; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> fieldType() { - return (Optional>) fieldType; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibraryMediaContainer withSize(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public GetLibraryMediaContainer withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public GetLibraryMediaContainer withAllowSync(boolean allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = Optional.ofNullable(allowSync); - return this; - } - - public GetLibraryMediaContainer withAllowSync(Optional allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = allowSync; - return this; - } - - public GetLibraryMediaContainer withArt(String art) { - Utils.checkNotNull(art, "art"); - this.art = Optional.ofNullable(art); - return this; - } - - public GetLibraryMediaContainer withArt(Optional art) { - Utils.checkNotNull(art, "art"); - this.art = art; - return this; - } - - public GetLibraryMediaContainer withContent(String content) { - Utils.checkNotNull(content, "content"); - this.content = Optional.ofNullable(content); - return this; - } - - public GetLibraryMediaContainer withContent(Optional content) { - Utils.checkNotNull(content, "content"); - this.content = content; - return this; - } - - public GetLibraryMediaContainer withIdentifier(String identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = Optional.ofNullable(identifier); - return this; - } - - public GetLibraryMediaContainer withIdentifier(Optional identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = identifier; - return this; - } - - public GetLibraryMediaContainer withLibrarySectionID(int librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = Optional.ofNullable(librarySectionID); - return this; - } - - public GetLibraryMediaContainer withLibrarySectionID(Optional librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = librarySectionID; - return this; - } - - public GetLibraryMediaContainer withMediaTagPrefix(String mediaTagPrefix) { - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - this.mediaTagPrefix = Optional.ofNullable(mediaTagPrefix); - return this; - } - - public GetLibraryMediaContainer withMediaTagPrefix(Optional mediaTagPrefix) { - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - this.mediaTagPrefix = mediaTagPrefix; - return this; - } - - public GetLibraryMediaContainer withMediaTagVersion(int mediaTagVersion) { - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - this.mediaTagVersion = Optional.ofNullable(mediaTagVersion); - return this; - } - - public GetLibraryMediaContainer withMediaTagVersion(Optional mediaTagVersion) { - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - this.mediaTagVersion = mediaTagVersion; - return this; - } - - public GetLibraryMediaContainer withThumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public GetLibraryMediaContainer withThumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public GetLibraryMediaContainer withTitle1(String title1) { - Utils.checkNotNull(title1, "title1"); - this.title1 = Optional.ofNullable(title1); - return this; - } - - public GetLibraryMediaContainer withTitle1(Optional title1) { - Utils.checkNotNull(title1, "title1"); - this.title1 = title1; - return this; - } - - public GetLibraryMediaContainer withViewGroup(String viewGroup) { - Utils.checkNotNull(viewGroup, "viewGroup"); - this.viewGroup = Optional.ofNullable(viewGroup); - return this; - } - - public GetLibraryMediaContainer withViewGroup(Optional viewGroup) { - Utils.checkNotNull(viewGroup, "viewGroup"); - this.viewGroup = viewGroup; - return this; - } - - public GetLibraryMediaContainer withViewMode(int viewMode) { - Utils.checkNotNull(viewMode, "viewMode"); - this.viewMode = Optional.ofNullable(viewMode); - return this; - } - - public GetLibraryMediaContainer withViewMode(Optional viewMode) { - Utils.checkNotNull(viewMode, "viewMode"); - this.viewMode = viewMode; - return this; - } - - public GetLibraryMediaContainer withDirectory(java.util.List directory) { - Utils.checkNotNull(directory, "directory"); - this.directory = Optional.ofNullable(directory); - return this; - } - - public GetLibraryMediaContainer withDirectory(Optional> directory) { - Utils.checkNotNull(directory, "directory"); - this.directory = directory; - return this; - } - - public GetLibraryMediaContainer withType(java.util.List type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public GetLibraryMediaContainer withType(Optional> type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public GetLibraryMediaContainer withFieldType(java.util.List fieldType) { - Utils.checkNotNull(fieldType, "fieldType"); - this.fieldType = Optional.ofNullable(fieldType); - return this; - } - - public GetLibraryMediaContainer withFieldType(Optional> fieldType) { - Utils.checkNotNull(fieldType, "fieldType"); - this.fieldType = fieldType; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryMediaContainer other = (GetLibraryMediaContainer) o; - return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.allowSync, other.allowSync) && - java.util.Objects.deepEquals(this.art, other.art) && - java.util.Objects.deepEquals(this.content, other.content) && - java.util.Objects.deepEquals(this.identifier, other.identifier) && - java.util.Objects.deepEquals(this.librarySectionID, other.librarySectionID) && - java.util.Objects.deepEquals(this.mediaTagPrefix, other.mediaTagPrefix) && - java.util.Objects.deepEquals(this.mediaTagVersion, other.mediaTagVersion) && - java.util.Objects.deepEquals(this.thumb, other.thumb) && - java.util.Objects.deepEquals(this.title1, other.title1) && - java.util.Objects.deepEquals(this.viewGroup, other.viewGroup) && - java.util.Objects.deepEquals(this.viewMode, other.viewMode) && - java.util.Objects.deepEquals(this.directory, other.directory) && - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.fieldType, other.fieldType); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - size, - allowSync, - art, - content, - identifier, - librarySectionID, - mediaTagPrefix, - mediaTagVersion, - thumb, - title1, - viewGroup, - viewMode, - directory, - type, - fieldType); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryMediaContainer.class, - "size", size, - "allowSync", allowSync, - "art", art, - "content", content, - "identifier", identifier, - "librarySectionID", librarySectionID, - "mediaTagPrefix", mediaTagPrefix, - "mediaTagVersion", mediaTagVersion, - "thumb", thumb, - "title1", title1, - "viewGroup", viewGroup, - "viewMode", viewMode, - "directory", directory, - "type", type, - "fieldType", fieldType); - } - - public final static class Builder { - - private Optional size = Optional.empty(); - - private Optional allowSync = Optional.empty(); - - private Optional art = Optional.empty(); - - private Optional content = Optional.empty(); - - private Optional identifier = Optional.empty(); - - private Optional librarySectionID = Optional.empty(); - - private Optional mediaTagPrefix = Optional.empty(); - - private Optional mediaTagVersion = Optional.empty(); - - private Optional thumb = Optional.empty(); - - private Optional title1 = Optional.empty(); - - private Optional viewGroup = Optional.empty(); - - private Optional viewMode = Optional.empty(); - - private Optional> directory = Optional.empty(); - - private Optional> type = Optional.empty(); - - private Optional> fieldType = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder size(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder allowSync(boolean allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = Optional.ofNullable(allowSync); - return this; - } - - public Builder allowSync(Optional allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = allowSync; - return this; - } - - public Builder art(String art) { - Utils.checkNotNull(art, "art"); - this.art = Optional.ofNullable(art); - return this; - } - - public Builder art(Optional art) { - Utils.checkNotNull(art, "art"); - this.art = art; - return this; - } - - public Builder content(String content) { - Utils.checkNotNull(content, "content"); - this.content = Optional.ofNullable(content); - return this; - } - - public Builder content(Optional content) { - Utils.checkNotNull(content, "content"); - this.content = content; - return this; - } - - public Builder identifier(String identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = Optional.ofNullable(identifier); - return this; - } - - public Builder identifier(Optional identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = identifier; - return this; - } - - public Builder librarySectionID(int librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = Optional.ofNullable(librarySectionID); - return this; - } - - public Builder librarySectionID(Optional librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = librarySectionID; - return this; - } - - public Builder mediaTagPrefix(String mediaTagPrefix) { - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - this.mediaTagPrefix = Optional.ofNullable(mediaTagPrefix); - return this; - } - - public Builder mediaTagPrefix(Optional mediaTagPrefix) { - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - this.mediaTagPrefix = mediaTagPrefix; - return this; - } - - public Builder mediaTagVersion(int mediaTagVersion) { - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - this.mediaTagVersion = Optional.ofNullable(mediaTagVersion); - return this; - } - - public Builder mediaTagVersion(Optional mediaTagVersion) { - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - this.mediaTagVersion = mediaTagVersion; - return this; - } - - public Builder thumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public Builder thumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public Builder title1(String title1) { - Utils.checkNotNull(title1, "title1"); - this.title1 = Optional.ofNullable(title1); - return this; - } - - public Builder title1(Optional title1) { - Utils.checkNotNull(title1, "title1"); - this.title1 = title1; - return this; - } - - public Builder viewGroup(String viewGroup) { - Utils.checkNotNull(viewGroup, "viewGroup"); - this.viewGroup = Optional.ofNullable(viewGroup); - return this; - } - - public Builder viewGroup(Optional viewGroup) { - Utils.checkNotNull(viewGroup, "viewGroup"); - this.viewGroup = viewGroup; - return this; - } - - public Builder viewMode(int viewMode) { - Utils.checkNotNull(viewMode, "viewMode"); - this.viewMode = Optional.ofNullable(viewMode); - return this; - } - - public Builder viewMode(Optional viewMode) { - Utils.checkNotNull(viewMode, "viewMode"); - this.viewMode = viewMode; - return this; - } - - public Builder directory(java.util.List directory) { - Utils.checkNotNull(directory, "directory"); - this.directory = Optional.ofNullable(directory); - return this; - } - - public Builder directory(Optional> directory) { - Utils.checkNotNull(directory, "directory"); - this.directory = directory; - return this; - } - - public Builder type(java.util.List type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional> type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Builder fieldType(java.util.List fieldType) { - Utils.checkNotNull(fieldType, "fieldType"); - this.fieldType = Optional.ofNullable(fieldType); - return this; - } - - public Builder fieldType(Optional> fieldType) { - Utils.checkNotNull(fieldType, "fieldType"); - this.fieldType = fieldType; - return this; - } - - public GetLibraryMediaContainer build() { - return new GetLibraryMediaContainer( - size, - allowSync, - art, - content, - identifier, - librarySectionID, - mediaTagPrefix, - mediaTagVersion, - thumb, - title1, - viewGroup, - viewMode, - directory, - type, - fieldType); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryRequest.java deleted file mode 100644 index 936e51c3..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryRequest.java +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetLibraryRequest { - - /** - * the Id of the library to query - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionId") - private double sectionId; - - /** - * 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. - * - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeDetails") - private Optional includeDetails; - - @JsonCreator - public GetLibraryRequest( - double sectionId, - Optional includeDetails) { - Utils.checkNotNull(sectionId, "sectionId"); - Utils.checkNotNull(includeDetails, "includeDetails"); - this.sectionId = sectionId; - this.includeDetails = includeDetails; - } - - public GetLibraryRequest( - double sectionId) { - this(sectionId, Optional.empty()); - } - - /** - * the Id of the library to query - */ - @JsonIgnore - public double sectionId() { - return sectionId; - } - - /** - * 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. - * - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional includeDetails() { - return (Optional) includeDetails; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * the Id of the library to query - */ - public GetLibraryRequest withSectionId(double sectionId) { - Utils.checkNotNull(sectionId, "sectionId"); - this.sectionId = sectionId; - return this; - } - - /** - * 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. - * - */ - public GetLibraryRequest withIncludeDetails(IncludeDetails includeDetails) { - Utils.checkNotNull(includeDetails, "includeDetails"); - this.includeDetails = Optional.ofNullable(includeDetails); - return this; - } - - /** - * 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. - * - */ - public GetLibraryRequest withIncludeDetails(Optional includeDetails) { - Utils.checkNotNull(includeDetails, "includeDetails"); - this.includeDetails = includeDetails; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryRequest other = (GetLibraryRequest) o; - return - java.util.Objects.deepEquals(this.sectionId, other.sectionId) && - java.util.Objects.deepEquals(this.includeDetails, other.includeDetails); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - sectionId, - includeDetails); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryRequest.class, - "sectionId", sectionId, - "includeDetails", includeDetails); - } - - public final static class Builder { - - private Double sectionId; - - private Optional includeDetails; - - private Builder() { - // force use of static builder() method - } - - /** - * the Id of the library to query - */ - public Builder sectionId(double sectionId) { - Utils.checkNotNull(sectionId, "sectionId"); - this.sectionId = sectionId; - return this; - } - - /** - * 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. - * - */ - public Builder includeDetails(IncludeDetails includeDetails) { - Utils.checkNotNull(includeDetails, "includeDetails"); - this.includeDetails = Optional.ofNullable(includeDetails); - return this; - } - - /** - * 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. - * - */ - public Builder includeDetails(Optional includeDetails) { - Utils.checkNotNull(includeDetails, "includeDetails"); - this.includeDetails = includeDetails; - return this; - } - - public GetLibraryRequest build() { - if (includeDetails == null) { - includeDetails = _SINGLETON_VALUE_IncludeDetails.value(); - } - return new GetLibraryRequest( - sectionId, - includeDetails); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_IncludeDetails = - new LazySingletonValue<>( - "includeDetails", - "0", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryRequestBuilder.java deleted file mode 100644 index e67444a4..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryRequestBuilder.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetLibraryRequestBuilder { - - private Double sectionId; - private Optional includeDetails = Utils.readDefaultOrConstValue( - "includeDetails", - "0", - new TypeReference>() {}); - private final SDKMethodInterfaces.MethodCallGetLibrary sdk; - - public GetLibraryRequestBuilder(SDKMethodInterfaces.MethodCallGetLibrary sdk) { - this.sdk = sdk; - } - - public GetLibraryRequestBuilder sectionId(double sectionId) { - Utils.checkNotNull(sectionId, "sectionId"); - this.sectionId = sectionId; - return this; - } - - public GetLibraryRequestBuilder includeDetails(IncludeDetails includeDetails) { - Utils.checkNotNull(includeDetails, "includeDetails"); - this.includeDetails = Optional.of(includeDetails); - return this; - } - - public GetLibraryRequestBuilder includeDetails(Optional includeDetails) { - Utils.checkNotNull(includeDetails, "includeDetails"); - this.includeDetails = includeDetails; - return this; - } - - public GetLibraryResponse call() throws Exception { - if (includeDetails == null) { - includeDetails = _SINGLETON_VALUE_IncludeDetails.value(); - } - - return sdk.getLibrary( - sectionId, - includeDetails); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_IncludeDetails = - new LazySingletonValue<>( - "includeDetails", - "0", - new TypeReference>() {}); -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryResponse.java deleted file mode 100644 index 8d74462c..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryResponse.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetLibraryResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * The details of the library - */ - private Optional object; - - @JsonCreator - public GetLibraryResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional object) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.object = object; - } - - public GetLibraryResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * The details of the library - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional object() { - return (Optional) object; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetLibraryResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetLibraryResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetLibraryResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * The details of the library - */ - public GetLibraryResponse withObject(GetLibraryResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * The details of the library - */ - public GetLibraryResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryResponse other = (GetLibraryResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.object, other.object); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse, - object); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "object", object); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional object = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * The details of the library - */ - public Builder object(GetLibraryResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * The details of the library - */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - public GetLibraryResponse build() { - return new GetLibraryResponse( - contentType, - statusCode, - rawResponse, - object); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryResponseBody.java deleted file mode 100644 index c23b0c7e..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryResponseBody.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -/** - * GetLibraryResponseBody - The details of the library - */ - -public class GetLibraryResponseBody { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("MediaContainer") - private Optional mediaContainer; - - @JsonCreator - public GetLibraryResponseBody( - @JsonProperty("MediaContainer") Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - } - - public GetLibraryResponseBody() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaContainer() { - return (Optional) mediaContainer; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibraryResponseBody withMediaContainer(GetLibraryMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public GetLibraryResponseBody withMediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryResponseBody other = (GetLibraryResponseBody) o; - return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - mediaContainer); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryResponseBody.class, - "mediaContainer", mediaContainer); - } - - public final static class Builder { - - private Optional mediaContainer = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder mediaContainer(GetLibraryMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public Builder mediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - public GetLibraryResponseBody build() { - return new GetLibraryResponseBody( - mediaContainer); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryType.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryType.java deleted file mode 100644 index a0f6ee3d..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetLibraryType.java +++ /dev/null @@ -1,369 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetLibraryType { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title") - private Optional title; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("active") - private Optional active; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Filter") - private Optional> filter; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Sort") - private Optional> sort; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Field") - private Optional> field; - - @JsonCreator - public GetLibraryType( - @JsonProperty("key") Optional key, - @JsonProperty("type") Optional type, - @JsonProperty("title") Optional title, - @JsonProperty("active") Optional active, - @JsonProperty("Filter") Optional> filter, - @JsonProperty("Sort") Optional> sort, - @JsonProperty("Field") Optional> field) { - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(title, "title"); - Utils.checkNotNull(active, "active"); - Utils.checkNotNull(filter, "filter"); - Utils.checkNotNull(sort, "sort"); - Utils.checkNotNull(field, "field"); - this.key = key; - this.type = type; - this.title = title; - this.active = active; - this.filter = filter; - this.sort = sort; - this.field = field; - } - - public GetLibraryType() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title() { - return (Optional) title; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional active() { - return (Optional) active; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> filter() { - return (Optional>) filter; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> sort() { - return (Optional>) sort; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> field() { - return (Optional>) field; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetLibraryType withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public GetLibraryType withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public GetLibraryType withType(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public GetLibraryType withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public GetLibraryType withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public GetLibraryType withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public GetLibraryType withActive(boolean active) { - Utils.checkNotNull(active, "active"); - this.active = Optional.ofNullable(active); - return this; - } - - public GetLibraryType withActive(Optional active) { - Utils.checkNotNull(active, "active"); - this.active = active; - return this; - } - - public GetLibraryType withFilter(java.util.List filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - public GetLibraryType withFilter(Optional> filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - public GetLibraryType withSort(java.util.List sort) { - Utils.checkNotNull(sort, "sort"); - this.sort = Optional.ofNullable(sort); - return this; - } - - public GetLibraryType withSort(Optional> sort) { - Utils.checkNotNull(sort, "sort"); - this.sort = sort; - return this; - } - - public GetLibraryType withField(java.util.List field) { - Utils.checkNotNull(field, "field"); - this.field = Optional.ofNullable(field); - return this; - } - - public GetLibraryType withField(Optional> field) { - Utils.checkNotNull(field, "field"); - this.field = field; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLibraryType other = (GetLibraryType) o; - return - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.title, other.title) && - java.util.Objects.deepEquals(this.active, other.active) && - java.util.Objects.deepEquals(this.filter, other.filter) && - java.util.Objects.deepEquals(this.sort, other.sort) && - java.util.Objects.deepEquals(this.field, other.field); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - key, - type, - title, - active, - filter, - sort, - field); - } - - @Override - public String toString() { - return Utils.toString(GetLibraryType.class, - "key", key, - "type", type, - "title", title, - "active", active, - "filter", filter, - "sort", sort, - "field", field); - } - - public final static class Builder { - - private Optional key = Optional.empty(); - - private Optional type = Optional.empty(); - - private Optional title = Optional.empty(); - - private Optional active = Optional.empty(); - - private Optional> filter = Optional.empty(); - - private Optional> sort = Optional.empty(); - - private Optional> field = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder type(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Builder active(boolean active) { - Utils.checkNotNull(active, "active"); - this.active = Optional.ofNullable(active); - return this; - } - - public Builder active(Optional active) { - Utils.checkNotNull(active, "active"); - this.active = active; - return this; - } - - public Builder filter(java.util.List filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - public Builder filter(Optional> filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - public Builder sort(java.util.List sort) { - Utils.checkNotNull(sort, "sort"); - this.sort = Optional.ofNullable(sort); - return this; - } - - public Builder sort(Optional> sort) { - Utils.checkNotNull(sort, "sort"); - this.sort = sort; - return this; - } - - public Builder field(java.util.List field) { - Utils.checkNotNull(field, "field"); - this.field = Optional.ofNullable(field); - return this; - } - - public Builder field(Optional> field) { - Utils.checkNotNull(field, "field"); - this.field = field; - return this; - } - - public GetLibraryType build() { - return new GetLibraryType( - key, - type, - title, - active, - filter, - sort, - field); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenDirectory.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenDirectory.java deleted file mode 100644 index 0aade492..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenDirectory.java +++ /dev/null @@ -1,283 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetMetadataChildrenDirectory { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("leafCount") - private Optional leafCount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("thumb") - private Optional thumb; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("viewedLeafCount") - private Optional viewedLeafCount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title") - private Optional title; - - @JsonCreator - public GetMetadataChildrenDirectory( - @JsonProperty("leafCount") Optional leafCount, - @JsonProperty("thumb") Optional thumb, - @JsonProperty("viewedLeafCount") Optional viewedLeafCount, - @JsonProperty("key") Optional key, - @JsonProperty("title") Optional title) { - Utils.checkNotNull(leafCount, "leafCount"); - Utils.checkNotNull(thumb, "thumb"); - Utils.checkNotNull(viewedLeafCount, "viewedLeafCount"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(title, "title"); - this.leafCount = leafCount; - this.thumb = thumb; - this.viewedLeafCount = viewedLeafCount; - this.key = key; - this.title = title; - } - - public GetMetadataChildrenDirectory() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional leafCount() { - return (Optional) leafCount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional thumb() { - return (Optional) thumb; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional viewedLeafCount() { - return (Optional) viewedLeafCount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title() { - return (Optional) title; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetMetadataChildrenDirectory withLeafCount(int leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = Optional.ofNullable(leafCount); - return this; - } - - public GetMetadataChildrenDirectory withLeafCount(Optional leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = leafCount; - return this; - } - - public GetMetadataChildrenDirectory withThumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public GetMetadataChildrenDirectory withThumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public GetMetadataChildrenDirectory withViewedLeafCount(int viewedLeafCount) { - Utils.checkNotNull(viewedLeafCount, "viewedLeafCount"); - this.viewedLeafCount = Optional.ofNullable(viewedLeafCount); - return this; - } - - public GetMetadataChildrenDirectory withViewedLeafCount(Optional viewedLeafCount) { - Utils.checkNotNull(viewedLeafCount, "viewedLeafCount"); - this.viewedLeafCount = viewedLeafCount; - return this; - } - - public GetMetadataChildrenDirectory withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public GetMetadataChildrenDirectory withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public GetMetadataChildrenDirectory withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public GetMetadataChildrenDirectory withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetMetadataChildrenDirectory other = (GetMetadataChildrenDirectory) o; - return - java.util.Objects.deepEquals(this.leafCount, other.leafCount) && - java.util.Objects.deepEquals(this.thumb, other.thumb) && - java.util.Objects.deepEquals(this.viewedLeafCount, other.viewedLeafCount) && - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.title, other.title); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - leafCount, - thumb, - viewedLeafCount, - key, - title); - } - - @Override - public String toString() { - return Utils.toString(GetMetadataChildrenDirectory.class, - "leafCount", leafCount, - "thumb", thumb, - "viewedLeafCount", viewedLeafCount, - "key", key, - "title", title); - } - - public final static class Builder { - - private Optional leafCount = Optional.empty(); - - private Optional thumb = Optional.empty(); - - private Optional viewedLeafCount = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional title = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder leafCount(int leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = Optional.ofNullable(leafCount); - return this; - } - - public Builder leafCount(Optional leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = leafCount; - return this; - } - - public Builder thumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public Builder thumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public Builder viewedLeafCount(int viewedLeafCount) { - Utils.checkNotNull(viewedLeafCount, "viewedLeafCount"); - this.viewedLeafCount = Optional.ofNullable(viewedLeafCount); - return this; - } - - public Builder viewedLeafCount(Optional viewedLeafCount) { - Utils.checkNotNull(viewedLeafCount, "viewedLeafCount"); - this.viewedLeafCount = viewedLeafCount; - return this; - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public GetMetadataChildrenDirectory build() { - return new GetMetadataChildrenDirectory( - leafCount, - thumb, - viewedLeafCount, - key, - title); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenMediaContainer.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenMediaContainer.java deleted file mode 100644 index 46110177..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenMediaContainer.java +++ /dev/null @@ -1,1057 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetMetadataChildrenMediaContainer { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("allowSync") - private Optional allowSync; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("art") - private Optional art; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("identifier") - private Optional identifier; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionID") - private Optional librarySectionID; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionTitle") - private Optional librarySectionTitle; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionUUID") - private Optional librarySectionUUID; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("mediaTagPrefix") - private Optional mediaTagPrefix; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("mediaTagVersion") - private Optional mediaTagVersion; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("nocache") - private Optional nocache; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentIndex") - private Optional parentIndex; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentTitle") - private Optional parentTitle; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentYear") - private Optional parentYear; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("summary") - private Optional summary; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("theme") - private Optional theme; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("thumb") - private Optional thumb; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title1") - private Optional title1; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title2") - private Optional title2; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("viewGroup") - private Optional viewGroup; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("viewMode") - private Optional viewMode; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Directory") - private Optional> directory; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Metadata") - private Optional> metadata; - - @JsonCreator - public GetMetadataChildrenMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("allowSync") Optional allowSync, - @JsonProperty("art") Optional art, - @JsonProperty("identifier") Optional identifier, - @JsonProperty("key") Optional key, - @JsonProperty("librarySectionID") Optional librarySectionID, - @JsonProperty("librarySectionTitle") Optional librarySectionTitle, - @JsonProperty("librarySectionUUID") Optional librarySectionUUID, - @JsonProperty("mediaTagPrefix") Optional mediaTagPrefix, - @JsonProperty("mediaTagVersion") Optional mediaTagVersion, - @JsonProperty("nocache") Optional nocache, - @JsonProperty("parentIndex") Optional parentIndex, - @JsonProperty("parentTitle") Optional parentTitle, - @JsonProperty("parentYear") Optional parentYear, - @JsonProperty("summary") Optional summary, - @JsonProperty("theme") Optional theme, - @JsonProperty("thumb") Optional thumb, - @JsonProperty("title1") Optional title1, - @JsonProperty("title2") Optional title2, - @JsonProperty("viewGroup") Optional viewGroup, - @JsonProperty("viewMode") Optional viewMode, - @JsonProperty("Directory") Optional> directory, - @JsonProperty("Metadata") Optional> metadata) { - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(allowSync, "allowSync"); - Utils.checkNotNull(art, "art"); - Utils.checkNotNull(identifier, "identifier"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(librarySectionID, "librarySectionID"); - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - Utils.checkNotNull(nocache, "nocache"); - Utils.checkNotNull(parentIndex, "parentIndex"); - Utils.checkNotNull(parentTitle, "parentTitle"); - Utils.checkNotNull(parentYear, "parentYear"); - Utils.checkNotNull(summary, "summary"); - Utils.checkNotNull(theme, "theme"); - Utils.checkNotNull(thumb, "thumb"); - Utils.checkNotNull(title1, "title1"); - Utils.checkNotNull(title2, "title2"); - Utils.checkNotNull(viewGroup, "viewGroup"); - Utils.checkNotNull(viewMode, "viewMode"); - Utils.checkNotNull(directory, "directory"); - Utils.checkNotNull(metadata, "metadata"); - 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; - } - - public GetMetadataChildrenMediaContainer() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional allowSync() { - return (Optional) allowSync; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional art() { - return (Optional) art; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional identifier() { - return (Optional) identifier; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionID() { - return (Optional) librarySectionID; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionTitle() { - return (Optional) librarySectionTitle; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionUUID() { - return (Optional) librarySectionUUID; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaTagPrefix() { - return (Optional) mediaTagPrefix; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaTagVersion() { - return (Optional) mediaTagVersion; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional nocache() { - return (Optional) nocache; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentIndex() { - return (Optional) parentIndex; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentTitle() { - return (Optional) parentTitle; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentYear() { - return (Optional) parentYear; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional summary() { - return (Optional) summary; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional theme() { - return (Optional) theme; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional thumb() { - return (Optional) thumb; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title1() { - return (Optional) title1; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title2() { - return (Optional) title2; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional viewGroup() { - return (Optional) viewGroup; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional viewMode() { - return (Optional) viewMode; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> directory() { - return (Optional>) directory; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetMetadataChildrenMediaContainer withSize(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public GetMetadataChildrenMediaContainer withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public GetMetadataChildrenMediaContainer withAllowSync(boolean allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = Optional.ofNullable(allowSync); - return this; - } - - public GetMetadataChildrenMediaContainer withAllowSync(Optional allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = allowSync; - return this; - } - - public GetMetadataChildrenMediaContainer withArt(String art) { - Utils.checkNotNull(art, "art"); - this.art = Optional.ofNullable(art); - return this; - } - - public GetMetadataChildrenMediaContainer withArt(Optional art) { - Utils.checkNotNull(art, "art"); - this.art = art; - return this; - } - - public GetMetadataChildrenMediaContainer withIdentifier(String identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = Optional.ofNullable(identifier); - return this; - } - - public GetMetadataChildrenMediaContainer withIdentifier(Optional identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = identifier; - return this; - } - - public GetMetadataChildrenMediaContainer withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public GetMetadataChildrenMediaContainer withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public GetMetadataChildrenMediaContainer withLibrarySectionID(int librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = Optional.ofNullable(librarySectionID); - return this; - } - - public GetMetadataChildrenMediaContainer withLibrarySectionID(Optional librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = librarySectionID; - return this; - } - - public GetMetadataChildrenMediaContainer withLibrarySectionTitle(String librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = Optional.ofNullable(librarySectionTitle); - return this; - } - - public GetMetadataChildrenMediaContainer withLibrarySectionTitle(Optional librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = librarySectionTitle; - return this; - } - - public GetMetadataChildrenMediaContainer withLibrarySectionUUID(String librarySectionUUID) { - Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); - this.librarySectionUUID = Optional.ofNullable(librarySectionUUID); - return this; - } - - public GetMetadataChildrenMediaContainer withLibrarySectionUUID(Optional librarySectionUUID) { - Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); - this.librarySectionUUID = librarySectionUUID; - return this; - } - - public GetMetadataChildrenMediaContainer withMediaTagPrefix(String mediaTagPrefix) { - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - this.mediaTagPrefix = Optional.ofNullable(mediaTagPrefix); - return this; - } - - public GetMetadataChildrenMediaContainer withMediaTagPrefix(Optional mediaTagPrefix) { - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - this.mediaTagPrefix = mediaTagPrefix; - return this; - } - - public GetMetadataChildrenMediaContainer withMediaTagVersion(int mediaTagVersion) { - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - this.mediaTagVersion = Optional.ofNullable(mediaTagVersion); - return this; - } - - public GetMetadataChildrenMediaContainer withMediaTagVersion(Optional mediaTagVersion) { - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - this.mediaTagVersion = mediaTagVersion; - return this; - } - - public GetMetadataChildrenMediaContainer withNocache(boolean nocache) { - Utils.checkNotNull(nocache, "nocache"); - this.nocache = Optional.ofNullable(nocache); - return this; - } - - public GetMetadataChildrenMediaContainer withNocache(Optional nocache) { - Utils.checkNotNull(nocache, "nocache"); - this.nocache = nocache; - return this; - } - - public GetMetadataChildrenMediaContainer withParentIndex(int parentIndex) { - Utils.checkNotNull(parentIndex, "parentIndex"); - this.parentIndex = Optional.ofNullable(parentIndex); - return this; - } - - public GetMetadataChildrenMediaContainer withParentIndex(Optional parentIndex) { - Utils.checkNotNull(parentIndex, "parentIndex"); - this.parentIndex = parentIndex; - return this; - } - - public GetMetadataChildrenMediaContainer withParentTitle(String parentTitle) { - Utils.checkNotNull(parentTitle, "parentTitle"); - this.parentTitle = Optional.ofNullable(parentTitle); - return this; - } - - public GetMetadataChildrenMediaContainer withParentTitle(Optional parentTitle) { - Utils.checkNotNull(parentTitle, "parentTitle"); - this.parentTitle = parentTitle; - return this; - } - - public GetMetadataChildrenMediaContainer withParentYear(int parentYear) { - Utils.checkNotNull(parentYear, "parentYear"); - this.parentYear = Optional.ofNullable(parentYear); - return this; - } - - public GetMetadataChildrenMediaContainer withParentYear(Optional parentYear) { - Utils.checkNotNull(parentYear, "parentYear"); - this.parentYear = parentYear; - return this; - } - - public GetMetadataChildrenMediaContainer withSummary(String summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = Optional.ofNullable(summary); - return this; - } - - public GetMetadataChildrenMediaContainer withSummary(Optional summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = summary; - return this; - } - - public GetMetadataChildrenMediaContainer withTheme(String theme) { - Utils.checkNotNull(theme, "theme"); - this.theme = Optional.ofNullable(theme); - return this; - } - - public GetMetadataChildrenMediaContainer withTheme(Optional theme) { - Utils.checkNotNull(theme, "theme"); - this.theme = theme; - return this; - } - - public GetMetadataChildrenMediaContainer withThumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public GetMetadataChildrenMediaContainer withThumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public GetMetadataChildrenMediaContainer withTitle1(String title1) { - Utils.checkNotNull(title1, "title1"); - this.title1 = Optional.ofNullable(title1); - return this; - } - - public GetMetadataChildrenMediaContainer withTitle1(Optional title1) { - Utils.checkNotNull(title1, "title1"); - this.title1 = title1; - return this; - } - - public GetMetadataChildrenMediaContainer withTitle2(String title2) { - Utils.checkNotNull(title2, "title2"); - this.title2 = Optional.ofNullable(title2); - return this; - } - - public GetMetadataChildrenMediaContainer withTitle2(Optional title2) { - Utils.checkNotNull(title2, "title2"); - this.title2 = title2; - return this; - } - - public GetMetadataChildrenMediaContainer withViewGroup(String viewGroup) { - Utils.checkNotNull(viewGroup, "viewGroup"); - this.viewGroup = Optional.ofNullable(viewGroup); - return this; - } - - public GetMetadataChildrenMediaContainer withViewGroup(Optional viewGroup) { - Utils.checkNotNull(viewGroup, "viewGroup"); - this.viewGroup = viewGroup; - return this; - } - - public GetMetadataChildrenMediaContainer withViewMode(int viewMode) { - Utils.checkNotNull(viewMode, "viewMode"); - this.viewMode = Optional.ofNullable(viewMode); - return this; - } - - public GetMetadataChildrenMediaContainer withViewMode(Optional viewMode) { - Utils.checkNotNull(viewMode, "viewMode"); - this.viewMode = viewMode; - return this; - } - - public GetMetadataChildrenMediaContainer withDirectory(java.util.List directory) { - Utils.checkNotNull(directory, "directory"); - this.directory = Optional.ofNullable(directory); - return this; - } - - public GetMetadataChildrenMediaContainer withDirectory(Optional> directory) { - Utils.checkNotNull(directory, "directory"); - this.directory = directory; - return this; - } - - public GetMetadataChildrenMediaContainer withMetadata(java.util.List metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public GetMetadataChildrenMediaContainer withMetadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetMetadataChildrenMediaContainer other = (GetMetadataChildrenMediaContainer) o; - return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.allowSync, other.allowSync) && - java.util.Objects.deepEquals(this.art, other.art) && - java.util.Objects.deepEquals(this.identifier, other.identifier) && - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.librarySectionID, other.librarySectionID) && - java.util.Objects.deepEquals(this.librarySectionTitle, other.librarySectionTitle) && - java.util.Objects.deepEquals(this.librarySectionUUID, other.librarySectionUUID) && - java.util.Objects.deepEquals(this.mediaTagPrefix, other.mediaTagPrefix) && - java.util.Objects.deepEquals(this.mediaTagVersion, other.mediaTagVersion) && - java.util.Objects.deepEquals(this.nocache, other.nocache) && - java.util.Objects.deepEquals(this.parentIndex, other.parentIndex) && - java.util.Objects.deepEquals(this.parentTitle, other.parentTitle) && - java.util.Objects.deepEquals(this.parentYear, other.parentYear) && - java.util.Objects.deepEquals(this.summary, other.summary) && - java.util.Objects.deepEquals(this.theme, other.theme) && - java.util.Objects.deepEquals(this.thumb, other.thumb) && - java.util.Objects.deepEquals(this.title1, other.title1) && - java.util.Objects.deepEquals(this.title2, other.title2) && - java.util.Objects.deepEquals(this.viewGroup, other.viewGroup) && - java.util.Objects.deepEquals(this.viewMode, other.viewMode) && - java.util.Objects.deepEquals(this.directory, other.directory) && - java.util.Objects.deepEquals(this.metadata, other.metadata); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - size, - allowSync, - art, - identifier, - key, - librarySectionID, - librarySectionTitle, - librarySectionUUID, - mediaTagPrefix, - mediaTagVersion, - nocache, - parentIndex, - parentTitle, - parentYear, - summary, - theme, - thumb, - title1, - title2, - viewGroup, - viewMode, - directory, - metadata); - } - - @Override - public String toString() { - return Utils.toString(GetMetadataChildrenMediaContainer.class, - "size", size, - "allowSync", allowSync, - "art", art, - "identifier", identifier, - "key", key, - "librarySectionID", librarySectionID, - "librarySectionTitle", librarySectionTitle, - "librarySectionUUID", librarySectionUUID, - "mediaTagPrefix", mediaTagPrefix, - "mediaTagVersion", mediaTagVersion, - "nocache", nocache, - "parentIndex", parentIndex, - "parentTitle", parentTitle, - "parentYear", parentYear, - "summary", summary, - "theme", theme, - "thumb", thumb, - "title1", title1, - "title2", title2, - "viewGroup", viewGroup, - "viewMode", viewMode, - "directory", directory, - "metadata", metadata); - } - - public final static class Builder { - - private Optional size = Optional.empty(); - - private Optional allowSync = Optional.empty(); - - private Optional art = Optional.empty(); - - private Optional identifier = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional librarySectionID = Optional.empty(); - - private Optional librarySectionTitle = Optional.empty(); - - private Optional librarySectionUUID = Optional.empty(); - - private Optional mediaTagPrefix = Optional.empty(); - - private Optional mediaTagVersion = Optional.empty(); - - private Optional nocache = Optional.empty(); - - private Optional parentIndex = Optional.empty(); - - private Optional parentTitle = Optional.empty(); - - private Optional parentYear = Optional.empty(); - - private Optional summary = Optional.empty(); - - private Optional theme = Optional.empty(); - - private Optional thumb = Optional.empty(); - - private Optional title1 = Optional.empty(); - - private Optional title2 = Optional.empty(); - - private Optional viewGroup = Optional.empty(); - - private Optional viewMode = Optional.empty(); - - private Optional> directory = Optional.empty(); - - private Optional> metadata = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder size(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder allowSync(boolean allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = Optional.ofNullable(allowSync); - return this; - } - - public Builder allowSync(Optional allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = allowSync; - return this; - } - - public Builder art(String art) { - Utils.checkNotNull(art, "art"); - this.art = Optional.ofNullable(art); - return this; - } - - public Builder art(Optional art) { - Utils.checkNotNull(art, "art"); - this.art = art; - return this; - } - - public Builder identifier(String identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = Optional.ofNullable(identifier); - return this; - } - - public Builder identifier(Optional identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = identifier; - return this; - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder librarySectionID(int librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = Optional.ofNullable(librarySectionID); - return this; - } - - public Builder librarySectionID(Optional librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = librarySectionID; - return this; - } - - public Builder librarySectionTitle(String librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = Optional.ofNullable(librarySectionTitle); - return this; - } - - public Builder librarySectionTitle(Optional librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = librarySectionTitle; - return this; - } - - public Builder librarySectionUUID(String librarySectionUUID) { - Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); - this.librarySectionUUID = Optional.ofNullable(librarySectionUUID); - return this; - } - - public Builder librarySectionUUID(Optional librarySectionUUID) { - Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); - this.librarySectionUUID = librarySectionUUID; - return this; - } - - public Builder mediaTagPrefix(String mediaTagPrefix) { - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - this.mediaTagPrefix = Optional.ofNullable(mediaTagPrefix); - return this; - } - - public Builder mediaTagPrefix(Optional mediaTagPrefix) { - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - this.mediaTagPrefix = mediaTagPrefix; - return this; - } - - public Builder mediaTagVersion(int mediaTagVersion) { - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - this.mediaTagVersion = Optional.ofNullable(mediaTagVersion); - return this; - } - - public Builder mediaTagVersion(Optional mediaTagVersion) { - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - this.mediaTagVersion = mediaTagVersion; - return this; - } - - public Builder nocache(boolean nocache) { - Utils.checkNotNull(nocache, "nocache"); - this.nocache = Optional.ofNullable(nocache); - return this; - } - - public Builder nocache(Optional nocache) { - Utils.checkNotNull(nocache, "nocache"); - this.nocache = nocache; - return this; - } - - public Builder parentIndex(int parentIndex) { - Utils.checkNotNull(parentIndex, "parentIndex"); - this.parentIndex = Optional.ofNullable(parentIndex); - return this; - } - - public Builder parentIndex(Optional parentIndex) { - Utils.checkNotNull(parentIndex, "parentIndex"); - this.parentIndex = parentIndex; - return this; - } - - public Builder parentTitle(String parentTitle) { - Utils.checkNotNull(parentTitle, "parentTitle"); - this.parentTitle = Optional.ofNullable(parentTitle); - return this; - } - - public Builder parentTitle(Optional parentTitle) { - Utils.checkNotNull(parentTitle, "parentTitle"); - this.parentTitle = parentTitle; - return this; - } - - public Builder parentYear(int parentYear) { - Utils.checkNotNull(parentYear, "parentYear"); - this.parentYear = Optional.ofNullable(parentYear); - return this; - } - - public Builder parentYear(Optional parentYear) { - Utils.checkNotNull(parentYear, "parentYear"); - this.parentYear = parentYear; - return this; - } - - public Builder summary(String summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = Optional.ofNullable(summary); - return this; - } - - public Builder summary(Optional summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = summary; - return this; - } - - public Builder theme(String theme) { - Utils.checkNotNull(theme, "theme"); - this.theme = Optional.ofNullable(theme); - return this; - } - - public Builder theme(Optional theme) { - Utils.checkNotNull(theme, "theme"); - this.theme = theme; - return this; - } - - public Builder thumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public Builder thumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public Builder title1(String title1) { - Utils.checkNotNull(title1, "title1"); - this.title1 = Optional.ofNullable(title1); - return this; - } - - public Builder title1(Optional title1) { - Utils.checkNotNull(title1, "title1"); - this.title1 = title1; - return this; - } - - public Builder title2(String title2) { - Utils.checkNotNull(title2, "title2"); - this.title2 = Optional.ofNullable(title2); - return this; - } - - public Builder title2(Optional title2) { - Utils.checkNotNull(title2, "title2"); - this.title2 = title2; - return this; - } - - public Builder viewGroup(String viewGroup) { - Utils.checkNotNull(viewGroup, "viewGroup"); - this.viewGroup = Optional.ofNullable(viewGroup); - return this; - } - - public Builder viewGroup(Optional viewGroup) { - Utils.checkNotNull(viewGroup, "viewGroup"); - this.viewGroup = viewGroup; - return this; - } - - public Builder viewMode(int viewMode) { - Utils.checkNotNull(viewMode, "viewMode"); - this.viewMode = Optional.ofNullable(viewMode); - return this; - } - - public Builder viewMode(Optional viewMode) { - Utils.checkNotNull(viewMode, "viewMode"); - this.viewMode = viewMode; - return this; - } - - public Builder directory(java.util.List directory) { - Utils.checkNotNull(directory, "directory"); - this.directory = Optional.ofNullable(directory); - return this; - } - - public Builder directory(Optional> directory) { - Utils.checkNotNull(directory, "directory"); - this.directory = directory; - return this; - } - - public Builder metadata(java.util.List metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public Builder metadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public GetMetadataChildrenMediaContainer build() { - return new GetMetadataChildrenMediaContainer( - size, - allowSync, - art, - identifier, - key, - librarySectionID, - librarySectionTitle, - librarySectionUUID, - mediaTagPrefix, - mediaTagVersion, - nocache, - parentIndex, - parentTitle, - parentYear, - summary, - theme, - thumb, - title1, - title2, - viewGroup, - viewMode, - directory, - metadata); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenMetadata.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenMetadata.java deleted file mode 100644 index 154c9547..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenMetadata.java +++ /dev/null @@ -1,1229 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetMetadataChildrenMetadata { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ratingKey") - private Optional ratingKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentRatingKey") - private Optional parentRatingKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("guid") - private Optional guid; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentGuid") - private Optional parentGuid; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentStudio") - private Optional parentStudio; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title") - private Optional title; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentKey") - private Optional parentKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentTitle") - private Optional parentTitle; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("summary") - private Optional summary; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("index") - private Optional index; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentIndex") - private Optional parentIndex; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("viewCount") - private Optional viewCount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("lastViewedAt") - private Optional lastViewedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentYear") - private Optional parentYear; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("thumb") - private Optional thumb; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("art") - private Optional art; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentThumb") - private Optional parentThumb; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentTheme") - private Optional parentTheme; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("leafCount") - private Optional leafCount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("viewedLeafCount") - private Optional viewedLeafCount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("addedAt") - private Optional addedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updatedAt") - private Optional updatedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("userRating") - private Optional userRating; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("skipCount") - private Optional skipCount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("lastRatedAt") - private Optional lastRatedAt; - - @JsonCreator - public GetMetadataChildrenMetadata( - @JsonProperty("ratingKey") Optional ratingKey, - @JsonProperty("key") Optional key, - @JsonProperty("parentRatingKey") Optional parentRatingKey, - @JsonProperty("guid") Optional guid, - @JsonProperty("parentGuid") Optional parentGuid, - @JsonProperty("parentStudio") Optional parentStudio, - @JsonProperty("type") Optional type, - @JsonProperty("title") Optional title, - @JsonProperty("parentKey") Optional parentKey, - @JsonProperty("parentTitle") Optional parentTitle, - @JsonProperty("summary") Optional summary, - @JsonProperty("index") Optional index, - @JsonProperty("parentIndex") Optional parentIndex, - @JsonProperty("viewCount") Optional viewCount, - @JsonProperty("lastViewedAt") Optional lastViewedAt, - @JsonProperty("parentYear") Optional parentYear, - @JsonProperty("thumb") Optional thumb, - @JsonProperty("art") Optional art, - @JsonProperty("parentThumb") Optional parentThumb, - @JsonProperty("parentTheme") Optional parentTheme, - @JsonProperty("leafCount") Optional leafCount, - @JsonProperty("viewedLeafCount") Optional viewedLeafCount, - @JsonProperty("addedAt") Optional addedAt, - @JsonProperty("updatedAt") Optional updatedAt, - @JsonProperty("userRating") Optional userRating, - @JsonProperty("skipCount") Optional skipCount, - @JsonProperty("lastRatedAt") Optional lastRatedAt) { - Utils.checkNotNull(ratingKey, "ratingKey"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(parentRatingKey, "parentRatingKey"); - Utils.checkNotNull(guid, "guid"); - Utils.checkNotNull(parentGuid, "parentGuid"); - Utils.checkNotNull(parentStudio, "parentStudio"); - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(title, "title"); - Utils.checkNotNull(parentKey, "parentKey"); - Utils.checkNotNull(parentTitle, "parentTitle"); - Utils.checkNotNull(summary, "summary"); - Utils.checkNotNull(index, "index"); - Utils.checkNotNull(parentIndex, "parentIndex"); - Utils.checkNotNull(viewCount, "viewCount"); - Utils.checkNotNull(lastViewedAt, "lastViewedAt"); - Utils.checkNotNull(parentYear, "parentYear"); - Utils.checkNotNull(thumb, "thumb"); - Utils.checkNotNull(art, "art"); - Utils.checkNotNull(parentThumb, "parentThumb"); - Utils.checkNotNull(parentTheme, "parentTheme"); - Utils.checkNotNull(leafCount, "leafCount"); - Utils.checkNotNull(viewedLeafCount, "viewedLeafCount"); - Utils.checkNotNull(addedAt, "addedAt"); - Utils.checkNotNull(updatedAt, "updatedAt"); - Utils.checkNotNull(userRating, "userRating"); - Utils.checkNotNull(skipCount, "skipCount"); - Utils.checkNotNull(lastRatedAt, "lastRatedAt"); - 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; - } - - public GetMetadataChildrenMetadata() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional ratingKey() { - return (Optional) ratingKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentRatingKey() { - return (Optional) parentRatingKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional guid() { - return (Optional) guid; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentGuid() { - return (Optional) parentGuid; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentStudio() { - return (Optional) parentStudio; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title() { - return (Optional) title; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentKey() { - return (Optional) parentKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentTitle() { - return (Optional) parentTitle; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional summary() { - return (Optional) summary; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional index() { - return (Optional) index; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentIndex() { - return (Optional) parentIndex; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional viewCount() { - return (Optional) viewCount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional lastViewedAt() { - return (Optional) lastViewedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentYear() { - return (Optional) parentYear; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional thumb() { - return (Optional) thumb; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional art() { - return (Optional) art; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentThumb() { - return (Optional) parentThumb; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentTheme() { - return (Optional) parentTheme; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional leafCount() { - return (Optional) leafCount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional viewedLeafCount() { - return (Optional) viewedLeafCount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional addedAt() { - return (Optional) addedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional updatedAt() { - return (Optional) updatedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional userRating() { - return (Optional) userRating; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional skipCount() { - return (Optional) skipCount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional lastRatedAt() { - return (Optional) lastRatedAt; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetMetadataChildrenMetadata withRatingKey(String ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public GetMetadataChildrenMetadata withRatingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public GetMetadataChildrenMetadata withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public GetMetadataChildrenMetadata withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public GetMetadataChildrenMetadata withParentRatingKey(String parentRatingKey) { - Utils.checkNotNull(parentRatingKey, "parentRatingKey"); - this.parentRatingKey = Optional.ofNullable(parentRatingKey); - return this; - } - - public GetMetadataChildrenMetadata withParentRatingKey(Optional parentRatingKey) { - Utils.checkNotNull(parentRatingKey, "parentRatingKey"); - this.parentRatingKey = parentRatingKey; - return this; - } - - public GetMetadataChildrenMetadata withGuid(String guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = Optional.ofNullable(guid); - return this; - } - - public GetMetadataChildrenMetadata withGuid(Optional guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = guid; - return this; - } - - public GetMetadataChildrenMetadata withParentGuid(String parentGuid) { - Utils.checkNotNull(parentGuid, "parentGuid"); - this.parentGuid = Optional.ofNullable(parentGuid); - return this; - } - - public GetMetadataChildrenMetadata withParentGuid(Optional parentGuid) { - Utils.checkNotNull(parentGuid, "parentGuid"); - this.parentGuid = parentGuid; - return this; - } - - public GetMetadataChildrenMetadata withParentStudio(String parentStudio) { - Utils.checkNotNull(parentStudio, "parentStudio"); - this.parentStudio = Optional.ofNullable(parentStudio); - return this; - } - - public GetMetadataChildrenMetadata withParentStudio(Optional parentStudio) { - Utils.checkNotNull(parentStudio, "parentStudio"); - this.parentStudio = parentStudio; - return this; - } - - public GetMetadataChildrenMetadata withType(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public GetMetadataChildrenMetadata withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public GetMetadataChildrenMetadata withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public GetMetadataChildrenMetadata withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public GetMetadataChildrenMetadata withParentKey(String parentKey) { - Utils.checkNotNull(parentKey, "parentKey"); - this.parentKey = Optional.ofNullable(parentKey); - return this; - } - - public GetMetadataChildrenMetadata withParentKey(Optional parentKey) { - Utils.checkNotNull(parentKey, "parentKey"); - this.parentKey = parentKey; - return this; - } - - public GetMetadataChildrenMetadata withParentTitle(String parentTitle) { - Utils.checkNotNull(parentTitle, "parentTitle"); - this.parentTitle = Optional.ofNullable(parentTitle); - return this; - } - - public GetMetadataChildrenMetadata withParentTitle(Optional parentTitle) { - Utils.checkNotNull(parentTitle, "parentTitle"); - this.parentTitle = parentTitle; - return this; - } - - public GetMetadataChildrenMetadata withSummary(String summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = Optional.ofNullable(summary); - return this; - } - - public GetMetadataChildrenMetadata withSummary(Optional summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = summary; - return this; - } - - public GetMetadataChildrenMetadata withIndex(int index) { - Utils.checkNotNull(index, "index"); - this.index = Optional.ofNullable(index); - return this; - } - - public GetMetadataChildrenMetadata withIndex(Optional index) { - Utils.checkNotNull(index, "index"); - this.index = index; - return this; - } - - public GetMetadataChildrenMetadata withParentIndex(int parentIndex) { - Utils.checkNotNull(parentIndex, "parentIndex"); - this.parentIndex = Optional.ofNullable(parentIndex); - return this; - } - - public GetMetadataChildrenMetadata withParentIndex(Optional parentIndex) { - Utils.checkNotNull(parentIndex, "parentIndex"); - this.parentIndex = parentIndex; - return this; - } - - public GetMetadataChildrenMetadata withViewCount(int viewCount) { - Utils.checkNotNull(viewCount, "viewCount"); - this.viewCount = Optional.ofNullable(viewCount); - return this; - } - - public GetMetadataChildrenMetadata withViewCount(Optional viewCount) { - Utils.checkNotNull(viewCount, "viewCount"); - this.viewCount = viewCount; - return this; - } - - public GetMetadataChildrenMetadata withLastViewedAt(int lastViewedAt) { - Utils.checkNotNull(lastViewedAt, "lastViewedAt"); - this.lastViewedAt = Optional.ofNullable(lastViewedAt); - return this; - } - - public GetMetadataChildrenMetadata withLastViewedAt(Optional lastViewedAt) { - Utils.checkNotNull(lastViewedAt, "lastViewedAt"); - this.lastViewedAt = lastViewedAt; - return this; - } - - public GetMetadataChildrenMetadata withParentYear(int parentYear) { - Utils.checkNotNull(parentYear, "parentYear"); - this.parentYear = Optional.ofNullable(parentYear); - return this; - } - - public GetMetadataChildrenMetadata withParentYear(Optional parentYear) { - Utils.checkNotNull(parentYear, "parentYear"); - this.parentYear = parentYear; - return this; - } - - public GetMetadataChildrenMetadata withThumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public GetMetadataChildrenMetadata withThumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public GetMetadataChildrenMetadata withArt(String art) { - Utils.checkNotNull(art, "art"); - this.art = Optional.ofNullable(art); - return this; - } - - public GetMetadataChildrenMetadata withArt(Optional art) { - Utils.checkNotNull(art, "art"); - this.art = art; - return this; - } - - public GetMetadataChildrenMetadata withParentThumb(String parentThumb) { - Utils.checkNotNull(parentThumb, "parentThumb"); - this.parentThumb = Optional.ofNullable(parentThumb); - return this; - } - - public GetMetadataChildrenMetadata withParentThumb(Optional parentThumb) { - Utils.checkNotNull(parentThumb, "parentThumb"); - this.parentThumb = parentThumb; - return this; - } - - public GetMetadataChildrenMetadata withParentTheme(String parentTheme) { - Utils.checkNotNull(parentTheme, "parentTheme"); - this.parentTheme = Optional.ofNullable(parentTheme); - return this; - } - - public GetMetadataChildrenMetadata withParentTheme(Optional parentTheme) { - Utils.checkNotNull(parentTheme, "parentTheme"); - this.parentTheme = parentTheme; - return this; - } - - public GetMetadataChildrenMetadata withLeafCount(int leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = Optional.ofNullable(leafCount); - return this; - } - - public GetMetadataChildrenMetadata withLeafCount(Optional leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = leafCount; - return this; - } - - public GetMetadataChildrenMetadata withViewedLeafCount(int viewedLeafCount) { - Utils.checkNotNull(viewedLeafCount, "viewedLeafCount"); - this.viewedLeafCount = Optional.ofNullable(viewedLeafCount); - return this; - } - - public GetMetadataChildrenMetadata withViewedLeafCount(Optional viewedLeafCount) { - Utils.checkNotNull(viewedLeafCount, "viewedLeafCount"); - this.viewedLeafCount = viewedLeafCount; - return this; - } - - public GetMetadataChildrenMetadata withAddedAt(int addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = Optional.ofNullable(addedAt); - return this; - } - - public GetMetadataChildrenMetadata withAddedAt(Optional addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = addedAt; - return this; - } - - public GetMetadataChildrenMetadata withUpdatedAt(int updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public GetMetadataChildrenMetadata withUpdatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public GetMetadataChildrenMetadata withUserRating(int userRating) { - Utils.checkNotNull(userRating, "userRating"); - this.userRating = Optional.ofNullable(userRating); - return this; - } - - public GetMetadataChildrenMetadata withUserRating(Optional userRating) { - Utils.checkNotNull(userRating, "userRating"); - this.userRating = userRating; - return this; - } - - public GetMetadataChildrenMetadata withSkipCount(int skipCount) { - Utils.checkNotNull(skipCount, "skipCount"); - this.skipCount = Optional.ofNullable(skipCount); - return this; - } - - public GetMetadataChildrenMetadata withSkipCount(Optional skipCount) { - Utils.checkNotNull(skipCount, "skipCount"); - this.skipCount = skipCount; - return this; - } - - public GetMetadataChildrenMetadata withLastRatedAt(int lastRatedAt) { - Utils.checkNotNull(lastRatedAt, "lastRatedAt"); - this.lastRatedAt = Optional.ofNullable(lastRatedAt); - return this; - } - - public GetMetadataChildrenMetadata withLastRatedAt(Optional lastRatedAt) { - Utils.checkNotNull(lastRatedAt, "lastRatedAt"); - this.lastRatedAt = lastRatedAt; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetMetadataChildrenMetadata other = (GetMetadataChildrenMetadata) o; - return - java.util.Objects.deepEquals(this.ratingKey, other.ratingKey) && - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.parentRatingKey, other.parentRatingKey) && - java.util.Objects.deepEquals(this.guid, other.guid) && - java.util.Objects.deepEquals(this.parentGuid, other.parentGuid) && - java.util.Objects.deepEquals(this.parentStudio, other.parentStudio) && - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.title, other.title) && - java.util.Objects.deepEquals(this.parentKey, other.parentKey) && - java.util.Objects.deepEquals(this.parentTitle, other.parentTitle) && - java.util.Objects.deepEquals(this.summary, other.summary) && - java.util.Objects.deepEquals(this.index, other.index) && - java.util.Objects.deepEquals(this.parentIndex, other.parentIndex) && - java.util.Objects.deepEquals(this.viewCount, other.viewCount) && - java.util.Objects.deepEquals(this.lastViewedAt, other.lastViewedAt) && - java.util.Objects.deepEquals(this.parentYear, other.parentYear) && - java.util.Objects.deepEquals(this.thumb, other.thumb) && - java.util.Objects.deepEquals(this.art, other.art) && - java.util.Objects.deepEquals(this.parentThumb, other.parentThumb) && - java.util.Objects.deepEquals(this.parentTheme, other.parentTheme) && - java.util.Objects.deepEquals(this.leafCount, other.leafCount) && - java.util.Objects.deepEquals(this.viewedLeafCount, other.viewedLeafCount) && - java.util.Objects.deepEquals(this.addedAt, other.addedAt) && - java.util.Objects.deepEquals(this.updatedAt, other.updatedAt) && - java.util.Objects.deepEquals(this.userRating, other.userRating) && - java.util.Objects.deepEquals(this.skipCount, other.skipCount) && - java.util.Objects.deepEquals(this.lastRatedAt, other.lastRatedAt); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - ratingKey, - key, - parentRatingKey, - guid, - parentGuid, - parentStudio, - type, - title, - parentKey, - parentTitle, - summary, - index, - parentIndex, - viewCount, - lastViewedAt, - parentYear, - thumb, - art, - parentThumb, - parentTheme, - leafCount, - viewedLeafCount, - addedAt, - updatedAt, - userRating, - skipCount, - lastRatedAt); - } - - @Override - public String toString() { - return Utils.toString(GetMetadataChildrenMetadata.class, - "ratingKey", ratingKey, - "key", key, - "parentRatingKey", parentRatingKey, - "guid", guid, - "parentGuid", parentGuid, - "parentStudio", parentStudio, - "type", type, - "title", title, - "parentKey", parentKey, - "parentTitle", parentTitle, - "summary", summary, - "index", index, - "parentIndex", parentIndex, - "viewCount", viewCount, - "lastViewedAt", lastViewedAt, - "parentYear", parentYear, - "thumb", thumb, - "art", art, - "parentThumb", parentThumb, - "parentTheme", parentTheme, - "leafCount", leafCount, - "viewedLeafCount", viewedLeafCount, - "addedAt", addedAt, - "updatedAt", updatedAt, - "userRating", userRating, - "skipCount", skipCount, - "lastRatedAt", lastRatedAt); - } - - public final static class Builder { - - private Optional ratingKey = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional parentRatingKey = Optional.empty(); - - private Optional guid = Optional.empty(); - - private Optional parentGuid = Optional.empty(); - - private Optional parentStudio = Optional.empty(); - - private Optional type = Optional.empty(); - - private Optional title = Optional.empty(); - - private Optional parentKey = Optional.empty(); - - private Optional parentTitle = Optional.empty(); - - private Optional summary = Optional.empty(); - - private Optional index = Optional.empty(); - - private Optional parentIndex = Optional.empty(); - - private Optional viewCount = Optional.empty(); - - private Optional lastViewedAt = Optional.empty(); - - private Optional parentYear = Optional.empty(); - - private Optional thumb = Optional.empty(); - - private Optional art = Optional.empty(); - - private Optional parentThumb = Optional.empty(); - - private Optional parentTheme = Optional.empty(); - - private Optional leafCount = Optional.empty(); - - private Optional viewedLeafCount = Optional.empty(); - - private Optional addedAt = Optional.empty(); - - private Optional updatedAt = Optional.empty(); - - private Optional userRating = Optional.empty(); - - private Optional skipCount = Optional.empty(); - - private Optional lastRatedAt = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder ratingKey(String ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public Builder ratingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder parentRatingKey(String parentRatingKey) { - Utils.checkNotNull(parentRatingKey, "parentRatingKey"); - this.parentRatingKey = Optional.ofNullable(parentRatingKey); - return this; - } - - public Builder parentRatingKey(Optional parentRatingKey) { - Utils.checkNotNull(parentRatingKey, "parentRatingKey"); - this.parentRatingKey = parentRatingKey; - return this; - } - - public Builder guid(String guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = Optional.ofNullable(guid); - return this; - } - - public Builder guid(Optional guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = guid; - return this; - } - - public Builder parentGuid(String parentGuid) { - Utils.checkNotNull(parentGuid, "parentGuid"); - this.parentGuid = Optional.ofNullable(parentGuid); - return this; - } - - public Builder parentGuid(Optional parentGuid) { - Utils.checkNotNull(parentGuid, "parentGuid"); - this.parentGuid = parentGuid; - return this; - } - - public Builder parentStudio(String parentStudio) { - Utils.checkNotNull(parentStudio, "parentStudio"); - this.parentStudio = Optional.ofNullable(parentStudio); - return this; - } - - public Builder parentStudio(Optional parentStudio) { - Utils.checkNotNull(parentStudio, "parentStudio"); - this.parentStudio = parentStudio; - return this; - } - - public Builder type(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Builder parentKey(String parentKey) { - Utils.checkNotNull(parentKey, "parentKey"); - this.parentKey = Optional.ofNullable(parentKey); - return this; - } - - public Builder parentKey(Optional parentKey) { - Utils.checkNotNull(parentKey, "parentKey"); - this.parentKey = parentKey; - return this; - } - - public Builder parentTitle(String parentTitle) { - Utils.checkNotNull(parentTitle, "parentTitle"); - this.parentTitle = Optional.ofNullable(parentTitle); - return this; - } - - public Builder parentTitle(Optional parentTitle) { - Utils.checkNotNull(parentTitle, "parentTitle"); - this.parentTitle = parentTitle; - return this; - } - - public Builder summary(String summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = Optional.ofNullable(summary); - return this; - } - - public Builder summary(Optional summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = summary; - return this; - } - - public Builder index(int index) { - Utils.checkNotNull(index, "index"); - this.index = Optional.ofNullable(index); - return this; - } - - public Builder index(Optional index) { - Utils.checkNotNull(index, "index"); - this.index = index; - return this; - } - - public Builder parentIndex(int parentIndex) { - Utils.checkNotNull(parentIndex, "parentIndex"); - this.parentIndex = Optional.ofNullable(parentIndex); - return this; - } - - public Builder parentIndex(Optional parentIndex) { - Utils.checkNotNull(parentIndex, "parentIndex"); - this.parentIndex = parentIndex; - return this; - } - - public Builder viewCount(int viewCount) { - Utils.checkNotNull(viewCount, "viewCount"); - this.viewCount = Optional.ofNullable(viewCount); - return this; - } - - public Builder viewCount(Optional viewCount) { - Utils.checkNotNull(viewCount, "viewCount"); - this.viewCount = viewCount; - return this; - } - - public Builder lastViewedAt(int lastViewedAt) { - Utils.checkNotNull(lastViewedAt, "lastViewedAt"); - this.lastViewedAt = Optional.ofNullable(lastViewedAt); - return this; - } - - public Builder lastViewedAt(Optional lastViewedAt) { - Utils.checkNotNull(lastViewedAt, "lastViewedAt"); - this.lastViewedAt = lastViewedAt; - return this; - } - - public Builder parentYear(int parentYear) { - Utils.checkNotNull(parentYear, "parentYear"); - this.parentYear = Optional.ofNullable(parentYear); - return this; - } - - public Builder parentYear(Optional parentYear) { - Utils.checkNotNull(parentYear, "parentYear"); - this.parentYear = parentYear; - return this; - } - - public Builder thumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public Builder thumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public Builder art(String art) { - Utils.checkNotNull(art, "art"); - this.art = Optional.ofNullable(art); - return this; - } - - public Builder art(Optional art) { - Utils.checkNotNull(art, "art"); - this.art = art; - return this; - } - - public Builder parentThumb(String parentThumb) { - Utils.checkNotNull(parentThumb, "parentThumb"); - this.parentThumb = Optional.ofNullable(parentThumb); - return this; - } - - public Builder parentThumb(Optional parentThumb) { - Utils.checkNotNull(parentThumb, "parentThumb"); - this.parentThumb = parentThumb; - return this; - } - - public Builder parentTheme(String parentTheme) { - Utils.checkNotNull(parentTheme, "parentTheme"); - this.parentTheme = Optional.ofNullable(parentTheme); - return this; - } - - public Builder parentTheme(Optional parentTheme) { - Utils.checkNotNull(parentTheme, "parentTheme"); - this.parentTheme = parentTheme; - return this; - } - - public Builder leafCount(int leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = Optional.ofNullable(leafCount); - return this; - } - - public Builder leafCount(Optional leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = leafCount; - return this; - } - - public Builder viewedLeafCount(int viewedLeafCount) { - Utils.checkNotNull(viewedLeafCount, "viewedLeafCount"); - this.viewedLeafCount = Optional.ofNullable(viewedLeafCount); - return this; - } - - public Builder viewedLeafCount(Optional viewedLeafCount) { - Utils.checkNotNull(viewedLeafCount, "viewedLeafCount"); - this.viewedLeafCount = viewedLeafCount; - return this; - } - - public Builder addedAt(int addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = Optional.ofNullable(addedAt); - return this; - } - - public Builder addedAt(Optional addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = addedAt; - return this; - } - - public Builder updatedAt(int updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public Builder updatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public Builder userRating(int userRating) { - Utils.checkNotNull(userRating, "userRating"); - this.userRating = Optional.ofNullable(userRating); - return this; - } - - public Builder userRating(Optional userRating) { - Utils.checkNotNull(userRating, "userRating"); - this.userRating = userRating; - return this; - } - - public Builder skipCount(int skipCount) { - Utils.checkNotNull(skipCount, "skipCount"); - this.skipCount = Optional.ofNullable(skipCount); - return this; - } - - public Builder skipCount(Optional skipCount) { - Utils.checkNotNull(skipCount, "skipCount"); - this.skipCount = skipCount; - return this; - } - - public Builder lastRatedAt(int lastRatedAt) { - Utils.checkNotNull(lastRatedAt, "lastRatedAt"); - this.lastRatedAt = Optional.ofNullable(lastRatedAt); - return this; - } - - public Builder lastRatedAt(Optional lastRatedAt) { - Utils.checkNotNull(lastRatedAt, "lastRatedAt"); - this.lastRatedAt = lastRatedAt; - return this; - } - - public GetMetadataChildrenMetadata build() { - return new GetMetadataChildrenMetadata( - ratingKey, - key, - parentRatingKey, - guid, - parentGuid, - parentStudio, - type, - title, - parentKey, - parentTitle, - summary, - index, - parentIndex, - viewCount, - lastViewedAt, - parentYear, - thumb, - art, - parentThumb, - parentTheme, - leafCount, - viewedLeafCount, - addedAt, - updatedAt, - userRating, - skipCount, - lastRatedAt); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenRequest.java deleted file mode 100644 index 35f42b87..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenRequest.java +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetMetadataChildrenRequest { - - /** - * the id of the library item to return the children of. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=ratingKey") - private double ratingKey; - - /** - * Adds additional elements to the response. Supported types are (Stream) - * - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeElements") - private Optional includeElements; - - @JsonCreator - public GetMetadataChildrenRequest( - double ratingKey, - Optional includeElements) { - Utils.checkNotNull(ratingKey, "ratingKey"); - Utils.checkNotNull(includeElements, "includeElements"); - this.ratingKey = ratingKey; - this.includeElements = includeElements; - } - - public GetMetadataChildrenRequest( - double ratingKey) { - this(ratingKey, Optional.empty()); - } - - /** - * the id of the library item to return the children of. - */ - @JsonIgnore - public double ratingKey() { - return ratingKey; - } - - /** - * Adds additional elements to the response. Supported types are (Stream) - * - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional includeElements() { - return (Optional) includeElements; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * the id of the library item to return the children of. - */ - public GetMetadataChildrenRequest withRatingKey(double ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - /** - * Adds additional elements to the response. Supported types are (Stream) - * - */ - public GetMetadataChildrenRequest withIncludeElements(String includeElements) { - Utils.checkNotNull(includeElements, "includeElements"); - this.includeElements = Optional.ofNullable(includeElements); - return this; - } - - /** - * Adds additional elements to the response. Supported types are (Stream) - * - */ - public GetMetadataChildrenRequest withIncludeElements(Optional includeElements) { - Utils.checkNotNull(includeElements, "includeElements"); - this.includeElements = includeElements; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetMetadataChildrenRequest other = (GetMetadataChildrenRequest) o; - return - java.util.Objects.deepEquals(this.ratingKey, other.ratingKey) && - java.util.Objects.deepEquals(this.includeElements, other.includeElements); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - ratingKey, - includeElements); - } - - @Override - public String toString() { - return Utils.toString(GetMetadataChildrenRequest.class, - "ratingKey", ratingKey, - "includeElements", includeElements); - } - - public final static class Builder { - - private Double ratingKey; - - private Optional includeElements = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * the id of the library item to return the children of. - */ - public Builder ratingKey(double ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - /** - * Adds additional elements to the response. Supported types are (Stream) - * - */ - public Builder includeElements(String includeElements) { - Utils.checkNotNull(includeElements, "includeElements"); - this.includeElements = Optional.ofNullable(includeElements); - return this; - } - - /** - * Adds additional elements to the response. Supported types are (Stream) - * - */ - public Builder includeElements(Optional includeElements) { - Utils.checkNotNull(includeElements, "includeElements"); - this.includeElements = includeElements; - return this; - } - - public GetMetadataChildrenRequest build() { - return new GetMetadataChildrenRequest( - ratingKey, - includeElements); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenRequestBuilder.java deleted file mode 100644 index d5cbb61b..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenRequestBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetMetadataChildrenRequestBuilder { - - private Double ratingKey; - private Optional includeElements = Optional.empty(); - private final SDKMethodInterfaces.MethodCallGetMetadataChildren sdk; - - public GetMetadataChildrenRequestBuilder(SDKMethodInterfaces.MethodCallGetMetadataChildren sdk) { - this.sdk = sdk; - } - - public GetMetadataChildrenRequestBuilder ratingKey(double ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public GetMetadataChildrenRequestBuilder includeElements(String includeElements) { - Utils.checkNotNull(includeElements, "includeElements"); - this.includeElements = Optional.of(includeElements); - return this; - } - - public GetMetadataChildrenRequestBuilder includeElements(Optional includeElements) { - Utils.checkNotNull(includeElements, "includeElements"); - this.includeElements = includeElements; - return this; - } - - public GetMetadataChildrenResponse call() throws Exception { - - return sdk.getMetadataChildren( - ratingKey, - includeElements); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenResponse.java deleted file mode 100644 index 7fc98659..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenResponse.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetMetadataChildrenResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * The children of the library item. - */ - private Optional object; - - @JsonCreator - public GetMetadataChildrenResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional object) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.object = object; - } - - public GetMetadataChildrenResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * The children of the library item. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional object() { - return (Optional) object; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetMetadataChildrenResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetMetadataChildrenResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetMetadataChildrenResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * The children of the library item. - */ - public GetMetadataChildrenResponse withObject(GetMetadataChildrenResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * The children of the library item. - */ - public GetMetadataChildrenResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetMetadataChildrenResponse other = (GetMetadataChildrenResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.object, other.object); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse, - object); - } - - @Override - public String toString() { - return Utils.toString(GetMetadataChildrenResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "object", object); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional object = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * The children of the library item. - */ - public Builder object(GetMetadataChildrenResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * The children of the library item. - */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - public GetMetadataChildrenResponse build() { - return new GetMetadataChildrenResponse( - contentType, - statusCode, - rawResponse, - object); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenResponseBody.java deleted file mode 100644 index 855122e1..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataChildrenResponseBody.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -/** - * GetMetadataChildrenResponseBody - The children of the library item. - */ - -public class GetMetadataChildrenResponseBody { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("MediaContainer") - private Optional mediaContainer; - - @JsonCreator - public GetMetadataChildrenResponseBody( - @JsonProperty("MediaContainer") Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - } - - public GetMetadataChildrenResponseBody() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaContainer() { - return (Optional) mediaContainer; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetMetadataChildrenResponseBody withMediaContainer(GetMetadataChildrenMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public GetMetadataChildrenResponseBody withMediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetMetadataChildrenResponseBody other = (GetMetadataChildrenResponseBody) o; - return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - mediaContainer); - } - - @Override - public String toString() { - return Utils.toString(GetMetadataChildrenResponseBody.class, - "mediaContainer", mediaContainer); - } - - public final static class Builder { - - private Optional mediaContainer = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder mediaContainer(GetMetadataChildrenMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public Builder mediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - public GetMetadataChildrenResponseBody build() { - return new GetMetadataChildrenResponseBody( - mediaContainer); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataCountry.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataCountry.java deleted file mode 100644 index ceaf3437..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataCountry.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetMetadataCountry { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("filter") - private Optional filter; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tag") - private Optional tag; - - @JsonCreator - public GetMetadataCountry( - @JsonProperty("id") Optional id, - @JsonProperty("filter") Optional filter, - @JsonProperty("tag") Optional tag) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(filter, "filter"); - Utils.checkNotNull(tag, "tag"); - this.id = id; - this.filter = filter; - this.tag = tag; - } - - public GetMetadataCountry() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional filter() { - return (Optional) filter; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tag() { - return (Optional) tag; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetMetadataCountry withId(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public GetMetadataCountry withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public GetMetadataCountry withFilter(String filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - public GetMetadataCountry withFilter(Optional filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - public GetMetadataCountry withTag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public GetMetadataCountry withTag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetMetadataCountry other = (GetMetadataCountry) o; - return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.filter, other.filter) && - java.util.Objects.deepEquals(this.tag, other.tag); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id, - filter, - tag); - } - - @Override - public String toString() { - return Utils.toString(GetMetadataCountry.class, - "id", id, - "filter", filter, - "tag", tag); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional filter = Optional.empty(); - - private Optional tag = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder filter(String filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - public Builder filter(Optional filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - public Builder tag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Builder tag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public GetMetadataCountry build() { - return new GetMetadataCountry( - id, - filter, - tag); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataDirector.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataDirector.java deleted file mode 100644 index 39b85b0b..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataDirector.java +++ /dev/null @@ -1,283 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetMetadataDirector { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("filter") - private Optional filter; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tag") - private Optional tag; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tagKey") - private Optional tagKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("thumb") - private Optional thumb; - - @JsonCreator - public GetMetadataDirector( - @JsonProperty("id") Optional id, - @JsonProperty("filter") Optional filter, - @JsonProperty("tag") Optional tag, - @JsonProperty("tagKey") Optional tagKey, - @JsonProperty("thumb") Optional thumb) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(filter, "filter"); - Utils.checkNotNull(tag, "tag"); - Utils.checkNotNull(tagKey, "tagKey"); - Utils.checkNotNull(thumb, "thumb"); - this.id = id; - this.filter = filter; - this.tag = tag; - this.tagKey = tagKey; - this.thumb = thumb; - } - - public GetMetadataDirector() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional filter() { - return (Optional) filter; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tag() { - return (Optional) tag; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tagKey() { - return (Optional) tagKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional thumb() { - return (Optional) thumb; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetMetadataDirector withId(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public GetMetadataDirector withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public GetMetadataDirector withFilter(String filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - public GetMetadataDirector withFilter(Optional filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - public GetMetadataDirector withTag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public GetMetadataDirector withTag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public GetMetadataDirector withTagKey(String tagKey) { - Utils.checkNotNull(tagKey, "tagKey"); - this.tagKey = Optional.ofNullable(tagKey); - return this; - } - - public GetMetadataDirector withTagKey(Optional tagKey) { - Utils.checkNotNull(tagKey, "tagKey"); - this.tagKey = tagKey; - return this; - } - - public GetMetadataDirector withThumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public GetMetadataDirector withThumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetMetadataDirector other = (GetMetadataDirector) o; - return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.filter, other.filter) && - java.util.Objects.deepEquals(this.tag, other.tag) && - java.util.Objects.deepEquals(this.tagKey, other.tagKey) && - java.util.Objects.deepEquals(this.thumb, other.thumb); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id, - filter, - tag, - tagKey, - thumb); - } - - @Override - public String toString() { - return Utils.toString(GetMetadataDirector.class, - "id", id, - "filter", filter, - "tag", tag, - "tagKey", tagKey, - "thumb", thumb); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional filter = Optional.empty(); - - private Optional tag = Optional.empty(); - - private Optional tagKey = Optional.empty(); - - private Optional thumb = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder filter(String filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - public Builder filter(Optional filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - public Builder tag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Builder tag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public Builder tagKey(String tagKey) { - Utils.checkNotNull(tagKey, "tagKey"); - this.tagKey = Optional.ofNullable(tagKey); - return this; - } - - public Builder tagKey(Optional tagKey) { - Utils.checkNotNull(tagKey, "tagKey"); - this.tagKey = tagKey; - return this; - } - - public Builder thumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public Builder thumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public GetMetadataDirector build() { - return new GetMetadataDirector( - id, - filter, - tag, - tagKey, - thumb); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataGenre.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataGenre.java deleted file mode 100644 index adee7be6..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataGenre.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetMetadataGenre { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("filter") - private Optional filter; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tag") - private Optional tag; - - @JsonCreator - public GetMetadataGenre( - @JsonProperty("id") Optional id, - @JsonProperty("filter") Optional filter, - @JsonProperty("tag") Optional tag) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(filter, "filter"); - Utils.checkNotNull(tag, "tag"); - this.id = id; - this.filter = filter; - this.tag = tag; - } - - public GetMetadataGenre() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional filter() { - return (Optional) filter; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tag() { - return (Optional) tag; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetMetadataGenre withId(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public GetMetadataGenre withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public GetMetadataGenre withFilter(String filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - public GetMetadataGenre withFilter(Optional filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - public GetMetadataGenre withTag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public GetMetadataGenre withTag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetMetadataGenre other = (GetMetadataGenre) o; - return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.filter, other.filter) && - java.util.Objects.deepEquals(this.tag, other.tag); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id, - filter, - tag); - } - - @Override - public String toString() { - return Utils.toString(GetMetadataGenre.class, - "id", id, - "filter", filter, - "tag", tag); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional filter = Optional.empty(); - - private Optional tag = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder filter(String filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - public Builder filter(Optional filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - public Builder tag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Builder tag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public GetMetadataGenre build() { - return new GetMetadataGenre( - id, - filter, - tag); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataMedia.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataMedia.java deleted file mode 100644 index 6b2a484e..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataMedia.java +++ /dev/null @@ -1,799 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetMetadataMedia { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("duration") - private Optional duration; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("bitrate") - private Optional bitrate; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("width") - private Optional width; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("height") - private Optional height; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("aspectRatio") - private Optional aspectRatio; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audioChannels") - private Optional audioChannels; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audioCodec") - private Optional audioCodec; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("videoCodec") - private Optional videoCodec; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("videoResolution") - private Optional videoResolution; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("container") - private Optional container; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("videoFrameRate") - private Optional videoFrameRate; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("optimizedForStreaming") - private Optional optimizedForStreaming; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audioProfile") - private Optional audioProfile; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("has64bitOffsets") - private Optional has64bitOffsets; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("videoProfile") - private Optional videoProfile; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Part") - private Optional> part; - - @JsonCreator - public GetMetadataMedia( - @JsonProperty("id") Optional id, - @JsonProperty("duration") Optional duration, - @JsonProperty("bitrate") Optional bitrate, - @JsonProperty("width") Optional width, - @JsonProperty("height") Optional height, - @JsonProperty("aspectRatio") Optional aspectRatio, - @JsonProperty("audioChannels") Optional audioChannels, - @JsonProperty("audioCodec") Optional audioCodec, - @JsonProperty("videoCodec") Optional videoCodec, - @JsonProperty("videoResolution") Optional videoResolution, - @JsonProperty("container") Optional container, - @JsonProperty("videoFrameRate") Optional videoFrameRate, - @JsonProperty("optimizedForStreaming") Optional optimizedForStreaming, - @JsonProperty("audioProfile") Optional audioProfile, - @JsonProperty("has64bitOffsets") Optional has64bitOffsets, - @JsonProperty("videoProfile") Optional videoProfile, - @JsonProperty("Part") Optional> part) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(duration, "duration"); - Utils.checkNotNull(bitrate, "bitrate"); - Utils.checkNotNull(width, "width"); - Utils.checkNotNull(height, "height"); - Utils.checkNotNull(aspectRatio, "aspectRatio"); - Utils.checkNotNull(audioChannels, "audioChannels"); - Utils.checkNotNull(audioCodec, "audioCodec"); - Utils.checkNotNull(videoCodec, "videoCodec"); - Utils.checkNotNull(videoResolution, "videoResolution"); - Utils.checkNotNull(container, "container"); - Utils.checkNotNull(videoFrameRate, "videoFrameRate"); - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - Utils.checkNotNull(audioProfile, "audioProfile"); - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - Utils.checkNotNull(videoProfile, "videoProfile"); - Utils.checkNotNull(part, "part"); - 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; - } - - public GetMetadataMedia() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional duration() { - return (Optional) duration; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional bitrate() { - return (Optional) bitrate; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional width() { - return (Optional) width; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional height() { - return (Optional) height; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional aspectRatio() { - return (Optional) aspectRatio; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audioChannels() { - return (Optional) audioChannels; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audioCodec() { - return (Optional) audioCodec; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional videoCodec() { - return (Optional) videoCodec; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional videoResolution() { - return (Optional) videoResolution; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional container() { - return (Optional) container; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional videoFrameRate() { - return (Optional) videoFrameRate; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional optimizedForStreaming() { - return (Optional) optimizedForStreaming; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audioProfile() { - return (Optional) audioProfile; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional has64bitOffsets() { - return (Optional) has64bitOffsets; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional videoProfile() { - return (Optional) videoProfile; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> part() { - return (Optional>) part; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetMetadataMedia withId(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public GetMetadataMedia withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public GetMetadataMedia withDuration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public GetMetadataMedia withDuration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public GetMetadataMedia withBitrate(int bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = Optional.ofNullable(bitrate); - return this; - } - - public GetMetadataMedia withBitrate(Optional bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = bitrate; - return this; - } - - public GetMetadataMedia withWidth(int width) { - Utils.checkNotNull(width, "width"); - this.width = Optional.ofNullable(width); - return this; - } - - public GetMetadataMedia withWidth(Optional width) { - Utils.checkNotNull(width, "width"); - this.width = width; - return this; - } - - public GetMetadataMedia withHeight(int height) { - Utils.checkNotNull(height, "height"); - this.height = Optional.ofNullable(height); - return this; - } - - public GetMetadataMedia withHeight(Optional height) { - Utils.checkNotNull(height, "height"); - this.height = height; - return this; - } - - public GetMetadataMedia withAspectRatio(double aspectRatio) { - Utils.checkNotNull(aspectRatio, "aspectRatio"); - this.aspectRatio = Optional.ofNullable(aspectRatio); - return this; - } - - public GetMetadataMedia withAspectRatio(Optional aspectRatio) { - Utils.checkNotNull(aspectRatio, "aspectRatio"); - this.aspectRatio = aspectRatio; - return this; - } - - public GetMetadataMedia withAudioChannels(int audioChannels) { - Utils.checkNotNull(audioChannels, "audioChannels"); - this.audioChannels = Optional.ofNullable(audioChannels); - return this; - } - - public GetMetadataMedia withAudioChannels(Optional audioChannels) { - Utils.checkNotNull(audioChannels, "audioChannels"); - this.audioChannels = audioChannels; - return this; - } - - public GetMetadataMedia withAudioCodec(String audioCodec) { - Utils.checkNotNull(audioCodec, "audioCodec"); - this.audioCodec = Optional.ofNullable(audioCodec); - return this; - } - - public GetMetadataMedia withAudioCodec(Optional audioCodec) { - Utils.checkNotNull(audioCodec, "audioCodec"); - this.audioCodec = audioCodec; - return this; - } - - public GetMetadataMedia withVideoCodec(String videoCodec) { - Utils.checkNotNull(videoCodec, "videoCodec"); - this.videoCodec = Optional.ofNullable(videoCodec); - return this; - } - - public GetMetadataMedia withVideoCodec(Optional videoCodec) { - Utils.checkNotNull(videoCodec, "videoCodec"); - this.videoCodec = videoCodec; - return this; - } - - public GetMetadataMedia withVideoResolution(String videoResolution) { - Utils.checkNotNull(videoResolution, "videoResolution"); - this.videoResolution = Optional.ofNullable(videoResolution); - return this; - } - - public GetMetadataMedia withVideoResolution(Optional videoResolution) { - Utils.checkNotNull(videoResolution, "videoResolution"); - this.videoResolution = videoResolution; - return this; - } - - public GetMetadataMedia withContainer(String container) { - Utils.checkNotNull(container, "container"); - this.container = Optional.ofNullable(container); - return this; - } - - public GetMetadataMedia withContainer(Optional container) { - Utils.checkNotNull(container, "container"); - this.container = container; - return this; - } - - public GetMetadataMedia withVideoFrameRate(String videoFrameRate) { - Utils.checkNotNull(videoFrameRate, "videoFrameRate"); - this.videoFrameRate = Optional.ofNullable(videoFrameRate); - return this; - } - - public GetMetadataMedia withVideoFrameRate(Optional videoFrameRate) { - Utils.checkNotNull(videoFrameRate, "videoFrameRate"); - this.videoFrameRate = videoFrameRate; - return this; - } - - public GetMetadataMedia withOptimizedForStreaming(int optimizedForStreaming) { - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - this.optimizedForStreaming = Optional.ofNullable(optimizedForStreaming); - return this; - } - - public GetMetadataMedia withOptimizedForStreaming(Optional optimizedForStreaming) { - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - this.optimizedForStreaming = optimizedForStreaming; - return this; - } - - public GetMetadataMedia withAudioProfile(String audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = Optional.ofNullable(audioProfile); - return this; - } - - public GetMetadataMedia withAudioProfile(Optional audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = audioProfile; - return this; - } - - public GetMetadataMedia withHas64bitOffsets(boolean has64bitOffsets) { - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - this.has64bitOffsets = Optional.ofNullable(has64bitOffsets); - return this; - } - - public GetMetadataMedia withHas64bitOffsets(Optional has64bitOffsets) { - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - this.has64bitOffsets = has64bitOffsets; - return this; - } - - public GetMetadataMedia withVideoProfile(String videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = Optional.ofNullable(videoProfile); - return this; - } - - public GetMetadataMedia withVideoProfile(Optional videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = videoProfile; - return this; - } - - public GetMetadataMedia withPart(java.util.List part) { - Utils.checkNotNull(part, "part"); - this.part = Optional.ofNullable(part); - return this; - } - - public GetMetadataMedia withPart(Optional> part) { - Utils.checkNotNull(part, "part"); - this.part = part; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetMetadataMedia other = (GetMetadataMedia) o; - return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.duration, other.duration) && - java.util.Objects.deepEquals(this.bitrate, other.bitrate) && - java.util.Objects.deepEquals(this.width, other.width) && - java.util.Objects.deepEquals(this.height, other.height) && - java.util.Objects.deepEquals(this.aspectRatio, other.aspectRatio) && - java.util.Objects.deepEquals(this.audioChannels, other.audioChannels) && - java.util.Objects.deepEquals(this.audioCodec, other.audioCodec) && - java.util.Objects.deepEquals(this.videoCodec, other.videoCodec) && - java.util.Objects.deepEquals(this.videoResolution, other.videoResolution) && - java.util.Objects.deepEquals(this.container, other.container) && - java.util.Objects.deepEquals(this.videoFrameRate, other.videoFrameRate) && - java.util.Objects.deepEquals(this.optimizedForStreaming, other.optimizedForStreaming) && - java.util.Objects.deepEquals(this.audioProfile, other.audioProfile) && - java.util.Objects.deepEquals(this.has64bitOffsets, other.has64bitOffsets) && - java.util.Objects.deepEquals(this.videoProfile, other.videoProfile) && - java.util.Objects.deepEquals(this.part, other.part); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id, - duration, - bitrate, - width, - height, - aspectRatio, - audioChannels, - audioCodec, - videoCodec, - videoResolution, - container, - videoFrameRate, - optimizedForStreaming, - audioProfile, - has64bitOffsets, - videoProfile, - part); - } - - @Override - public String toString() { - return Utils.toString(GetMetadataMedia.class, - "id", id, - "duration", duration, - "bitrate", bitrate, - "width", width, - "height", height, - "aspectRatio", aspectRatio, - "audioChannels", audioChannels, - "audioCodec", audioCodec, - "videoCodec", videoCodec, - "videoResolution", videoResolution, - "container", container, - "videoFrameRate", videoFrameRate, - "optimizedForStreaming", optimizedForStreaming, - "audioProfile", audioProfile, - "has64bitOffsets", has64bitOffsets, - "videoProfile", videoProfile, - "part", part); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional duration = Optional.empty(); - - private Optional bitrate = Optional.empty(); - - private Optional width = Optional.empty(); - - private Optional height = Optional.empty(); - - private Optional aspectRatio = Optional.empty(); - - private Optional audioChannels = Optional.empty(); - - private Optional audioCodec = Optional.empty(); - - private Optional videoCodec = Optional.empty(); - - private Optional videoResolution = Optional.empty(); - - private Optional container = Optional.empty(); - - private Optional videoFrameRate = Optional.empty(); - - private Optional optimizedForStreaming = Optional.empty(); - - private Optional audioProfile = Optional.empty(); - - private Optional has64bitOffsets = Optional.empty(); - - private Optional videoProfile = Optional.empty(); - - private Optional> part = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder duration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public Builder duration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public Builder bitrate(int bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = Optional.ofNullable(bitrate); - return this; - } - - public Builder bitrate(Optional bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = bitrate; - return this; - } - - public Builder width(int width) { - Utils.checkNotNull(width, "width"); - this.width = Optional.ofNullable(width); - return this; - } - - public Builder width(Optional width) { - Utils.checkNotNull(width, "width"); - this.width = width; - return this; - } - - public Builder height(int height) { - Utils.checkNotNull(height, "height"); - this.height = Optional.ofNullable(height); - return this; - } - - public Builder height(Optional height) { - Utils.checkNotNull(height, "height"); - this.height = height; - return this; - } - - public Builder aspectRatio(double aspectRatio) { - Utils.checkNotNull(aspectRatio, "aspectRatio"); - this.aspectRatio = Optional.ofNullable(aspectRatio); - return this; - } - - public Builder aspectRatio(Optional aspectRatio) { - Utils.checkNotNull(aspectRatio, "aspectRatio"); - this.aspectRatio = aspectRatio; - return this; - } - - public Builder audioChannels(int audioChannels) { - Utils.checkNotNull(audioChannels, "audioChannels"); - this.audioChannels = Optional.ofNullable(audioChannels); - return this; - } - - public Builder audioChannels(Optional audioChannels) { - Utils.checkNotNull(audioChannels, "audioChannels"); - this.audioChannels = audioChannels; - return this; - } - - public Builder audioCodec(String audioCodec) { - Utils.checkNotNull(audioCodec, "audioCodec"); - this.audioCodec = Optional.ofNullable(audioCodec); - return this; - } - - public Builder audioCodec(Optional audioCodec) { - Utils.checkNotNull(audioCodec, "audioCodec"); - this.audioCodec = audioCodec; - return this; - } - - public Builder videoCodec(String videoCodec) { - Utils.checkNotNull(videoCodec, "videoCodec"); - this.videoCodec = Optional.ofNullable(videoCodec); - return this; - } - - public Builder videoCodec(Optional videoCodec) { - Utils.checkNotNull(videoCodec, "videoCodec"); - this.videoCodec = videoCodec; - return this; - } - - public Builder videoResolution(String videoResolution) { - Utils.checkNotNull(videoResolution, "videoResolution"); - this.videoResolution = Optional.ofNullable(videoResolution); - return this; - } - - public Builder videoResolution(Optional videoResolution) { - Utils.checkNotNull(videoResolution, "videoResolution"); - this.videoResolution = videoResolution; - return this; - } - - public Builder container(String container) { - Utils.checkNotNull(container, "container"); - this.container = Optional.ofNullable(container); - return this; - } - - public Builder container(Optional container) { - Utils.checkNotNull(container, "container"); - this.container = container; - return this; - } - - public Builder videoFrameRate(String videoFrameRate) { - Utils.checkNotNull(videoFrameRate, "videoFrameRate"); - this.videoFrameRate = Optional.ofNullable(videoFrameRate); - return this; - } - - public Builder videoFrameRate(Optional videoFrameRate) { - Utils.checkNotNull(videoFrameRate, "videoFrameRate"); - this.videoFrameRate = videoFrameRate; - return this; - } - - public Builder optimizedForStreaming(int optimizedForStreaming) { - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - this.optimizedForStreaming = Optional.ofNullable(optimizedForStreaming); - return this; - } - - public Builder optimizedForStreaming(Optional optimizedForStreaming) { - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - this.optimizedForStreaming = optimizedForStreaming; - return this; - } - - public Builder audioProfile(String audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = Optional.ofNullable(audioProfile); - return this; - } - - public Builder audioProfile(Optional audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = audioProfile; - return this; - } - - public Builder has64bitOffsets(boolean has64bitOffsets) { - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - this.has64bitOffsets = Optional.ofNullable(has64bitOffsets); - return this; - } - - public Builder has64bitOffsets(Optional has64bitOffsets) { - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - this.has64bitOffsets = has64bitOffsets; - return this; - } - - public Builder videoProfile(String videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = Optional.ofNullable(videoProfile); - return this; - } - - public Builder videoProfile(Optional videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = videoProfile; - return this; - } - - public Builder part(java.util.List part) { - Utils.checkNotNull(part, "part"); - this.part = Optional.ofNullable(part); - return this; - } - - public Builder part(Optional> part) { - Utils.checkNotNull(part, "part"); - this.part = part; - return this; - } - - public GetMetadataMedia build() { - return new GetMetadataMedia( - id, - duration, - bitrate, - width, - height, - aspectRatio, - audioChannels, - audioCodec, - videoCodec, - videoResolution, - container, - videoFrameRate, - optimizedForStreaming, - audioProfile, - has64bitOffsets, - videoProfile, - part); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataMediaContainer.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataMediaContainer.java deleted file mode 100644 index 77fe06e6..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataMediaContainer.java +++ /dev/null @@ -1,455 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetMetadataMediaContainer { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("allowSync") - private Optional allowSync; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("identifier") - private Optional identifier; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionID") - private Optional librarySectionID; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionTitle") - private Optional librarySectionTitle; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionUUID") - private Optional librarySectionUUID; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("mediaTagPrefix") - private Optional mediaTagPrefix; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("mediaTagVersion") - private Optional mediaTagVersion; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Metadata") - private Optional> metadata; - - @JsonCreator - public GetMetadataMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("allowSync") Optional allowSync, - @JsonProperty("identifier") Optional identifier, - @JsonProperty("librarySectionID") Optional librarySectionID, - @JsonProperty("librarySectionTitle") Optional librarySectionTitle, - @JsonProperty("librarySectionUUID") Optional librarySectionUUID, - @JsonProperty("mediaTagPrefix") Optional mediaTagPrefix, - @JsonProperty("mediaTagVersion") Optional mediaTagVersion, - @JsonProperty("Metadata") Optional> metadata) { - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(allowSync, "allowSync"); - Utils.checkNotNull(identifier, "identifier"); - Utils.checkNotNull(librarySectionID, "librarySectionID"); - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - Utils.checkNotNull(metadata, "metadata"); - 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; - } - - public GetMetadataMediaContainer() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional allowSync() { - return (Optional) allowSync; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional identifier() { - return (Optional) identifier; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionID() { - return (Optional) librarySectionID; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionTitle() { - return (Optional) librarySectionTitle; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionUUID() { - return (Optional) librarySectionUUID; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaTagPrefix() { - return (Optional) mediaTagPrefix; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaTagVersion() { - return (Optional) mediaTagVersion; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetMetadataMediaContainer withSize(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public GetMetadataMediaContainer withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public GetMetadataMediaContainer withAllowSync(boolean allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = Optional.ofNullable(allowSync); - return this; - } - - public GetMetadataMediaContainer withAllowSync(Optional allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = allowSync; - return this; - } - - public GetMetadataMediaContainer withIdentifier(String identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = Optional.ofNullable(identifier); - return this; - } - - public GetMetadataMediaContainer withIdentifier(Optional identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = identifier; - return this; - } - - public GetMetadataMediaContainer withLibrarySectionID(int librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = Optional.ofNullable(librarySectionID); - return this; - } - - public GetMetadataMediaContainer withLibrarySectionID(Optional librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = librarySectionID; - return this; - } - - public GetMetadataMediaContainer withLibrarySectionTitle(String librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = Optional.ofNullable(librarySectionTitle); - return this; - } - - public GetMetadataMediaContainer withLibrarySectionTitle(Optional librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = librarySectionTitle; - return this; - } - - public GetMetadataMediaContainer withLibrarySectionUUID(String librarySectionUUID) { - Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); - this.librarySectionUUID = Optional.ofNullable(librarySectionUUID); - return this; - } - - public GetMetadataMediaContainer withLibrarySectionUUID(Optional librarySectionUUID) { - Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); - this.librarySectionUUID = librarySectionUUID; - return this; - } - - public GetMetadataMediaContainer withMediaTagPrefix(String mediaTagPrefix) { - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - this.mediaTagPrefix = Optional.ofNullable(mediaTagPrefix); - return this; - } - - public GetMetadataMediaContainer withMediaTagPrefix(Optional mediaTagPrefix) { - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - this.mediaTagPrefix = mediaTagPrefix; - return this; - } - - public GetMetadataMediaContainer withMediaTagVersion(int mediaTagVersion) { - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - this.mediaTagVersion = Optional.ofNullable(mediaTagVersion); - return this; - } - - public GetMetadataMediaContainer withMediaTagVersion(Optional mediaTagVersion) { - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - this.mediaTagVersion = mediaTagVersion; - return this; - } - - public GetMetadataMediaContainer withMetadata(java.util.List metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public GetMetadataMediaContainer withMetadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetMetadataMediaContainer other = (GetMetadataMediaContainer) o; - return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.allowSync, other.allowSync) && - java.util.Objects.deepEquals(this.identifier, other.identifier) && - java.util.Objects.deepEquals(this.librarySectionID, other.librarySectionID) && - java.util.Objects.deepEquals(this.librarySectionTitle, other.librarySectionTitle) && - java.util.Objects.deepEquals(this.librarySectionUUID, other.librarySectionUUID) && - java.util.Objects.deepEquals(this.mediaTagPrefix, other.mediaTagPrefix) && - java.util.Objects.deepEquals(this.mediaTagVersion, other.mediaTagVersion) && - java.util.Objects.deepEquals(this.metadata, other.metadata); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - size, - allowSync, - identifier, - librarySectionID, - librarySectionTitle, - librarySectionUUID, - mediaTagPrefix, - mediaTagVersion, - metadata); - } - - @Override - public String toString() { - return Utils.toString(GetMetadataMediaContainer.class, - "size", size, - "allowSync", allowSync, - "identifier", identifier, - "librarySectionID", librarySectionID, - "librarySectionTitle", librarySectionTitle, - "librarySectionUUID", librarySectionUUID, - "mediaTagPrefix", mediaTagPrefix, - "mediaTagVersion", mediaTagVersion, - "metadata", metadata); - } - - public final static class Builder { - - private Optional size = Optional.empty(); - - private Optional allowSync = Optional.empty(); - - private Optional identifier = Optional.empty(); - - private Optional librarySectionID = Optional.empty(); - - private Optional librarySectionTitle = Optional.empty(); - - private Optional librarySectionUUID = Optional.empty(); - - private Optional mediaTagPrefix = Optional.empty(); - - private Optional mediaTagVersion = Optional.empty(); - - private Optional> metadata = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder size(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder allowSync(boolean allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = Optional.ofNullable(allowSync); - return this; - } - - public Builder allowSync(Optional allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = allowSync; - return this; - } - - public Builder identifier(String identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = Optional.ofNullable(identifier); - return this; - } - - public Builder identifier(Optional identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = identifier; - return this; - } - - public Builder librarySectionID(int librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = Optional.ofNullable(librarySectionID); - return this; - } - - public Builder librarySectionID(Optional librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = librarySectionID; - return this; - } - - public Builder librarySectionTitle(String librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = Optional.ofNullable(librarySectionTitle); - return this; - } - - public Builder librarySectionTitle(Optional librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = librarySectionTitle; - return this; - } - - public Builder librarySectionUUID(String librarySectionUUID) { - Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); - this.librarySectionUUID = Optional.ofNullable(librarySectionUUID); - return this; - } - - public Builder librarySectionUUID(Optional librarySectionUUID) { - Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); - this.librarySectionUUID = librarySectionUUID; - return this; - } - - public Builder mediaTagPrefix(String mediaTagPrefix) { - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - this.mediaTagPrefix = Optional.ofNullable(mediaTagPrefix); - return this; - } - - public Builder mediaTagPrefix(Optional mediaTagPrefix) { - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - this.mediaTagPrefix = mediaTagPrefix; - return this; - } - - public Builder mediaTagVersion(int mediaTagVersion) { - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - this.mediaTagVersion = Optional.ofNullable(mediaTagVersion); - return this; - } - - public Builder mediaTagVersion(Optional mediaTagVersion) { - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - this.mediaTagVersion = mediaTagVersion; - return this; - } - - public Builder metadata(java.util.List metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public Builder metadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public GetMetadataMediaContainer build() { - return new GetMetadataMediaContainer( - size, - allowSync, - identifier, - librarySectionID, - librarySectionTitle, - librarySectionUUID, - mediaTagPrefix, - mediaTagVersion, - metadata); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataMetadata.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataMetadata.java deleted file mode 100644 index aae9eade..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataMetadata.java +++ /dev/null @@ -1,1488 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetMetadataMetadata { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ratingKey") - private Optional ratingKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("guid") - private Optional guid; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("studio") - private Optional studio; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title") - private Optional title; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionTitle") - private Optional librarySectionTitle; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionID") - private Optional librarySectionID; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionKey") - private Optional librarySectionKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("contentRating") - private Optional contentRating; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("summary") - private Optional summary; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("rating") - private Optional rating; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audienceRating") - private Optional audienceRating; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("year") - private Optional year; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tagline") - private Optional tagline; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("thumb") - private Optional thumb; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("art") - private Optional art; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("duration") - private Optional duration; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("originallyAvailableAt") - private Optional originallyAvailableAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("addedAt") - private Optional addedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updatedAt") - private Optional updatedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audienceRatingImage") - private Optional audienceRatingImage; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("hasPremiumPrimaryExtra") - private Optional hasPremiumPrimaryExtra; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ratingImage") - private Optional ratingImage; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Media") - private Optional> media; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Genre") - private Optional> genre; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Country") - private Optional> country; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Guid") - private Optional> guids; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Rating") - private Optional> ratings; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Director") - private Optional> director; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Writer") - private Optional> writer; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Role") - private Optional> role; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Producer") - private Optional> producer; - - @JsonCreator - public GetMetadataMetadata( - @JsonProperty("ratingKey") Optional ratingKey, - @JsonProperty("key") Optional key, - @JsonProperty("guid") Optional guid, - @JsonProperty("studio") Optional studio, - @JsonProperty("type") Optional type, - @JsonProperty("title") Optional title, - @JsonProperty("librarySectionTitle") Optional librarySectionTitle, - @JsonProperty("librarySectionID") Optional librarySectionID, - @JsonProperty("librarySectionKey") Optional librarySectionKey, - @JsonProperty("contentRating") Optional contentRating, - @JsonProperty("summary") Optional summary, - @JsonProperty("rating") Optional rating, - @JsonProperty("audienceRating") Optional audienceRating, - @JsonProperty("year") Optional year, - @JsonProperty("tagline") Optional tagline, - @JsonProperty("thumb") Optional thumb, - @JsonProperty("art") Optional art, - @JsonProperty("duration") Optional duration, - @JsonProperty("originallyAvailableAt") Optional originallyAvailableAt, - @JsonProperty("addedAt") Optional addedAt, - @JsonProperty("updatedAt") Optional updatedAt, - @JsonProperty("audienceRatingImage") Optional audienceRatingImage, - @JsonProperty("hasPremiumPrimaryExtra") Optional hasPremiumPrimaryExtra, - @JsonProperty("ratingImage") Optional ratingImage, - @JsonProperty("Media") Optional> media, - @JsonProperty("Genre") Optional> genre, - @JsonProperty("Country") Optional> country, - @JsonProperty("guids") Optional> guids, - @JsonProperty("ratings") Optional> ratings, - @JsonProperty("Director") Optional> director, - @JsonProperty("Writer") Optional> writer, - @JsonProperty("Role") Optional> role, - @JsonProperty("Producer") Optional> producer) { - Utils.checkNotNull(ratingKey, "ratingKey"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(guid, "guid"); - Utils.checkNotNull(studio, "studio"); - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(title, "title"); - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - Utils.checkNotNull(librarySectionID, "librarySectionID"); - Utils.checkNotNull(librarySectionKey, "librarySectionKey"); - Utils.checkNotNull(contentRating, "contentRating"); - Utils.checkNotNull(summary, "summary"); - Utils.checkNotNull(rating, "rating"); - Utils.checkNotNull(audienceRating, "audienceRating"); - Utils.checkNotNull(year, "year"); - Utils.checkNotNull(tagline, "tagline"); - Utils.checkNotNull(thumb, "thumb"); - Utils.checkNotNull(art, "art"); - Utils.checkNotNull(duration, "duration"); - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - Utils.checkNotNull(addedAt, "addedAt"); - Utils.checkNotNull(updatedAt, "updatedAt"); - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - Utils.checkNotNull(hasPremiumPrimaryExtra, "hasPremiumPrimaryExtra"); - Utils.checkNotNull(ratingImage, "ratingImage"); - Utils.checkNotNull(media, "media"); - Utils.checkNotNull(genre, "genre"); - Utils.checkNotNull(country, "country"); - Utils.checkNotNull(guids, "guids"); - Utils.checkNotNull(ratings, "ratings"); - Utils.checkNotNull(director, "director"); - Utils.checkNotNull(writer, "writer"); - Utils.checkNotNull(role, "role"); - Utils.checkNotNull(producer, "producer"); - 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; - } - - public GetMetadataMetadata() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional ratingKey() { - return (Optional) ratingKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional guid() { - return (Optional) guid; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional studio() { - return (Optional) studio; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title() { - return (Optional) title; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionTitle() { - return (Optional) librarySectionTitle; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionID() { - return (Optional) librarySectionID; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionKey() { - return (Optional) librarySectionKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional contentRating() { - return (Optional) contentRating; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional summary() { - return (Optional) summary; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional rating() { - return (Optional) rating; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audienceRating() { - return (Optional) audienceRating; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional year() { - return (Optional) year; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tagline() { - return (Optional) tagline; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional thumb() { - return (Optional) thumb; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional art() { - return (Optional) art; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional duration() { - return (Optional) duration; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional originallyAvailableAt() { - return (Optional) originallyAvailableAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional addedAt() { - return (Optional) addedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional updatedAt() { - return (Optional) updatedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audienceRatingImage() { - return (Optional) audienceRatingImage; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional hasPremiumPrimaryExtra() { - return (Optional) hasPremiumPrimaryExtra; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional ratingImage() { - return (Optional) ratingImage; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> media() { - return (Optional>) media; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> genre() { - return (Optional>) genre; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> country() { - return (Optional>) country; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> guids() { - return (Optional>) guids; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> ratings() { - return (Optional>) ratings; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> director() { - return (Optional>) director; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> writer() { - return (Optional>) writer; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> role() { - return (Optional>) role; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> producer() { - return (Optional>) producer; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetMetadataMetadata withRatingKey(String ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public GetMetadataMetadata withRatingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public GetMetadataMetadata withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public GetMetadataMetadata withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public GetMetadataMetadata withGuid(String guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = Optional.ofNullable(guid); - return this; - } - - public GetMetadataMetadata withGuid(Optional guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = guid; - return this; - } - - public GetMetadataMetadata withStudio(String studio) { - Utils.checkNotNull(studio, "studio"); - this.studio = Optional.ofNullable(studio); - return this; - } - - public GetMetadataMetadata withStudio(Optional studio) { - Utils.checkNotNull(studio, "studio"); - this.studio = studio; - return this; - } - - public GetMetadataMetadata withType(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public GetMetadataMetadata withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public GetMetadataMetadata withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public GetMetadataMetadata withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public GetMetadataMetadata withLibrarySectionTitle(String librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = Optional.ofNullable(librarySectionTitle); - return this; - } - - public GetMetadataMetadata withLibrarySectionTitle(Optional librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = librarySectionTitle; - return this; - } - - public GetMetadataMetadata withLibrarySectionID(int librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = Optional.ofNullable(librarySectionID); - return this; - } - - public GetMetadataMetadata withLibrarySectionID(Optional librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = librarySectionID; - return this; - } - - public GetMetadataMetadata withLibrarySectionKey(String librarySectionKey) { - Utils.checkNotNull(librarySectionKey, "librarySectionKey"); - this.librarySectionKey = Optional.ofNullable(librarySectionKey); - return this; - } - - public GetMetadataMetadata withLibrarySectionKey(Optional librarySectionKey) { - Utils.checkNotNull(librarySectionKey, "librarySectionKey"); - this.librarySectionKey = librarySectionKey; - return this; - } - - public GetMetadataMetadata withContentRating(String contentRating) { - Utils.checkNotNull(contentRating, "contentRating"); - this.contentRating = Optional.ofNullable(contentRating); - return this; - } - - public GetMetadataMetadata withContentRating(Optional contentRating) { - Utils.checkNotNull(contentRating, "contentRating"); - this.contentRating = contentRating; - return this; - } - - public GetMetadataMetadata withSummary(String summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = Optional.ofNullable(summary); - return this; - } - - public GetMetadataMetadata withSummary(Optional summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = summary; - return this; - } - - public GetMetadataMetadata withRating(double rating) { - Utils.checkNotNull(rating, "rating"); - this.rating = Optional.ofNullable(rating); - return this; - } - - public GetMetadataMetadata withRating(Optional rating) { - Utils.checkNotNull(rating, "rating"); - this.rating = rating; - return this; - } - - public GetMetadataMetadata withAudienceRating(double audienceRating) { - Utils.checkNotNull(audienceRating, "audienceRating"); - this.audienceRating = Optional.ofNullable(audienceRating); - return this; - } - - public GetMetadataMetadata withAudienceRating(Optional audienceRating) { - Utils.checkNotNull(audienceRating, "audienceRating"); - this.audienceRating = audienceRating; - return this; - } - - public GetMetadataMetadata withYear(int year) { - Utils.checkNotNull(year, "year"); - this.year = Optional.ofNullable(year); - return this; - } - - public GetMetadataMetadata withYear(Optional year) { - Utils.checkNotNull(year, "year"); - this.year = year; - return this; - } - - public GetMetadataMetadata withTagline(String tagline) { - Utils.checkNotNull(tagline, "tagline"); - this.tagline = Optional.ofNullable(tagline); - return this; - } - - public GetMetadataMetadata withTagline(Optional tagline) { - Utils.checkNotNull(tagline, "tagline"); - this.tagline = tagline; - return this; - } - - public GetMetadataMetadata withThumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public GetMetadataMetadata withThumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public GetMetadataMetadata withArt(String art) { - Utils.checkNotNull(art, "art"); - this.art = Optional.ofNullable(art); - return this; - } - - public GetMetadataMetadata withArt(Optional art) { - Utils.checkNotNull(art, "art"); - this.art = art; - return this; - } - - public GetMetadataMetadata withDuration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public GetMetadataMetadata withDuration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public GetMetadataMetadata withOriginallyAvailableAt(LocalDate originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = Optional.ofNullable(originallyAvailableAt); - return this; - } - - public GetMetadataMetadata withOriginallyAvailableAt(Optional originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = originallyAvailableAt; - return this; - } - - public GetMetadataMetadata withAddedAt(int addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = Optional.ofNullable(addedAt); - return this; - } - - public GetMetadataMetadata withAddedAt(Optional addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = addedAt; - return this; - } - - public GetMetadataMetadata withUpdatedAt(int updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public GetMetadataMetadata withUpdatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public GetMetadataMetadata withAudienceRatingImage(String audienceRatingImage) { - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - this.audienceRatingImage = Optional.ofNullable(audienceRatingImage); - return this; - } - - public GetMetadataMetadata withAudienceRatingImage(Optional audienceRatingImage) { - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - this.audienceRatingImage = audienceRatingImage; - return this; - } - - public GetMetadataMetadata withHasPremiumPrimaryExtra(String hasPremiumPrimaryExtra) { - Utils.checkNotNull(hasPremiumPrimaryExtra, "hasPremiumPrimaryExtra"); - this.hasPremiumPrimaryExtra = Optional.ofNullable(hasPremiumPrimaryExtra); - return this; - } - - public GetMetadataMetadata withHasPremiumPrimaryExtra(Optional hasPremiumPrimaryExtra) { - Utils.checkNotNull(hasPremiumPrimaryExtra, "hasPremiumPrimaryExtra"); - this.hasPremiumPrimaryExtra = hasPremiumPrimaryExtra; - return this; - } - - public GetMetadataMetadata withRatingImage(String ratingImage) { - Utils.checkNotNull(ratingImage, "ratingImage"); - this.ratingImage = Optional.ofNullable(ratingImage); - return this; - } - - public GetMetadataMetadata withRatingImage(Optional ratingImage) { - Utils.checkNotNull(ratingImage, "ratingImage"); - this.ratingImage = ratingImage; - return this; - } - - public GetMetadataMetadata withMedia(java.util.List media) { - Utils.checkNotNull(media, "media"); - this.media = Optional.ofNullable(media); - return this; - } - - public GetMetadataMetadata withMedia(Optional> media) { - Utils.checkNotNull(media, "media"); - this.media = media; - return this; - } - - public GetMetadataMetadata withGenre(java.util.List genre) { - Utils.checkNotNull(genre, "genre"); - this.genre = Optional.ofNullable(genre); - return this; - } - - public GetMetadataMetadata withGenre(Optional> genre) { - Utils.checkNotNull(genre, "genre"); - this.genre = genre; - return this; - } - - public GetMetadataMetadata withCountry(java.util.List country) { - Utils.checkNotNull(country, "country"); - this.country = Optional.ofNullable(country); - return this; - } - - public GetMetadataMetadata withCountry(Optional> country) { - Utils.checkNotNull(country, "country"); - this.country = country; - return this; - } - - public GetMetadataMetadata withGuids(java.util.List guids) { - Utils.checkNotNull(guids, "guids"); - this.guids = Optional.ofNullable(guids); - return this; - } - - public GetMetadataMetadata withGuids(Optional> guids) { - Utils.checkNotNull(guids, "guids"); - this.guids = guids; - return this; - } - - public GetMetadataMetadata withRatings(java.util.List ratings) { - Utils.checkNotNull(ratings, "ratings"); - this.ratings = Optional.ofNullable(ratings); - return this; - } - - public GetMetadataMetadata withRatings(Optional> ratings) { - Utils.checkNotNull(ratings, "ratings"); - this.ratings = ratings; - return this; - } - - public GetMetadataMetadata withDirector(java.util.List director) { - Utils.checkNotNull(director, "director"); - this.director = Optional.ofNullable(director); - return this; - } - - public GetMetadataMetadata withDirector(Optional> director) { - Utils.checkNotNull(director, "director"); - this.director = director; - return this; - } - - public GetMetadataMetadata withWriter(java.util.List writer) { - Utils.checkNotNull(writer, "writer"); - this.writer = Optional.ofNullable(writer); - return this; - } - - public GetMetadataMetadata withWriter(Optional> writer) { - Utils.checkNotNull(writer, "writer"); - this.writer = writer; - return this; - } - - public GetMetadataMetadata withRole(java.util.List role) { - Utils.checkNotNull(role, "role"); - this.role = Optional.ofNullable(role); - return this; - } - - public GetMetadataMetadata withRole(Optional> role) { - Utils.checkNotNull(role, "role"); - this.role = role; - return this; - } - - public GetMetadataMetadata withProducer(java.util.List producer) { - Utils.checkNotNull(producer, "producer"); - this.producer = Optional.ofNullable(producer); - return this; - } - - public GetMetadataMetadata withProducer(Optional> producer) { - Utils.checkNotNull(producer, "producer"); - this.producer = producer; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetMetadataMetadata other = (GetMetadataMetadata) o; - return - java.util.Objects.deepEquals(this.ratingKey, other.ratingKey) && - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.guid, other.guid) && - java.util.Objects.deepEquals(this.studio, other.studio) && - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.title, other.title) && - java.util.Objects.deepEquals(this.librarySectionTitle, other.librarySectionTitle) && - java.util.Objects.deepEquals(this.librarySectionID, other.librarySectionID) && - java.util.Objects.deepEquals(this.librarySectionKey, other.librarySectionKey) && - java.util.Objects.deepEquals(this.contentRating, other.contentRating) && - java.util.Objects.deepEquals(this.summary, other.summary) && - java.util.Objects.deepEquals(this.rating, other.rating) && - java.util.Objects.deepEquals(this.audienceRating, other.audienceRating) && - java.util.Objects.deepEquals(this.year, other.year) && - java.util.Objects.deepEquals(this.tagline, other.tagline) && - java.util.Objects.deepEquals(this.thumb, other.thumb) && - java.util.Objects.deepEquals(this.art, other.art) && - java.util.Objects.deepEquals(this.duration, other.duration) && - java.util.Objects.deepEquals(this.originallyAvailableAt, other.originallyAvailableAt) && - java.util.Objects.deepEquals(this.addedAt, other.addedAt) && - java.util.Objects.deepEquals(this.updatedAt, other.updatedAt) && - java.util.Objects.deepEquals(this.audienceRatingImage, other.audienceRatingImage) && - java.util.Objects.deepEquals(this.hasPremiumPrimaryExtra, other.hasPremiumPrimaryExtra) && - java.util.Objects.deepEquals(this.ratingImage, other.ratingImage) && - java.util.Objects.deepEquals(this.media, other.media) && - java.util.Objects.deepEquals(this.genre, other.genre) && - java.util.Objects.deepEquals(this.country, other.country) && - java.util.Objects.deepEquals(this.guids, other.guids) && - java.util.Objects.deepEquals(this.ratings, other.ratings) && - java.util.Objects.deepEquals(this.director, other.director) && - java.util.Objects.deepEquals(this.writer, other.writer) && - java.util.Objects.deepEquals(this.role, other.role) && - java.util.Objects.deepEquals(this.producer, other.producer); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - ratingKey, - key, - guid, - studio, - type, - title, - librarySectionTitle, - librarySectionID, - librarySectionKey, - contentRating, - summary, - rating, - audienceRating, - year, - tagline, - thumb, - art, - duration, - originallyAvailableAt, - addedAt, - updatedAt, - audienceRatingImage, - hasPremiumPrimaryExtra, - ratingImage, - media, - genre, - country, - guids, - ratings, - director, - writer, - role, - producer); - } - - @Override - public String toString() { - return Utils.toString(GetMetadataMetadata.class, - "ratingKey", ratingKey, - "key", key, - "guid", guid, - "studio", studio, - "type", type, - "title", title, - "librarySectionTitle", librarySectionTitle, - "librarySectionID", librarySectionID, - "librarySectionKey", librarySectionKey, - "contentRating", contentRating, - "summary", summary, - "rating", rating, - "audienceRating", audienceRating, - "year", year, - "tagline", tagline, - "thumb", thumb, - "art", art, - "duration", duration, - "originallyAvailableAt", originallyAvailableAt, - "addedAt", addedAt, - "updatedAt", updatedAt, - "audienceRatingImage", audienceRatingImage, - "hasPremiumPrimaryExtra", hasPremiumPrimaryExtra, - "ratingImage", ratingImage, - "media", media, - "genre", genre, - "country", country, - "guids", guids, - "ratings", ratings, - "director", director, - "writer", writer, - "role", role, - "producer", producer); - } - - public final static class Builder { - - private Optional ratingKey = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional guid = Optional.empty(); - - private Optional studio = Optional.empty(); - - private Optional type = Optional.empty(); - - private Optional title = Optional.empty(); - - private Optional librarySectionTitle = Optional.empty(); - - private Optional librarySectionID = Optional.empty(); - - private Optional librarySectionKey = Optional.empty(); - - private Optional contentRating = Optional.empty(); - - private Optional summary = Optional.empty(); - - private Optional rating = Optional.empty(); - - private Optional audienceRating = Optional.empty(); - - private Optional year = Optional.empty(); - - private Optional tagline = Optional.empty(); - - private Optional thumb = Optional.empty(); - - private Optional art = Optional.empty(); - - private Optional duration = Optional.empty(); - - private Optional originallyAvailableAt = Optional.empty(); - - private Optional addedAt = Optional.empty(); - - private Optional updatedAt = Optional.empty(); - - private Optional audienceRatingImage = Optional.empty(); - - private Optional hasPremiumPrimaryExtra = Optional.empty(); - - private Optional ratingImage = Optional.empty(); - - private Optional> media = Optional.empty(); - - private Optional> genre = Optional.empty(); - - private Optional> country = Optional.empty(); - - private Optional> guids = Optional.empty(); - - private Optional> ratings = Optional.empty(); - - private Optional> director = Optional.empty(); - - private Optional> writer = Optional.empty(); - - private Optional> role = Optional.empty(); - - private Optional> producer = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder ratingKey(String ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public Builder ratingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder guid(String guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = Optional.ofNullable(guid); - return this; - } - - public Builder guid(Optional guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = guid; - return this; - } - - public Builder studio(String studio) { - Utils.checkNotNull(studio, "studio"); - this.studio = Optional.ofNullable(studio); - return this; - } - - public Builder studio(Optional studio) { - Utils.checkNotNull(studio, "studio"); - this.studio = studio; - return this; - } - - public Builder type(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Builder librarySectionTitle(String librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = Optional.ofNullable(librarySectionTitle); - return this; - } - - public Builder librarySectionTitle(Optional librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = librarySectionTitle; - return this; - } - - public Builder librarySectionID(int librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = Optional.ofNullable(librarySectionID); - return this; - } - - public Builder librarySectionID(Optional librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = librarySectionID; - return this; - } - - public Builder librarySectionKey(String librarySectionKey) { - Utils.checkNotNull(librarySectionKey, "librarySectionKey"); - this.librarySectionKey = Optional.ofNullable(librarySectionKey); - return this; - } - - public Builder librarySectionKey(Optional librarySectionKey) { - Utils.checkNotNull(librarySectionKey, "librarySectionKey"); - this.librarySectionKey = librarySectionKey; - return this; - } - - public Builder contentRating(String contentRating) { - Utils.checkNotNull(contentRating, "contentRating"); - this.contentRating = Optional.ofNullable(contentRating); - return this; - } - - public Builder contentRating(Optional contentRating) { - Utils.checkNotNull(contentRating, "contentRating"); - this.contentRating = contentRating; - return this; - } - - public Builder summary(String summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = Optional.ofNullable(summary); - return this; - } - - public Builder summary(Optional summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = summary; - return this; - } - - public Builder rating(double rating) { - Utils.checkNotNull(rating, "rating"); - this.rating = Optional.ofNullable(rating); - return this; - } - - public Builder rating(Optional rating) { - Utils.checkNotNull(rating, "rating"); - this.rating = rating; - return this; - } - - public Builder audienceRating(double audienceRating) { - Utils.checkNotNull(audienceRating, "audienceRating"); - this.audienceRating = Optional.ofNullable(audienceRating); - return this; - } - - public Builder audienceRating(Optional audienceRating) { - Utils.checkNotNull(audienceRating, "audienceRating"); - this.audienceRating = audienceRating; - return this; - } - - public Builder year(int year) { - Utils.checkNotNull(year, "year"); - this.year = Optional.ofNullable(year); - return this; - } - - public Builder year(Optional year) { - Utils.checkNotNull(year, "year"); - this.year = year; - return this; - } - - public Builder tagline(String tagline) { - Utils.checkNotNull(tagline, "tagline"); - this.tagline = Optional.ofNullable(tagline); - return this; - } - - public Builder tagline(Optional tagline) { - Utils.checkNotNull(tagline, "tagline"); - this.tagline = tagline; - return this; - } - - public Builder thumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public Builder thumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public Builder art(String art) { - Utils.checkNotNull(art, "art"); - this.art = Optional.ofNullable(art); - return this; - } - - public Builder art(Optional art) { - Utils.checkNotNull(art, "art"); - this.art = art; - return this; - } - - public Builder duration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public Builder duration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public Builder originallyAvailableAt(LocalDate originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = Optional.ofNullable(originallyAvailableAt); - return this; - } - - public Builder originallyAvailableAt(Optional originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = originallyAvailableAt; - return this; - } - - public Builder addedAt(int addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = Optional.ofNullable(addedAt); - return this; - } - - public Builder addedAt(Optional addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = addedAt; - return this; - } - - public Builder updatedAt(int updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public Builder updatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public Builder audienceRatingImage(String audienceRatingImage) { - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - this.audienceRatingImage = Optional.ofNullable(audienceRatingImage); - return this; - } - - public Builder audienceRatingImage(Optional audienceRatingImage) { - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - this.audienceRatingImage = audienceRatingImage; - return this; - } - - public Builder hasPremiumPrimaryExtra(String hasPremiumPrimaryExtra) { - Utils.checkNotNull(hasPremiumPrimaryExtra, "hasPremiumPrimaryExtra"); - this.hasPremiumPrimaryExtra = Optional.ofNullable(hasPremiumPrimaryExtra); - return this; - } - - public Builder hasPremiumPrimaryExtra(Optional hasPremiumPrimaryExtra) { - Utils.checkNotNull(hasPremiumPrimaryExtra, "hasPremiumPrimaryExtra"); - this.hasPremiumPrimaryExtra = hasPremiumPrimaryExtra; - return this; - } - - public Builder ratingImage(String ratingImage) { - Utils.checkNotNull(ratingImage, "ratingImage"); - this.ratingImage = Optional.ofNullable(ratingImage); - return this; - } - - public Builder ratingImage(Optional ratingImage) { - Utils.checkNotNull(ratingImage, "ratingImage"); - this.ratingImage = ratingImage; - return this; - } - - public Builder media(java.util.List media) { - Utils.checkNotNull(media, "media"); - this.media = Optional.ofNullable(media); - return this; - } - - public Builder media(Optional> media) { - Utils.checkNotNull(media, "media"); - this.media = media; - return this; - } - - public Builder genre(java.util.List genre) { - Utils.checkNotNull(genre, "genre"); - this.genre = Optional.ofNullable(genre); - return this; - } - - public Builder genre(Optional> genre) { - Utils.checkNotNull(genre, "genre"); - this.genre = genre; - return this; - } - - public Builder country(java.util.List country) { - Utils.checkNotNull(country, "country"); - this.country = Optional.ofNullable(country); - return this; - } - - public Builder country(Optional> country) { - Utils.checkNotNull(country, "country"); - this.country = country; - return this; - } - - public Builder guids(java.util.List guids) { - Utils.checkNotNull(guids, "guids"); - this.guids = Optional.ofNullable(guids); - return this; - } - - public Builder guids(Optional> guids) { - Utils.checkNotNull(guids, "guids"); - this.guids = guids; - return this; - } - - public Builder ratings(java.util.List ratings) { - Utils.checkNotNull(ratings, "ratings"); - this.ratings = Optional.ofNullable(ratings); - return this; - } - - public Builder ratings(Optional> ratings) { - Utils.checkNotNull(ratings, "ratings"); - this.ratings = ratings; - return this; - } - - public Builder director(java.util.List director) { - Utils.checkNotNull(director, "director"); - this.director = Optional.ofNullable(director); - return this; - } - - public Builder director(Optional> director) { - Utils.checkNotNull(director, "director"); - this.director = director; - return this; - } - - public Builder writer(java.util.List writer) { - Utils.checkNotNull(writer, "writer"); - this.writer = Optional.ofNullable(writer); - return this; - } - - public Builder writer(Optional> writer) { - Utils.checkNotNull(writer, "writer"); - this.writer = writer; - return this; - } - - public Builder role(java.util.List role) { - Utils.checkNotNull(role, "role"); - this.role = Optional.ofNullable(role); - return this; - } - - public Builder role(Optional> role) { - Utils.checkNotNull(role, "role"); - this.role = role; - return this; - } - - public Builder producer(java.util.List producer) { - Utils.checkNotNull(producer, "producer"); - this.producer = Optional.ofNullable(producer); - return this; - } - - public Builder producer(Optional> producer) { - Utils.checkNotNull(producer, "producer"); - this.producer = producer; - return this; - } - - public GetMetadataMetadata build() { - return new GetMetadataMetadata( - ratingKey, - key, - guid, - studio, - type, - title, - librarySectionTitle, - librarySectionID, - librarySectionKey, - contentRating, - summary, - rating, - audienceRating, - year, - tagline, - thumb, - art, - duration, - originallyAvailableAt, - addedAt, - updatedAt, - audienceRatingImage, - hasPremiumPrimaryExtra, - ratingImage, - media, - genre, - country, - guids, - ratings, - director, - writer, - role, - producer); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataPart.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataPart.java deleted file mode 100644 index 6d065832..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataPart.java +++ /dev/null @@ -1,541 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetMetadataPart { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("duration") - private Optional duration; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("file") - private Optional file; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audioProfile") - private Optional audioProfile; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("container") - private Optional container; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("has64bitOffsets") - private Optional has64bitOffsets; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("optimizedForStreaming") - private Optional optimizedForStreaming; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("videoProfile") - private Optional videoProfile; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Stream") - private Optional> stream; - - @JsonCreator - public GetMetadataPart( - @JsonProperty("id") Optional id, - @JsonProperty("key") Optional key, - @JsonProperty("duration") Optional duration, - @JsonProperty("file") Optional file, - @JsonProperty("size") Optional size, - @JsonProperty("audioProfile") Optional audioProfile, - @JsonProperty("container") Optional container, - @JsonProperty("has64bitOffsets") Optional has64bitOffsets, - @JsonProperty("optimizedForStreaming") Optional optimizedForStreaming, - @JsonProperty("videoProfile") Optional videoProfile, - @JsonProperty("Stream") Optional> stream) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(duration, "duration"); - Utils.checkNotNull(file, "file"); - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(audioProfile, "audioProfile"); - Utils.checkNotNull(container, "container"); - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - Utils.checkNotNull(videoProfile, "videoProfile"); - Utils.checkNotNull(stream, "stream"); - 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; - } - - public GetMetadataPart() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional duration() { - return (Optional) duration; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional file() { - return (Optional) file; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audioProfile() { - return (Optional) audioProfile; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional container() { - return (Optional) container; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional has64bitOffsets() { - return (Optional) has64bitOffsets; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional optimizedForStreaming() { - return (Optional) optimizedForStreaming; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional videoProfile() { - return (Optional) videoProfile; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> stream() { - return (Optional>) stream; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetMetadataPart withId(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public GetMetadataPart withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public GetMetadataPart withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public GetMetadataPart withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public GetMetadataPart withDuration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public GetMetadataPart withDuration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public GetMetadataPart withFile(String file) { - Utils.checkNotNull(file, "file"); - this.file = Optional.ofNullable(file); - return this; - } - - public GetMetadataPart withFile(Optional file) { - Utils.checkNotNull(file, "file"); - this.file = file; - return this; - } - - public GetMetadataPart withSize(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public GetMetadataPart withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public GetMetadataPart withAudioProfile(String audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = Optional.ofNullable(audioProfile); - return this; - } - - public GetMetadataPart withAudioProfile(Optional audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = audioProfile; - return this; - } - - public GetMetadataPart withContainer(String container) { - Utils.checkNotNull(container, "container"); - this.container = Optional.ofNullable(container); - return this; - } - - public GetMetadataPart withContainer(Optional container) { - Utils.checkNotNull(container, "container"); - this.container = container; - return this; - } - - public GetMetadataPart withHas64bitOffsets(boolean has64bitOffsets) { - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - this.has64bitOffsets = Optional.ofNullable(has64bitOffsets); - return this; - } - - public GetMetadataPart withHas64bitOffsets(Optional has64bitOffsets) { - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - this.has64bitOffsets = has64bitOffsets; - return this; - } - - public GetMetadataPart withOptimizedForStreaming(boolean optimizedForStreaming) { - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - this.optimizedForStreaming = Optional.ofNullable(optimizedForStreaming); - return this; - } - - public GetMetadataPart withOptimizedForStreaming(Optional optimizedForStreaming) { - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - this.optimizedForStreaming = optimizedForStreaming; - return this; - } - - public GetMetadataPart withVideoProfile(String videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = Optional.ofNullable(videoProfile); - return this; - } - - public GetMetadataPart withVideoProfile(Optional videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = videoProfile; - return this; - } - - public GetMetadataPart withStream(java.util.List stream) { - Utils.checkNotNull(stream, "stream"); - this.stream = Optional.ofNullable(stream); - return this; - } - - public GetMetadataPart withStream(Optional> stream) { - Utils.checkNotNull(stream, "stream"); - this.stream = stream; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetMetadataPart other = (GetMetadataPart) o; - return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.duration, other.duration) && - java.util.Objects.deepEquals(this.file, other.file) && - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.audioProfile, other.audioProfile) && - java.util.Objects.deepEquals(this.container, other.container) && - java.util.Objects.deepEquals(this.has64bitOffsets, other.has64bitOffsets) && - java.util.Objects.deepEquals(this.optimizedForStreaming, other.optimizedForStreaming) && - java.util.Objects.deepEquals(this.videoProfile, other.videoProfile) && - java.util.Objects.deepEquals(this.stream, other.stream); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id, - key, - duration, - file, - size, - audioProfile, - container, - has64bitOffsets, - optimizedForStreaming, - videoProfile, - stream); - } - - @Override - public String toString() { - return Utils.toString(GetMetadataPart.class, - "id", id, - "key", key, - "duration", duration, - "file", file, - "size", size, - "audioProfile", audioProfile, - "container", container, - "has64bitOffsets", has64bitOffsets, - "optimizedForStreaming", optimizedForStreaming, - "videoProfile", videoProfile, - "stream", stream); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional duration = Optional.empty(); - - private Optional file = Optional.empty(); - - private Optional size = Optional.empty(); - - private Optional audioProfile = Optional.empty(); - - private Optional container = Optional.empty(); - - private Optional has64bitOffsets = Optional.empty(); - - private Optional optimizedForStreaming = Optional.empty(); - - private Optional videoProfile = Optional.empty(); - - private Optional> stream = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder duration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public Builder duration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public Builder file(String file) { - Utils.checkNotNull(file, "file"); - this.file = Optional.ofNullable(file); - return this; - } - - public Builder file(Optional file) { - Utils.checkNotNull(file, "file"); - this.file = file; - return this; - } - - public Builder size(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder audioProfile(String audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = Optional.ofNullable(audioProfile); - return this; - } - - public Builder audioProfile(Optional audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = audioProfile; - return this; - } - - public Builder container(String container) { - Utils.checkNotNull(container, "container"); - this.container = Optional.ofNullable(container); - return this; - } - - public Builder container(Optional container) { - Utils.checkNotNull(container, "container"); - this.container = container; - return this; - } - - public Builder has64bitOffsets(boolean has64bitOffsets) { - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - this.has64bitOffsets = Optional.ofNullable(has64bitOffsets); - return this; - } - - public Builder has64bitOffsets(Optional has64bitOffsets) { - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - this.has64bitOffsets = has64bitOffsets; - return this; - } - - public Builder optimizedForStreaming(boolean optimizedForStreaming) { - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - this.optimizedForStreaming = Optional.ofNullable(optimizedForStreaming); - return this; - } - - public Builder optimizedForStreaming(Optional optimizedForStreaming) { - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - this.optimizedForStreaming = optimizedForStreaming; - return this; - } - - public Builder videoProfile(String videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = Optional.ofNullable(videoProfile); - return this; - } - - public Builder videoProfile(Optional videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = videoProfile; - return this; - } - - public Builder stream(java.util.List stream) { - Utils.checkNotNull(stream, "stream"); - this.stream = Optional.ofNullable(stream); - return this; - } - - public Builder stream(Optional> stream) { - Utils.checkNotNull(stream, "stream"); - this.stream = stream; - return this; - } - - public GetMetadataPart build() { - return new GetMetadataPart( - id, - key, - duration, - file, - size, - audioProfile, - container, - has64bitOffsets, - optimizedForStreaming, - videoProfile, - stream); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataRequest.java deleted file mode 100644 index 41043e7b..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataRequest.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetMetadataRequest { - - /** - * the id of the library item to return the children of. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=ratingKey") - private double ratingKey; - - @JsonCreator - public GetMetadataRequest( - double ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - } - - /** - * the id of the library item to return the children of. - */ - @JsonIgnore - public double ratingKey() { - return ratingKey; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * the id of the library item to return the children of. - */ - public GetMetadataRequest withRatingKey(double ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetMetadataRequest other = (GetMetadataRequest) o; - return - java.util.Objects.deepEquals(this.ratingKey, other.ratingKey); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - ratingKey); - } - - @Override - public String toString() { - return Utils.toString(GetMetadataRequest.class, - "ratingKey", ratingKey); - } - - public final static class Builder { - - private Double ratingKey; - - private Builder() { - // force use of static builder() method - } - - /** - * the id of the library item to return the children of. - */ - public Builder ratingKey(double ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public GetMetadataRequest build() { - return new GetMetadataRequest( - ratingKey); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataRequestBuilder.java deleted file mode 100644 index 6d4a67a5..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataRequestBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetMetadataRequestBuilder { - - private Double ratingKey; - private final SDKMethodInterfaces.MethodCallGetMetadata sdk; - - public GetMetadataRequestBuilder(SDKMethodInterfaces.MethodCallGetMetadata sdk) { - this.sdk = sdk; - } - - public GetMetadataRequestBuilder ratingKey(double ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public GetMetadataResponse call() throws Exception { - - return sdk.getMetadata( - ratingKey); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataResponse.java deleted file mode 100644 index 25009d0c..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataResponse.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetMetadataResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * The metadata of the library item. - */ - private Optional object; - - @JsonCreator - public GetMetadataResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional object) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.object = object; - } - - public GetMetadataResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * The metadata of the library item. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional object() { - return (Optional) object; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetMetadataResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetMetadataResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetMetadataResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * The metadata of the library item. - */ - public GetMetadataResponse withObject(GetMetadataResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * The metadata of the library item. - */ - public GetMetadataResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetMetadataResponse other = (GetMetadataResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.object, other.object); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse, - object); - } - - @Override - public String toString() { - return Utils.toString(GetMetadataResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "object", object); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional object = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * The metadata of the library item. - */ - public Builder object(GetMetadataResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * The metadata of the library item. - */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - public GetMetadataResponse build() { - return new GetMetadataResponse( - contentType, - statusCode, - rawResponse, - object); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataResponseBody.java deleted file mode 100644 index 3a4b4657..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataResponseBody.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -/** - * GetMetadataResponseBody - The metadata of the library item. - */ - -public class GetMetadataResponseBody { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("MediaContainer") - private Optional mediaContainer; - - @JsonCreator - public GetMetadataResponseBody( - @JsonProperty("MediaContainer") Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - } - - public GetMetadataResponseBody() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaContainer() { - return (Optional) mediaContainer; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetMetadataResponseBody withMediaContainer(GetMetadataMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public GetMetadataResponseBody withMediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetMetadataResponseBody other = (GetMetadataResponseBody) o; - return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - mediaContainer); - } - - @Override - public String toString() { - return Utils.toString(GetMetadataResponseBody.class, - "mediaContainer", mediaContainer); - } - - public final static class Builder { - - private Optional mediaContainer = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder mediaContainer(GetMetadataMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public Builder mediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - public GetMetadataResponseBody build() { - return new GetMetadataResponseBody( - mediaContainer); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataRole.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataRole.java deleted file mode 100644 index 3c573a01..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataRole.java +++ /dev/null @@ -1,326 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetMetadataRole { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("filter") - private Optional filter; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tag") - private Optional tag; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tagKey") - private Optional tagKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("role") - private Optional role; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("thumb") - private Optional thumb; - - @JsonCreator - public GetMetadataRole( - @JsonProperty("id") Optional id, - @JsonProperty("filter") Optional filter, - @JsonProperty("tag") Optional tag, - @JsonProperty("tagKey") Optional tagKey, - @JsonProperty("role") Optional role, - @JsonProperty("thumb") Optional thumb) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(filter, "filter"); - Utils.checkNotNull(tag, "tag"); - Utils.checkNotNull(tagKey, "tagKey"); - Utils.checkNotNull(role, "role"); - Utils.checkNotNull(thumb, "thumb"); - this.id = id; - this.filter = filter; - this.tag = tag; - this.tagKey = tagKey; - this.role = role; - this.thumb = thumb; - } - - public GetMetadataRole() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional filter() { - return (Optional) filter; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tag() { - return (Optional) tag; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tagKey() { - return (Optional) tagKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional role() { - return (Optional) role; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional thumb() { - return (Optional) thumb; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetMetadataRole withId(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public GetMetadataRole withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public GetMetadataRole withFilter(String filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - public GetMetadataRole withFilter(Optional filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - public GetMetadataRole withTag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public GetMetadataRole withTag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public GetMetadataRole withTagKey(String tagKey) { - Utils.checkNotNull(tagKey, "tagKey"); - this.tagKey = Optional.ofNullable(tagKey); - return this; - } - - public GetMetadataRole withTagKey(Optional tagKey) { - Utils.checkNotNull(tagKey, "tagKey"); - this.tagKey = tagKey; - return this; - } - - public GetMetadataRole withRole(String role) { - Utils.checkNotNull(role, "role"); - this.role = Optional.ofNullable(role); - return this; - } - - public GetMetadataRole withRole(Optional role) { - Utils.checkNotNull(role, "role"); - this.role = role; - return this; - } - - public GetMetadataRole withThumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public GetMetadataRole withThumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetMetadataRole other = (GetMetadataRole) o; - return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.filter, other.filter) && - java.util.Objects.deepEquals(this.tag, other.tag) && - java.util.Objects.deepEquals(this.tagKey, other.tagKey) && - java.util.Objects.deepEquals(this.role, other.role) && - java.util.Objects.deepEquals(this.thumb, other.thumb); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id, - filter, - tag, - tagKey, - role, - thumb); - } - - @Override - public String toString() { - return Utils.toString(GetMetadataRole.class, - "id", id, - "filter", filter, - "tag", tag, - "tagKey", tagKey, - "role", role, - "thumb", thumb); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional filter = Optional.empty(); - - private Optional tag = Optional.empty(); - - private Optional tagKey = Optional.empty(); - - private Optional role = Optional.empty(); - - private Optional thumb = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder filter(String filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - public Builder filter(Optional filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - public Builder tag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Builder tag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public Builder tagKey(String tagKey) { - Utils.checkNotNull(tagKey, "tagKey"); - this.tagKey = Optional.ofNullable(tagKey); - return this; - } - - public Builder tagKey(Optional tagKey) { - Utils.checkNotNull(tagKey, "tagKey"); - this.tagKey = tagKey; - return this; - } - - public Builder role(String role) { - Utils.checkNotNull(role, "role"); - this.role = Optional.ofNullable(role); - return this; - } - - public Builder role(Optional role) { - Utils.checkNotNull(role, "role"); - this.role = role; - return this; - } - - public Builder thumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public Builder thumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public GetMetadataRole build() { - return new GetMetadataRole( - id, - filter, - tag, - tagKey, - role, - thumb); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataWriter.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataWriter.java deleted file mode 100644 index 48d2ed00..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMetadataWriter.java +++ /dev/null @@ -1,283 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetMetadataWriter { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("filter") - private Optional filter; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tag") - private Optional tag; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tagKey") - private Optional tagKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("thumb") - private Optional thumb; - - @JsonCreator - public GetMetadataWriter( - @JsonProperty("id") Optional id, - @JsonProperty("filter") Optional filter, - @JsonProperty("tag") Optional tag, - @JsonProperty("tagKey") Optional tagKey, - @JsonProperty("thumb") Optional thumb) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(filter, "filter"); - Utils.checkNotNull(tag, "tag"); - Utils.checkNotNull(tagKey, "tagKey"); - Utils.checkNotNull(thumb, "thumb"); - this.id = id; - this.filter = filter; - this.tag = tag; - this.tagKey = tagKey; - this.thumb = thumb; - } - - public GetMetadataWriter() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional filter() { - return (Optional) filter; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tag() { - return (Optional) tag; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tagKey() { - return (Optional) tagKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional thumb() { - return (Optional) thumb; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetMetadataWriter withId(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public GetMetadataWriter withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public GetMetadataWriter withFilter(String filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - public GetMetadataWriter withFilter(Optional filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - public GetMetadataWriter withTag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public GetMetadataWriter withTag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public GetMetadataWriter withTagKey(String tagKey) { - Utils.checkNotNull(tagKey, "tagKey"); - this.tagKey = Optional.ofNullable(tagKey); - return this; - } - - public GetMetadataWriter withTagKey(Optional tagKey) { - Utils.checkNotNull(tagKey, "tagKey"); - this.tagKey = tagKey; - return this; - } - - public GetMetadataWriter withThumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public GetMetadataWriter withThumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetMetadataWriter other = (GetMetadataWriter) o; - return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.filter, other.filter) && - java.util.Objects.deepEquals(this.tag, other.tag) && - java.util.Objects.deepEquals(this.tagKey, other.tagKey) && - java.util.Objects.deepEquals(this.thumb, other.thumb); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id, - filter, - tag, - tagKey, - thumb); - } - - @Override - public String toString() { - return Utils.toString(GetMetadataWriter.class, - "id", id, - "filter", filter, - "tag", tag, - "tagKey", tagKey, - "thumb", thumb); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional filter = Optional.empty(); - - private Optional tag = Optional.empty(); - - private Optional tagKey = Optional.empty(); - - private Optional thumb = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder filter(String filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - public Builder filter(Optional filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - public Builder tag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Builder tag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public Builder tagKey(String tagKey) { - Utils.checkNotNull(tagKey, "tagKey"); - this.tagKey = Optional.ofNullable(tagKey); - return this; - } - - public Builder tagKey(Optional tagKey) { - Utils.checkNotNull(tagKey, "tagKey"); - this.tagKey = tagKey; - return this; - } - - public Builder thumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public Builder thumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public GetMetadataWriter build() { - return new GetMetadataWriter( - id, - filter, - tag, - tagKey, - thumb); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMyPlexAccountRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMyPlexAccountRequestBuilder.java deleted file mode 100644 index 75f83775..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMyPlexAccountRequestBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetMyPlexAccountRequestBuilder { - - private final SDKMethodInterfaces.MethodCallGetMyPlexAccount sdk; - - public GetMyPlexAccountRequestBuilder(SDKMethodInterfaces.MethodCallGetMyPlexAccount sdk) { - this.sdk = sdk; - } - - public GetMyPlexAccountResponse call() throws Exception { - - return sdk.getMyPlexAccountDirect(); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMyPlexAccountResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMyPlexAccountResponse.java deleted file mode 100644 index 3d07ae7f..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMyPlexAccountResponse.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetMyPlexAccountResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * MyPlex Account - */ - private Optional object; - - @JsonCreator - public GetMyPlexAccountResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional object) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.object = object; - } - - public GetMyPlexAccountResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * MyPlex Account - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional object() { - return (Optional) object; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetMyPlexAccountResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetMyPlexAccountResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetMyPlexAccountResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * MyPlex Account - */ - public GetMyPlexAccountResponse withObject(GetMyPlexAccountResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * MyPlex Account - */ - public GetMyPlexAccountResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetMyPlexAccountResponse other = (GetMyPlexAccountResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.object, other.object); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse, - object); - } - - @Override - public String toString() { - return Utils.toString(GetMyPlexAccountResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "object", object); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional object = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * MyPlex Account - */ - public Builder object(GetMyPlexAccountResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * MyPlex Account - */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - public GetMyPlexAccountResponse build() { - return new GetMyPlexAccountResponse( - contentType, - statusCode, - rawResponse, - object); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMyPlexAccountResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMyPlexAccountResponseBody.java deleted file mode 100644 index ea4d54aa..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetMyPlexAccountResponseBody.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -/** - * GetMyPlexAccountResponseBody - MyPlex Account - */ - -public class GetMyPlexAccountResponseBody { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("MyPlex") - private Optional myPlex; - - @JsonCreator - public GetMyPlexAccountResponseBody( - @JsonProperty("MyPlex") Optional myPlex) { - Utils.checkNotNull(myPlex, "myPlex"); - this.myPlex = myPlex; - } - - public GetMyPlexAccountResponseBody() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional myPlex() { - return (Optional) myPlex; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetMyPlexAccountResponseBody withMyPlex(MyPlex myPlex) { - Utils.checkNotNull(myPlex, "myPlex"); - this.myPlex = Optional.ofNullable(myPlex); - return this; - } - - public GetMyPlexAccountResponseBody withMyPlex(Optional myPlex) { - Utils.checkNotNull(myPlex, "myPlex"); - this.myPlex = myPlex; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetMyPlexAccountResponseBody other = (GetMyPlexAccountResponseBody) o; - return - java.util.Objects.deepEquals(this.myPlex, other.myPlex); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - myPlex); - } - - @Override - public String toString() { - return Utils.toString(GetMyPlexAccountResponseBody.class, - "myPlex", myPlex); - } - - public final static class Builder { - - private Optional myPlex = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder myPlex(MyPlex myPlex) { - Utils.checkNotNull(myPlex, "myPlex"); - this.myPlex = Optional.ofNullable(myPlex); - return this; - } - - public Builder myPlex(Optional myPlex) { - Utils.checkNotNull(myPlex, "myPlex"); - this.myPlex = myPlex; - return this; - } - - public GetMyPlexAccountResponseBody build() { - return new GetMyPlexAccountResponseBody( - myPlex); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckGuids.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckGuids.java deleted file mode 100644 index da8ab0ae..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckGuids.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetOnDeckGuids { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonCreator - public GetOnDeckGuids( - @JsonProperty("id") Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - } - - public GetOnDeckGuids() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetOnDeckGuids withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public GetOnDeckGuids withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetOnDeckGuids other = (GetOnDeckGuids) o; - return - java.util.Objects.deepEquals(this.id, other.id); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id); - } - - @Override - public String toString() { - return Utils.toString(GetOnDeckGuids.class, - "id", id); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public GetOnDeckGuids build() { - return new GetOnDeckGuids( - id); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckMedia.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckMedia.java deleted file mode 100644 index 1b45b9fe..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckMedia.java +++ /dev/null @@ -1,713 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetOnDeckMedia { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("duration") - private Optional duration; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("bitrate") - private Optional bitrate; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("width") - private Optional width; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("height") - private Optional height; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("aspectRatio") - private Optional aspectRatio; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audioChannels") - private Optional audioChannels; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audioCodec") - private Optional audioCodec; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("videoCodec") - private Optional videoCodec; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("videoResolution") - private Optional videoResolution; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("container") - private Optional container; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("videoFrameRate") - private Optional videoFrameRate; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audioProfile") - private Optional audioProfile; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("videoProfile") - private Optional videoProfile; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Part") - private Optional> part; - - @JsonCreator - public GetOnDeckMedia( - @JsonProperty("id") Optional id, - @JsonProperty("duration") Optional duration, - @JsonProperty("bitrate") Optional bitrate, - @JsonProperty("width") Optional width, - @JsonProperty("height") Optional height, - @JsonProperty("aspectRatio") Optional aspectRatio, - @JsonProperty("audioChannels") Optional audioChannels, - @JsonProperty("audioCodec") Optional audioCodec, - @JsonProperty("videoCodec") Optional videoCodec, - @JsonProperty("videoResolution") Optional videoResolution, - @JsonProperty("container") Optional container, - @JsonProperty("videoFrameRate") Optional videoFrameRate, - @JsonProperty("audioProfile") Optional audioProfile, - @JsonProperty("videoProfile") Optional videoProfile, - @JsonProperty("Part") Optional> part) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(duration, "duration"); - Utils.checkNotNull(bitrate, "bitrate"); - Utils.checkNotNull(width, "width"); - Utils.checkNotNull(height, "height"); - Utils.checkNotNull(aspectRatio, "aspectRatio"); - Utils.checkNotNull(audioChannels, "audioChannels"); - Utils.checkNotNull(audioCodec, "audioCodec"); - Utils.checkNotNull(videoCodec, "videoCodec"); - Utils.checkNotNull(videoResolution, "videoResolution"); - Utils.checkNotNull(container, "container"); - Utils.checkNotNull(videoFrameRate, "videoFrameRate"); - Utils.checkNotNull(audioProfile, "audioProfile"); - Utils.checkNotNull(videoProfile, "videoProfile"); - Utils.checkNotNull(part, "part"); - 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; - } - - public GetOnDeckMedia() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional duration() { - return (Optional) duration; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional bitrate() { - return (Optional) bitrate; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional width() { - return (Optional) width; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional height() { - return (Optional) height; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional aspectRatio() { - return (Optional) aspectRatio; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audioChannels() { - return (Optional) audioChannels; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audioCodec() { - return (Optional) audioCodec; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional videoCodec() { - return (Optional) videoCodec; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional videoResolution() { - return (Optional) videoResolution; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional container() { - return (Optional) container; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional videoFrameRate() { - return (Optional) videoFrameRate; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audioProfile() { - return (Optional) audioProfile; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional videoProfile() { - return (Optional) videoProfile; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> part() { - return (Optional>) part; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetOnDeckMedia withId(double id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public GetOnDeckMedia withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public GetOnDeckMedia withDuration(double duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public GetOnDeckMedia withDuration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public GetOnDeckMedia withBitrate(double bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = Optional.ofNullable(bitrate); - return this; - } - - public GetOnDeckMedia withBitrate(Optional bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = bitrate; - return this; - } - - public GetOnDeckMedia withWidth(double width) { - Utils.checkNotNull(width, "width"); - this.width = Optional.ofNullable(width); - return this; - } - - public GetOnDeckMedia withWidth(Optional width) { - Utils.checkNotNull(width, "width"); - this.width = width; - return this; - } - - public GetOnDeckMedia withHeight(double height) { - Utils.checkNotNull(height, "height"); - this.height = Optional.ofNullable(height); - return this; - } - - public GetOnDeckMedia withHeight(Optional height) { - Utils.checkNotNull(height, "height"); - this.height = height; - return this; - } - - public GetOnDeckMedia withAspectRatio(double aspectRatio) { - Utils.checkNotNull(aspectRatio, "aspectRatio"); - this.aspectRatio = Optional.ofNullable(aspectRatio); - return this; - } - - public GetOnDeckMedia withAspectRatio(Optional aspectRatio) { - Utils.checkNotNull(aspectRatio, "aspectRatio"); - this.aspectRatio = aspectRatio; - return this; - } - - public GetOnDeckMedia withAudioChannels(double audioChannels) { - Utils.checkNotNull(audioChannels, "audioChannels"); - this.audioChannels = Optional.ofNullable(audioChannels); - return this; - } - - public GetOnDeckMedia withAudioChannels(Optional audioChannels) { - Utils.checkNotNull(audioChannels, "audioChannels"); - this.audioChannels = audioChannels; - return this; - } - - public GetOnDeckMedia withAudioCodec(String audioCodec) { - Utils.checkNotNull(audioCodec, "audioCodec"); - this.audioCodec = Optional.ofNullable(audioCodec); - return this; - } - - public GetOnDeckMedia withAudioCodec(Optional audioCodec) { - Utils.checkNotNull(audioCodec, "audioCodec"); - this.audioCodec = audioCodec; - return this; - } - - public GetOnDeckMedia withVideoCodec(String videoCodec) { - Utils.checkNotNull(videoCodec, "videoCodec"); - this.videoCodec = Optional.ofNullable(videoCodec); - return this; - } - - public GetOnDeckMedia withVideoCodec(Optional videoCodec) { - Utils.checkNotNull(videoCodec, "videoCodec"); - this.videoCodec = videoCodec; - return this; - } - - public GetOnDeckMedia withVideoResolution(String videoResolution) { - Utils.checkNotNull(videoResolution, "videoResolution"); - this.videoResolution = Optional.ofNullable(videoResolution); - return this; - } - - public GetOnDeckMedia withVideoResolution(Optional videoResolution) { - Utils.checkNotNull(videoResolution, "videoResolution"); - this.videoResolution = videoResolution; - return this; - } - - public GetOnDeckMedia withContainer(String container) { - Utils.checkNotNull(container, "container"); - this.container = Optional.ofNullable(container); - return this; - } - - public GetOnDeckMedia withContainer(Optional container) { - Utils.checkNotNull(container, "container"); - this.container = container; - return this; - } - - public GetOnDeckMedia withVideoFrameRate(String videoFrameRate) { - Utils.checkNotNull(videoFrameRate, "videoFrameRate"); - this.videoFrameRate = Optional.ofNullable(videoFrameRate); - return this; - } - - public GetOnDeckMedia withVideoFrameRate(Optional videoFrameRate) { - Utils.checkNotNull(videoFrameRate, "videoFrameRate"); - this.videoFrameRate = videoFrameRate; - return this; - } - - public GetOnDeckMedia withAudioProfile(String audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = Optional.ofNullable(audioProfile); - return this; - } - - public GetOnDeckMedia withAudioProfile(Optional audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = audioProfile; - return this; - } - - public GetOnDeckMedia withVideoProfile(String videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = Optional.ofNullable(videoProfile); - return this; - } - - public GetOnDeckMedia withVideoProfile(Optional videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = videoProfile; - return this; - } - - public GetOnDeckMedia withPart(java.util.List part) { - Utils.checkNotNull(part, "part"); - this.part = Optional.ofNullable(part); - return this; - } - - public GetOnDeckMedia withPart(Optional> part) { - Utils.checkNotNull(part, "part"); - this.part = part; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetOnDeckMedia other = (GetOnDeckMedia) o; - return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.duration, other.duration) && - java.util.Objects.deepEquals(this.bitrate, other.bitrate) && - java.util.Objects.deepEquals(this.width, other.width) && - java.util.Objects.deepEquals(this.height, other.height) && - java.util.Objects.deepEquals(this.aspectRatio, other.aspectRatio) && - java.util.Objects.deepEquals(this.audioChannels, other.audioChannels) && - java.util.Objects.deepEquals(this.audioCodec, other.audioCodec) && - java.util.Objects.deepEquals(this.videoCodec, other.videoCodec) && - java.util.Objects.deepEquals(this.videoResolution, other.videoResolution) && - java.util.Objects.deepEquals(this.container, other.container) && - java.util.Objects.deepEquals(this.videoFrameRate, other.videoFrameRate) && - java.util.Objects.deepEquals(this.audioProfile, other.audioProfile) && - java.util.Objects.deepEquals(this.videoProfile, other.videoProfile) && - java.util.Objects.deepEquals(this.part, other.part); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id, - duration, - bitrate, - width, - height, - aspectRatio, - audioChannels, - audioCodec, - videoCodec, - videoResolution, - container, - videoFrameRate, - audioProfile, - videoProfile, - part); - } - - @Override - public String toString() { - return Utils.toString(GetOnDeckMedia.class, - "id", id, - "duration", duration, - "bitrate", bitrate, - "width", width, - "height", height, - "aspectRatio", aspectRatio, - "audioChannels", audioChannels, - "audioCodec", audioCodec, - "videoCodec", videoCodec, - "videoResolution", videoResolution, - "container", container, - "videoFrameRate", videoFrameRate, - "audioProfile", audioProfile, - "videoProfile", videoProfile, - "part", part); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional duration = Optional.empty(); - - private Optional bitrate = Optional.empty(); - - private Optional width = Optional.empty(); - - private Optional height = Optional.empty(); - - private Optional aspectRatio = Optional.empty(); - - private Optional audioChannels = Optional.empty(); - - private Optional audioCodec = Optional.empty(); - - private Optional videoCodec = Optional.empty(); - - private Optional videoResolution = Optional.empty(); - - private Optional container = Optional.empty(); - - private Optional videoFrameRate = Optional.empty(); - - private Optional audioProfile = Optional.empty(); - - private Optional videoProfile = Optional.empty(); - - private Optional> part = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(double id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder duration(double duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public Builder duration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public Builder bitrate(double bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = Optional.ofNullable(bitrate); - return this; - } - - public Builder bitrate(Optional bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = bitrate; - return this; - } - - public Builder width(double width) { - Utils.checkNotNull(width, "width"); - this.width = Optional.ofNullable(width); - return this; - } - - public Builder width(Optional width) { - Utils.checkNotNull(width, "width"); - this.width = width; - return this; - } - - public Builder height(double height) { - Utils.checkNotNull(height, "height"); - this.height = Optional.ofNullable(height); - return this; - } - - public Builder height(Optional height) { - Utils.checkNotNull(height, "height"); - this.height = height; - return this; - } - - public Builder aspectRatio(double aspectRatio) { - Utils.checkNotNull(aspectRatio, "aspectRatio"); - this.aspectRatio = Optional.ofNullable(aspectRatio); - return this; - } - - public Builder aspectRatio(Optional aspectRatio) { - Utils.checkNotNull(aspectRatio, "aspectRatio"); - this.aspectRatio = aspectRatio; - return this; - } - - public Builder audioChannels(double audioChannels) { - Utils.checkNotNull(audioChannels, "audioChannels"); - this.audioChannels = Optional.ofNullable(audioChannels); - return this; - } - - public Builder audioChannels(Optional audioChannels) { - Utils.checkNotNull(audioChannels, "audioChannels"); - this.audioChannels = audioChannels; - return this; - } - - public Builder audioCodec(String audioCodec) { - Utils.checkNotNull(audioCodec, "audioCodec"); - this.audioCodec = Optional.ofNullable(audioCodec); - return this; - } - - public Builder audioCodec(Optional audioCodec) { - Utils.checkNotNull(audioCodec, "audioCodec"); - this.audioCodec = audioCodec; - return this; - } - - public Builder videoCodec(String videoCodec) { - Utils.checkNotNull(videoCodec, "videoCodec"); - this.videoCodec = Optional.ofNullable(videoCodec); - return this; - } - - public Builder videoCodec(Optional videoCodec) { - Utils.checkNotNull(videoCodec, "videoCodec"); - this.videoCodec = videoCodec; - return this; - } - - public Builder videoResolution(String videoResolution) { - Utils.checkNotNull(videoResolution, "videoResolution"); - this.videoResolution = Optional.ofNullable(videoResolution); - return this; - } - - public Builder videoResolution(Optional videoResolution) { - Utils.checkNotNull(videoResolution, "videoResolution"); - this.videoResolution = videoResolution; - return this; - } - - public Builder container(String container) { - Utils.checkNotNull(container, "container"); - this.container = Optional.ofNullable(container); - return this; - } - - public Builder container(Optional container) { - Utils.checkNotNull(container, "container"); - this.container = container; - return this; - } - - public Builder videoFrameRate(String videoFrameRate) { - Utils.checkNotNull(videoFrameRate, "videoFrameRate"); - this.videoFrameRate = Optional.ofNullable(videoFrameRate); - return this; - } - - public Builder videoFrameRate(Optional videoFrameRate) { - Utils.checkNotNull(videoFrameRate, "videoFrameRate"); - this.videoFrameRate = videoFrameRate; - return this; - } - - public Builder audioProfile(String audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = Optional.ofNullable(audioProfile); - return this; - } - - public Builder audioProfile(Optional audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = audioProfile; - return this; - } - - public Builder videoProfile(String videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = Optional.ofNullable(videoProfile); - return this; - } - - public Builder videoProfile(Optional videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = videoProfile; - return this; - } - - public Builder part(java.util.List part) { - Utils.checkNotNull(part, "part"); - this.part = Optional.ofNullable(part); - return this; - } - - public Builder part(Optional> part) { - Utils.checkNotNull(part, "part"); - this.part = part; - return this; - } - - public GetOnDeckMedia build() { - return new GetOnDeckMedia( - id, - duration, - bitrate, - width, - height, - aspectRatio, - audioChannels, - audioCodec, - videoCodec, - videoResolution, - container, - videoFrameRate, - audioProfile, - videoProfile, - part); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckMediaContainer.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckMediaContainer.java deleted file mode 100644 index 04961f8d..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckMediaContainer.java +++ /dev/null @@ -1,369 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetOnDeckMediaContainer { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("allowSync") - private Optional allowSync; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("identifier") - private Optional identifier; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("mediaTagPrefix") - private Optional mediaTagPrefix; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("mediaTagVersion") - private Optional mediaTagVersion; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("mixedParents") - private Optional mixedParents; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Metadata") - private Optional> metadata; - - @JsonCreator - public GetOnDeckMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("allowSync") Optional allowSync, - @JsonProperty("identifier") Optional identifier, - @JsonProperty("mediaTagPrefix") Optional mediaTagPrefix, - @JsonProperty("mediaTagVersion") Optional mediaTagVersion, - @JsonProperty("mixedParents") Optional mixedParents, - @JsonProperty("Metadata") Optional> metadata) { - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(allowSync, "allowSync"); - Utils.checkNotNull(identifier, "identifier"); - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - Utils.checkNotNull(mixedParents, "mixedParents"); - Utils.checkNotNull(metadata, "metadata"); - this.size = size; - this.allowSync = allowSync; - this.identifier = identifier; - this.mediaTagPrefix = mediaTagPrefix; - this.mediaTagVersion = mediaTagVersion; - this.mixedParents = mixedParents; - this.metadata = metadata; - } - - public GetOnDeckMediaContainer() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional allowSync() { - return (Optional) allowSync; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional identifier() { - return (Optional) identifier; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaTagPrefix() { - return (Optional) mediaTagPrefix; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaTagVersion() { - return (Optional) mediaTagVersion; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mixedParents() { - return (Optional) mixedParents; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetOnDeckMediaContainer withSize(double size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public GetOnDeckMediaContainer withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public GetOnDeckMediaContainer withAllowSync(boolean allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = Optional.ofNullable(allowSync); - return this; - } - - public GetOnDeckMediaContainer withAllowSync(Optional allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = allowSync; - return this; - } - - public GetOnDeckMediaContainer withIdentifier(String identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = Optional.ofNullable(identifier); - return this; - } - - public GetOnDeckMediaContainer withIdentifier(Optional identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = identifier; - return this; - } - - public GetOnDeckMediaContainer withMediaTagPrefix(String mediaTagPrefix) { - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - this.mediaTagPrefix = Optional.ofNullable(mediaTagPrefix); - return this; - } - - public GetOnDeckMediaContainer withMediaTagPrefix(Optional mediaTagPrefix) { - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - this.mediaTagPrefix = mediaTagPrefix; - return this; - } - - public GetOnDeckMediaContainer withMediaTagVersion(double mediaTagVersion) { - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - this.mediaTagVersion = Optional.ofNullable(mediaTagVersion); - return this; - } - - public GetOnDeckMediaContainer withMediaTagVersion(Optional mediaTagVersion) { - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - this.mediaTagVersion = mediaTagVersion; - return this; - } - - public GetOnDeckMediaContainer withMixedParents(boolean mixedParents) { - Utils.checkNotNull(mixedParents, "mixedParents"); - this.mixedParents = Optional.ofNullable(mixedParents); - return this; - } - - public GetOnDeckMediaContainer withMixedParents(Optional mixedParents) { - Utils.checkNotNull(mixedParents, "mixedParents"); - this.mixedParents = mixedParents; - return this; - } - - public GetOnDeckMediaContainer withMetadata(java.util.List metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public GetOnDeckMediaContainer withMetadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetOnDeckMediaContainer other = (GetOnDeckMediaContainer) o; - return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.allowSync, other.allowSync) && - java.util.Objects.deepEquals(this.identifier, other.identifier) && - java.util.Objects.deepEquals(this.mediaTagPrefix, other.mediaTagPrefix) && - java.util.Objects.deepEquals(this.mediaTagVersion, other.mediaTagVersion) && - java.util.Objects.deepEquals(this.mixedParents, other.mixedParents) && - java.util.Objects.deepEquals(this.metadata, other.metadata); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - size, - allowSync, - identifier, - mediaTagPrefix, - mediaTagVersion, - mixedParents, - metadata); - } - - @Override - public String toString() { - return Utils.toString(GetOnDeckMediaContainer.class, - "size", size, - "allowSync", allowSync, - "identifier", identifier, - "mediaTagPrefix", mediaTagPrefix, - "mediaTagVersion", mediaTagVersion, - "mixedParents", mixedParents, - "metadata", metadata); - } - - public final static class Builder { - - private Optional size = Optional.empty(); - - private Optional allowSync = Optional.empty(); - - private Optional identifier = Optional.empty(); - - private Optional mediaTagPrefix = Optional.empty(); - - private Optional mediaTagVersion = Optional.empty(); - - private Optional mixedParents = Optional.empty(); - - private Optional> metadata = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder size(double size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder allowSync(boolean allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = Optional.ofNullable(allowSync); - return this; - } - - public Builder allowSync(Optional allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = allowSync; - return this; - } - - public Builder identifier(String identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = Optional.ofNullable(identifier); - return this; - } - - public Builder identifier(Optional identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = identifier; - return this; - } - - public Builder mediaTagPrefix(String mediaTagPrefix) { - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - this.mediaTagPrefix = Optional.ofNullable(mediaTagPrefix); - return this; - } - - public Builder mediaTagPrefix(Optional mediaTagPrefix) { - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - this.mediaTagPrefix = mediaTagPrefix; - return this; - } - - public Builder mediaTagVersion(double mediaTagVersion) { - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - this.mediaTagVersion = Optional.ofNullable(mediaTagVersion); - return this; - } - - public Builder mediaTagVersion(Optional mediaTagVersion) { - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - this.mediaTagVersion = mediaTagVersion; - return this; - } - - public Builder mixedParents(boolean mixedParents) { - Utils.checkNotNull(mixedParents, "mixedParents"); - this.mixedParents = Optional.ofNullable(mixedParents); - return this; - } - - public Builder mixedParents(Optional mixedParents) { - Utils.checkNotNull(mixedParents, "mixedParents"); - this.mixedParents = mixedParents; - return this; - } - - public Builder metadata(java.util.List metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public Builder metadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public GetOnDeckMediaContainer build() { - return new GetOnDeckMediaContainer( - size, - allowSync, - identifier, - mediaTagPrefix, - mediaTagVersion, - mixedParents, - metadata); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckMetadata.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckMetadata.java deleted file mode 100644 index 14d5688e..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckMetadata.java +++ /dev/null @@ -1,1619 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetOnDeckMetadata { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("allowSync") - private Optional allowSync; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionID") - private Optional librarySectionID; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionTitle") - private Optional librarySectionTitle; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionUUID") - private Optional librarySectionUUID; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ratingKey") - private Optional ratingKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentRatingKey") - private Optional parentRatingKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("grandparentRatingKey") - private Optional grandparentRatingKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("guid") - private Optional guid; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentGuid") - private Optional parentGuid; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("grandparentGuid") - private Optional grandparentGuid; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title") - private Optional title; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("grandparentKey") - private Optional grandparentKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentKey") - private Optional parentKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionKey") - private Optional librarySectionKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("grandparentTitle") - private Optional grandparentTitle; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentTitle") - private Optional parentTitle; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("contentRating") - private Optional contentRating; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("summary") - private Optional summary; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("index") - private Optional index; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentIndex") - private Optional parentIndex; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("lastViewedAt") - private Optional lastViewedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("year") - private Optional year; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("thumb") - private Optional thumb; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("art") - private Optional art; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentThumb") - private Optional parentThumb; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("grandparentThumb") - private Optional grandparentThumb; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("grandparentArt") - private Optional grandparentArt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("grandparentTheme") - private Optional grandparentTheme; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("duration") - private Optional duration; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("originallyAvailableAt") - private Optional originallyAvailableAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("addedAt") - private Optional addedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updatedAt") - private Optional updatedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Media") - private Optional> media; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Guid") - private Optional> guids; - - @JsonCreator - public GetOnDeckMetadata( - @JsonProperty("allowSync") Optional allowSync, - @JsonProperty("librarySectionID") Optional librarySectionID, - @JsonProperty("librarySectionTitle") Optional librarySectionTitle, - @JsonProperty("librarySectionUUID") Optional librarySectionUUID, - @JsonProperty("ratingKey") Optional ratingKey, - @JsonProperty("key") Optional key, - @JsonProperty("parentRatingKey") Optional parentRatingKey, - @JsonProperty("grandparentRatingKey") Optional grandparentRatingKey, - @JsonProperty("guid") Optional guid, - @JsonProperty("parentGuid") Optional parentGuid, - @JsonProperty("grandparentGuid") Optional grandparentGuid, - @JsonProperty("type") Optional type, - @JsonProperty("title") Optional title, - @JsonProperty("grandparentKey") Optional grandparentKey, - @JsonProperty("parentKey") Optional parentKey, - @JsonProperty("librarySectionKey") Optional librarySectionKey, - @JsonProperty("grandparentTitle") Optional grandparentTitle, - @JsonProperty("parentTitle") Optional parentTitle, - @JsonProperty("contentRating") Optional contentRating, - @JsonProperty("summary") Optional summary, - @JsonProperty("index") Optional index, - @JsonProperty("parentIndex") Optional parentIndex, - @JsonProperty("lastViewedAt") Optional lastViewedAt, - @JsonProperty("year") Optional year, - @JsonProperty("thumb") Optional thumb, - @JsonProperty("art") Optional art, - @JsonProperty("parentThumb") Optional parentThumb, - @JsonProperty("grandparentThumb") Optional grandparentThumb, - @JsonProperty("grandparentArt") Optional grandparentArt, - @JsonProperty("grandparentTheme") Optional grandparentTheme, - @JsonProperty("duration") Optional duration, - @JsonProperty("originallyAvailableAt") Optional originallyAvailableAt, - @JsonProperty("addedAt") Optional addedAt, - @JsonProperty("updatedAt") Optional updatedAt, - @JsonProperty("Media") Optional> media, - @JsonProperty("guids") Optional> guids) { - Utils.checkNotNull(allowSync, "allowSync"); - Utils.checkNotNull(librarySectionID, "librarySectionID"); - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); - Utils.checkNotNull(ratingKey, "ratingKey"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(parentRatingKey, "parentRatingKey"); - Utils.checkNotNull(grandparentRatingKey, "grandparentRatingKey"); - Utils.checkNotNull(guid, "guid"); - Utils.checkNotNull(parentGuid, "parentGuid"); - Utils.checkNotNull(grandparentGuid, "grandparentGuid"); - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(title, "title"); - Utils.checkNotNull(grandparentKey, "grandparentKey"); - Utils.checkNotNull(parentKey, "parentKey"); - Utils.checkNotNull(librarySectionKey, "librarySectionKey"); - Utils.checkNotNull(grandparentTitle, "grandparentTitle"); - Utils.checkNotNull(parentTitle, "parentTitle"); - Utils.checkNotNull(contentRating, "contentRating"); - Utils.checkNotNull(summary, "summary"); - Utils.checkNotNull(index, "index"); - Utils.checkNotNull(parentIndex, "parentIndex"); - Utils.checkNotNull(lastViewedAt, "lastViewedAt"); - Utils.checkNotNull(year, "year"); - Utils.checkNotNull(thumb, "thumb"); - Utils.checkNotNull(art, "art"); - Utils.checkNotNull(parentThumb, "parentThumb"); - Utils.checkNotNull(grandparentThumb, "grandparentThumb"); - Utils.checkNotNull(grandparentArt, "grandparentArt"); - Utils.checkNotNull(grandparentTheme, "grandparentTheme"); - Utils.checkNotNull(duration, "duration"); - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - Utils.checkNotNull(addedAt, "addedAt"); - Utils.checkNotNull(updatedAt, "updatedAt"); - Utils.checkNotNull(media, "media"); - Utils.checkNotNull(guids, "guids"); - 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; - } - - public GetOnDeckMetadata() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional allowSync() { - return (Optional) allowSync; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionID() { - return (Optional) librarySectionID; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionTitle() { - return (Optional) librarySectionTitle; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionUUID() { - return (Optional) librarySectionUUID; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional ratingKey() { - return (Optional) ratingKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentRatingKey() { - return (Optional) parentRatingKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional grandparentRatingKey() { - return (Optional) grandparentRatingKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional guid() { - return (Optional) guid; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentGuid() { - return (Optional) parentGuid; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional grandparentGuid() { - return (Optional) grandparentGuid; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title() { - return (Optional) title; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional grandparentKey() { - return (Optional) grandparentKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentKey() { - return (Optional) parentKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionKey() { - return (Optional) librarySectionKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional grandparentTitle() { - return (Optional) grandparentTitle; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentTitle() { - return (Optional) parentTitle; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional contentRating() { - return (Optional) contentRating; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional summary() { - return (Optional) summary; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional index() { - return (Optional) index; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentIndex() { - return (Optional) parentIndex; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional lastViewedAt() { - return (Optional) lastViewedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional year() { - return (Optional) year; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional thumb() { - return (Optional) thumb; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional art() { - return (Optional) art; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentThumb() { - return (Optional) parentThumb; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional grandparentThumb() { - return (Optional) grandparentThumb; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional grandparentArt() { - return (Optional) grandparentArt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional grandparentTheme() { - return (Optional) grandparentTheme; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional duration() { - return (Optional) duration; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional originallyAvailableAt() { - return (Optional) originallyAvailableAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional addedAt() { - return (Optional) addedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional updatedAt() { - return (Optional) updatedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> media() { - return (Optional>) media; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> guids() { - return (Optional>) guids; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetOnDeckMetadata withAllowSync(boolean allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = Optional.ofNullable(allowSync); - return this; - } - - public GetOnDeckMetadata withAllowSync(Optional allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = allowSync; - return this; - } - - public GetOnDeckMetadata withLibrarySectionID(double librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = Optional.ofNullable(librarySectionID); - return this; - } - - public GetOnDeckMetadata withLibrarySectionID(Optional librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = librarySectionID; - return this; - } - - public GetOnDeckMetadata withLibrarySectionTitle(String librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = Optional.ofNullable(librarySectionTitle); - return this; - } - - public GetOnDeckMetadata withLibrarySectionTitle(Optional librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = librarySectionTitle; - return this; - } - - public GetOnDeckMetadata withLibrarySectionUUID(String librarySectionUUID) { - Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); - this.librarySectionUUID = Optional.ofNullable(librarySectionUUID); - return this; - } - - public GetOnDeckMetadata withLibrarySectionUUID(Optional librarySectionUUID) { - Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); - this.librarySectionUUID = librarySectionUUID; - return this; - } - - public GetOnDeckMetadata withRatingKey(double ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public GetOnDeckMetadata withRatingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public GetOnDeckMetadata withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public GetOnDeckMetadata withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public GetOnDeckMetadata withParentRatingKey(double parentRatingKey) { - Utils.checkNotNull(parentRatingKey, "parentRatingKey"); - this.parentRatingKey = Optional.ofNullable(parentRatingKey); - return this; - } - - public GetOnDeckMetadata withParentRatingKey(Optional parentRatingKey) { - Utils.checkNotNull(parentRatingKey, "parentRatingKey"); - this.parentRatingKey = parentRatingKey; - return this; - } - - public GetOnDeckMetadata withGrandparentRatingKey(double grandparentRatingKey) { - Utils.checkNotNull(grandparentRatingKey, "grandparentRatingKey"); - this.grandparentRatingKey = Optional.ofNullable(grandparentRatingKey); - return this; - } - - public GetOnDeckMetadata withGrandparentRatingKey(Optional grandparentRatingKey) { - Utils.checkNotNull(grandparentRatingKey, "grandparentRatingKey"); - this.grandparentRatingKey = grandparentRatingKey; - return this; - } - - public GetOnDeckMetadata withGuid(String guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = Optional.ofNullable(guid); - return this; - } - - public GetOnDeckMetadata withGuid(Optional guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = guid; - return this; - } - - public GetOnDeckMetadata withParentGuid(String parentGuid) { - Utils.checkNotNull(parentGuid, "parentGuid"); - this.parentGuid = Optional.ofNullable(parentGuid); - return this; - } - - public GetOnDeckMetadata withParentGuid(Optional parentGuid) { - Utils.checkNotNull(parentGuid, "parentGuid"); - this.parentGuid = parentGuid; - return this; - } - - public GetOnDeckMetadata withGrandparentGuid(String grandparentGuid) { - Utils.checkNotNull(grandparentGuid, "grandparentGuid"); - this.grandparentGuid = Optional.ofNullable(grandparentGuid); - return this; - } - - public GetOnDeckMetadata withGrandparentGuid(Optional grandparentGuid) { - Utils.checkNotNull(grandparentGuid, "grandparentGuid"); - this.grandparentGuid = grandparentGuid; - return this; - } - - public GetOnDeckMetadata withType(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public GetOnDeckMetadata withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public GetOnDeckMetadata withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public GetOnDeckMetadata withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public GetOnDeckMetadata withGrandparentKey(String grandparentKey) { - Utils.checkNotNull(grandparentKey, "grandparentKey"); - this.grandparentKey = Optional.ofNullable(grandparentKey); - return this; - } - - public GetOnDeckMetadata withGrandparentKey(Optional grandparentKey) { - Utils.checkNotNull(grandparentKey, "grandparentKey"); - this.grandparentKey = grandparentKey; - return this; - } - - public GetOnDeckMetadata withParentKey(String parentKey) { - Utils.checkNotNull(parentKey, "parentKey"); - this.parentKey = Optional.ofNullable(parentKey); - return this; - } - - public GetOnDeckMetadata withParentKey(Optional parentKey) { - Utils.checkNotNull(parentKey, "parentKey"); - this.parentKey = parentKey; - return this; - } - - public GetOnDeckMetadata withLibrarySectionKey(String librarySectionKey) { - Utils.checkNotNull(librarySectionKey, "librarySectionKey"); - this.librarySectionKey = Optional.ofNullable(librarySectionKey); - return this; - } - - public GetOnDeckMetadata withLibrarySectionKey(Optional librarySectionKey) { - Utils.checkNotNull(librarySectionKey, "librarySectionKey"); - this.librarySectionKey = librarySectionKey; - return this; - } - - public GetOnDeckMetadata withGrandparentTitle(String grandparentTitle) { - Utils.checkNotNull(grandparentTitle, "grandparentTitle"); - this.grandparentTitle = Optional.ofNullable(grandparentTitle); - return this; - } - - public GetOnDeckMetadata withGrandparentTitle(Optional grandparentTitle) { - Utils.checkNotNull(grandparentTitle, "grandparentTitle"); - this.grandparentTitle = grandparentTitle; - return this; - } - - public GetOnDeckMetadata withParentTitle(String parentTitle) { - Utils.checkNotNull(parentTitle, "parentTitle"); - this.parentTitle = Optional.ofNullable(parentTitle); - return this; - } - - public GetOnDeckMetadata withParentTitle(Optional parentTitle) { - Utils.checkNotNull(parentTitle, "parentTitle"); - this.parentTitle = parentTitle; - return this; - } - - public GetOnDeckMetadata withContentRating(String contentRating) { - Utils.checkNotNull(contentRating, "contentRating"); - this.contentRating = Optional.ofNullable(contentRating); - return this; - } - - public GetOnDeckMetadata withContentRating(Optional contentRating) { - Utils.checkNotNull(contentRating, "contentRating"); - this.contentRating = contentRating; - return this; - } - - public GetOnDeckMetadata withSummary(String summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = Optional.ofNullable(summary); - return this; - } - - public GetOnDeckMetadata withSummary(Optional summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = summary; - return this; - } - - public GetOnDeckMetadata withIndex(double index) { - Utils.checkNotNull(index, "index"); - this.index = Optional.ofNullable(index); - return this; - } - - public GetOnDeckMetadata withIndex(Optional index) { - Utils.checkNotNull(index, "index"); - this.index = index; - return this; - } - - public GetOnDeckMetadata withParentIndex(double parentIndex) { - Utils.checkNotNull(parentIndex, "parentIndex"); - this.parentIndex = Optional.ofNullable(parentIndex); - return this; - } - - public GetOnDeckMetadata withParentIndex(Optional parentIndex) { - Utils.checkNotNull(parentIndex, "parentIndex"); - this.parentIndex = parentIndex; - return this; - } - - public GetOnDeckMetadata withLastViewedAt(double lastViewedAt) { - Utils.checkNotNull(lastViewedAt, "lastViewedAt"); - this.lastViewedAt = Optional.ofNullable(lastViewedAt); - return this; - } - - public GetOnDeckMetadata withLastViewedAt(Optional lastViewedAt) { - Utils.checkNotNull(lastViewedAt, "lastViewedAt"); - this.lastViewedAt = lastViewedAt; - return this; - } - - public GetOnDeckMetadata withYear(double year) { - Utils.checkNotNull(year, "year"); - this.year = Optional.ofNullable(year); - return this; - } - - public GetOnDeckMetadata withYear(Optional year) { - Utils.checkNotNull(year, "year"); - this.year = year; - return this; - } - - public GetOnDeckMetadata withThumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public GetOnDeckMetadata withThumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public GetOnDeckMetadata withArt(String art) { - Utils.checkNotNull(art, "art"); - this.art = Optional.ofNullable(art); - return this; - } - - public GetOnDeckMetadata withArt(Optional art) { - Utils.checkNotNull(art, "art"); - this.art = art; - return this; - } - - public GetOnDeckMetadata withParentThumb(String parentThumb) { - Utils.checkNotNull(parentThumb, "parentThumb"); - this.parentThumb = Optional.ofNullable(parentThumb); - return this; - } - - public GetOnDeckMetadata withParentThumb(Optional parentThumb) { - Utils.checkNotNull(parentThumb, "parentThumb"); - this.parentThumb = parentThumb; - return this; - } - - public GetOnDeckMetadata withGrandparentThumb(String grandparentThumb) { - Utils.checkNotNull(grandparentThumb, "grandparentThumb"); - this.grandparentThumb = Optional.ofNullable(grandparentThumb); - return this; - } - - public GetOnDeckMetadata withGrandparentThumb(Optional grandparentThumb) { - Utils.checkNotNull(grandparentThumb, "grandparentThumb"); - this.grandparentThumb = grandparentThumb; - return this; - } - - public GetOnDeckMetadata withGrandparentArt(String grandparentArt) { - Utils.checkNotNull(grandparentArt, "grandparentArt"); - this.grandparentArt = Optional.ofNullable(grandparentArt); - return this; - } - - public GetOnDeckMetadata withGrandparentArt(Optional grandparentArt) { - Utils.checkNotNull(grandparentArt, "grandparentArt"); - this.grandparentArt = grandparentArt; - return this; - } - - public GetOnDeckMetadata withGrandparentTheme(String grandparentTheme) { - Utils.checkNotNull(grandparentTheme, "grandparentTheme"); - this.grandparentTheme = Optional.ofNullable(grandparentTheme); - return this; - } - - public GetOnDeckMetadata withGrandparentTheme(Optional grandparentTheme) { - Utils.checkNotNull(grandparentTheme, "grandparentTheme"); - this.grandparentTheme = grandparentTheme; - return this; - } - - public GetOnDeckMetadata withDuration(double duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public GetOnDeckMetadata withDuration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public GetOnDeckMetadata withOriginallyAvailableAt(OffsetDateTime originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = Optional.ofNullable(originallyAvailableAt); - return this; - } - - public GetOnDeckMetadata withOriginallyAvailableAt(Optional originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = originallyAvailableAt; - return this; - } - - public GetOnDeckMetadata withAddedAt(double addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = Optional.ofNullable(addedAt); - return this; - } - - public GetOnDeckMetadata withAddedAt(Optional addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = addedAt; - return this; - } - - public GetOnDeckMetadata withUpdatedAt(double updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public GetOnDeckMetadata withUpdatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public GetOnDeckMetadata withMedia(java.util.List media) { - Utils.checkNotNull(media, "media"); - this.media = Optional.ofNullable(media); - return this; - } - - public GetOnDeckMetadata withMedia(Optional> media) { - Utils.checkNotNull(media, "media"); - this.media = media; - return this; - } - - public GetOnDeckMetadata withGuids(java.util.List guids) { - Utils.checkNotNull(guids, "guids"); - this.guids = Optional.ofNullable(guids); - return this; - } - - public GetOnDeckMetadata withGuids(Optional> guids) { - Utils.checkNotNull(guids, "guids"); - this.guids = guids; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetOnDeckMetadata other = (GetOnDeckMetadata) o; - return - java.util.Objects.deepEquals(this.allowSync, other.allowSync) && - java.util.Objects.deepEquals(this.librarySectionID, other.librarySectionID) && - java.util.Objects.deepEquals(this.librarySectionTitle, other.librarySectionTitle) && - java.util.Objects.deepEquals(this.librarySectionUUID, other.librarySectionUUID) && - java.util.Objects.deepEquals(this.ratingKey, other.ratingKey) && - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.parentRatingKey, other.parentRatingKey) && - java.util.Objects.deepEquals(this.grandparentRatingKey, other.grandparentRatingKey) && - java.util.Objects.deepEquals(this.guid, other.guid) && - java.util.Objects.deepEquals(this.parentGuid, other.parentGuid) && - java.util.Objects.deepEquals(this.grandparentGuid, other.grandparentGuid) && - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.title, other.title) && - java.util.Objects.deepEquals(this.grandparentKey, other.grandparentKey) && - java.util.Objects.deepEquals(this.parentKey, other.parentKey) && - java.util.Objects.deepEquals(this.librarySectionKey, other.librarySectionKey) && - java.util.Objects.deepEquals(this.grandparentTitle, other.grandparentTitle) && - java.util.Objects.deepEquals(this.parentTitle, other.parentTitle) && - java.util.Objects.deepEquals(this.contentRating, other.contentRating) && - java.util.Objects.deepEquals(this.summary, other.summary) && - java.util.Objects.deepEquals(this.index, other.index) && - java.util.Objects.deepEquals(this.parentIndex, other.parentIndex) && - java.util.Objects.deepEquals(this.lastViewedAt, other.lastViewedAt) && - java.util.Objects.deepEquals(this.year, other.year) && - java.util.Objects.deepEquals(this.thumb, other.thumb) && - java.util.Objects.deepEquals(this.art, other.art) && - java.util.Objects.deepEquals(this.parentThumb, other.parentThumb) && - java.util.Objects.deepEquals(this.grandparentThumb, other.grandparentThumb) && - java.util.Objects.deepEquals(this.grandparentArt, other.grandparentArt) && - java.util.Objects.deepEquals(this.grandparentTheme, other.grandparentTheme) && - java.util.Objects.deepEquals(this.duration, other.duration) && - java.util.Objects.deepEquals(this.originallyAvailableAt, other.originallyAvailableAt) && - java.util.Objects.deepEquals(this.addedAt, other.addedAt) && - java.util.Objects.deepEquals(this.updatedAt, other.updatedAt) && - java.util.Objects.deepEquals(this.media, other.media) && - java.util.Objects.deepEquals(this.guids, other.guids); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - allowSync, - librarySectionID, - librarySectionTitle, - librarySectionUUID, - ratingKey, - key, - parentRatingKey, - grandparentRatingKey, - guid, - parentGuid, - grandparentGuid, - type, - title, - grandparentKey, - parentKey, - librarySectionKey, - grandparentTitle, - parentTitle, - contentRating, - summary, - index, - parentIndex, - lastViewedAt, - year, - thumb, - art, - parentThumb, - grandparentThumb, - grandparentArt, - grandparentTheme, - duration, - originallyAvailableAt, - addedAt, - updatedAt, - media, - guids); - } - - @Override - public String toString() { - return Utils.toString(GetOnDeckMetadata.class, - "allowSync", allowSync, - "librarySectionID", librarySectionID, - "librarySectionTitle", librarySectionTitle, - "librarySectionUUID", librarySectionUUID, - "ratingKey", ratingKey, - "key", key, - "parentRatingKey", parentRatingKey, - "grandparentRatingKey", grandparentRatingKey, - "guid", guid, - "parentGuid", parentGuid, - "grandparentGuid", grandparentGuid, - "type", type, - "title", title, - "grandparentKey", grandparentKey, - "parentKey", parentKey, - "librarySectionKey", librarySectionKey, - "grandparentTitle", grandparentTitle, - "parentTitle", parentTitle, - "contentRating", contentRating, - "summary", summary, - "index", index, - "parentIndex", parentIndex, - "lastViewedAt", lastViewedAt, - "year", year, - "thumb", thumb, - "art", art, - "parentThumb", parentThumb, - "grandparentThumb", grandparentThumb, - "grandparentArt", grandparentArt, - "grandparentTheme", grandparentTheme, - "duration", duration, - "originallyAvailableAt", originallyAvailableAt, - "addedAt", addedAt, - "updatedAt", updatedAt, - "media", media, - "guids", guids); - } - - public final static class Builder { - - private Optional allowSync = Optional.empty(); - - private Optional librarySectionID = Optional.empty(); - - private Optional librarySectionTitle = Optional.empty(); - - private Optional librarySectionUUID = Optional.empty(); - - private Optional ratingKey = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional parentRatingKey = Optional.empty(); - - private Optional grandparentRatingKey = Optional.empty(); - - private Optional guid = Optional.empty(); - - private Optional parentGuid = Optional.empty(); - - private Optional grandparentGuid = Optional.empty(); - - private Optional type = Optional.empty(); - - private Optional title = Optional.empty(); - - private Optional grandparentKey = Optional.empty(); - - private Optional parentKey = Optional.empty(); - - private Optional librarySectionKey = Optional.empty(); - - private Optional grandparentTitle = Optional.empty(); - - private Optional parentTitle = Optional.empty(); - - private Optional contentRating = Optional.empty(); - - private Optional summary = Optional.empty(); - - private Optional index = Optional.empty(); - - private Optional parentIndex = Optional.empty(); - - private Optional lastViewedAt = Optional.empty(); - - private Optional year = Optional.empty(); - - private Optional thumb = Optional.empty(); - - private Optional art = Optional.empty(); - - private Optional parentThumb = Optional.empty(); - - private Optional grandparentThumb = Optional.empty(); - - private Optional grandparentArt = Optional.empty(); - - private Optional grandparentTheme = Optional.empty(); - - private Optional duration = Optional.empty(); - - private Optional originallyAvailableAt = Optional.empty(); - - private Optional addedAt = Optional.empty(); - - private Optional updatedAt = Optional.empty(); - - private Optional> media = Optional.empty(); - - private Optional> guids = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder allowSync(boolean allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = Optional.ofNullable(allowSync); - return this; - } - - public Builder allowSync(Optional allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = allowSync; - return this; - } - - public Builder librarySectionID(double librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = Optional.ofNullable(librarySectionID); - return this; - } - - public Builder librarySectionID(Optional librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = librarySectionID; - return this; - } - - public Builder librarySectionTitle(String librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = Optional.ofNullable(librarySectionTitle); - return this; - } - - public Builder librarySectionTitle(Optional librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = librarySectionTitle; - return this; - } - - public Builder librarySectionUUID(String librarySectionUUID) { - Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); - this.librarySectionUUID = Optional.ofNullable(librarySectionUUID); - return this; - } - - public Builder librarySectionUUID(Optional librarySectionUUID) { - Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); - this.librarySectionUUID = librarySectionUUID; - return this; - } - - public Builder ratingKey(double ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public Builder ratingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder parentRatingKey(double parentRatingKey) { - Utils.checkNotNull(parentRatingKey, "parentRatingKey"); - this.parentRatingKey = Optional.ofNullable(parentRatingKey); - return this; - } - - public Builder parentRatingKey(Optional parentRatingKey) { - Utils.checkNotNull(parentRatingKey, "parentRatingKey"); - this.parentRatingKey = parentRatingKey; - return this; - } - - public Builder grandparentRatingKey(double grandparentRatingKey) { - Utils.checkNotNull(grandparentRatingKey, "grandparentRatingKey"); - this.grandparentRatingKey = Optional.ofNullable(grandparentRatingKey); - return this; - } - - public Builder grandparentRatingKey(Optional grandparentRatingKey) { - Utils.checkNotNull(grandparentRatingKey, "grandparentRatingKey"); - this.grandparentRatingKey = grandparentRatingKey; - return this; - } - - public Builder guid(String guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = Optional.ofNullable(guid); - return this; - } - - public Builder guid(Optional guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = guid; - return this; - } - - public Builder parentGuid(String parentGuid) { - Utils.checkNotNull(parentGuid, "parentGuid"); - this.parentGuid = Optional.ofNullable(parentGuid); - return this; - } - - public Builder parentGuid(Optional parentGuid) { - Utils.checkNotNull(parentGuid, "parentGuid"); - this.parentGuid = parentGuid; - return this; - } - - public Builder grandparentGuid(String grandparentGuid) { - Utils.checkNotNull(grandparentGuid, "grandparentGuid"); - this.grandparentGuid = Optional.ofNullable(grandparentGuid); - return this; - } - - public Builder grandparentGuid(Optional grandparentGuid) { - Utils.checkNotNull(grandparentGuid, "grandparentGuid"); - this.grandparentGuid = grandparentGuid; - return this; - } - - public Builder type(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Builder grandparentKey(String grandparentKey) { - Utils.checkNotNull(grandparentKey, "grandparentKey"); - this.grandparentKey = Optional.ofNullable(grandparentKey); - return this; - } - - public Builder grandparentKey(Optional grandparentKey) { - Utils.checkNotNull(grandparentKey, "grandparentKey"); - this.grandparentKey = grandparentKey; - return this; - } - - public Builder parentKey(String parentKey) { - Utils.checkNotNull(parentKey, "parentKey"); - this.parentKey = Optional.ofNullable(parentKey); - return this; - } - - public Builder parentKey(Optional parentKey) { - Utils.checkNotNull(parentKey, "parentKey"); - this.parentKey = parentKey; - return this; - } - - public Builder librarySectionKey(String librarySectionKey) { - Utils.checkNotNull(librarySectionKey, "librarySectionKey"); - this.librarySectionKey = Optional.ofNullable(librarySectionKey); - return this; - } - - public Builder librarySectionKey(Optional librarySectionKey) { - Utils.checkNotNull(librarySectionKey, "librarySectionKey"); - this.librarySectionKey = librarySectionKey; - return this; - } - - public Builder grandparentTitle(String grandparentTitle) { - Utils.checkNotNull(grandparentTitle, "grandparentTitle"); - this.grandparentTitle = Optional.ofNullable(grandparentTitle); - return this; - } - - public Builder grandparentTitle(Optional grandparentTitle) { - Utils.checkNotNull(grandparentTitle, "grandparentTitle"); - this.grandparentTitle = grandparentTitle; - return this; - } - - public Builder parentTitle(String parentTitle) { - Utils.checkNotNull(parentTitle, "parentTitle"); - this.parentTitle = Optional.ofNullable(parentTitle); - return this; - } - - public Builder parentTitle(Optional parentTitle) { - Utils.checkNotNull(parentTitle, "parentTitle"); - this.parentTitle = parentTitle; - return this; - } - - public Builder contentRating(String contentRating) { - Utils.checkNotNull(contentRating, "contentRating"); - this.contentRating = Optional.ofNullable(contentRating); - return this; - } - - public Builder contentRating(Optional contentRating) { - Utils.checkNotNull(contentRating, "contentRating"); - this.contentRating = contentRating; - return this; - } - - public Builder summary(String summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = Optional.ofNullable(summary); - return this; - } - - public Builder summary(Optional summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = summary; - return this; - } - - public Builder index(double index) { - Utils.checkNotNull(index, "index"); - this.index = Optional.ofNullable(index); - return this; - } - - public Builder index(Optional index) { - Utils.checkNotNull(index, "index"); - this.index = index; - return this; - } - - public Builder parentIndex(double parentIndex) { - Utils.checkNotNull(parentIndex, "parentIndex"); - this.parentIndex = Optional.ofNullable(parentIndex); - return this; - } - - public Builder parentIndex(Optional parentIndex) { - Utils.checkNotNull(parentIndex, "parentIndex"); - this.parentIndex = parentIndex; - return this; - } - - public Builder lastViewedAt(double lastViewedAt) { - Utils.checkNotNull(lastViewedAt, "lastViewedAt"); - this.lastViewedAt = Optional.ofNullable(lastViewedAt); - return this; - } - - public Builder lastViewedAt(Optional lastViewedAt) { - Utils.checkNotNull(lastViewedAt, "lastViewedAt"); - this.lastViewedAt = lastViewedAt; - return this; - } - - public Builder year(double year) { - Utils.checkNotNull(year, "year"); - this.year = Optional.ofNullable(year); - return this; - } - - public Builder year(Optional year) { - Utils.checkNotNull(year, "year"); - this.year = year; - return this; - } - - public Builder thumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public Builder thumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public Builder art(String art) { - Utils.checkNotNull(art, "art"); - this.art = Optional.ofNullable(art); - return this; - } - - public Builder art(Optional art) { - Utils.checkNotNull(art, "art"); - this.art = art; - return this; - } - - public Builder parentThumb(String parentThumb) { - Utils.checkNotNull(parentThumb, "parentThumb"); - this.parentThumb = Optional.ofNullable(parentThumb); - return this; - } - - public Builder parentThumb(Optional parentThumb) { - Utils.checkNotNull(parentThumb, "parentThumb"); - this.parentThumb = parentThumb; - return this; - } - - public Builder grandparentThumb(String grandparentThumb) { - Utils.checkNotNull(grandparentThumb, "grandparentThumb"); - this.grandparentThumb = Optional.ofNullable(grandparentThumb); - return this; - } - - public Builder grandparentThumb(Optional grandparentThumb) { - Utils.checkNotNull(grandparentThumb, "grandparentThumb"); - this.grandparentThumb = grandparentThumb; - return this; - } - - public Builder grandparentArt(String grandparentArt) { - Utils.checkNotNull(grandparentArt, "grandparentArt"); - this.grandparentArt = Optional.ofNullable(grandparentArt); - return this; - } - - public Builder grandparentArt(Optional grandparentArt) { - Utils.checkNotNull(grandparentArt, "grandparentArt"); - this.grandparentArt = grandparentArt; - return this; - } - - public Builder grandparentTheme(String grandparentTheme) { - Utils.checkNotNull(grandparentTheme, "grandparentTheme"); - this.grandparentTheme = Optional.ofNullable(grandparentTheme); - return this; - } - - public Builder grandparentTheme(Optional grandparentTheme) { - Utils.checkNotNull(grandparentTheme, "grandparentTheme"); - this.grandparentTheme = grandparentTheme; - return this; - } - - public Builder duration(double duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public Builder duration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public Builder originallyAvailableAt(OffsetDateTime originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = Optional.ofNullable(originallyAvailableAt); - return this; - } - - public Builder originallyAvailableAt(Optional originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = originallyAvailableAt; - return this; - } - - public Builder addedAt(double addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = Optional.ofNullable(addedAt); - return this; - } - - public Builder addedAt(Optional addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = addedAt; - return this; - } - - public Builder updatedAt(double updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public Builder updatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public Builder media(java.util.List media) { - Utils.checkNotNull(media, "media"); - this.media = Optional.ofNullable(media); - return this; - } - - public Builder media(Optional> media) { - Utils.checkNotNull(media, "media"); - this.media = media; - return this; - } - - public Builder guids(java.util.List guids) { - Utils.checkNotNull(guids, "guids"); - this.guids = Optional.ofNullable(guids); - return this; - } - - public Builder guids(Optional> guids) { - Utils.checkNotNull(guids, "guids"); - this.guids = guids; - return this; - } - - public GetOnDeckMetadata build() { - return new GetOnDeckMetadata( - allowSync, - librarySectionID, - librarySectionTitle, - librarySectionUUID, - ratingKey, - key, - parentRatingKey, - grandparentRatingKey, - guid, - parentGuid, - grandparentGuid, - type, - title, - grandparentKey, - parentKey, - librarySectionKey, - grandparentTitle, - parentTitle, - contentRating, - summary, - index, - parentIndex, - lastViewedAt, - year, - thumb, - art, - parentThumb, - grandparentThumb, - grandparentArt, - grandparentTheme, - duration, - originallyAvailableAt, - addedAt, - updatedAt, - media, - guids); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckPart.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckPart.java deleted file mode 100644 index ec348556..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckPart.java +++ /dev/null @@ -1,455 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetOnDeckPart { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("duration") - private Optional duration; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("file") - private Optional file; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audioProfile") - private Optional audioProfile; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("container") - private Optional container; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("videoProfile") - private Optional videoProfile; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Stream") - private Optional> stream; - - @JsonCreator - public GetOnDeckPart( - @JsonProperty("id") Optional id, - @JsonProperty("key") Optional key, - @JsonProperty("duration") Optional duration, - @JsonProperty("file") Optional file, - @JsonProperty("size") Optional size, - @JsonProperty("audioProfile") Optional audioProfile, - @JsonProperty("container") Optional container, - @JsonProperty("videoProfile") Optional videoProfile, - @JsonProperty("Stream") Optional> stream) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(duration, "duration"); - Utils.checkNotNull(file, "file"); - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(audioProfile, "audioProfile"); - Utils.checkNotNull(container, "container"); - Utils.checkNotNull(videoProfile, "videoProfile"); - Utils.checkNotNull(stream, "stream"); - 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; - } - - public GetOnDeckPart() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional duration() { - return (Optional) duration; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional file() { - return (Optional) file; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audioProfile() { - return (Optional) audioProfile; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional container() { - return (Optional) container; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional videoProfile() { - return (Optional) videoProfile; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> stream() { - return (Optional>) stream; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetOnDeckPart withId(double id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public GetOnDeckPart withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public GetOnDeckPart withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public GetOnDeckPart withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public GetOnDeckPart withDuration(double duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public GetOnDeckPart withDuration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public GetOnDeckPart withFile(String file) { - Utils.checkNotNull(file, "file"); - this.file = Optional.ofNullable(file); - return this; - } - - public GetOnDeckPart withFile(Optional file) { - Utils.checkNotNull(file, "file"); - this.file = file; - return this; - } - - public GetOnDeckPart withSize(double size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public GetOnDeckPart withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public GetOnDeckPart withAudioProfile(String audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = Optional.ofNullable(audioProfile); - return this; - } - - public GetOnDeckPart withAudioProfile(Optional audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = audioProfile; - return this; - } - - public GetOnDeckPart withContainer(String container) { - Utils.checkNotNull(container, "container"); - this.container = Optional.ofNullable(container); - return this; - } - - public GetOnDeckPart withContainer(Optional container) { - Utils.checkNotNull(container, "container"); - this.container = container; - return this; - } - - public GetOnDeckPart withVideoProfile(String videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = Optional.ofNullable(videoProfile); - return this; - } - - public GetOnDeckPart withVideoProfile(Optional videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = videoProfile; - return this; - } - - public GetOnDeckPart withStream(java.util.List stream) { - Utils.checkNotNull(stream, "stream"); - this.stream = Optional.ofNullable(stream); - return this; - } - - public GetOnDeckPart withStream(Optional> stream) { - Utils.checkNotNull(stream, "stream"); - this.stream = stream; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetOnDeckPart other = (GetOnDeckPart) o; - return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.duration, other.duration) && - java.util.Objects.deepEquals(this.file, other.file) && - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.audioProfile, other.audioProfile) && - java.util.Objects.deepEquals(this.container, other.container) && - java.util.Objects.deepEquals(this.videoProfile, other.videoProfile) && - java.util.Objects.deepEquals(this.stream, other.stream); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id, - key, - duration, - file, - size, - audioProfile, - container, - videoProfile, - stream); - } - - @Override - public String toString() { - return Utils.toString(GetOnDeckPart.class, - "id", id, - "key", key, - "duration", duration, - "file", file, - "size", size, - "audioProfile", audioProfile, - "container", container, - "videoProfile", videoProfile, - "stream", stream); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional duration = Optional.empty(); - - private Optional file = Optional.empty(); - - private Optional size = Optional.empty(); - - private Optional audioProfile = Optional.empty(); - - private Optional container = Optional.empty(); - - private Optional videoProfile = Optional.empty(); - - private Optional> stream = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(double id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder duration(double duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public Builder duration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public Builder file(String file) { - Utils.checkNotNull(file, "file"); - this.file = Optional.ofNullable(file); - return this; - } - - public Builder file(Optional file) { - Utils.checkNotNull(file, "file"); - this.file = file; - return this; - } - - public Builder size(double size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder audioProfile(String audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = Optional.ofNullable(audioProfile); - return this; - } - - public Builder audioProfile(Optional audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = audioProfile; - return this; - } - - public Builder container(String container) { - Utils.checkNotNull(container, "container"); - this.container = Optional.ofNullable(container); - return this; - } - - public Builder container(Optional container) { - Utils.checkNotNull(container, "container"); - this.container = container; - return this; - } - - public Builder videoProfile(String videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = Optional.ofNullable(videoProfile); - return this; - } - - public Builder videoProfile(Optional videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = videoProfile; - return this; - } - - public Builder stream(java.util.List stream) { - Utils.checkNotNull(stream, "stream"); - this.stream = Optional.ofNullable(stream); - return this; - } - - public Builder stream(Optional> stream) { - Utils.checkNotNull(stream, "stream"); - this.stream = stream; - return this; - } - - public GetOnDeckPart build() { - return new GetOnDeckPart( - id, - key, - duration, - file, - size, - audioProfile, - container, - videoProfile, - stream); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckRequestBuilder.java deleted file mode 100644 index fb478a11..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckRequestBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetOnDeckRequestBuilder { - - private final SDKMethodInterfaces.MethodCallGetOnDeck sdk; - - public GetOnDeckRequestBuilder(SDKMethodInterfaces.MethodCallGetOnDeck sdk) { - this.sdk = sdk; - } - - public GetOnDeckResponse call() throws Exception { - - return sdk.getOnDeckDirect(); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckResponse.java deleted file mode 100644 index 71e9f2ab..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckResponse.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetOnDeckResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * The on Deck content - */ - private Optional object; - - @JsonCreator - public GetOnDeckResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional object) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.object = object; - } - - public GetOnDeckResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * The on Deck content - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional object() { - return (Optional) object; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetOnDeckResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetOnDeckResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetOnDeckResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * The on Deck content - */ - public GetOnDeckResponse withObject(GetOnDeckResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * The on Deck content - */ - public GetOnDeckResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetOnDeckResponse other = (GetOnDeckResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.object, other.object); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse, - object); - } - - @Override - public String toString() { - return Utils.toString(GetOnDeckResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "object", object); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional object = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * The on Deck content - */ - public Builder object(GetOnDeckResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * The on Deck content - */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - public GetOnDeckResponse build() { - return new GetOnDeckResponse( - contentType, - statusCode, - rawResponse, - object); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckResponseBody.java deleted file mode 100644 index f478133c..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckResponseBody.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -/** - * GetOnDeckResponseBody - The on Deck content - */ - -public class GetOnDeckResponseBody { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("MediaContainer") - private Optional mediaContainer; - - @JsonCreator - public GetOnDeckResponseBody( - @JsonProperty("MediaContainer") Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - } - - public GetOnDeckResponseBody() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaContainer() { - return (Optional) mediaContainer; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetOnDeckResponseBody withMediaContainer(GetOnDeckMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public GetOnDeckResponseBody withMediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetOnDeckResponseBody other = (GetOnDeckResponseBody) o; - return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - mediaContainer); - } - - @Override - public String toString() { - return Utils.toString(GetOnDeckResponseBody.class, - "mediaContainer", mediaContainer); - } - - public final static class Builder { - - private Optional mediaContainer = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder mediaContainer(GetOnDeckMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public Builder mediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - public GetOnDeckResponseBody build() { - return new GetOnDeckResponseBody( - mediaContainer); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckStream.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckStream.java deleted file mode 100644 index 89d5188c..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetOnDeckStream.java +++ /dev/null @@ -1,1057 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetOnDeckStream { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("streamType") - private Optional streamType; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("default") - private Optional default_; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("codec") - private Optional codec; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("index") - private Optional index; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("bitrate") - private Optional bitrate; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("language") - private Optional language; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("languageTag") - private Optional languageTag; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("languageCode") - private Optional languageCode; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("bitDepth") - private Optional bitDepth; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("chromaLocation") - private Optional chromaLocation; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("chromaSubsampling") - private Optional chromaSubsampling; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("codedHeight") - private Optional codedHeight; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("codedWidth") - private Optional codedWidth; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("colorRange") - private Optional colorRange; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("frameRate") - private Optional frameRate; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("height") - private Optional height; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("level") - private Optional level; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("profile") - private Optional profile; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("refFrames") - private Optional refFrames; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("width") - private Optional width; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("displayTitle") - private Optional displayTitle; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("extendedDisplayTitle") - private Optional extendedDisplayTitle; - - @JsonCreator - public GetOnDeckStream( - @JsonProperty("id") Optional id, - @JsonProperty("streamType") Optional streamType, - @JsonProperty("default") Optional default_, - @JsonProperty("codec") Optional codec, - @JsonProperty("index") Optional index, - @JsonProperty("bitrate") Optional bitrate, - @JsonProperty("language") Optional language, - @JsonProperty("languageTag") Optional languageTag, - @JsonProperty("languageCode") Optional languageCode, - @JsonProperty("bitDepth") Optional bitDepth, - @JsonProperty("chromaLocation") Optional chromaLocation, - @JsonProperty("chromaSubsampling") Optional chromaSubsampling, - @JsonProperty("codedHeight") Optional codedHeight, - @JsonProperty("codedWidth") Optional codedWidth, - @JsonProperty("colorRange") Optional colorRange, - @JsonProperty("frameRate") Optional frameRate, - @JsonProperty("height") Optional height, - @JsonProperty("level") Optional level, - @JsonProperty("profile") Optional profile, - @JsonProperty("refFrames") Optional refFrames, - @JsonProperty("width") Optional width, - @JsonProperty("displayTitle") Optional displayTitle, - @JsonProperty("extendedDisplayTitle") Optional extendedDisplayTitle) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(streamType, "streamType"); - Utils.checkNotNull(default_, "default_"); - Utils.checkNotNull(codec, "codec"); - Utils.checkNotNull(index, "index"); - Utils.checkNotNull(bitrate, "bitrate"); - Utils.checkNotNull(language, "language"); - Utils.checkNotNull(languageTag, "languageTag"); - Utils.checkNotNull(languageCode, "languageCode"); - Utils.checkNotNull(bitDepth, "bitDepth"); - Utils.checkNotNull(chromaLocation, "chromaLocation"); - Utils.checkNotNull(chromaSubsampling, "chromaSubsampling"); - Utils.checkNotNull(codedHeight, "codedHeight"); - Utils.checkNotNull(codedWidth, "codedWidth"); - Utils.checkNotNull(colorRange, "colorRange"); - Utils.checkNotNull(frameRate, "frameRate"); - Utils.checkNotNull(height, "height"); - Utils.checkNotNull(level, "level"); - Utils.checkNotNull(profile, "profile"); - Utils.checkNotNull(refFrames, "refFrames"); - Utils.checkNotNull(width, "width"); - Utils.checkNotNull(displayTitle, "displayTitle"); - Utils.checkNotNull(extendedDisplayTitle, "extendedDisplayTitle"); - 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; - } - - public GetOnDeckStream() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional streamType() { - return (Optional) streamType; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional default_() { - return (Optional) default_; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional codec() { - return (Optional) codec; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional index() { - return (Optional) index; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional bitrate() { - return (Optional) bitrate; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional language() { - return (Optional) language; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional languageTag() { - return (Optional) languageTag; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional languageCode() { - return (Optional) languageCode; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional bitDepth() { - return (Optional) bitDepth; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional chromaLocation() { - return (Optional) chromaLocation; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional chromaSubsampling() { - return (Optional) chromaSubsampling; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional codedHeight() { - return (Optional) codedHeight; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional codedWidth() { - return (Optional) codedWidth; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional colorRange() { - return (Optional) colorRange; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional frameRate() { - return (Optional) frameRate; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional height() { - return (Optional) height; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional level() { - return (Optional) level; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional profile() { - return (Optional) profile; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional refFrames() { - return (Optional) refFrames; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional width() { - return (Optional) width; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional displayTitle() { - return (Optional) displayTitle; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional extendedDisplayTitle() { - return (Optional) extendedDisplayTitle; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetOnDeckStream withId(double id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public GetOnDeckStream withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public GetOnDeckStream withStreamType(double streamType) { - Utils.checkNotNull(streamType, "streamType"); - this.streamType = Optional.ofNullable(streamType); - return this; - } - - public GetOnDeckStream withStreamType(Optional streamType) { - Utils.checkNotNull(streamType, "streamType"); - this.streamType = streamType; - return this; - } - - public GetOnDeckStream withDefault(boolean default_) { - Utils.checkNotNull(default_, "default_"); - this.default_ = Optional.ofNullable(default_); - return this; - } - - public GetOnDeckStream withDefault(Optional default_) { - Utils.checkNotNull(default_, "default_"); - this.default_ = default_; - return this; - } - - public GetOnDeckStream withCodec(String codec) { - Utils.checkNotNull(codec, "codec"); - this.codec = Optional.ofNullable(codec); - return this; - } - - public GetOnDeckStream withCodec(Optional codec) { - Utils.checkNotNull(codec, "codec"); - this.codec = codec; - return this; - } - - public GetOnDeckStream withIndex(double index) { - Utils.checkNotNull(index, "index"); - this.index = Optional.ofNullable(index); - return this; - } - - public GetOnDeckStream withIndex(Optional index) { - Utils.checkNotNull(index, "index"); - this.index = index; - return this; - } - - public GetOnDeckStream withBitrate(double bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = Optional.ofNullable(bitrate); - return this; - } - - public GetOnDeckStream withBitrate(Optional bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = bitrate; - return this; - } - - public GetOnDeckStream withLanguage(String language) { - Utils.checkNotNull(language, "language"); - this.language = Optional.ofNullable(language); - return this; - } - - public GetOnDeckStream withLanguage(Optional language) { - Utils.checkNotNull(language, "language"); - this.language = language; - return this; - } - - public GetOnDeckStream withLanguageTag(String languageTag) { - Utils.checkNotNull(languageTag, "languageTag"); - this.languageTag = Optional.ofNullable(languageTag); - return this; - } - - public GetOnDeckStream withLanguageTag(Optional languageTag) { - Utils.checkNotNull(languageTag, "languageTag"); - this.languageTag = languageTag; - return this; - } - - public GetOnDeckStream withLanguageCode(String languageCode) { - Utils.checkNotNull(languageCode, "languageCode"); - this.languageCode = Optional.ofNullable(languageCode); - return this; - } - - public GetOnDeckStream withLanguageCode(Optional languageCode) { - Utils.checkNotNull(languageCode, "languageCode"); - this.languageCode = languageCode; - return this; - } - - public GetOnDeckStream withBitDepth(double bitDepth) { - Utils.checkNotNull(bitDepth, "bitDepth"); - this.bitDepth = Optional.ofNullable(bitDepth); - return this; - } - - public GetOnDeckStream withBitDepth(Optional bitDepth) { - Utils.checkNotNull(bitDepth, "bitDepth"); - this.bitDepth = bitDepth; - return this; - } - - public GetOnDeckStream withChromaLocation(String chromaLocation) { - Utils.checkNotNull(chromaLocation, "chromaLocation"); - this.chromaLocation = Optional.ofNullable(chromaLocation); - return this; - } - - public GetOnDeckStream withChromaLocation(Optional chromaLocation) { - Utils.checkNotNull(chromaLocation, "chromaLocation"); - this.chromaLocation = chromaLocation; - return this; - } - - public GetOnDeckStream withChromaSubsampling(String chromaSubsampling) { - Utils.checkNotNull(chromaSubsampling, "chromaSubsampling"); - this.chromaSubsampling = Optional.ofNullable(chromaSubsampling); - return this; - } - - public GetOnDeckStream withChromaSubsampling(Optional chromaSubsampling) { - Utils.checkNotNull(chromaSubsampling, "chromaSubsampling"); - this.chromaSubsampling = chromaSubsampling; - return this; - } - - public GetOnDeckStream withCodedHeight(double codedHeight) { - Utils.checkNotNull(codedHeight, "codedHeight"); - this.codedHeight = Optional.ofNullable(codedHeight); - return this; - } - - public GetOnDeckStream withCodedHeight(Optional codedHeight) { - Utils.checkNotNull(codedHeight, "codedHeight"); - this.codedHeight = codedHeight; - return this; - } - - public GetOnDeckStream withCodedWidth(double codedWidth) { - Utils.checkNotNull(codedWidth, "codedWidth"); - this.codedWidth = Optional.ofNullable(codedWidth); - return this; - } - - public GetOnDeckStream withCodedWidth(Optional codedWidth) { - Utils.checkNotNull(codedWidth, "codedWidth"); - this.codedWidth = codedWidth; - return this; - } - - public GetOnDeckStream withColorRange(String colorRange) { - Utils.checkNotNull(colorRange, "colorRange"); - this.colorRange = Optional.ofNullable(colorRange); - return this; - } - - public GetOnDeckStream withColorRange(Optional colorRange) { - Utils.checkNotNull(colorRange, "colorRange"); - this.colorRange = colorRange; - return this; - } - - public GetOnDeckStream withFrameRate(double frameRate) { - Utils.checkNotNull(frameRate, "frameRate"); - this.frameRate = Optional.ofNullable(frameRate); - return this; - } - - public GetOnDeckStream withFrameRate(Optional frameRate) { - Utils.checkNotNull(frameRate, "frameRate"); - this.frameRate = frameRate; - return this; - } - - public GetOnDeckStream withHeight(double height) { - Utils.checkNotNull(height, "height"); - this.height = Optional.ofNullable(height); - return this; - } - - public GetOnDeckStream withHeight(Optional height) { - Utils.checkNotNull(height, "height"); - this.height = height; - return this; - } - - public GetOnDeckStream withLevel(double level) { - Utils.checkNotNull(level, "level"); - this.level = Optional.ofNullable(level); - return this; - } - - public GetOnDeckStream withLevel(Optional level) { - Utils.checkNotNull(level, "level"); - this.level = level; - return this; - } - - public GetOnDeckStream withProfile(String profile) { - Utils.checkNotNull(profile, "profile"); - this.profile = Optional.ofNullable(profile); - return this; - } - - public GetOnDeckStream withProfile(Optional profile) { - Utils.checkNotNull(profile, "profile"); - this.profile = profile; - return this; - } - - public GetOnDeckStream withRefFrames(double refFrames) { - Utils.checkNotNull(refFrames, "refFrames"); - this.refFrames = Optional.ofNullable(refFrames); - return this; - } - - public GetOnDeckStream withRefFrames(Optional refFrames) { - Utils.checkNotNull(refFrames, "refFrames"); - this.refFrames = refFrames; - return this; - } - - public GetOnDeckStream withWidth(double width) { - Utils.checkNotNull(width, "width"); - this.width = Optional.ofNullable(width); - return this; - } - - public GetOnDeckStream withWidth(Optional width) { - Utils.checkNotNull(width, "width"); - this.width = width; - return this; - } - - public GetOnDeckStream withDisplayTitle(String displayTitle) { - Utils.checkNotNull(displayTitle, "displayTitle"); - this.displayTitle = Optional.ofNullable(displayTitle); - return this; - } - - public GetOnDeckStream withDisplayTitle(Optional displayTitle) { - Utils.checkNotNull(displayTitle, "displayTitle"); - this.displayTitle = displayTitle; - return this; - } - - public GetOnDeckStream withExtendedDisplayTitle(String extendedDisplayTitle) { - Utils.checkNotNull(extendedDisplayTitle, "extendedDisplayTitle"); - this.extendedDisplayTitle = Optional.ofNullable(extendedDisplayTitle); - return this; - } - - public GetOnDeckStream withExtendedDisplayTitle(Optional extendedDisplayTitle) { - Utils.checkNotNull(extendedDisplayTitle, "extendedDisplayTitle"); - this.extendedDisplayTitle = extendedDisplayTitle; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetOnDeckStream other = (GetOnDeckStream) o; - return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.streamType, other.streamType) && - java.util.Objects.deepEquals(this.default_, other.default_) && - java.util.Objects.deepEquals(this.codec, other.codec) && - java.util.Objects.deepEquals(this.index, other.index) && - java.util.Objects.deepEquals(this.bitrate, other.bitrate) && - java.util.Objects.deepEquals(this.language, other.language) && - java.util.Objects.deepEquals(this.languageTag, other.languageTag) && - java.util.Objects.deepEquals(this.languageCode, other.languageCode) && - java.util.Objects.deepEquals(this.bitDepth, other.bitDepth) && - java.util.Objects.deepEquals(this.chromaLocation, other.chromaLocation) && - java.util.Objects.deepEquals(this.chromaSubsampling, other.chromaSubsampling) && - java.util.Objects.deepEquals(this.codedHeight, other.codedHeight) && - java.util.Objects.deepEquals(this.codedWidth, other.codedWidth) && - java.util.Objects.deepEquals(this.colorRange, other.colorRange) && - java.util.Objects.deepEquals(this.frameRate, other.frameRate) && - java.util.Objects.deepEquals(this.height, other.height) && - java.util.Objects.deepEquals(this.level, other.level) && - java.util.Objects.deepEquals(this.profile, other.profile) && - java.util.Objects.deepEquals(this.refFrames, other.refFrames) && - java.util.Objects.deepEquals(this.width, other.width) && - java.util.Objects.deepEquals(this.displayTitle, other.displayTitle) && - java.util.Objects.deepEquals(this.extendedDisplayTitle, other.extendedDisplayTitle); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id, - streamType, - default_, - codec, - index, - bitrate, - language, - languageTag, - languageCode, - bitDepth, - chromaLocation, - chromaSubsampling, - codedHeight, - codedWidth, - colorRange, - frameRate, - height, - level, - profile, - refFrames, - width, - displayTitle, - extendedDisplayTitle); - } - - @Override - public String toString() { - return Utils.toString(GetOnDeckStream.class, - "id", id, - "streamType", streamType, - "default_", default_, - "codec", codec, - "index", index, - "bitrate", bitrate, - "language", language, - "languageTag", languageTag, - "languageCode", languageCode, - "bitDepth", bitDepth, - "chromaLocation", chromaLocation, - "chromaSubsampling", chromaSubsampling, - "codedHeight", codedHeight, - "codedWidth", codedWidth, - "colorRange", colorRange, - "frameRate", frameRate, - "height", height, - "level", level, - "profile", profile, - "refFrames", refFrames, - "width", width, - "displayTitle", displayTitle, - "extendedDisplayTitle", extendedDisplayTitle); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional streamType = Optional.empty(); - - private Optional default_ = Optional.empty(); - - private Optional codec = Optional.empty(); - - private Optional index = Optional.empty(); - - private Optional bitrate = Optional.empty(); - - private Optional language = Optional.empty(); - - private Optional languageTag = Optional.empty(); - - private Optional languageCode = Optional.empty(); - - private Optional bitDepth = Optional.empty(); - - private Optional chromaLocation = Optional.empty(); - - private Optional chromaSubsampling = Optional.empty(); - - private Optional codedHeight = Optional.empty(); - - private Optional codedWidth = Optional.empty(); - - private Optional colorRange = Optional.empty(); - - private Optional frameRate = Optional.empty(); - - private Optional height = Optional.empty(); - - private Optional level = Optional.empty(); - - private Optional profile = Optional.empty(); - - private Optional refFrames = Optional.empty(); - - private Optional width = Optional.empty(); - - private Optional displayTitle = Optional.empty(); - - private Optional extendedDisplayTitle = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(double id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder streamType(double streamType) { - Utils.checkNotNull(streamType, "streamType"); - this.streamType = Optional.ofNullable(streamType); - return this; - } - - public Builder streamType(Optional streamType) { - Utils.checkNotNull(streamType, "streamType"); - this.streamType = streamType; - return this; - } - - public Builder default_(boolean default_) { - Utils.checkNotNull(default_, "default_"); - this.default_ = Optional.ofNullable(default_); - return this; - } - - public Builder default_(Optional default_) { - Utils.checkNotNull(default_, "default_"); - this.default_ = default_; - return this; - } - - public Builder codec(String codec) { - Utils.checkNotNull(codec, "codec"); - this.codec = Optional.ofNullable(codec); - return this; - } - - public Builder codec(Optional codec) { - Utils.checkNotNull(codec, "codec"); - this.codec = codec; - return this; - } - - public Builder index(double index) { - Utils.checkNotNull(index, "index"); - this.index = Optional.ofNullable(index); - return this; - } - - public Builder index(Optional index) { - Utils.checkNotNull(index, "index"); - this.index = index; - return this; - } - - public Builder bitrate(double bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = Optional.ofNullable(bitrate); - return this; - } - - public Builder bitrate(Optional bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = bitrate; - return this; - } - - public Builder language(String language) { - Utils.checkNotNull(language, "language"); - this.language = Optional.ofNullable(language); - return this; - } - - public Builder language(Optional language) { - Utils.checkNotNull(language, "language"); - this.language = language; - return this; - } - - public Builder languageTag(String languageTag) { - Utils.checkNotNull(languageTag, "languageTag"); - this.languageTag = Optional.ofNullable(languageTag); - return this; - } - - public Builder languageTag(Optional languageTag) { - Utils.checkNotNull(languageTag, "languageTag"); - this.languageTag = languageTag; - return this; - } - - public Builder languageCode(String languageCode) { - Utils.checkNotNull(languageCode, "languageCode"); - this.languageCode = Optional.ofNullable(languageCode); - return this; - } - - public Builder languageCode(Optional languageCode) { - Utils.checkNotNull(languageCode, "languageCode"); - this.languageCode = languageCode; - return this; - } - - public Builder bitDepth(double bitDepth) { - Utils.checkNotNull(bitDepth, "bitDepth"); - this.bitDepth = Optional.ofNullable(bitDepth); - return this; - } - - public Builder bitDepth(Optional bitDepth) { - Utils.checkNotNull(bitDepth, "bitDepth"); - this.bitDepth = bitDepth; - return this; - } - - public Builder chromaLocation(String chromaLocation) { - Utils.checkNotNull(chromaLocation, "chromaLocation"); - this.chromaLocation = Optional.ofNullable(chromaLocation); - return this; - } - - public Builder chromaLocation(Optional chromaLocation) { - Utils.checkNotNull(chromaLocation, "chromaLocation"); - this.chromaLocation = chromaLocation; - return this; - } - - public Builder chromaSubsampling(String chromaSubsampling) { - Utils.checkNotNull(chromaSubsampling, "chromaSubsampling"); - this.chromaSubsampling = Optional.ofNullable(chromaSubsampling); - return this; - } - - public Builder chromaSubsampling(Optional chromaSubsampling) { - Utils.checkNotNull(chromaSubsampling, "chromaSubsampling"); - this.chromaSubsampling = chromaSubsampling; - return this; - } - - public Builder codedHeight(double codedHeight) { - Utils.checkNotNull(codedHeight, "codedHeight"); - this.codedHeight = Optional.ofNullable(codedHeight); - return this; - } - - public Builder codedHeight(Optional codedHeight) { - Utils.checkNotNull(codedHeight, "codedHeight"); - this.codedHeight = codedHeight; - return this; - } - - public Builder codedWidth(double codedWidth) { - Utils.checkNotNull(codedWidth, "codedWidth"); - this.codedWidth = Optional.ofNullable(codedWidth); - return this; - } - - public Builder codedWidth(Optional codedWidth) { - Utils.checkNotNull(codedWidth, "codedWidth"); - this.codedWidth = codedWidth; - return this; - } - - public Builder colorRange(String colorRange) { - Utils.checkNotNull(colorRange, "colorRange"); - this.colorRange = Optional.ofNullable(colorRange); - return this; - } - - public Builder colorRange(Optional colorRange) { - Utils.checkNotNull(colorRange, "colorRange"); - this.colorRange = colorRange; - return this; - } - - public Builder frameRate(double frameRate) { - Utils.checkNotNull(frameRate, "frameRate"); - this.frameRate = Optional.ofNullable(frameRate); - return this; - } - - public Builder frameRate(Optional frameRate) { - Utils.checkNotNull(frameRate, "frameRate"); - this.frameRate = frameRate; - return this; - } - - public Builder height(double height) { - Utils.checkNotNull(height, "height"); - this.height = Optional.ofNullable(height); - return this; - } - - public Builder height(Optional height) { - Utils.checkNotNull(height, "height"); - this.height = height; - return this; - } - - public Builder level(double level) { - Utils.checkNotNull(level, "level"); - this.level = Optional.ofNullable(level); - return this; - } - - public Builder level(Optional level) { - Utils.checkNotNull(level, "level"); - this.level = level; - return this; - } - - public Builder profile(String profile) { - Utils.checkNotNull(profile, "profile"); - this.profile = Optional.ofNullable(profile); - return this; - } - - public Builder profile(Optional profile) { - Utils.checkNotNull(profile, "profile"); - this.profile = profile; - return this; - } - - public Builder refFrames(double refFrames) { - Utils.checkNotNull(refFrames, "refFrames"); - this.refFrames = Optional.ofNullable(refFrames); - return this; - } - - public Builder refFrames(Optional refFrames) { - Utils.checkNotNull(refFrames, "refFrames"); - this.refFrames = refFrames; - return this; - } - - public Builder width(double width) { - Utils.checkNotNull(width, "width"); - this.width = Optional.ofNullable(width); - return this; - } - - public Builder width(Optional width) { - Utils.checkNotNull(width, "width"); - this.width = width; - return this; - } - - public Builder displayTitle(String displayTitle) { - Utils.checkNotNull(displayTitle, "displayTitle"); - this.displayTitle = Optional.ofNullable(displayTitle); - return this; - } - - public Builder displayTitle(Optional displayTitle) { - Utils.checkNotNull(displayTitle, "displayTitle"); - this.displayTitle = displayTitle; - return this; - } - - public Builder extendedDisplayTitle(String extendedDisplayTitle) { - Utils.checkNotNull(extendedDisplayTitle, "extendedDisplayTitle"); - this.extendedDisplayTitle = Optional.ofNullable(extendedDisplayTitle); - return this; - } - - public Builder extendedDisplayTitle(Optional extendedDisplayTitle) { - Utils.checkNotNull(extendedDisplayTitle, "extendedDisplayTitle"); - this.extendedDisplayTitle = extendedDisplayTitle; - return this; - } - - public GetOnDeckStream build() { - return new GetOnDeckStream( - id, - streamType, - default_, - codec, - index, - bitrate, - language, - languageTag, - languageCode, - bitDepth, - chromaLocation, - chromaSubsampling, - codedHeight, - codedWidth, - colorRange, - frameRate, - height, - level, - profile, - refFrames, - width, - displayTitle, - extendedDisplayTitle); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPinRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPinRequest.java deleted file mode 100644 index b75d91f4..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPinRequest.java +++ /dev/null @@ -1,278 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetPinRequest { - - /** - * Determines the kind of code returned by the API call - * Strong codes are used for Pin authentication flows - * Non-Strong codes are used for `Plex.tv/link` - * - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=strong") - private Optional strong; - - /** - * 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) - * - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=X-Plex-Client-Identifier") - private Optional xPlexClientIdentifier; - - /** - * Product name of the application shown in the list of devices - * - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=X-Plex-Product") - private String xPlexProduct; - - @JsonCreator - public GetPinRequest( - Optional strong, - Optional xPlexClientIdentifier, - String xPlexProduct) { - Utils.checkNotNull(strong, "strong"); - Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier"); - Utils.checkNotNull(xPlexProduct, "xPlexProduct"); - this.strong = strong; - this.xPlexClientIdentifier = xPlexClientIdentifier; - this.xPlexProduct = xPlexProduct; - } - - public GetPinRequest( - String xPlexProduct) { - this(Optional.empty(), Optional.empty(), xPlexProduct); - } - - /** - * Determines the kind of code returned by the API call - * Strong codes are used for Pin authentication flows - * Non-Strong codes are used for `Plex.tv/link` - * - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional strong() { - return (Optional) strong; - } - - /** - * 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) - * - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional xPlexClientIdentifier() { - return (Optional) xPlexClientIdentifier; - } - - /** - * Product name of the application shown in the list of devices - * - */ - @JsonIgnore - public String xPlexProduct() { - return xPlexProduct; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * Determines the kind of code returned by the API call - * Strong codes are used for Pin authentication flows - * Non-Strong codes are used for `Plex.tv/link` - * - */ - public GetPinRequest withStrong(boolean strong) { - Utils.checkNotNull(strong, "strong"); - this.strong = Optional.ofNullable(strong); - return this; - } - - /** - * Determines the kind of code returned by the API call - * Strong codes are used for Pin authentication flows - * Non-Strong codes are used for `Plex.tv/link` - * - */ - public GetPinRequest withStrong(Optional strong) { - Utils.checkNotNull(strong, "strong"); - this.strong = strong; - return this; - } - - /** - * 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) - * - */ - public GetPinRequest withXPlexClientIdentifier(String xPlexClientIdentifier) { - Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier"); - this.xPlexClientIdentifier = Optional.ofNullable(xPlexClientIdentifier); - return this; - } - - /** - * 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) - * - */ - public GetPinRequest withXPlexClientIdentifier(Optional xPlexClientIdentifier) { - Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier"); - this.xPlexClientIdentifier = xPlexClientIdentifier; - return this; - } - - /** - * Product name of the application shown in the list of devices - * - */ - public GetPinRequest withXPlexProduct(String xPlexProduct) { - Utils.checkNotNull(xPlexProduct, "xPlexProduct"); - this.xPlexProduct = xPlexProduct; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetPinRequest other = (GetPinRequest) o; - return - java.util.Objects.deepEquals(this.strong, other.strong) && - java.util.Objects.deepEquals(this.xPlexClientIdentifier, other.xPlexClientIdentifier) && - java.util.Objects.deepEquals(this.xPlexProduct, other.xPlexProduct); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - strong, - xPlexClientIdentifier, - xPlexProduct); - } - - @Override - public String toString() { - return Utils.toString(GetPinRequest.class, - "strong", strong, - "xPlexClientIdentifier", xPlexClientIdentifier, - "xPlexProduct", xPlexProduct); - } - - public final static class Builder { - - private Optional strong; - - private Optional xPlexClientIdentifier = Optional.empty(); - - private String xPlexProduct; - - private Builder() { - // force use of static builder() method - } - - /** - * Determines the kind of code returned by the API call - * Strong codes are used for Pin authentication flows - * Non-Strong codes are used for `Plex.tv/link` - * - */ - public Builder strong(boolean strong) { - Utils.checkNotNull(strong, "strong"); - this.strong = Optional.ofNullable(strong); - return this; - } - - /** - * Determines the kind of code returned by the API call - * Strong codes are used for Pin authentication flows - * Non-Strong codes are used for `Plex.tv/link` - * - */ - public Builder strong(Optional strong) { - Utils.checkNotNull(strong, "strong"); - this.strong = strong; - return this; - } - - /** - * 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) - * - */ - public Builder xPlexClientIdentifier(String xPlexClientIdentifier) { - Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier"); - this.xPlexClientIdentifier = Optional.ofNullable(xPlexClientIdentifier); - return this; - } - - /** - * 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) - * - */ - public Builder xPlexClientIdentifier(Optional xPlexClientIdentifier) { - Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier"); - this.xPlexClientIdentifier = xPlexClientIdentifier; - return this; - } - - /** - * Product name of the application shown in the list of devices - * - */ - public Builder xPlexProduct(String xPlexProduct) { - Utils.checkNotNull(xPlexProduct, "xPlexProduct"); - this.xPlexProduct = xPlexProduct; - return this; - } - - public GetPinRequest build() { - if (strong == null) { - strong = _SINGLETON_VALUE_Strong.value(); - } - return new GetPinRequest( - strong, - xPlexClientIdentifier, - xPlexProduct); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Strong = - new LazySingletonValue<>( - "strong", - "false", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPinRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPinRequestBuilder.java deleted file mode 100644 index efec567d..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPinRequestBuilder.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetPinRequestBuilder { - - private Optional strong = Utils.readDefaultOrConstValue( - "strong", - "false", - new TypeReference>() {}); - private Optional xPlexClientIdentifier = Optional.empty(); - private String xPlexProduct; - private java.util.Optional serverURL = Optional.empty(); - private final SDKMethodInterfaces.MethodCallGetPin sdk; - - public GetPinRequestBuilder(SDKMethodInterfaces.MethodCallGetPin sdk) { - this.sdk = sdk; - } - - public GetPinRequestBuilder strong(boolean strong) { - Utils.checkNotNull(strong, "strong"); - this.strong = Optional.of(strong); - return this; - } - - public GetPinRequestBuilder strong(Optional strong) { - Utils.checkNotNull(strong, "strong"); - this.strong = strong; - return this; - } - - public GetPinRequestBuilder xPlexClientIdentifier(String xPlexClientIdentifier) { - Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier"); - this.xPlexClientIdentifier = Optional.of(xPlexClientIdentifier); - return this; - } - - public GetPinRequestBuilder xPlexClientIdentifier(Optional xPlexClientIdentifier) { - Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier"); - this.xPlexClientIdentifier = xPlexClientIdentifier; - return this; - } - - public GetPinRequestBuilder xPlexProduct(String xPlexProduct) { - Utils.checkNotNull(xPlexProduct, "xPlexProduct"); - this.xPlexProduct = xPlexProduct; - return this; - } - - public GetPinRequestBuilder serverURL(String serverURL) { - Utils.checkNotNull(serverURL, "serverURL"); - this.serverURL = Optional.of(serverURL); - return this; - } - - public GetPinRequestBuilder serverURL(java.util.Optional serverURL) { - Utils.checkNotNull(serverURL, "serverURL"); - this.serverURL = serverURL; - return this; - } - - public GetPinResponse call() throws Exception { - if (strong == null) { - strong = _SINGLETON_VALUE_Strong.value(); - } - - return sdk.getPin( - strong, - xPlexClientIdentifier, - xPlexProduct, - serverURL); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Strong = - new LazySingletonValue<>( - "strong", - "false", - new TypeReference>() {}); -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPinResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPinResponse.java deleted file mode 100644 index 7009e824..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPinResponse.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetPinResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * The Pin - */ - private Optional object; - - @JsonCreator - public GetPinResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional object) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.object = object; - } - - public GetPinResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * The Pin - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional object() { - return (Optional) object; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetPinResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetPinResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetPinResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * The Pin - */ - public GetPinResponse withObject(GetPinResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * The Pin - */ - public GetPinResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetPinResponse other = (GetPinResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.object, other.object); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse, - object); - } - - @Override - public String toString() { - return Utils.toString(GetPinResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "object", object); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional object = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * The Pin - */ - public Builder object(GetPinResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * The Pin - */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - public GetPinResponse build() { - return new GetPinResponse( - contentType, - statusCode, - rawResponse, - object); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPinResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPinResponseBody.java deleted file mode 100644 index 571e6f4b..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPinResponseBody.java +++ /dev/null @@ -1,645 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; -/** - * GetPinResponseBody - The Pin - */ - -public class GetPinResponseBody { - - /** - * PinID for use with authentication - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("product") - private Optional product; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("trusted") - private Optional trusted; - - /** - * 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 - * - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("qr") - private Optional qr; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("clientIdentifier") - private Optional clientIdentifier; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("location") - private Optional location; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("expiresIn") - private Optional expiresIn; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("createdAt") - private Optional createdAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("expiresAt") - private Optional expiresAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("authToken") - private Optional authToken; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("newRegistration") - private JsonNullable newRegistration; - - @JsonCreator - public GetPinResponseBody( - @JsonProperty("id") Optional id, - @JsonProperty("code") Optional code, - @JsonProperty("product") Optional product, - @JsonProperty("trusted") Optional trusted, - @JsonProperty("qr") Optional qr, - @JsonProperty("clientIdentifier") Optional clientIdentifier, - @JsonProperty("location") Optional location, - @JsonProperty("expiresIn") Optional expiresIn, - @JsonProperty("createdAt") Optional createdAt, - @JsonProperty("expiresAt") Optional expiresAt, - @JsonProperty("authToken") Optional authToken, - @JsonProperty("newRegistration") JsonNullable newRegistration) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(product, "product"); - Utils.checkNotNull(trusted, "trusted"); - Utils.checkNotNull(qr, "qr"); - Utils.checkNotNull(clientIdentifier, "clientIdentifier"); - Utils.checkNotNull(location, "location"); - Utils.checkNotNull(expiresIn, "expiresIn"); - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(expiresAt, "expiresAt"); - Utils.checkNotNull(authToken, "authToken"); - Utils.checkNotNull(newRegistration, "newRegistration"); - 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; - } - - public GetPinResponseBody() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined()); - } - - /** - * PinID for use with authentication - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional product() { - return (Optional) product; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional trusted() { - return (Optional) trusted; - } - - /** - * 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 - * - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional qr() { - return (Optional) qr; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional clientIdentifier() { - return (Optional) clientIdentifier; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional location() { - return (Optional) location; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional expiresIn() { - return (Optional) expiresIn; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional createdAt() { - return (Optional) createdAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional expiresAt() { - return (Optional) expiresAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional authToken() { - return (Optional) authToken; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable newRegistration() { - return (JsonNullable) newRegistration; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * PinID for use with authentication - */ - public GetPinResponseBody withId(double id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * PinID for use with authentication - */ - public GetPinResponseBody withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public GetPinResponseBody withCode(String code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetPinResponseBody withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetPinResponseBody withProduct(String product) { - Utils.checkNotNull(product, "product"); - this.product = Optional.ofNullable(product); - return this; - } - - public GetPinResponseBody withProduct(Optional product) { - Utils.checkNotNull(product, "product"); - this.product = product; - return this; - } - - public GetPinResponseBody withTrusted(boolean trusted) { - Utils.checkNotNull(trusted, "trusted"); - this.trusted = Optional.ofNullable(trusted); - return this; - } - - public GetPinResponseBody withTrusted(Optional trusted) { - Utils.checkNotNull(trusted, "trusted"); - this.trusted = trusted; - return this; - } - - /** - * 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 - * - */ - public GetPinResponseBody withQr(String qr) { - Utils.checkNotNull(qr, "qr"); - this.qr = Optional.ofNullable(qr); - return this; - } - - /** - * 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 - * - */ - public GetPinResponseBody withQr(Optional qr) { - Utils.checkNotNull(qr, "qr"); - this.qr = qr; - return this; - } - - public GetPinResponseBody withClientIdentifier(String clientIdentifier) { - Utils.checkNotNull(clientIdentifier, "clientIdentifier"); - this.clientIdentifier = Optional.ofNullable(clientIdentifier); - return this; - } - - public GetPinResponseBody withClientIdentifier(Optional clientIdentifier) { - Utils.checkNotNull(clientIdentifier, "clientIdentifier"); - this.clientIdentifier = clientIdentifier; - return this; - } - - public GetPinResponseBody withLocation(Location location) { - Utils.checkNotNull(location, "location"); - this.location = Optional.ofNullable(location); - return this; - } - - public GetPinResponseBody withLocation(Optional location) { - Utils.checkNotNull(location, "location"); - this.location = location; - return this; - } - - public GetPinResponseBody withExpiresIn(double expiresIn) { - Utils.checkNotNull(expiresIn, "expiresIn"); - this.expiresIn = Optional.ofNullable(expiresIn); - return this; - } - - public GetPinResponseBody withExpiresIn(Optional expiresIn) { - Utils.checkNotNull(expiresIn, "expiresIn"); - this.expiresIn = expiresIn; - return this; - } - - public GetPinResponseBody withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = Optional.ofNullable(createdAt); - return this; - } - - public GetPinResponseBody withCreatedAt(Optional createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - public GetPinResponseBody withExpiresAt(OffsetDateTime expiresAt) { - Utils.checkNotNull(expiresAt, "expiresAt"); - this.expiresAt = Optional.ofNullable(expiresAt); - return this; - } - - public GetPinResponseBody withExpiresAt(Optional expiresAt) { - Utils.checkNotNull(expiresAt, "expiresAt"); - this.expiresAt = expiresAt; - return this; - } - - public GetPinResponseBody withAuthToken(String authToken) { - Utils.checkNotNull(authToken, "authToken"); - this.authToken = Optional.ofNullable(authToken); - return this; - } - - public GetPinResponseBody withAuthToken(Optional authToken) { - Utils.checkNotNull(authToken, "authToken"); - this.authToken = authToken; - return this; - } - - public GetPinResponseBody withNewRegistration(boolean newRegistration) { - Utils.checkNotNull(newRegistration, "newRegistration"); - this.newRegistration = JsonNullable.of(newRegistration); - return this; - } - - public GetPinResponseBody withNewRegistration(JsonNullable newRegistration) { - Utils.checkNotNull(newRegistration, "newRegistration"); - this.newRegistration = newRegistration; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetPinResponseBody other = (GetPinResponseBody) o; - return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.product, other.product) && - java.util.Objects.deepEquals(this.trusted, other.trusted) && - java.util.Objects.deepEquals(this.qr, other.qr) && - java.util.Objects.deepEquals(this.clientIdentifier, other.clientIdentifier) && - java.util.Objects.deepEquals(this.location, other.location) && - java.util.Objects.deepEquals(this.expiresIn, other.expiresIn) && - java.util.Objects.deepEquals(this.createdAt, other.createdAt) && - java.util.Objects.deepEquals(this.expiresAt, other.expiresAt) && - java.util.Objects.deepEquals(this.authToken, other.authToken) && - java.util.Objects.deepEquals(this.newRegistration, other.newRegistration); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id, - code, - product, - trusted, - qr, - clientIdentifier, - location, - expiresIn, - createdAt, - expiresAt, - authToken, - newRegistration); - } - - @Override - public String toString() { - return Utils.toString(GetPinResponseBody.class, - "id", id, - "code", code, - "product", product, - "trusted", trusted, - "qr", qr, - "clientIdentifier", clientIdentifier, - "location", location, - "expiresIn", expiresIn, - "createdAt", createdAt, - "expiresAt", expiresAt, - "authToken", authToken, - "newRegistration", newRegistration); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional code = Optional.empty(); - - private Optional product = Optional.empty(); - - private Optional trusted = Optional.empty(); - - private Optional qr = Optional.empty(); - - private Optional clientIdentifier = Optional.empty(); - - private Optional location = Optional.empty(); - - private Optional expiresIn = Optional.empty(); - - private Optional createdAt = Optional.empty(); - - private Optional expiresAt = Optional.empty(); - - private Optional authToken = Optional.empty(); - - private JsonNullable newRegistration = JsonNullable.undefined(); - - private Builder() { - // force use of static builder() method - } - - /** - * PinID for use with authentication - */ - public Builder id(double id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * PinID for use with authentication - */ - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder code(String code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder product(String product) { - Utils.checkNotNull(product, "product"); - this.product = Optional.ofNullable(product); - return this; - } - - public Builder product(Optional product) { - Utils.checkNotNull(product, "product"); - this.product = product; - return this; - } - - public Builder trusted(boolean trusted) { - Utils.checkNotNull(trusted, "trusted"); - this.trusted = Optional.ofNullable(trusted); - return this; - } - - public Builder trusted(Optional trusted) { - Utils.checkNotNull(trusted, "trusted"); - this.trusted = trusted; - return this; - } - - /** - * 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 - * - */ - public Builder qr(String qr) { - Utils.checkNotNull(qr, "qr"); - this.qr = Optional.ofNullable(qr); - return this; - } - - /** - * 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 - * - */ - public Builder qr(Optional qr) { - Utils.checkNotNull(qr, "qr"); - this.qr = qr; - return this; - } - - public Builder clientIdentifier(String clientIdentifier) { - Utils.checkNotNull(clientIdentifier, "clientIdentifier"); - this.clientIdentifier = Optional.ofNullable(clientIdentifier); - return this; - } - - public Builder clientIdentifier(Optional clientIdentifier) { - Utils.checkNotNull(clientIdentifier, "clientIdentifier"); - this.clientIdentifier = clientIdentifier; - return this; - } - - public Builder location(Location location) { - Utils.checkNotNull(location, "location"); - this.location = Optional.ofNullable(location); - return this; - } - - public Builder location(Optional location) { - Utils.checkNotNull(location, "location"); - this.location = location; - return this; - } - - public Builder expiresIn(double expiresIn) { - Utils.checkNotNull(expiresIn, "expiresIn"); - this.expiresIn = Optional.ofNullable(expiresIn); - return this; - } - - public Builder expiresIn(Optional expiresIn) { - Utils.checkNotNull(expiresIn, "expiresIn"); - this.expiresIn = expiresIn; - return this; - } - - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = Optional.ofNullable(createdAt); - return this; - } - - public Builder createdAt(Optional createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - public Builder expiresAt(OffsetDateTime expiresAt) { - Utils.checkNotNull(expiresAt, "expiresAt"); - this.expiresAt = Optional.ofNullable(expiresAt); - return this; - } - - public Builder expiresAt(Optional expiresAt) { - Utils.checkNotNull(expiresAt, "expiresAt"); - this.expiresAt = expiresAt; - return this; - } - - public Builder authToken(String authToken) { - Utils.checkNotNull(authToken, "authToken"); - this.authToken = Optional.ofNullable(authToken); - return this; - } - - public Builder authToken(Optional authToken) { - Utils.checkNotNull(authToken, "authToken"); - this.authToken = authToken; - return this; - } - - public Builder newRegistration(boolean newRegistration) { - Utils.checkNotNull(newRegistration, "newRegistration"); - this.newRegistration = JsonNullable.of(newRegistration); - return this; - } - - public Builder newRegistration(JsonNullable newRegistration) { - Utils.checkNotNull(newRegistration, "newRegistration"); - this.newRegistration = newRegistration; - return this; - } - - public GetPinResponseBody build() { - return new GetPinResponseBody( - id, - code, - product, - trusted, - qr, - clientIdentifier, - location, - expiresIn, - createdAt, - expiresAt, - authToken, - newRegistration); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsCountry.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsCountry.java deleted file mode 100644 index 5a5a3aaa..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsCountry.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetPlaylistContentsCountry { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tag") - private Optional tag; - - @JsonCreator - public GetPlaylistContentsCountry( - @JsonProperty("tag") Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - } - - public GetPlaylistContentsCountry() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tag() { - return (Optional) tag; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetPlaylistContentsCountry withTag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public GetPlaylistContentsCountry withTag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetPlaylistContentsCountry other = (GetPlaylistContentsCountry) o; - return - java.util.Objects.deepEquals(this.tag, other.tag); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - tag); - } - - @Override - public String toString() { - return Utils.toString(GetPlaylistContentsCountry.class, - "tag", tag); - } - - public final static class Builder { - - private Optional tag = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder tag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Builder tag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public GetPlaylistContentsCountry build() { - return new GetPlaylistContentsCountry( - tag); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsDirector.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsDirector.java deleted file mode 100644 index 31482e58..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsDirector.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetPlaylistContentsDirector { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tag") - private Optional tag; - - @JsonCreator - public GetPlaylistContentsDirector( - @JsonProperty("tag") Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - } - - public GetPlaylistContentsDirector() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tag() { - return (Optional) tag; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetPlaylistContentsDirector withTag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public GetPlaylistContentsDirector withTag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetPlaylistContentsDirector other = (GetPlaylistContentsDirector) o; - return - java.util.Objects.deepEquals(this.tag, other.tag); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - tag); - } - - @Override - public String toString() { - return Utils.toString(GetPlaylistContentsDirector.class, - "tag", tag); - } - - public final static class Builder { - - private Optional tag = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder tag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Builder tag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public GetPlaylistContentsDirector build() { - return new GetPlaylistContentsDirector( - tag); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsGenre.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsGenre.java deleted file mode 100644 index ea3ce41b..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsGenre.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetPlaylistContentsGenre { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tag") - private Optional tag; - - @JsonCreator - public GetPlaylistContentsGenre( - @JsonProperty("tag") Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - } - - public GetPlaylistContentsGenre() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tag() { - return (Optional) tag; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetPlaylistContentsGenre withTag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public GetPlaylistContentsGenre withTag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetPlaylistContentsGenre other = (GetPlaylistContentsGenre) o; - return - java.util.Objects.deepEquals(this.tag, other.tag); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - tag); - } - - @Override - public String toString() { - return Utils.toString(GetPlaylistContentsGenre.class, - "tag", tag); - } - - public final static class Builder { - - private Optional tag = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder tag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Builder tag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public GetPlaylistContentsGenre build() { - return new GetPlaylistContentsGenre( - tag); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsMedia.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsMedia.java deleted file mode 100644 index b3cb95b3..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsMedia.java +++ /dev/null @@ -1,799 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetPlaylistContentsMedia { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("duration") - private Optional duration; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("bitrate") - private Optional bitrate; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("width") - private Optional width; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("height") - private Optional height; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("aspectRatio") - private Optional aspectRatio; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audioChannels") - private Optional audioChannels; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audioCodec") - private Optional audioCodec; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("videoCodec") - private Optional videoCodec; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("videoResolution") - private Optional videoResolution; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("container") - private Optional container; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("videoFrameRate") - private Optional videoFrameRate; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("optimizedForStreaming") - private Optional optimizedForStreaming; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audioProfile") - private Optional audioProfile; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("has64bitOffsets") - private Optional has64bitOffsets; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("videoProfile") - private Optional videoProfile; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Part") - private Optional> part; - - @JsonCreator - public GetPlaylistContentsMedia( - @JsonProperty("id") Optional id, - @JsonProperty("duration") Optional duration, - @JsonProperty("bitrate") Optional bitrate, - @JsonProperty("width") Optional width, - @JsonProperty("height") Optional height, - @JsonProperty("aspectRatio") Optional aspectRatio, - @JsonProperty("audioChannels") Optional audioChannels, - @JsonProperty("audioCodec") Optional audioCodec, - @JsonProperty("videoCodec") Optional videoCodec, - @JsonProperty("videoResolution") Optional videoResolution, - @JsonProperty("container") Optional container, - @JsonProperty("videoFrameRate") Optional videoFrameRate, - @JsonProperty("optimizedForStreaming") Optional optimizedForStreaming, - @JsonProperty("audioProfile") Optional audioProfile, - @JsonProperty("has64bitOffsets") Optional has64bitOffsets, - @JsonProperty("videoProfile") Optional videoProfile, - @JsonProperty("Part") Optional> part) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(duration, "duration"); - Utils.checkNotNull(bitrate, "bitrate"); - Utils.checkNotNull(width, "width"); - Utils.checkNotNull(height, "height"); - Utils.checkNotNull(aspectRatio, "aspectRatio"); - Utils.checkNotNull(audioChannels, "audioChannels"); - Utils.checkNotNull(audioCodec, "audioCodec"); - Utils.checkNotNull(videoCodec, "videoCodec"); - Utils.checkNotNull(videoResolution, "videoResolution"); - Utils.checkNotNull(container, "container"); - Utils.checkNotNull(videoFrameRate, "videoFrameRate"); - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - Utils.checkNotNull(audioProfile, "audioProfile"); - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - Utils.checkNotNull(videoProfile, "videoProfile"); - Utils.checkNotNull(part, "part"); - 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; - } - - public GetPlaylistContentsMedia() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional duration() { - return (Optional) duration; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional bitrate() { - return (Optional) bitrate; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional width() { - return (Optional) width; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional height() { - return (Optional) height; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional aspectRatio() { - return (Optional) aspectRatio; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audioChannels() { - return (Optional) audioChannels; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audioCodec() { - return (Optional) audioCodec; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional videoCodec() { - return (Optional) videoCodec; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional videoResolution() { - return (Optional) videoResolution; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional container() { - return (Optional) container; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional videoFrameRate() { - return (Optional) videoFrameRate; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional optimizedForStreaming() { - return (Optional) optimizedForStreaming; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audioProfile() { - return (Optional) audioProfile; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional has64bitOffsets() { - return (Optional) has64bitOffsets; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional videoProfile() { - return (Optional) videoProfile; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> part() { - return (Optional>) part; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetPlaylistContentsMedia withId(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public GetPlaylistContentsMedia withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public GetPlaylistContentsMedia withDuration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public GetPlaylistContentsMedia withDuration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public GetPlaylistContentsMedia withBitrate(int bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = Optional.ofNullable(bitrate); - return this; - } - - public GetPlaylistContentsMedia withBitrate(Optional bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = bitrate; - return this; - } - - public GetPlaylistContentsMedia withWidth(int width) { - Utils.checkNotNull(width, "width"); - this.width = Optional.ofNullable(width); - return this; - } - - public GetPlaylistContentsMedia withWidth(Optional width) { - Utils.checkNotNull(width, "width"); - this.width = width; - return this; - } - - public GetPlaylistContentsMedia withHeight(int height) { - Utils.checkNotNull(height, "height"); - this.height = Optional.ofNullable(height); - return this; - } - - public GetPlaylistContentsMedia withHeight(Optional height) { - Utils.checkNotNull(height, "height"); - this.height = height; - return this; - } - - public GetPlaylistContentsMedia withAspectRatio(double aspectRatio) { - Utils.checkNotNull(aspectRatio, "aspectRatio"); - this.aspectRatio = Optional.ofNullable(aspectRatio); - return this; - } - - public GetPlaylistContentsMedia withAspectRatio(Optional aspectRatio) { - Utils.checkNotNull(aspectRatio, "aspectRatio"); - this.aspectRatio = aspectRatio; - return this; - } - - public GetPlaylistContentsMedia withAudioChannels(int audioChannels) { - Utils.checkNotNull(audioChannels, "audioChannels"); - this.audioChannels = Optional.ofNullable(audioChannels); - return this; - } - - public GetPlaylistContentsMedia withAudioChannels(Optional audioChannels) { - Utils.checkNotNull(audioChannels, "audioChannels"); - this.audioChannels = audioChannels; - return this; - } - - public GetPlaylistContentsMedia withAudioCodec(String audioCodec) { - Utils.checkNotNull(audioCodec, "audioCodec"); - this.audioCodec = Optional.ofNullable(audioCodec); - return this; - } - - public GetPlaylistContentsMedia withAudioCodec(Optional audioCodec) { - Utils.checkNotNull(audioCodec, "audioCodec"); - this.audioCodec = audioCodec; - return this; - } - - public GetPlaylistContentsMedia withVideoCodec(String videoCodec) { - Utils.checkNotNull(videoCodec, "videoCodec"); - this.videoCodec = Optional.ofNullable(videoCodec); - return this; - } - - public GetPlaylistContentsMedia withVideoCodec(Optional videoCodec) { - Utils.checkNotNull(videoCodec, "videoCodec"); - this.videoCodec = videoCodec; - return this; - } - - public GetPlaylistContentsMedia withVideoResolution(String videoResolution) { - Utils.checkNotNull(videoResolution, "videoResolution"); - this.videoResolution = Optional.ofNullable(videoResolution); - return this; - } - - public GetPlaylistContentsMedia withVideoResolution(Optional videoResolution) { - Utils.checkNotNull(videoResolution, "videoResolution"); - this.videoResolution = videoResolution; - return this; - } - - public GetPlaylistContentsMedia withContainer(String container) { - Utils.checkNotNull(container, "container"); - this.container = Optional.ofNullable(container); - return this; - } - - public GetPlaylistContentsMedia withContainer(Optional container) { - Utils.checkNotNull(container, "container"); - this.container = container; - return this; - } - - public GetPlaylistContentsMedia withVideoFrameRate(String videoFrameRate) { - Utils.checkNotNull(videoFrameRate, "videoFrameRate"); - this.videoFrameRate = Optional.ofNullable(videoFrameRate); - return this; - } - - public GetPlaylistContentsMedia withVideoFrameRate(Optional videoFrameRate) { - Utils.checkNotNull(videoFrameRate, "videoFrameRate"); - this.videoFrameRate = videoFrameRate; - return this; - } - - public GetPlaylistContentsMedia withOptimizedForStreaming(int optimizedForStreaming) { - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - this.optimizedForStreaming = Optional.ofNullable(optimizedForStreaming); - return this; - } - - public GetPlaylistContentsMedia withOptimizedForStreaming(Optional optimizedForStreaming) { - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - this.optimizedForStreaming = optimizedForStreaming; - return this; - } - - public GetPlaylistContentsMedia withAudioProfile(String audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = Optional.ofNullable(audioProfile); - return this; - } - - public GetPlaylistContentsMedia withAudioProfile(Optional audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = audioProfile; - return this; - } - - public GetPlaylistContentsMedia withHas64bitOffsets(boolean has64bitOffsets) { - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - this.has64bitOffsets = Optional.ofNullable(has64bitOffsets); - return this; - } - - public GetPlaylistContentsMedia withHas64bitOffsets(Optional has64bitOffsets) { - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - this.has64bitOffsets = has64bitOffsets; - return this; - } - - public GetPlaylistContentsMedia withVideoProfile(String videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = Optional.ofNullable(videoProfile); - return this; - } - - public GetPlaylistContentsMedia withVideoProfile(Optional videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = videoProfile; - return this; - } - - public GetPlaylistContentsMedia withPart(java.util.List part) { - Utils.checkNotNull(part, "part"); - this.part = Optional.ofNullable(part); - return this; - } - - public GetPlaylistContentsMedia withPart(Optional> part) { - Utils.checkNotNull(part, "part"); - this.part = part; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetPlaylistContentsMedia other = (GetPlaylistContentsMedia) o; - return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.duration, other.duration) && - java.util.Objects.deepEquals(this.bitrate, other.bitrate) && - java.util.Objects.deepEquals(this.width, other.width) && - java.util.Objects.deepEquals(this.height, other.height) && - java.util.Objects.deepEquals(this.aspectRatio, other.aspectRatio) && - java.util.Objects.deepEquals(this.audioChannels, other.audioChannels) && - java.util.Objects.deepEquals(this.audioCodec, other.audioCodec) && - java.util.Objects.deepEquals(this.videoCodec, other.videoCodec) && - java.util.Objects.deepEquals(this.videoResolution, other.videoResolution) && - java.util.Objects.deepEquals(this.container, other.container) && - java.util.Objects.deepEquals(this.videoFrameRate, other.videoFrameRate) && - java.util.Objects.deepEquals(this.optimizedForStreaming, other.optimizedForStreaming) && - java.util.Objects.deepEquals(this.audioProfile, other.audioProfile) && - java.util.Objects.deepEquals(this.has64bitOffsets, other.has64bitOffsets) && - java.util.Objects.deepEquals(this.videoProfile, other.videoProfile) && - java.util.Objects.deepEquals(this.part, other.part); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id, - duration, - bitrate, - width, - height, - aspectRatio, - audioChannels, - audioCodec, - videoCodec, - videoResolution, - container, - videoFrameRate, - optimizedForStreaming, - audioProfile, - has64bitOffsets, - videoProfile, - part); - } - - @Override - public String toString() { - return Utils.toString(GetPlaylistContentsMedia.class, - "id", id, - "duration", duration, - "bitrate", bitrate, - "width", width, - "height", height, - "aspectRatio", aspectRatio, - "audioChannels", audioChannels, - "audioCodec", audioCodec, - "videoCodec", videoCodec, - "videoResolution", videoResolution, - "container", container, - "videoFrameRate", videoFrameRate, - "optimizedForStreaming", optimizedForStreaming, - "audioProfile", audioProfile, - "has64bitOffsets", has64bitOffsets, - "videoProfile", videoProfile, - "part", part); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional duration = Optional.empty(); - - private Optional bitrate = Optional.empty(); - - private Optional width = Optional.empty(); - - private Optional height = Optional.empty(); - - private Optional aspectRatio = Optional.empty(); - - private Optional audioChannels = Optional.empty(); - - private Optional audioCodec = Optional.empty(); - - private Optional videoCodec = Optional.empty(); - - private Optional videoResolution = Optional.empty(); - - private Optional container = Optional.empty(); - - private Optional videoFrameRate = Optional.empty(); - - private Optional optimizedForStreaming = Optional.empty(); - - private Optional audioProfile = Optional.empty(); - - private Optional has64bitOffsets = Optional.empty(); - - private Optional videoProfile = Optional.empty(); - - private Optional> part = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder duration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public Builder duration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public Builder bitrate(int bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = Optional.ofNullable(bitrate); - return this; - } - - public Builder bitrate(Optional bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = bitrate; - return this; - } - - public Builder width(int width) { - Utils.checkNotNull(width, "width"); - this.width = Optional.ofNullable(width); - return this; - } - - public Builder width(Optional width) { - Utils.checkNotNull(width, "width"); - this.width = width; - return this; - } - - public Builder height(int height) { - Utils.checkNotNull(height, "height"); - this.height = Optional.ofNullable(height); - return this; - } - - public Builder height(Optional height) { - Utils.checkNotNull(height, "height"); - this.height = height; - return this; - } - - public Builder aspectRatio(double aspectRatio) { - Utils.checkNotNull(aspectRatio, "aspectRatio"); - this.aspectRatio = Optional.ofNullable(aspectRatio); - return this; - } - - public Builder aspectRatio(Optional aspectRatio) { - Utils.checkNotNull(aspectRatio, "aspectRatio"); - this.aspectRatio = aspectRatio; - return this; - } - - public Builder audioChannels(int audioChannels) { - Utils.checkNotNull(audioChannels, "audioChannels"); - this.audioChannels = Optional.ofNullable(audioChannels); - return this; - } - - public Builder audioChannels(Optional audioChannels) { - Utils.checkNotNull(audioChannels, "audioChannels"); - this.audioChannels = audioChannels; - return this; - } - - public Builder audioCodec(String audioCodec) { - Utils.checkNotNull(audioCodec, "audioCodec"); - this.audioCodec = Optional.ofNullable(audioCodec); - return this; - } - - public Builder audioCodec(Optional audioCodec) { - Utils.checkNotNull(audioCodec, "audioCodec"); - this.audioCodec = audioCodec; - return this; - } - - public Builder videoCodec(String videoCodec) { - Utils.checkNotNull(videoCodec, "videoCodec"); - this.videoCodec = Optional.ofNullable(videoCodec); - return this; - } - - public Builder videoCodec(Optional videoCodec) { - Utils.checkNotNull(videoCodec, "videoCodec"); - this.videoCodec = videoCodec; - return this; - } - - public Builder videoResolution(String videoResolution) { - Utils.checkNotNull(videoResolution, "videoResolution"); - this.videoResolution = Optional.ofNullable(videoResolution); - return this; - } - - public Builder videoResolution(Optional videoResolution) { - Utils.checkNotNull(videoResolution, "videoResolution"); - this.videoResolution = videoResolution; - return this; - } - - public Builder container(String container) { - Utils.checkNotNull(container, "container"); - this.container = Optional.ofNullable(container); - return this; - } - - public Builder container(Optional container) { - Utils.checkNotNull(container, "container"); - this.container = container; - return this; - } - - public Builder videoFrameRate(String videoFrameRate) { - Utils.checkNotNull(videoFrameRate, "videoFrameRate"); - this.videoFrameRate = Optional.ofNullable(videoFrameRate); - return this; - } - - public Builder videoFrameRate(Optional videoFrameRate) { - Utils.checkNotNull(videoFrameRate, "videoFrameRate"); - this.videoFrameRate = videoFrameRate; - return this; - } - - public Builder optimizedForStreaming(int optimizedForStreaming) { - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - this.optimizedForStreaming = Optional.ofNullable(optimizedForStreaming); - return this; - } - - public Builder optimizedForStreaming(Optional optimizedForStreaming) { - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - this.optimizedForStreaming = optimizedForStreaming; - return this; - } - - public Builder audioProfile(String audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = Optional.ofNullable(audioProfile); - return this; - } - - public Builder audioProfile(Optional audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = audioProfile; - return this; - } - - public Builder has64bitOffsets(boolean has64bitOffsets) { - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - this.has64bitOffsets = Optional.ofNullable(has64bitOffsets); - return this; - } - - public Builder has64bitOffsets(Optional has64bitOffsets) { - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - this.has64bitOffsets = has64bitOffsets; - return this; - } - - public Builder videoProfile(String videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = Optional.ofNullable(videoProfile); - return this; - } - - public Builder videoProfile(Optional videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = videoProfile; - return this; - } - - public Builder part(java.util.List part) { - Utils.checkNotNull(part, "part"); - this.part = Optional.ofNullable(part); - return this; - } - - public Builder part(Optional> part) { - Utils.checkNotNull(part, "part"); - this.part = part; - return this; - } - - public GetPlaylistContentsMedia build() { - return new GetPlaylistContentsMedia( - id, - duration, - bitrate, - width, - height, - aspectRatio, - audioChannels, - audioCodec, - videoCodec, - videoResolution, - container, - videoFrameRate, - optimizedForStreaming, - audioProfile, - has64bitOffsets, - videoProfile, - part); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsMediaContainer.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsMediaContainer.java deleted file mode 100644 index b5428043..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsMediaContainer.java +++ /dev/null @@ -1,455 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetPlaylistContentsMediaContainer { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("composite") - private Optional composite; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("duration") - private Optional duration; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("leafCount") - private Optional leafCount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("playlistType") - private Optional playlistType; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ratingKey") - private Optional ratingKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("smart") - private Optional smart; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title") - private Optional title; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Metadata") - private Optional> metadata; - - @JsonCreator - public GetPlaylistContentsMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("composite") Optional composite, - @JsonProperty("duration") Optional duration, - @JsonProperty("leafCount") Optional leafCount, - @JsonProperty("playlistType") Optional playlistType, - @JsonProperty("ratingKey") Optional ratingKey, - @JsonProperty("smart") Optional smart, - @JsonProperty("title") Optional title, - @JsonProperty("Metadata") Optional> metadata) { - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(composite, "composite"); - Utils.checkNotNull(duration, "duration"); - Utils.checkNotNull(leafCount, "leafCount"); - Utils.checkNotNull(playlistType, "playlistType"); - Utils.checkNotNull(ratingKey, "ratingKey"); - Utils.checkNotNull(smart, "smart"); - Utils.checkNotNull(title, "title"); - Utils.checkNotNull(metadata, "metadata"); - 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; - } - - public GetPlaylistContentsMediaContainer() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional composite() { - return (Optional) composite; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional duration() { - return (Optional) duration; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional leafCount() { - return (Optional) leafCount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional playlistType() { - return (Optional) playlistType; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional ratingKey() { - return (Optional) ratingKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional smart() { - return (Optional) smart; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title() { - return (Optional) title; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetPlaylistContentsMediaContainer withSize(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public GetPlaylistContentsMediaContainer withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public GetPlaylistContentsMediaContainer withComposite(String composite) { - Utils.checkNotNull(composite, "composite"); - this.composite = Optional.ofNullable(composite); - return this; - } - - public GetPlaylistContentsMediaContainer withComposite(Optional composite) { - Utils.checkNotNull(composite, "composite"); - this.composite = composite; - return this; - } - - public GetPlaylistContentsMediaContainer withDuration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public GetPlaylistContentsMediaContainer withDuration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public GetPlaylistContentsMediaContainer withLeafCount(int leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = Optional.ofNullable(leafCount); - return this; - } - - public GetPlaylistContentsMediaContainer withLeafCount(Optional leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = leafCount; - return this; - } - - public GetPlaylistContentsMediaContainer withPlaylistType(String playlistType) { - Utils.checkNotNull(playlistType, "playlistType"); - this.playlistType = Optional.ofNullable(playlistType); - return this; - } - - public GetPlaylistContentsMediaContainer withPlaylistType(Optional playlistType) { - Utils.checkNotNull(playlistType, "playlistType"); - this.playlistType = playlistType; - return this; - } - - public GetPlaylistContentsMediaContainer withRatingKey(String ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public GetPlaylistContentsMediaContainer withRatingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public GetPlaylistContentsMediaContainer withSmart(boolean smart) { - Utils.checkNotNull(smart, "smart"); - this.smart = Optional.ofNullable(smart); - return this; - } - - public GetPlaylistContentsMediaContainer withSmart(Optional smart) { - Utils.checkNotNull(smart, "smart"); - this.smart = smart; - return this; - } - - public GetPlaylistContentsMediaContainer withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public GetPlaylistContentsMediaContainer withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public GetPlaylistContentsMediaContainer withMetadata(java.util.List metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public GetPlaylistContentsMediaContainer withMetadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetPlaylistContentsMediaContainer other = (GetPlaylistContentsMediaContainer) o; - return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.composite, other.composite) && - java.util.Objects.deepEquals(this.duration, other.duration) && - java.util.Objects.deepEquals(this.leafCount, other.leafCount) && - java.util.Objects.deepEquals(this.playlistType, other.playlistType) && - java.util.Objects.deepEquals(this.ratingKey, other.ratingKey) && - java.util.Objects.deepEquals(this.smart, other.smart) && - java.util.Objects.deepEquals(this.title, other.title) && - java.util.Objects.deepEquals(this.metadata, other.metadata); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - size, - composite, - duration, - leafCount, - playlistType, - ratingKey, - smart, - title, - metadata); - } - - @Override - public String toString() { - return Utils.toString(GetPlaylistContentsMediaContainer.class, - "size", size, - "composite", composite, - "duration", duration, - "leafCount", leafCount, - "playlistType", playlistType, - "ratingKey", ratingKey, - "smart", smart, - "title", title, - "metadata", metadata); - } - - public final static class Builder { - - private Optional size = Optional.empty(); - - private Optional composite = Optional.empty(); - - private Optional duration = Optional.empty(); - - private Optional leafCount = Optional.empty(); - - private Optional playlistType = Optional.empty(); - - private Optional ratingKey = Optional.empty(); - - private Optional smart = Optional.empty(); - - private Optional title = Optional.empty(); - - private Optional> metadata = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder size(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder composite(String composite) { - Utils.checkNotNull(composite, "composite"); - this.composite = Optional.ofNullable(composite); - return this; - } - - public Builder composite(Optional composite) { - Utils.checkNotNull(composite, "composite"); - this.composite = composite; - return this; - } - - public Builder duration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public Builder duration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public Builder leafCount(int leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = Optional.ofNullable(leafCount); - return this; - } - - public Builder leafCount(Optional leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = leafCount; - return this; - } - - public Builder playlistType(String playlistType) { - Utils.checkNotNull(playlistType, "playlistType"); - this.playlistType = Optional.ofNullable(playlistType); - return this; - } - - public Builder playlistType(Optional playlistType) { - Utils.checkNotNull(playlistType, "playlistType"); - this.playlistType = playlistType; - return this; - } - - public Builder ratingKey(String ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public Builder ratingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public Builder smart(boolean smart) { - Utils.checkNotNull(smart, "smart"); - this.smart = Optional.ofNullable(smart); - return this; - } - - public Builder smart(Optional smart) { - Utils.checkNotNull(smart, "smart"); - this.smart = smart; - return this; - } - - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Builder metadata(java.util.List metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public Builder metadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public GetPlaylistContentsMediaContainer build() { - return new GetPlaylistContentsMediaContainer( - size, - composite, - duration, - leafCount, - playlistType, - ratingKey, - smart, - title, - metadata); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsMetadata.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsMetadata.java deleted file mode 100644 index 59bf84f8..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsMetadata.java +++ /dev/null @@ -1,1445 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetPlaylistContentsMetadata { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ratingKey") - private Optional ratingKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("guid") - private Optional guid; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("studio") - private Optional studio; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title") - private Optional title; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("titleSort") - private Optional titleSort; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionTitle") - private Optional librarySectionTitle; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionID") - private Optional librarySectionID; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionKey") - private Optional librarySectionKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("contentRating") - private Optional contentRating; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("summary") - private Optional summary; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("rating") - private Optional rating; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audienceRating") - private Optional audienceRating; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("year") - private Optional year; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tagline") - private Optional tagline; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("thumb") - private Optional thumb; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("art") - private Optional art; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("duration") - private Optional duration; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("originallyAvailableAt") - private Optional originallyAvailableAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("addedAt") - private Optional addedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updatedAt") - private Optional updatedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audienceRatingImage") - private Optional audienceRatingImage; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("hasPremiumExtras") - private Optional hasPremiumExtras; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("hasPremiumPrimaryExtra") - private Optional hasPremiumPrimaryExtra; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ratingImage") - private Optional ratingImage; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Media") - private Optional> media; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Genre") - private Optional> genre; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Country") - private Optional> country; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Director") - private Optional> director; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Writer") - private Optional> writer; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Role") - private Optional> role; - - @JsonCreator - public GetPlaylistContentsMetadata( - @JsonProperty("ratingKey") Optional ratingKey, - @JsonProperty("key") Optional key, - @JsonProperty("guid") Optional guid, - @JsonProperty("studio") Optional studio, - @JsonProperty("type") Optional type, - @JsonProperty("title") Optional title, - @JsonProperty("titleSort") Optional titleSort, - @JsonProperty("librarySectionTitle") Optional librarySectionTitle, - @JsonProperty("librarySectionID") Optional librarySectionID, - @JsonProperty("librarySectionKey") Optional librarySectionKey, - @JsonProperty("contentRating") Optional contentRating, - @JsonProperty("summary") Optional summary, - @JsonProperty("rating") Optional rating, - @JsonProperty("audienceRating") Optional audienceRating, - @JsonProperty("year") Optional year, - @JsonProperty("tagline") Optional tagline, - @JsonProperty("thumb") Optional thumb, - @JsonProperty("art") Optional art, - @JsonProperty("duration") Optional duration, - @JsonProperty("originallyAvailableAt") Optional originallyAvailableAt, - @JsonProperty("addedAt") Optional addedAt, - @JsonProperty("updatedAt") Optional updatedAt, - @JsonProperty("audienceRatingImage") Optional audienceRatingImage, - @JsonProperty("hasPremiumExtras") Optional hasPremiumExtras, - @JsonProperty("hasPremiumPrimaryExtra") Optional hasPremiumPrimaryExtra, - @JsonProperty("ratingImage") Optional ratingImage, - @JsonProperty("Media") Optional> media, - @JsonProperty("Genre") Optional> genre, - @JsonProperty("Country") Optional> country, - @JsonProperty("Director") Optional> director, - @JsonProperty("Writer") Optional> writer, - @JsonProperty("Role") Optional> role) { - Utils.checkNotNull(ratingKey, "ratingKey"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(guid, "guid"); - Utils.checkNotNull(studio, "studio"); - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(title, "title"); - Utils.checkNotNull(titleSort, "titleSort"); - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - Utils.checkNotNull(librarySectionID, "librarySectionID"); - Utils.checkNotNull(librarySectionKey, "librarySectionKey"); - Utils.checkNotNull(contentRating, "contentRating"); - Utils.checkNotNull(summary, "summary"); - Utils.checkNotNull(rating, "rating"); - Utils.checkNotNull(audienceRating, "audienceRating"); - Utils.checkNotNull(year, "year"); - Utils.checkNotNull(tagline, "tagline"); - Utils.checkNotNull(thumb, "thumb"); - Utils.checkNotNull(art, "art"); - Utils.checkNotNull(duration, "duration"); - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - Utils.checkNotNull(addedAt, "addedAt"); - Utils.checkNotNull(updatedAt, "updatedAt"); - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - Utils.checkNotNull(hasPremiumExtras, "hasPremiumExtras"); - Utils.checkNotNull(hasPremiumPrimaryExtra, "hasPremiumPrimaryExtra"); - Utils.checkNotNull(ratingImage, "ratingImage"); - Utils.checkNotNull(media, "media"); - Utils.checkNotNull(genre, "genre"); - Utils.checkNotNull(country, "country"); - Utils.checkNotNull(director, "director"); - Utils.checkNotNull(writer, "writer"); - Utils.checkNotNull(role, "role"); - 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; - } - - public GetPlaylistContentsMetadata() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional ratingKey() { - return (Optional) ratingKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional guid() { - return (Optional) guid; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional studio() { - return (Optional) studio; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title() { - return (Optional) title; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional titleSort() { - return (Optional) titleSort; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionTitle() { - return (Optional) librarySectionTitle; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionID() { - return (Optional) librarySectionID; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionKey() { - return (Optional) librarySectionKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional contentRating() { - return (Optional) contentRating; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional summary() { - return (Optional) summary; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional rating() { - return (Optional) rating; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audienceRating() { - return (Optional) audienceRating; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional year() { - return (Optional) year; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tagline() { - return (Optional) tagline; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional thumb() { - return (Optional) thumb; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional art() { - return (Optional) art; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional duration() { - return (Optional) duration; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional originallyAvailableAt() { - return (Optional) originallyAvailableAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional addedAt() { - return (Optional) addedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional updatedAt() { - return (Optional) updatedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audienceRatingImage() { - return (Optional) audienceRatingImage; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional hasPremiumExtras() { - return (Optional) hasPremiumExtras; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional hasPremiumPrimaryExtra() { - return (Optional) hasPremiumPrimaryExtra; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional ratingImage() { - return (Optional) ratingImage; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> media() { - return (Optional>) media; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> genre() { - return (Optional>) genre; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> country() { - return (Optional>) country; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> director() { - return (Optional>) director; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> writer() { - return (Optional>) writer; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> role() { - return (Optional>) role; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetPlaylistContentsMetadata withRatingKey(String ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public GetPlaylistContentsMetadata withRatingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public GetPlaylistContentsMetadata withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public GetPlaylistContentsMetadata withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public GetPlaylistContentsMetadata withGuid(String guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = Optional.ofNullable(guid); - return this; - } - - public GetPlaylistContentsMetadata withGuid(Optional guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = guid; - return this; - } - - public GetPlaylistContentsMetadata withStudio(String studio) { - Utils.checkNotNull(studio, "studio"); - this.studio = Optional.ofNullable(studio); - return this; - } - - public GetPlaylistContentsMetadata withStudio(Optional studio) { - Utils.checkNotNull(studio, "studio"); - this.studio = studio; - return this; - } - - public GetPlaylistContentsMetadata withType(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public GetPlaylistContentsMetadata withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public GetPlaylistContentsMetadata withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public GetPlaylistContentsMetadata withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public GetPlaylistContentsMetadata withTitleSort(String titleSort) { - Utils.checkNotNull(titleSort, "titleSort"); - this.titleSort = Optional.ofNullable(titleSort); - return this; - } - - public GetPlaylistContentsMetadata withTitleSort(Optional titleSort) { - Utils.checkNotNull(titleSort, "titleSort"); - this.titleSort = titleSort; - return this; - } - - public GetPlaylistContentsMetadata withLibrarySectionTitle(String librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = Optional.ofNullable(librarySectionTitle); - return this; - } - - public GetPlaylistContentsMetadata withLibrarySectionTitle(Optional librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = librarySectionTitle; - return this; - } - - public GetPlaylistContentsMetadata withLibrarySectionID(int librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = Optional.ofNullable(librarySectionID); - return this; - } - - public GetPlaylistContentsMetadata withLibrarySectionID(Optional librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = librarySectionID; - return this; - } - - public GetPlaylistContentsMetadata withLibrarySectionKey(String librarySectionKey) { - Utils.checkNotNull(librarySectionKey, "librarySectionKey"); - this.librarySectionKey = Optional.ofNullable(librarySectionKey); - return this; - } - - public GetPlaylistContentsMetadata withLibrarySectionKey(Optional librarySectionKey) { - Utils.checkNotNull(librarySectionKey, "librarySectionKey"); - this.librarySectionKey = librarySectionKey; - return this; - } - - public GetPlaylistContentsMetadata withContentRating(String contentRating) { - Utils.checkNotNull(contentRating, "contentRating"); - this.contentRating = Optional.ofNullable(contentRating); - return this; - } - - public GetPlaylistContentsMetadata withContentRating(Optional contentRating) { - Utils.checkNotNull(contentRating, "contentRating"); - this.contentRating = contentRating; - return this; - } - - public GetPlaylistContentsMetadata withSummary(String summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = Optional.ofNullable(summary); - return this; - } - - public GetPlaylistContentsMetadata withSummary(Optional summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = summary; - return this; - } - - public GetPlaylistContentsMetadata withRating(double rating) { - Utils.checkNotNull(rating, "rating"); - this.rating = Optional.ofNullable(rating); - return this; - } - - public GetPlaylistContentsMetadata withRating(Optional rating) { - Utils.checkNotNull(rating, "rating"); - this.rating = rating; - return this; - } - - public GetPlaylistContentsMetadata withAudienceRating(double audienceRating) { - Utils.checkNotNull(audienceRating, "audienceRating"); - this.audienceRating = Optional.ofNullable(audienceRating); - return this; - } - - public GetPlaylistContentsMetadata withAudienceRating(Optional audienceRating) { - Utils.checkNotNull(audienceRating, "audienceRating"); - this.audienceRating = audienceRating; - return this; - } - - public GetPlaylistContentsMetadata withYear(int year) { - Utils.checkNotNull(year, "year"); - this.year = Optional.ofNullable(year); - return this; - } - - public GetPlaylistContentsMetadata withYear(Optional year) { - Utils.checkNotNull(year, "year"); - this.year = year; - return this; - } - - public GetPlaylistContentsMetadata withTagline(String tagline) { - Utils.checkNotNull(tagline, "tagline"); - this.tagline = Optional.ofNullable(tagline); - return this; - } - - public GetPlaylistContentsMetadata withTagline(Optional tagline) { - Utils.checkNotNull(tagline, "tagline"); - this.tagline = tagline; - return this; - } - - public GetPlaylistContentsMetadata withThumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public GetPlaylistContentsMetadata withThumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public GetPlaylistContentsMetadata withArt(String art) { - Utils.checkNotNull(art, "art"); - this.art = Optional.ofNullable(art); - return this; - } - - public GetPlaylistContentsMetadata withArt(Optional art) { - Utils.checkNotNull(art, "art"); - this.art = art; - return this; - } - - public GetPlaylistContentsMetadata withDuration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public GetPlaylistContentsMetadata withDuration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public GetPlaylistContentsMetadata withOriginallyAvailableAt(LocalDate originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = Optional.ofNullable(originallyAvailableAt); - return this; - } - - public GetPlaylistContentsMetadata withOriginallyAvailableAt(Optional originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = originallyAvailableAt; - return this; - } - - public GetPlaylistContentsMetadata withAddedAt(int addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = Optional.ofNullable(addedAt); - return this; - } - - public GetPlaylistContentsMetadata withAddedAt(Optional addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = addedAt; - return this; - } - - public GetPlaylistContentsMetadata withUpdatedAt(int updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public GetPlaylistContentsMetadata withUpdatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public GetPlaylistContentsMetadata withAudienceRatingImage(String audienceRatingImage) { - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - this.audienceRatingImage = Optional.ofNullable(audienceRatingImage); - return this; - } - - public GetPlaylistContentsMetadata withAudienceRatingImage(Optional audienceRatingImage) { - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - this.audienceRatingImage = audienceRatingImage; - return this; - } - - public GetPlaylistContentsMetadata withHasPremiumExtras(String hasPremiumExtras) { - Utils.checkNotNull(hasPremiumExtras, "hasPremiumExtras"); - this.hasPremiumExtras = Optional.ofNullable(hasPremiumExtras); - return this; - } - - public GetPlaylistContentsMetadata withHasPremiumExtras(Optional hasPremiumExtras) { - Utils.checkNotNull(hasPremiumExtras, "hasPremiumExtras"); - this.hasPremiumExtras = hasPremiumExtras; - return this; - } - - public GetPlaylistContentsMetadata withHasPremiumPrimaryExtra(String hasPremiumPrimaryExtra) { - Utils.checkNotNull(hasPremiumPrimaryExtra, "hasPremiumPrimaryExtra"); - this.hasPremiumPrimaryExtra = Optional.ofNullable(hasPremiumPrimaryExtra); - return this; - } - - public GetPlaylistContentsMetadata withHasPremiumPrimaryExtra(Optional hasPremiumPrimaryExtra) { - Utils.checkNotNull(hasPremiumPrimaryExtra, "hasPremiumPrimaryExtra"); - this.hasPremiumPrimaryExtra = hasPremiumPrimaryExtra; - return this; - } - - public GetPlaylistContentsMetadata withRatingImage(String ratingImage) { - Utils.checkNotNull(ratingImage, "ratingImage"); - this.ratingImage = Optional.ofNullable(ratingImage); - return this; - } - - public GetPlaylistContentsMetadata withRatingImage(Optional ratingImage) { - Utils.checkNotNull(ratingImage, "ratingImage"); - this.ratingImage = ratingImage; - return this; - } - - public GetPlaylistContentsMetadata withMedia(java.util.List media) { - Utils.checkNotNull(media, "media"); - this.media = Optional.ofNullable(media); - return this; - } - - public GetPlaylistContentsMetadata withMedia(Optional> media) { - Utils.checkNotNull(media, "media"); - this.media = media; - return this; - } - - public GetPlaylistContentsMetadata withGenre(java.util.List genre) { - Utils.checkNotNull(genre, "genre"); - this.genre = Optional.ofNullable(genre); - return this; - } - - public GetPlaylistContentsMetadata withGenre(Optional> genre) { - Utils.checkNotNull(genre, "genre"); - this.genre = genre; - return this; - } - - public GetPlaylistContentsMetadata withCountry(java.util.List country) { - Utils.checkNotNull(country, "country"); - this.country = Optional.ofNullable(country); - return this; - } - - public GetPlaylistContentsMetadata withCountry(Optional> country) { - Utils.checkNotNull(country, "country"); - this.country = country; - return this; - } - - public GetPlaylistContentsMetadata withDirector(java.util.List director) { - Utils.checkNotNull(director, "director"); - this.director = Optional.ofNullable(director); - return this; - } - - public GetPlaylistContentsMetadata withDirector(Optional> director) { - Utils.checkNotNull(director, "director"); - this.director = director; - return this; - } - - public GetPlaylistContentsMetadata withWriter(java.util.List writer) { - Utils.checkNotNull(writer, "writer"); - this.writer = Optional.ofNullable(writer); - return this; - } - - public GetPlaylistContentsMetadata withWriter(Optional> writer) { - Utils.checkNotNull(writer, "writer"); - this.writer = writer; - return this; - } - - public GetPlaylistContentsMetadata withRole(java.util.List role) { - Utils.checkNotNull(role, "role"); - this.role = Optional.ofNullable(role); - return this; - } - - public GetPlaylistContentsMetadata withRole(Optional> role) { - Utils.checkNotNull(role, "role"); - this.role = role; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetPlaylistContentsMetadata other = (GetPlaylistContentsMetadata) o; - return - java.util.Objects.deepEquals(this.ratingKey, other.ratingKey) && - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.guid, other.guid) && - java.util.Objects.deepEquals(this.studio, other.studio) && - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.title, other.title) && - java.util.Objects.deepEquals(this.titleSort, other.titleSort) && - java.util.Objects.deepEquals(this.librarySectionTitle, other.librarySectionTitle) && - java.util.Objects.deepEquals(this.librarySectionID, other.librarySectionID) && - java.util.Objects.deepEquals(this.librarySectionKey, other.librarySectionKey) && - java.util.Objects.deepEquals(this.contentRating, other.contentRating) && - java.util.Objects.deepEquals(this.summary, other.summary) && - java.util.Objects.deepEquals(this.rating, other.rating) && - java.util.Objects.deepEquals(this.audienceRating, other.audienceRating) && - java.util.Objects.deepEquals(this.year, other.year) && - java.util.Objects.deepEquals(this.tagline, other.tagline) && - java.util.Objects.deepEquals(this.thumb, other.thumb) && - java.util.Objects.deepEquals(this.art, other.art) && - java.util.Objects.deepEquals(this.duration, other.duration) && - java.util.Objects.deepEquals(this.originallyAvailableAt, other.originallyAvailableAt) && - java.util.Objects.deepEquals(this.addedAt, other.addedAt) && - java.util.Objects.deepEquals(this.updatedAt, other.updatedAt) && - java.util.Objects.deepEquals(this.audienceRatingImage, other.audienceRatingImage) && - java.util.Objects.deepEquals(this.hasPremiumExtras, other.hasPremiumExtras) && - java.util.Objects.deepEquals(this.hasPremiumPrimaryExtra, other.hasPremiumPrimaryExtra) && - java.util.Objects.deepEquals(this.ratingImage, other.ratingImage) && - java.util.Objects.deepEquals(this.media, other.media) && - java.util.Objects.deepEquals(this.genre, other.genre) && - java.util.Objects.deepEquals(this.country, other.country) && - java.util.Objects.deepEquals(this.director, other.director) && - java.util.Objects.deepEquals(this.writer, other.writer) && - java.util.Objects.deepEquals(this.role, other.role); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - ratingKey, - key, - guid, - studio, - type, - title, - titleSort, - librarySectionTitle, - librarySectionID, - librarySectionKey, - contentRating, - summary, - rating, - audienceRating, - year, - tagline, - thumb, - art, - duration, - originallyAvailableAt, - addedAt, - updatedAt, - audienceRatingImage, - hasPremiumExtras, - hasPremiumPrimaryExtra, - ratingImage, - media, - genre, - country, - director, - writer, - role); - } - - @Override - public String toString() { - return Utils.toString(GetPlaylistContentsMetadata.class, - "ratingKey", ratingKey, - "key", key, - "guid", guid, - "studio", studio, - "type", type, - "title", title, - "titleSort", titleSort, - "librarySectionTitle", librarySectionTitle, - "librarySectionID", librarySectionID, - "librarySectionKey", librarySectionKey, - "contentRating", contentRating, - "summary", summary, - "rating", rating, - "audienceRating", audienceRating, - "year", year, - "tagline", tagline, - "thumb", thumb, - "art", art, - "duration", duration, - "originallyAvailableAt", originallyAvailableAt, - "addedAt", addedAt, - "updatedAt", updatedAt, - "audienceRatingImage", audienceRatingImage, - "hasPremiumExtras", hasPremiumExtras, - "hasPremiumPrimaryExtra", hasPremiumPrimaryExtra, - "ratingImage", ratingImage, - "media", media, - "genre", genre, - "country", country, - "director", director, - "writer", writer, - "role", role); - } - - public final static class Builder { - - private Optional ratingKey = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional guid = Optional.empty(); - - private Optional studio = Optional.empty(); - - private Optional type = Optional.empty(); - - private Optional title = Optional.empty(); - - private Optional titleSort = Optional.empty(); - - private Optional librarySectionTitle = Optional.empty(); - - private Optional librarySectionID = Optional.empty(); - - private Optional librarySectionKey = Optional.empty(); - - private Optional contentRating = Optional.empty(); - - private Optional summary = Optional.empty(); - - private Optional rating = Optional.empty(); - - private Optional audienceRating = Optional.empty(); - - private Optional year = Optional.empty(); - - private Optional tagline = Optional.empty(); - - private Optional thumb = Optional.empty(); - - private Optional art = Optional.empty(); - - private Optional duration = Optional.empty(); - - private Optional originallyAvailableAt = Optional.empty(); - - private Optional addedAt = Optional.empty(); - - private Optional updatedAt = Optional.empty(); - - private Optional audienceRatingImage = Optional.empty(); - - private Optional hasPremiumExtras = Optional.empty(); - - private Optional hasPremiumPrimaryExtra = Optional.empty(); - - private Optional ratingImage = Optional.empty(); - - private Optional> media = Optional.empty(); - - private Optional> genre = Optional.empty(); - - private Optional> country = Optional.empty(); - - private Optional> director = Optional.empty(); - - private Optional> writer = Optional.empty(); - - private Optional> role = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder ratingKey(String ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public Builder ratingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder guid(String guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = Optional.ofNullable(guid); - return this; - } - - public Builder guid(Optional guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = guid; - return this; - } - - public Builder studio(String studio) { - Utils.checkNotNull(studio, "studio"); - this.studio = Optional.ofNullable(studio); - return this; - } - - public Builder studio(Optional studio) { - Utils.checkNotNull(studio, "studio"); - this.studio = studio; - return this; - } - - public Builder type(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Builder titleSort(String titleSort) { - Utils.checkNotNull(titleSort, "titleSort"); - this.titleSort = Optional.ofNullable(titleSort); - return this; - } - - public Builder titleSort(Optional titleSort) { - Utils.checkNotNull(titleSort, "titleSort"); - this.titleSort = titleSort; - return this; - } - - public Builder librarySectionTitle(String librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = Optional.ofNullable(librarySectionTitle); - return this; - } - - public Builder librarySectionTitle(Optional librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = librarySectionTitle; - return this; - } - - public Builder librarySectionID(int librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = Optional.ofNullable(librarySectionID); - return this; - } - - public Builder librarySectionID(Optional librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = librarySectionID; - return this; - } - - public Builder librarySectionKey(String librarySectionKey) { - Utils.checkNotNull(librarySectionKey, "librarySectionKey"); - this.librarySectionKey = Optional.ofNullable(librarySectionKey); - return this; - } - - public Builder librarySectionKey(Optional librarySectionKey) { - Utils.checkNotNull(librarySectionKey, "librarySectionKey"); - this.librarySectionKey = librarySectionKey; - return this; - } - - public Builder contentRating(String contentRating) { - Utils.checkNotNull(contentRating, "contentRating"); - this.contentRating = Optional.ofNullable(contentRating); - return this; - } - - public Builder contentRating(Optional contentRating) { - Utils.checkNotNull(contentRating, "contentRating"); - this.contentRating = contentRating; - return this; - } - - public Builder summary(String summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = Optional.ofNullable(summary); - return this; - } - - public Builder summary(Optional summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = summary; - return this; - } - - public Builder rating(double rating) { - Utils.checkNotNull(rating, "rating"); - this.rating = Optional.ofNullable(rating); - return this; - } - - public Builder rating(Optional rating) { - Utils.checkNotNull(rating, "rating"); - this.rating = rating; - return this; - } - - public Builder audienceRating(double audienceRating) { - Utils.checkNotNull(audienceRating, "audienceRating"); - this.audienceRating = Optional.ofNullable(audienceRating); - return this; - } - - public Builder audienceRating(Optional audienceRating) { - Utils.checkNotNull(audienceRating, "audienceRating"); - this.audienceRating = audienceRating; - return this; - } - - public Builder year(int year) { - Utils.checkNotNull(year, "year"); - this.year = Optional.ofNullable(year); - return this; - } - - public Builder year(Optional year) { - Utils.checkNotNull(year, "year"); - this.year = year; - return this; - } - - public Builder tagline(String tagline) { - Utils.checkNotNull(tagline, "tagline"); - this.tagline = Optional.ofNullable(tagline); - return this; - } - - public Builder tagline(Optional tagline) { - Utils.checkNotNull(tagline, "tagline"); - this.tagline = tagline; - return this; - } - - public Builder thumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public Builder thumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public Builder art(String art) { - Utils.checkNotNull(art, "art"); - this.art = Optional.ofNullable(art); - return this; - } - - public Builder art(Optional art) { - Utils.checkNotNull(art, "art"); - this.art = art; - return this; - } - - public Builder duration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public Builder duration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public Builder originallyAvailableAt(LocalDate originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = Optional.ofNullable(originallyAvailableAt); - return this; - } - - public Builder originallyAvailableAt(Optional originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = originallyAvailableAt; - return this; - } - - public Builder addedAt(int addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = Optional.ofNullable(addedAt); - return this; - } - - public Builder addedAt(Optional addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = addedAt; - return this; - } - - public Builder updatedAt(int updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public Builder updatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public Builder audienceRatingImage(String audienceRatingImage) { - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - this.audienceRatingImage = Optional.ofNullable(audienceRatingImage); - return this; - } - - public Builder audienceRatingImage(Optional audienceRatingImage) { - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - this.audienceRatingImage = audienceRatingImage; - return this; - } - - public Builder hasPremiumExtras(String hasPremiumExtras) { - Utils.checkNotNull(hasPremiumExtras, "hasPremiumExtras"); - this.hasPremiumExtras = Optional.ofNullable(hasPremiumExtras); - return this; - } - - public Builder hasPremiumExtras(Optional hasPremiumExtras) { - Utils.checkNotNull(hasPremiumExtras, "hasPremiumExtras"); - this.hasPremiumExtras = hasPremiumExtras; - return this; - } - - public Builder hasPremiumPrimaryExtra(String hasPremiumPrimaryExtra) { - Utils.checkNotNull(hasPremiumPrimaryExtra, "hasPremiumPrimaryExtra"); - this.hasPremiumPrimaryExtra = Optional.ofNullable(hasPremiumPrimaryExtra); - return this; - } - - public Builder hasPremiumPrimaryExtra(Optional hasPremiumPrimaryExtra) { - Utils.checkNotNull(hasPremiumPrimaryExtra, "hasPremiumPrimaryExtra"); - this.hasPremiumPrimaryExtra = hasPremiumPrimaryExtra; - return this; - } - - public Builder ratingImage(String ratingImage) { - Utils.checkNotNull(ratingImage, "ratingImage"); - this.ratingImage = Optional.ofNullable(ratingImage); - return this; - } - - public Builder ratingImage(Optional ratingImage) { - Utils.checkNotNull(ratingImage, "ratingImage"); - this.ratingImage = ratingImage; - return this; - } - - public Builder media(java.util.List media) { - Utils.checkNotNull(media, "media"); - this.media = Optional.ofNullable(media); - return this; - } - - public Builder media(Optional> media) { - Utils.checkNotNull(media, "media"); - this.media = media; - return this; - } - - public Builder genre(java.util.List genre) { - Utils.checkNotNull(genre, "genre"); - this.genre = Optional.ofNullable(genre); - return this; - } - - public Builder genre(Optional> genre) { - Utils.checkNotNull(genre, "genre"); - this.genre = genre; - return this; - } - - public Builder country(java.util.List country) { - Utils.checkNotNull(country, "country"); - this.country = Optional.ofNullable(country); - return this; - } - - public Builder country(Optional> country) { - Utils.checkNotNull(country, "country"); - this.country = country; - return this; - } - - public Builder director(java.util.List director) { - Utils.checkNotNull(director, "director"); - this.director = Optional.ofNullable(director); - return this; - } - - public Builder director(Optional> director) { - Utils.checkNotNull(director, "director"); - this.director = director; - return this; - } - - public Builder writer(java.util.List writer) { - Utils.checkNotNull(writer, "writer"); - this.writer = Optional.ofNullable(writer); - return this; - } - - public Builder writer(Optional> writer) { - Utils.checkNotNull(writer, "writer"); - this.writer = writer; - return this; - } - - public Builder role(java.util.List role) { - Utils.checkNotNull(role, "role"); - this.role = Optional.ofNullable(role); - return this; - } - - public Builder role(Optional> role) { - Utils.checkNotNull(role, "role"); - this.role = role; - return this; - } - - public GetPlaylistContentsMetadata build() { - return new GetPlaylistContentsMetadata( - ratingKey, - key, - guid, - studio, - type, - title, - titleSort, - librarySectionTitle, - librarySectionID, - librarySectionKey, - contentRating, - summary, - rating, - audienceRating, - year, - tagline, - thumb, - art, - duration, - originallyAvailableAt, - addedAt, - updatedAt, - audienceRatingImage, - hasPremiumExtras, - hasPremiumPrimaryExtra, - ratingImage, - media, - genre, - country, - director, - writer, - role); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsPart.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsPart.java deleted file mode 100644 index 044f2f7b..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsPart.java +++ /dev/null @@ -1,498 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetPlaylistContentsPart { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("duration") - private Optional duration; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("file") - private Optional file; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audioProfile") - private Optional audioProfile; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("container") - private Optional container; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("has64bitOffsets") - private Optional has64bitOffsets; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("optimizedForStreaming") - private Optional optimizedForStreaming; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("videoProfile") - private Optional videoProfile; - - @JsonCreator - public GetPlaylistContentsPart( - @JsonProperty("id") Optional id, - @JsonProperty("key") Optional key, - @JsonProperty("duration") Optional duration, - @JsonProperty("file") Optional file, - @JsonProperty("size") Optional size, - @JsonProperty("audioProfile") Optional audioProfile, - @JsonProperty("container") Optional container, - @JsonProperty("has64bitOffsets") Optional has64bitOffsets, - @JsonProperty("optimizedForStreaming") Optional optimizedForStreaming, - @JsonProperty("videoProfile") Optional videoProfile) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(duration, "duration"); - Utils.checkNotNull(file, "file"); - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(audioProfile, "audioProfile"); - Utils.checkNotNull(container, "container"); - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - Utils.checkNotNull(videoProfile, "videoProfile"); - 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; - } - - public GetPlaylistContentsPart() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional duration() { - return (Optional) duration; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional file() { - return (Optional) file; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audioProfile() { - return (Optional) audioProfile; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional container() { - return (Optional) container; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional has64bitOffsets() { - return (Optional) has64bitOffsets; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional optimizedForStreaming() { - return (Optional) optimizedForStreaming; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional videoProfile() { - return (Optional) videoProfile; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetPlaylistContentsPart withId(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public GetPlaylistContentsPart withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public GetPlaylistContentsPart withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public GetPlaylistContentsPart withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public GetPlaylistContentsPart withDuration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public GetPlaylistContentsPart withDuration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public GetPlaylistContentsPart withFile(String file) { - Utils.checkNotNull(file, "file"); - this.file = Optional.ofNullable(file); - return this; - } - - public GetPlaylistContentsPart withFile(Optional file) { - Utils.checkNotNull(file, "file"); - this.file = file; - return this; - } - - public GetPlaylistContentsPart withSize(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public GetPlaylistContentsPart withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public GetPlaylistContentsPart withAudioProfile(String audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = Optional.ofNullable(audioProfile); - return this; - } - - public GetPlaylistContentsPart withAudioProfile(Optional audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = audioProfile; - return this; - } - - public GetPlaylistContentsPart withContainer(String container) { - Utils.checkNotNull(container, "container"); - this.container = Optional.ofNullable(container); - return this; - } - - public GetPlaylistContentsPart withContainer(Optional container) { - Utils.checkNotNull(container, "container"); - this.container = container; - return this; - } - - public GetPlaylistContentsPart withHas64bitOffsets(boolean has64bitOffsets) { - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - this.has64bitOffsets = Optional.ofNullable(has64bitOffsets); - return this; - } - - public GetPlaylistContentsPart withHas64bitOffsets(Optional has64bitOffsets) { - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - this.has64bitOffsets = has64bitOffsets; - return this; - } - - public GetPlaylistContentsPart withOptimizedForStreaming(boolean optimizedForStreaming) { - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - this.optimizedForStreaming = Optional.ofNullable(optimizedForStreaming); - return this; - } - - public GetPlaylistContentsPart withOptimizedForStreaming(Optional optimizedForStreaming) { - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - this.optimizedForStreaming = optimizedForStreaming; - return this; - } - - public GetPlaylistContentsPart withVideoProfile(String videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = Optional.ofNullable(videoProfile); - return this; - } - - public GetPlaylistContentsPart withVideoProfile(Optional videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = videoProfile; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetPlaylistContentsPart other = (GetPlaylistContentsPart) o; - return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.duration, other.duration) && - java.util.Objects.deepEquals(this.file, other.file) && - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.audioProfile, other.audioProfile) && - java.util.Objects.deepEquals(this.container, other.container) && - java.util.Objects.deepEquals(this.has64bitOffsets, other.has64bitOffsets) && - java.util.Objects.deepEquals(this.optimizedForStreaming, other.optimizedForStreaming) && - java.util.Objects.deepEquals(this.videoProfile, other.videoProfile); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id, - key, - duration, - file, - size, - audioProfile, - container, - has64bitOffsets, - optimizedForStreaming, - videoProfile); - } - - @Override - public String toString() { - return Utils.toString(GetPlaylistContentsPart.class, - "id", id, - "key", key, - "duration", duration, - "file", file, - "size", size, - "audioProfile", audioProfile, - "container", container, - "has64bitOffsets", has64bitOffsets, - "optimizedForStreaming", optimizedForStreaming, - "videoProfile", videoProfile); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional duration = Optional.empty(); - - private Optional file = Optional.empty(); - - private Optional size = Optional.empty(); - - private Optional audioProfile = Optional.empty(); - - private Optional container = Optional.empty(); - - private Optional has64bitOffsets = Optional.empty(); - - private Optional optimizedForStreaming = Optional.empty(); - - private Optional videoProfile = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder duration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public Builder duration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public Builder file(String file) { - Utils.checkNotNull(file, "file"); - this.file = Optional.ofNullable(file); - return this; - } - - public Builder file(Optional file) { - Utils.checkNotNull(file, "file"); - this.file = file; - return this; - } - - public Builder size(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder audioProfile(String audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = Optional.ofNullable(audioProfile); - return this; - } - - public Builder audioProfile(Optional audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = audioProfile; - return this; - } - - public Builder container(String container) { - Utils.checkNotNull(container, "container"); - this.container = Optional.ofNullable(container); - return this; - } - - public Builder container(Optional container) { - Utils.checkNotNull(container, "container"); - this.container = container; - return this; - } - - public Builder has64bitOffsets(boolean has64bitOffsets) { - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - this.has64bitOffsets = Optional.ofNullable(has64bitOffsets); - return this; - } - - public Builder has64bitOffsets(Optional has64bitOffsets) { - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - this.has64bitOffsets = has64bitOffsets; - return this; - } - - public Builder optimizedForStreaming(boolean optimizedForStreaming) { - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - this.optimizedForStreaming = Optional.ofNullable(optimizedForStreaming); - return this; - } - - public Builder optimizedForStreaming(Optional optimizedForStreaming) { - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - this.optimizedForStreaming = optimizedForStreaming; - return this; - } - - public Builder videoProfile(String videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = Optional.ofNullable(videoProfile); - return this; - } - - public Builder videoProfile(Optional videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = videoProfile; - return this; - } - - public GetPlaylistContentsPart build() { - return new GetPlaylistContentsPart( - id, - key, - duration, - file, - size, - audioProfile, - container, - has64bitOffsets, - optimizedForStreaming, - videoProfile); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsRequest.java deleted file mode 100644 index 53be5923..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsRequest.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetPlaylistContentsRequest { - - /** - * the ID of the playlist - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=playlistID") - private double playlistID; - - /** - * the metadata type of the item to return - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=type") - private double type; - - @JsonCreator - public GetPlaylistContentsRequest( - double playlistID, - double type) { - Utils.checkNotNull(playlistID, "playlistID"); - Utils.checkNotNull(type, "type"); - this.playlistID = playlistID; - this.type = type; - } - - /** - * the ID of the playlist - */ - @JsonIgnore - public double playlistID() { - return playlistID; - } - - /** - * the metadata type of the item to return - */ - @JsonIgnore - public double type() { - return type; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * the ID of the playlist - */ - public GetPlaylistContentsRequest withPlaylistID(double playlistID) { - Utils.checkNotNull(playlistID, "playlistID"); - this.playlistID = playlistID; - return this; - } - - /** - * the metadata type of the item to return - */ - public GetPlaylistContentsRequest withType(double type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetPlaylistContentsRequest other = (GetPlaylistContentsRequest) o; - return - java.util.Objects.deepEquals(this.playlistID, other.playlistID) && - java.util.Objects.deepEquals(this.type, other.type); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - playlistID, - type); - } - - @Override - public String toString() { - return Utils.toString(GetPlaylistContentsRequest.class, - "playlistID", playlistID, - "type", type); - } - - public final static class Builder { - - private Double playlistID; - - private Double type; - - private Builder() { - // force use of static builder() method - } - - /** - * the ID of the playlist - */ - public Builder playlistID(double playlistID) { - Utils.checkNotNull(playlistID, "playlistID"); - this.playlistID = playlistID; - return this; - } - - /** - * the metadata type of the item to return - */ - public Builder type(double type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public GetPlaylistContentsRequest build() { - return new GetPlaylistContentsRequest( - playlistID, - type); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsRequestBuilder.java deleted file mode 100644 index 4f0700c7..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetPlaylistContentsRequestBuilder { - - private Double playlistID; - private Double type; - private final SDKMethodInterfaces.MethodCallGetPlaylistContents sdk; - - public GetPlaylistContentsRequestBuilder(SDKMethodInterfaces.MethodCallGetPlaylistContents sdk) { - this.sdk = sdk; - } - - public GetPlaylistContentsRequestBuilder playlistID(double playlistID) { - Utils.checkNotNull(playlistID, "playlistID"); - this.playlistID = playlistID; - return this; - } - - public GetPlaylistContentsRequestBuilder type(double type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public GetPlaylistContentsResponse call() throws Exception { - - return sdk.getPlaylistContents( - playlistID, - type); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsResponse.java deleted file mode 100644 index 48a4c04c..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsResponse.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetPlaylistContentsResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * The playlist contents - */ - private Optional object; - - @JsonCreator - public GetPlaylistContentsResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional object) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.object = object; - } - - public GetPlaylistContentsResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * The playlist contents - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional object() { - return (Optional) object; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetPlaylistContentsResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetPlaylistContentsResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetPlaylistContentsResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * The playlist contents - */ - public GetPlaylistContentsResponse withObject(GetPlaylistContentsResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * The playlist contents - */ - public GetPlaylistContentsResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetPlaylistContentsResponse other = (GetPlaylistContentsResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.object, other.object); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse, - object); - } - - @Override - public String toString() { - return Utils.toString(GetPlaylistContentsResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "object", object); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional object = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * The playlist contents - */ - public Builder object(GetPlaylistContentsResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * The playlist contents - */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - public GetPlaylistContentsResponse build() { - return new GetPlaylistContentsResponse( - contentType, - statusCode, - rawResponse, - object); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsResponseBody.java deleted file mode 100644 index 627258e3..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsResponseBody.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -/** - * GetPlaylistContentsResponseBody - The playlist contents - */ - -public class GetPlaylistContentsResponseBody { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("MediaContainer") - private Optional mediaContainer; - - @JsonCreator - public GetPlaylistContentsResponseBody( - @JsonProperty("MediaContainer") Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - } - - public GetPlaylistContentsResponseBody() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaContainer() { - return (Optional) mediaContainer; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetPlaylistContentsResponseBody withMediaContainer(GetPlaylistContentsMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public GetPlaylistContentsResponseBody withMediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetPlaylistContentsResponseBody other = (GetPlaylistContentsResponseBody) o; - return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - mediaContainer); - } - - @Override - public String toString() { - return Utils.toString(GetPlaylistContentsResponseBody.class, - "mediaContainer", mediaContainer); - } - - public final static class Builder { - - private Optional mediaContainer = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder mediaContainer(GetPlaylistContentsMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public Builder mediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - public GetPlaylistContentsResponseBody build() { - return new GetPlaylistContentsResponseBody( - mediaContainer); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsRole.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsRole.java deleted file mode 100644 index 5af869c6..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsRole.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetPlaylistContentsRole { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tag") - private Optional tag; - - @JsonCreator - public GetPlaylistContentsRole( - @JsonProperty("tag") Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - } - - public GetPlaylistContentsRole() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tag() { - return (Optional) tag; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetPlaylistContentsRole withTag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public GetPlaylistContentsRole withTag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetPlaylistContentsRole other = (GetPlaylistContentsRole) o; - return - java.util.Objects.deepEquals(this.tag, other.tag); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - tag); - } - - @Override - public String toString() { - return Utils.toString(GetPlaylistContentsRole.class, - "tag", tag); - } - - public final static class Builder { - - private Optional tag = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder tag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Builder tag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public GetPlaylistContentsRole build() { - return new GetPlaylistContentsRole( - tag); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsWriter.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsWriter.java deleted file mode 100644 index a102e58c..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistContentsWriter.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetPlaylistContentsWriter { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tag") - private Optional tag; - - @JsonCreator - public GetPlaylistContentsWriter( - @JsonProperty("tag") Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - } - - public GetPlaylistContentsWriter() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tag() { - return (Optional) tag; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetPlaylistContentsWriter withTag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public GetPlaylistContentsWriter withTag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetPlaylistContentsWriter other = (GetPlaylistContentsWriter) o; - return - java.util.Objects.deepEquals(this.tag, other.tag); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - tag); - } - - @Override - public String toString() { - return Utils.toString(GetPlaylistContentsWriter.class, - "tag", tag); - } - - public final static class Builder { - - private Optional tag = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder tag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Builder tag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public GetPlaylistContentsWriter build() { - return new GetPlaylistContentsWriter( - tag); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistMediaContainer.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistMediaContainer.java deleted file mode 100644 index ed9a37cf..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistMediaContainer.java +++ /dev/null @@ -1,154 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetPlaylistMediaContainer { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Metadata") - private Optional> metadata; - - @JsonCreator - public GetPlaylistMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("Metadata") Optional> metadata) { - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(metadata, "metadata"); - this.size = size; - this.metadata = metadata; - } - - public GetPlaylistMediaContainer() { - this(Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetPlaylistMediaContainer withSize(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public GetPlaylistMediaContainer withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public GetPlaylistMediaContainer withMetadata(java.util.List metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public GetPlaylistMediaContainer withMetadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetPlaylistMediaContainer other = (GetPlaylistMediaContainer) o; - return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.metadata, other.metadata); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - size, - metadata); - } - - @Override - public String toString() { - return Utils.toString(GetPlaylistMediaContainer.class, - "size", size, - "metadata", metadata); - } - - public final static class Builder { - - private Optional size = Optional.empty(); - - private Optional> metadata = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder size(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder metadata(java.util.List metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public Builder metadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public GetPlaylistMediaContainer build() { - return new GetPlaylistMediaContainer( - size, - metadata); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistMetadata.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistMetadata.java deleted file mode 100644 index be4e8586..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistMetadata.java +++ /dev/null @@ -1,713 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetPlaylistMetadata { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("content") - private Optional content; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ratingKey") - private Optional ratingKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("guid") - private Optional guid; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title") - private Optional title; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("summary") - private Optional summary; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("smart") - private Optional smart; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("playlistType") - private Optional playlistType; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("composite") - private Optional composite; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("icon") - private Optional icon; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("duration") - private Optional duration; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("leafCount") - private Optional leafCount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("addedAt") - private Optional addedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updatedAt") - private Optional updatedAt; - - @JsonCreator - public GetPlaylistMetadata( - @JsonProperty("content") Optional content, - @JsonProperty("ratingKey") Optional ratingKey, - @JsonProperty("key") Optional key, - @JsonProperty("guid") Optional guid, - @JsonProperty("type") Optional type, - @JsonProperty("title") Optional title, - @JsonProperty("summary") Optional summary, - @JsonProperty("smart") Optional smart, - @JsonProperty("playlistType") Optional playlistType, - @JsonProperty("composite") Optional composite, - @JsonProperty("icon") Optional icon, - @JsonProperty("duration") Optional duration, - @JsonProperty("leafCount") Optional leafCount, - @JsonProperty("addedAt") Optional addedAt, - @JsonProperty("updatedAt") Optional updatedAt) { - Utils.checkNotNull(content, "content"); - Utils.checkNotNull(ratingKey, "ratingKey"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(guid, "guid"); - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(title, "title"); - Utils.checkNotNull(summary, "summary"); - Utils.checkNotNull(smart, "smart"); - Utils.checkNotNull(playlistType, "playlistType"); - Utils.checkNotNull(composite, "composite"); - Utils.checkNotNull(icon, "icon"); - Utils.checkNotNull(duration, "duration"); - Utils.checkNotNull(leafCount, "leafCount"); - Utils.checkNotNull(addedAt, "addedAt"); - Utils.checkNotNull(updatedAt, "updatedAt"); - 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; - } - - public GetPlaylistMetadata() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional content() { - return (Optional) content; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional ratingKey() { - return (Optional) ratingKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional guid() { - return (Optional) guid; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title() { - return (Optional) title; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional summary() { - return (Optional) summary; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional smart() { - return (Optional) smart; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional playlistType() { - return (Optional) playlistType; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional composite() { - return (Optional) composite; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional icon() { - return (Optional) icon; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional duration() { - return (Optional) duration; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional leafCount() { - return (Optional) leafCount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional addedAt() { - return (Optional) addedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional updatedAt() { - return (Optional) updatedAt; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetPlaylistMetadata withContent(String content) { - Utils.checkNotNull(content, "content"); - this.content = Optional.ofNullable(content); - return this; - } - - public GetPlaylistMetadata withContent(Optional content) { - Utils.checkNotNull(content, "content"); - this.content = content; - return this; - } - - public GetPlaylistMetadata withRatingKey(String ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public GetPlaylistMetadata withRatingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public GetPlaylistMetadata withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public GetPlaylistMetadata withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public GetPlaylistMetadata withGuid(String guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = Optional.ofNullable(guid); - return this; - } - - public GetPlaylistMetadata withGuid(Optional guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = guid; - return this; - } - - public GetPlaylistMetadata withType(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public GetPlaylistMetadata withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public GetPlaylistMetadata withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public GetPlaylistMetadata withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public GetPlaylistMetadata withSummary(String summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = Optional.ofNullable(summary); - return this; - } - - public GetPlaylistMetadata withSummary(Optional summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = summary; - return this; - } - - public GetPlaylistMetadata withSmart(boolean smart) { - Utils.checkNotNull(smart, "smart"); - this.smart = Optional.ofNullable(smart); - return this; - } - - public GetPlaylistMetadata withSmart(Optional smart) { - Utils.checkNotNull(smart, "smart"); - this.smart = smart; - return this; - } - - public GetPlaylistMetadata withPlaylistType(String playlistType) { - Utils.checkNotNull(playlistType, "playlistType"); - this.playlistType = Optional.ofNullable(playlistType); - return this; - } - - public GetPlaylistMetadata withPlaylistType(Optional playlistType) { - Utils.checkNotNull(playlistType, "playlistType"); - this.playlistType = playlistType; - return this; - } - - public GetPlaylistMetadata withComposite(String composite) { - Utils.checkNotNull(composite, "composite"); - this.composite = Optional.ofNullable(composite); - return this; - } - - public GetPlaylistMetadata withComposite(Optional composite) { - Utils.checkNotNull(composite, "composite"); - this.composite = composite; - return this; - } - - public GetPlaylistMetadata withIcon(String icon) { - Utils.checkNotNull(icon, "icon"); - this.icon = Optional.ofNullable(icon); - return this; - } - - public GetPlaylistMetadata withIcon(Optional icon) { - Utils.checkNotNull(icon, "icon"); - this.icon = icon; - return this; - } - - public GetPlaylistMetadata withDuration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public GetPlaylistMetadata withDuration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public GetPlaylistMetadata withLeafCount(int leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = Optional.ofNullable(leafCount); - return this; - } - - public GetPlaylistMetadata withLeafCount(Optional leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = leafCount; - return this; - } - - public GetPlaylistMetadata withAddedAt(int addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = Optional.ofNullable(addedAt); - return this; - } - - public GetPlaylistMetadata withAddedAt(Optional addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = addedAt; - return this; - } - - public GetPlaylistMetadata withUpdatedAt(int updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public GetPlaylistMetadata withUpdatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetPlaylistMetadata other = (GetPlaylistMetadata) o; - return - java.util.Objects.deepEquals(this.content, other.content) && - java.util.Objects.deepEquals(this.ratingKey, other.ratingKey) && - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.guid, other.guid) && - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.title, other.title) && - java.util.Objects.deepEquals(this.summary, other.summary) && - java.util.Objects.deepEquals(this.smart, other.smart) && - java.util.Objects.deepEquals(this.playlistType, other.playlistType) && - java.util.Objects.deepEquals(this.composite, other.composite) && - java.util.Objects.deepEquals(this.icon, other.icon) && - java.util.Objects.deepEquals(this.duration, other.duration) && - java.util.Objects.deepEquals(this.leafCount, other.leafCount) && - java.util.Objects.deepEquals(this.addedAt, other.addedAt) && - java.util.Objects.deepEquals(this.updatedAt, other.updatedAt); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - content, - ratingKey, - key, - guid, - type, - title, - summary, - smart, - playlistType, - composite, - icon, - duration, - leafCount, - addedAt, - updatedAt); - } - - @Override - public String toString() { - return Utils.toString(GetPlaylistMetadata.class, - "content", content, - "ratingKey", ratingKey, - "key", key, - "guid", guid, - "type", type, - "title", title, - "summary", summary, - "smart", smart, - "playlistType", playlistType, - "composite", composite, - "icon", icon, - "duration", duration, - "leafCount", leafCount, - "addedAt", addedAt, - "updatedAt", updatedAt); - } - - public final static class Builder { - - private Optional content = Optional.empty(); - - private Optional ratingKey = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional guid = Optional.empty(); - - private Optional type = Optional.empty(); - - private Optional title = Optional.empty(); - - private Optional summary = Optional.empty(); - - private Optional smart = Optional.empty(); - - private Optional playlistType = Optional.empty(); - - private Optional composite = Optional.empty(); - - private Optional icon = Optional.empty(); - - private Optional duration = Optional.empty(); - - private Optional leafCount = Optional.empty(); - - private Optional addedAt = Optional.empty(); - - private Optional updatedAt = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder content(String content) { - Utils.checkNotNull(content, "content"); - this.content = Optional.ofNullable(content); - return this; - } - - public Builder content(Optional content) { - Utils.checkNotNull(content, "content"); - this.content = content; - return this; - } - - public Builder ratingKey(String ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public Builder ratingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder guid(String guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = Optional.ofNullable(guid); - return this; - } - - public Builder guid(Optional guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = guid; - return this; - } - - public Builder type(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Builder summary(String summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = Optional.ofNullable(summary); - return this; - } - - public Builder summary(Optional summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = summary; - return this; - } - - public Builder smart(boolean smart) { - Utils.checkNotNull(smart, "smart"); - this.smart = Optional.ofNullable(smart); - return this; - } - - public Builder smart(Optional smart) { - Utils.checkNotNull(smart, "smart"); - this.smart = smart; - return this; - } - - public Builder playlistType(String playlistType) { - Utils.checkNotNull(playlistType, "playlistType"); - this.playlistType = Optional.ofNullable(playlistType); - return this; - } - - public Builder playlistType(Optional playlistType) { - Utils.checkNotNull(playlistType, "playlistType"); - this.playlistType = playlistType; - return this; - } - - public Builder composite(String composite) { - Utils.checkNotNull(composite, "composite"); - this.composite = Optional.ofNullable(composite); - return this; - } - - public Builder composite(Optional composite) { - Utils.checkNotNull(composite, "composite"); - this.composite = composite; - return this; - } - - public Builder icon(String icon) { - Utils.checkNotNull(icon, "icon"); - this.icon = Optional.ofNullable(icon); - return this; - } - - public Builder icon(Optional icon) { - Utils.checkNotNull(icon, "icon"); - this.icon = icon; - return this; - } - - public Builder duration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public Builder duration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public Builder leafCount(int leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = Optional.ofNullable(leafCount); - return this; - } - - public Builder leafCount(Optional leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = leafCount; - return this; - } - - public Builder addedAt(int addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = Optional.ofNullable(addedAt); - return this; - } - - public Builder addedAt(Optional addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = addedAt; - return this; - } - - public Builder updatedAt(int updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public Builder updatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public GetPlaylistMetadata build() { - return new GetPlaylistMetadata( - content, - ratingKey, - key, - guid, - type, - title, - summary, - smart, - playlistType, - composite, - icon, - duration, - leafCount, - addedAt, - updatedAt); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistRequest.java deleted file mode 100644 index 06e848a2..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistRequest.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetPlaylistRequest { - - /** - * the ID of the playlist - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=playlistID") - private double playlistID; - - @JsonCreator - public GetPlaylistRequest( - double playlistID) { - Utils.checkNotNull(playlistID, "playlistID"); - this.playlistID = playlistID; - } - - /** - * the ID of the playlist - */ - @JsonIgnore - public double playlistID() { - return playlistID; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * the ID of the playlist - */ - public GetPlaylistRequest withPlaylistID(double playlistID) { - Utils.checkNotNull(playlistID, "playlistID"); - this.playlistID = playlistID; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetPlaylistRequest other = (GetPlaylistRequest) o; - return - java.util.Objects.deepEquals(this.playlistID, other.playlistID); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - playlistID); - } - - @Override - public String toString() { - return Utils.toString(GetPlaylistRequest.class, - "playlistID", playlistID); - } - - public final static class Builder { - - private Double playlistID; - - private Builder() { - // force use of static builder() method - } - - /** - * the ID of the playlist - */ - public Builder playlistID(double playlistID) { - Utils.checkNotNull(playlistID, "playlistID"); - this.playlistID = playlistID; - return this; - } - - public GetPlaylistRequest build() { - return new GetPlaylistRequest( - playlistID); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistRequestBuilder.java deleted file mode 100644 index 6a1bfd7b..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistRequestBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetPlaylistRequestBuilder { - - private Double playlistID; - private final SDKMethodInterfaces.MethodCallGetPlaylist sdk; - - public GetPlaylistRequestBuilder(SDKMethodInterfaces.MethodCallGetPlaylist sdk) { - this.sdk = sdk; - } - - public GetPlaylistRequestBuilder playlistID(double playlistID) { - Utils.checkNotNull(playlistID, "playlistID"); - this.playlistID = playlistID; - return this; - } - - public GetPlaylistResponse call() throws Exception { - - return sdk.getPlaylist( - playlistID); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistResponse.java deleted file mode 100644 index 4ea0c57a..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistResponse.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetPlaylistResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * The playlist - */ - private Optional object; - - @JsonCreator - public GetPlaylistResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional object) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.object = object; - } - - public GetPlaylistResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * The playlist - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional object() { - return (Optional) object; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetPlaylistResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetPlaylistResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetPlaylistResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * The playlist - */ - public GetPlaylistResponse withObject(GetPlaylistResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * The playlist - */ - public GetPlaylistResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetPlaylistResponse other = (GetPlaylistResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.object, other.object); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse, - object); - } - - @Override - public String toString() { - return Utils.toString(GetPlaylistResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "object", object); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional object = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * The playlist - */ - public Builder object(GetPlaylistResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * The playlist - */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - public GetPlaylistResponse build() { - return new GetPlaylistResponse( - contentType, - statusCode, - rawResponse, - object); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistResponseBody.java deleted file mode 100644 index beb89320..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistResponseBody.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -/** - * GetPlaylistResponseBody - The playlist - */ - -public class GetPlaylistResponseBody { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("MediaContainer") - private Optional mediaContainer; - - @JsonCreator - public GetPlaylistResponseBody( - @JsonProperty("MediaContainer") Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - } - - public GetPlaylistResponseBody() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaContainer() { - return (Optional) mediaContainer; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetPlaylistResponseBody withMediaContainer(GetPlaylistMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public GetPlaylistResponseBody withMediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetPlaylistResponseBody other = (GetPlaylistResponseBody) o; - return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - mediaContainer); - } - - @Override - public String toString() { - return Utils.toString(GetPlaylistResponseBody.class, - "mediaContainer", mediaContainer); - } - - public final static class Builder { - - private Optional mediaContainer = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder mediaContainer(GetPlaylistMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public Builder mediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - public GetPlaylistResponseBody build() { - return new GetPlaylistResponseBody( - mediaContainer); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsMediaContainer.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsMediaContainer.java deleted file mode 100644 index 1e3a4895..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsMediaContainer.java +++ /dev/null @@ -1,154 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetPlaylistsMediaContainer { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Metadata") - private Optional> metadata; - - @JsonCreator - public GetPlaylistsMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("Metadata") Optional> metadata) { - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(metadata, "metadata"); - this.size = size; - this.metadata = metadata; - } - - public GetPlaylistsMediaContainer() { - this(Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetPlaylistsMediaContainer withSize(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public GetPlaylistsMediaContainer withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public GetPlaylistsMediaContainer withMetadata(java.util.List metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public GetPlaylistsMediaContainer withMetadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetPlaylistsMediaContainer other = (GetPlaylistsMediaContainer) o; - return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.metadata, other.metadata); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - size, - metadata); - } - - @Override - public String toString() { - return Utils.toString(GetPlaylistsMediaContainer.class, - "size", size, - "metadata", metadata); - } - - public final static class Builder { - - private Optional size = Optional.empty(); - - private Optional> metadata = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder size(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder metadata(java.util.List metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public Builder metadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public GetPlaylistsMediaContainer build() { - return new GetPlaylistsMediaContainer( - size, - metadata); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsMetadata.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsMetadata.java deleted file mode 100644 index 8950c643..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsMetadata.java +++ /dev/null @@ -1,756 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetPlaylistsMetadata { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ratingKey") - private Optional ratingKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("guid") - private Optional guid; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title") - private Optional title; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("summary") - private Optional summary; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("smart") - private Optional smart; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("playlistType") - private Optional playlistType; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("composite") - private Optional composite; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("icon") - private Optional icon; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("viewCount") - private Optional viewCount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("lastViewedAt") - private Optional lastViewedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("duration") - private Optional duration; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("leafCount") - private Optional leafCount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("addedAt") - private Optional addedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updatedAt") - private Optional updatedAt; - - @JsonCreator - public GetPlaylistsMetadata( - @JsonProperty("ratingKey") Optional ratingKey, - @JsonProperty("key") Optional key, - @JsonProperty("guid") Optional guid, - @JsonProperty("type") Optional type, - @JsonProperty("title") Optional title, - @JsonProperty("summary") Optional summary, - @JsonProperty("smart") Optional smart, - @JsonProperty("playlistType") Optional playlistType, - @JsonProperty("composite") Optional composite, - @JsonProperty("icon") Optional icon, - @JsonProperty("viewCount") Optional viewCount, - @JsonProperty("lastViewedAt") Optional lastViewedAt, - @JsonProperty("duration") Optional duration, - @JsonProperty("leafCount") Optional leafCount, - @JsonProperty("addedAt") Optional addedAt, - @JsonProperty("updatedAt") Optional updatedAt) { - Utils.checkNotNull(ratingKey, "ratingKey"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(guid, "guid"); - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(title, "title"); - Utils.checkNotNull(summary, "summary"); - Utils.checkNotNull(smart, "smart"); - Utils.checkNotNull(playlistType, "playlistType"); - Utils.checkNotNull(composite, "composite"); - Utils.checkNotNull(icon, "icon"); - Utils.checkNotNull(viewCount, "viewCount"); - Utils.checkNotNull(lastViewedAt, "lastViewedAt"); - Utils.checkNotNull(duration, "duration"); - Utils.checkNotNull(leafCount, "leafCount"); - Utils.checkNotNull(addedAt, "addedAt"); - Utils.checkNotNull(updatedAt, "updatedAt"); - 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; - } - - public GetPlaylistsMetadata() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional ratingKey() { - return (Optional) ratingKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional guid() { - return (Optional) guid; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title() { - return (Optional) title; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional summary() { - return (Optional) summary; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional smart() { - return (Optional) smart; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional playlistType() { - return (Optional) playlistType; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional composite() { - return (Optional) composite; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional icon() { - return (Optional) icon; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional viewCount() { - return (Optional) viewCount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional lastViewedAt() { - return (Optional) lastViewedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional duration() { - return (Optional) duration; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional leafCount() { - return (Optional) leafCount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional addedAt() { - return (Optional) addedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional updatedAt() { - return (Optional) updatedAt; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetPlaylistsMetadata withRatingKey(String ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public GetPlaylistsMetadata withRatingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public GetPlaylistsMetadata withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public GetPlaylistsMetadata withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public GetPlaylistsMetadata withGuid(String guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = Optional.ofNullable(guid); - return this; - } - - public GetPlaylistsMetadata withGuid(Optional guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = guid; - return this; - } - - public GetPlaylistsMetadata withType(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public GetPlaylistsMetadata withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public GetPlaylistsMetadata withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public GetPlaylistsMetadata withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public GetPlaylistsMetadata withSummary(String summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = Optional.ofNullable(summary); - return this; - } - - public GetPlaylistsMetadata withSummary(Optional summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = summary; - return this; - } - - public GetPlaylistsMetadata withSmart(boolean smart) { - Utils.checkNotNull(smart, "smart"); - this.smart = Optional.ofNullable(smart); - return this; - } - - public GetPlaylistsMetadata withSmart(Optional smart) { - Utils.checkNotNull(smart, "smart"); - this.smart = smart; - return this; - } - - public GetPlaylistsMetadata withPlaylistType(String playlistType) { - Utils.checkNotNull(playlistType, "playlistType"); - this.playlistType = Optional.ofNullable(playlistType); - return this; - } - - public GetPlaylistsMetadata withPlaylistType(Optional playlistType) { - Utils.checkNotNull(playlistType, "playlistType"); - this.playlistType = playlistType; - return this; - } - - public GetPlaylistsMetadata withComposite(String composite) { - Utils.checkNotNull(composite, "composite"); - this.composite = Optional.ofNullable(composite); - return this; - } - - public GetPlaylistsMetadata withComposite(Optional composite) { - Utils.checkNotNull(composite, "composite"); - this.composite = composite; - return this; - } - - public GetPlaylistsMetadata withIcon(String icon) { - Utils.checkNotNull(icon, "icon"); - this.icon = Optional.ofNullable(icon); - return this; - } - - public GetPlaylistsMetadata withIcon(Optional icon) { - Utils.checkNotNull(icon, "icon"); - this.icon = icon; - return this; - } - - public GetPlaylistsMetadata withViewCount(int viewCount) { - Utils.checkNotNull(viewCount, "viewCount"); - this.viewCount = Optional.ofNullable(viewCount); - return this; - } - - public GetPlaylistsMetadata withViewCount(Optional viewCount) { - Utils.checkNotNull(viewCount, "viewCount"); - this.viewCount = viewCount; - return this; - } - - public GetPlaylistsMetadata withLastViewedAt(int lastViewedAt) { - Utils.checkNotNull(lastViewedAt, "lastViewedAt"); - this.lastViewedAt = Optional.ofNullable(lastViewedAt); - return this; - } - - public GetPlaylistsMetadata withLastViewedAt(Optional lastViewedAt) { - Utils.checkNotNull(lastViewedAt, "lastViewedAt"); - this.lastViewedAt = lastViewedAt; - return this; - } - - public GetPlaylistsMetadata withDuration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public GetPlaylistsMetadata withDuration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public GetPlaylistsMetadata withLeafCount(int leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = Optional.ofNullable(leafCount); - return this; - } - - public GetPlaylistsMetadata withLeafCount(Optional leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = leafCount; - return this; - } - - public GetPlaylistsMetadata withAddedAt(int addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = Optional.ofNullable(addedAt); - return this; - } - - public GetPlaylistsMetadata withAddedAt(Optional addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = addedAt; - return this; - } - - public GetPlaylistsMetadata withUpdatedAt(int updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public GetPlaylistsMetadata withUpdatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetPlaylistsMetadata other = (GetPlaylistsMetadata) o; - return - java.util.Objects.deepEquals(this.ratingKey, other.ratingKey) && - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.guid, other.guid) && - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.title, other.title) && - java.util.Objects.deepEquals(this.summary, other.summary) && - java.util.Objects.deepEquals(this.smart, other.smart) && - java.util.Objects.deepEquals(this.playlistType, other.playlistType) && - java.util.Objects.deepEquals(this.composite, other.composite) && - java.util.Objects.deepEquals(this.icon, other.icon) && - java.util.Objects.deepEquals(this.viewCount, other.viewCount) && - java.util.Objects.deepEquals(this.lastViewedAt, other.lastViewedAt) && - java.util.Objects.deepEquals(this.duration, other.duration) && - java.util.Objects.deepEquals(this.leafCount, other.leafCount) && - java.util.Objects.deepEquals(this.addedAt, other.addedAt) && - java.util.Objects.deepEquals(this.updatedAt, other.updatedAt); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - ratingKey, - key, - guid, - type, - title, - summary, - smart, - playlistType, - composite, - icon, - viewCount, - lastViewedAt, - duration, - leafCount, - addedAt, - updatedAt); - } - - @Override - public String toString() { - return Utils.toString(GetPlaylistsMetadata.class, - "ratingKey", ratingKey, - "key", key, - "guid", guid, - "type", type, - "title", title, - "summary", summary, - "smart", smart, - "playlistType", playlistType, - "composite", composite, - "icon", icon, - "viewCount", viewCount, - "lastViewedAt", lastViewedAt, - "duration", duration, - "leafCount", leafCount, - "addedAt", addedAt, - "updatedAt", updatedAt); - } - - public final static class Builder { - - private Optional ratingKey = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional guid = Optional.empty(); - - private Optional type = Optional.empty(); - - private Optional title = Optional.empty(); - - private Optional summary = Optional.empty(); - - private Optional smart = Optional.empty(); - - private Optional playlistType = Optional.empty(); - - private Optional composite = Optional.empty(); - - private Optional icon = Optional.empty(); - - private Optional viewCount = Optional.empty(); - - private Optional lastViewedAt = Optional.empty(); - - private Optional duration = Optional.empty(); - - private Optional leafCount = Optional.empty(); - - private Optional addedAt = Optional.empty(); - - private Optional updatedAt = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder ratingKey(String ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public Builder ratingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder guid(String guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = Optional.ofNullable(guid); - return this; - } - - public Builder guid(Optional guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = guid; - return this; - } - - public Builder type(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Builder summary(String summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = Optional.ofNullable(summary); - return this; - } - - public Builder summary(Optional summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = summary; - return this; - } - - public Builder smart(boolean smart) { - Utils.checkNotNull(smart, "smart"); - this.smart = Optional.ofNullable(smart); - return this; - } - - public Builder smart(Optional smart) { - Utils.checkNotNull(smart, "smart"); - this.smart = smart; - return this; - } - - public Builder playlistType(String playlistType) { - Utils.checkNotNull(playlistType, "playlistType"); - this.playlistType = Optional.ofNullable(playlistType); - return this; - } - - public Builder playlistType(Optional playlistType) { - Utils.checkNotNull(playlistType, "playlistType"); - this.playlistType = playlistType; - return this; - } - - public Builder composite(String composite) { - Utils.checkNotNull(composite, "composite"); - this.composite = Optional.ofNullable(composite); - return this; - } - - public Builder composite(Optional composite) { - Utils.checkNotNull(composite, "composite"); - this.composite = composite; - return this; - } - - public Builder icon(String icon) { - Utils.checkNotNull(icon, "icon"); - this.icon = Optional.ofNullable(icon); - return this; - } - - public Builder icon(Optional icon) { - Utils.checkNotNull(icon, "icon"); - this.icon = icon; - return this; - } - - public Builder viewCount(int viewCount) { - Utils.checkNotNull(viewCount, "viewCount"); - this.viewCount = Optional.ofNullable(viewCount); - return this; - } - - public Builder viewCount(Optional viewCount) { - Utils.checkNotNull(viewCount, "viewCount"); - this.viewCount = viewCount; - return this; - } - - public Builder lastViewedAt(int lastViewedAt) { - Utils.checkNotNull(lastViewedAt, "lastViewedAt"); - this.lastViewedAt = Optional.ofNullable(lastViewedAt); - return this; - } - - public Builder lastViewedAt(Optional lastViewedAt) { - Utils.checkNotNull(lastViewedAt, "lastViewedAt"); - this.lastViewedAt = lastViewedAt; - return this; - } - - public Builder duration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public Builder duration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public Builder leafCount(int leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = Optional.ofNullable(leafCount); - return this; - } - - public Builder leafCount(Optional leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = leafCount; - return this; - } - - public Builder addedAt(int addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = Optional.ofNullable(addedAt); - return this; - } - - public Builder addedAt(Optional addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = addedAt; - return this; - } - - public Builder updatedAt(int updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public Builder updatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public GetPlaylistsMetadata build() { - return new GetPlaylistsMetadata( - ratingKey, - key, - guid, - type, - title, - summary, - smart, - playlistType, - composite, - icon, - viewCount, - lastViewedAt, - duration, - leafCount, - addedAt, - updatedAt); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsRequest.java deleted file mode 100644 index 82796a49..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsRequest.java +++ /dev/null @@ -1,186 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetPlaylistsRequest { - - /** - * limit to a type of playlist. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=playlistType") - private Optional playlistType; - - /** - * type of playlists to return (default is all). - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=smart") - private Optional smart; - - @JsonCreator - public GetPlaylistsRequest( - Optional playlistType, - Optional smart) { - Utils.checkNotNull(playlistType, "playlistType"); - Utils.checkNotNull(smart, "smart"); - this.playlistType = playlistType; - this.smart = smart; - } - - public GetPlaylistsRequest() { - this(Optional.empty(), Optional.empty()); - } - - /** - * limit to a type of playlist. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional playlistType() { - return (Optional) playlistType; - } - - /** - * type of playlists to return (default is all). - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional smart() { - return (Optional) smart; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * limit to a type of playlist. - */ - public GetPlaylistsRequest withPlaylistType(PlaylistType playlistType) { - Utils.checkNotNull(playlistType, "playlistType"); - this.playlistType = Optional.ofNullable(playlistType); - return this; - } - - /** - * limit to a type of playlist. - */ - public GetPlaylistsRequest withPlaylistType(Optional playlistType) { - Utils.checkNotNull(playlistType, "playlistType"); - this.playlistType = playlistType; - return this; - } - - /** - * type of playlists to return (default is all). - */ - public GetPlaylistsRequest withSmart(QueryParamSmart smart) { - Utils.checkNotNull(smart, "smart"); - this.smart = Optional.ofNullable(smart); - return this; - } - - /** - * type of playlists to return (default is all). - */ - public GetPlaylistsRequest withSmart(Optional smart) { - Utils.checkNotNull(smart, "smart"); - this.smart = smart; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetPlaylistsRequest other = (GetPlaylistsRequest) o; - return - java.util.Objects.deepEquals(this.playlistType, other.playlistType) && - java.util.Objects.deepEquals(this.smart, other.smart); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - playlistType, - smart); - } - - @Override - public String toString() { - return Utils.toString(GetPlaylistsRequest.class, - "playlistType", playlistType, - "smart", smart); - } - - public final static class Builder { - - private Optional playlistType = Optional.empty(); - - private Optional smart = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * limit to a type of playlist. - */ - public Builder playlistType(PlaylistType playlistType) { - Utils.checkNotNull(playlistType, "playlistType"); - this.playlistType = Optional.ofNullable(playlistType); - return this; - } - - /** - * limit to a type of playlist. - */ - public Builder playlistType(Optional playlistType) { - Utils.checkNotNull(playlistType, "playlistType"); - this.playlistType = playlistType; - return this; - } - - /** - * type of playlists to return (default is all). - */ - public Builder smart(QueryParamSmart smart) { - Utils.checkNotNull(smart, "smart"); - this.smart = Optional.ofNullable(smart); - return this; - } - - /** - * type of playlists to return (default is all). - */ - public Builder smart(Optional smart) { - Utils.checkNotNull(smart, "smart"); - this.smart = smart; - return this; - } - - public GetPlaylistsRequest build() { - return new GetPlaylistsRequest( - playlistType, - smart); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsRequestBuilder.java deleted file mode 100644 index f7b79b60..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsRequestBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetPlaylistsRequestBuilder { - - private Optional playlistType = Optional.empty(); - private Optional smart = Optional.empty(); - private final SDKMethodInterfaces.MethodCallGetPlaylists sdk; - - public GetPlaylistsRequestBuilder(SDKMethodInterfaces.MethodCallGetPlaylists sdk) { - this.sdk = sdk; - } - - public GetPlaylistsRequestBuilder playlistType(PlaylistType playlistType) { - Utils.checkNotNull(playlistType, "playlistType"); - this.playlistType = Optional.of(playlistType); - return this; - } - - public GetPlaylistsRequestBuilder playlistType(Optional playlistType) { - Utils.checkNotNull(playlistType, "playlistType"); - this.playlistType = playlistType; - return this; - } - - public GetPlaylistsRequestBuilder smart(QueryParamSmart smart) { - Utils.checkNotNull(smart, "smart"); - this.smart = Optional.of(smart); - return this; - } - - public GetPlaylistsRequestBuilder smart(Optional smart) { - Utils.checkNotNull(smart, "smart"); - this.smart = smart; - return this; - } - - public GetPlaylistsResponse call() throws Exception { - - return sdk.getPlaylists( - playlistType, - smart); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsResponse.java deleted file mode 100644 index 8385b499..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsResponse.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetPlaylistsResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * returns all playlists - */ - private Optional object; - - @JsonCreator - public GetPlaylistsResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional object) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.object = object; - } - - public GetPlaylistsResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * returns all playlists - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional object() { - return (Optional) object; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetPlaylistsResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetPlaylistsResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetPlaylistsResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * returns all playlists - */ - public GetPlaylistsResponse withObject(GetPlaylistsResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * returns all playlists - */ - public GetPlaylistsResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetPlaylistsResponse other = (GetPlaylistsResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.object, other.object); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse, - object); - } - - @Override - public String toString() { - return Utils.toString(GetPlaylistsResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "object", object); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional object = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * returns all playlists - */ - public Builder object(GetPlaylistsResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * returns all playlists - */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - public GetPlaylistsResponse build() { - return new GetPlaylistsResponse( - contentType, - statusCode, - rawResponse, - object); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsResponseBody.java deleted file mode 100644 index 5b2b5046..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetPlaylistsResponseBody.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -/** - * GetPlaylistsResponseBody - returns all playlists - */ - -public class GetPlaylistsResponseBody { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("MediaContainer") - private Optional mediaContainer; - - @JsonCreator - public GetPlaylistsResponseBody( - @JsonProperty("MediaContainer") Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - } - - public GetPlaylistsResponseBody() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaContainer() { - return (Optional) mediaContainer; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetPlaylistsResponseBody withMediaContainer(GetPlaylistsMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public GetPlaylistsResponseBody withMediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetPlaylistsResponseBody other = (GetPlaylistsResponseBody) o; - return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - mediaContainer); - } - - @Override - public String toString() { - return Utils.toString(GetPlaylistsResponseBody.class, - "mediaContainer", mediaContainer); - } - - public final static class Builder { - - private Optional mediaContainer = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder mediaContainer(GetPlaylistsMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public Builder mediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - public GetPlaylistsResponseBody build() { - return new GetPlaylistsResponseBody( - mediaContainer); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetRecentlyAddedMediaContainer.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetRecentlyAddedMediaContainer.java deleted file mode 100644 index b3380746..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetRecentlyAddedMediaContainer.java +++ /dev/null @@ -1,369 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetRecentlyAddedMediaContainer { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("allowSync") - private Optional allowSync; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("identifier") - private Optional identifier; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("mediaTagPrefix") - private Optional mediaTagPrefix; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("mediaTagVersion") - private Optional mediaTagVersion; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("mixedParents") - private Optional mixedParents; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Metadata") - private Optional> metadata; - - @JsonCreator - public GetRecentlyAddedMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("allowSync") Optional allowSync, - @JsonProperty("identifier") Optional identifier, - @JsonProperty("mediaTagPrefix") Optional mediaTagPrefix, - @JsonProperty("mediaTagVersion") Optional mediaTagVersion, - @JsonProperty("mixedParents") Optional mixedParents, - @JsonProperty("Metadata") Optional> metadata) { - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(allowSync, "allowSync"); - Utils.checkNotNull(identifier, "identifier"); - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - Utils.checkNotNull(mixedParents, "mixedParents"); - Utils.checkNotNull(metadata, "metadata"); - this.size = size; - this.allowSync = allowSync; - this.identifier = identifier; - this.mediaTagPrefix = mediaTagPrefix; - this.mediaTagVersion = mediaTagVersion; - this.mixedParents = mixedParents; - this.metadata = metadata; - } - - public GetRecentlyAddedMediaContainer() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional allowSync() { - return (Optional) allowSync; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional identifier() { - return (Optional) identifier; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaTagPrefix() { - return (Optional) mediaTagPrefix; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaTagVersion() { - return (Optional) mediaTagVersion; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mixedParents() { - return (Optional) mixedParents; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetRecentlyAddedMediaContainer withSize(double size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public GetRecentlyAddedMediaContainer withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public GetRecentlyAddedMediaContainer withAllowSync(boolean allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = Optional.ofNullable(allowSync); - return this; - } - - public GetRecentlyAddedMediaContainer withAllowSync(Optional allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = allowSync; - return this; - } - - public GetRecentlyAddedMediaContainer withIdentifier(String identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = Optional.ofNullable(identifier); - return this; - } - - public GetRecentlyAddedMediaContainer withIdentifier(Optional identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = identifier; - return this; - } - - public GetRecentlyAddedMediaContainer withMediaTagPrefix(String mediaTagPrefix) { - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - this.mediaTagPrefix = Optional.ofNullable(mediaTagPrefix); - return this; - } - - public GetRecentlyAddedMediaContainer withMediaTagPrefix(Optional mediaTagPrefix) { - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - this.mediaTagPrefix = mediaTagPrefix; - return this; - } - - public GetRecentlyAddedMediaContainer withMediaTagVersion(double mediaTagVersion) { - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - this.mediaTagVersion = Optional.ofNullable(mediaTagVersion); - return this; - } - - public GetRecentlyAddedMediaContainer withMediaTagVersion(Optional mediaTagVersion) { - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - this.mediaTagVersion = mediaTagVersion; - return this; - } - - public GetRecentlyAddedMediaContainer withMixedParents(boolean mixedParents) { - Utils.checkNotNull(mixedParents, "mixedParents"); - this.mixedParents = Optional.ofNullable(mixedParents); - return this; - } - - public GetRecentlyAddedMediaContainer withMixedParents(Optional mixedParents) { - Utils.checkNotNull(mixedParents, "mixedParents"); - this.mixedParents = mixedParents; - return this; - } - - public GetRecentlyAddedMediaContainer withMetadata(java.util.List metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public GetRecentlyAddedMediaContainer withMetadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetRecentlyAddedMediaContainer other = (GetRecentlyAddedMediaContainer) o; - return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.allowSync, other.allowSync) && - java.util.Objects.deepEquals(this.identifier, other.identifier) && - java.util.Objects.deepEquals(this.mediaTagPrefix, other.mediaTagPrefix) && - java.util.Objects.deepEquals(this.mediaTagVersion, other.mediaTagVersion) && - java.util.Objects.deepEquals(this.mixedParents, other.mixedParents) && - java.util.Objects.deepEquals(this.metadata, other.metadata); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - size, - allowSync, - identifier, - mediaTagPrefix, - mediaTagVersion, - mixedParents, - metadata); - } - - @Override - public String toString() { - return Utils.toString(GetRecentlyAddedMediaContainer.class, - "size", size, - "allowSync", allowSync, - "identifier", identifier, - "mediaTagPrefix", mediaTagPrefix, - "mediaTagVersion", mediaTagVersion, - "mixedParents", mixedParents, - "metadata", metadata); - } - - public final static class Builder { - - private Optional size = Optional.empty(); - - private Optional allowSync = Optional.empty(); - - private Optional identifier = Optional.empty(); - - private Optional mediaTagPrefix = Optional.empty(); - - private Optional mediaTagVersion = Optional.empty(); - - private Optional mixedParents = Optional.empty(); - - private Optional> metadata = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder size(double size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder allowSync(boolean allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = Optional.ofNullable(allowSync); - return this; - } - - public Builder allowSync(Optional allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = allowSync; - return this; - } - - public Builder identifier(String identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = Optional.ofNullable(identifier); - return this; - } - - public Builder identifier(Optional identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = identifier; - return this; - } - - public Builder mediaTagPrefix(String mediaTagPrefix) { - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - this.mediaTagPrefix = Optional.ofNullable(mediaTagPrefix); - return this; - } - - public Builder mediaTagPrefix(Optional mediaTagPrefix) { - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - this.mediaTagPrefix = mediaTagPrefix; - return this; - } - - public Builder mediaTagVersion(double mediaTagVersion) { - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - this.mediaTagVersion = Optional.ofNullable(mediaTagVersion); - return this; - } - - public Builder mediaTagVersion(Optional mediaTagVersion) { - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - this.mediaTagVersion = mediaTagVersion; - return this; - } - - public Builder mixedParents(boolean mixedParents) { - Utils.checkNotNull(mixedParents, "mixedParents"); - this.mixedParents = Optional.ofNullable(mixedParents); - return this; - } - - public Builder mixedParents(Optional mixedParents) { - Utils.checkNotNull(mixedParents, "mixedParents"); - this.mixedParents = mixedParents; - return this; - } - - public Builder metadata(java.util.List metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public Builder metadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public GetRecentlyAddedMediaContainer build() { - return new GetRecentlyAddedMediaContainer( - size, - allowSync, - identifier, - mediaTagPrefix, - mediaTagVersion, - mixedParents, - metadata); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetRecentlyAddedMetadata.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetRecentlyAddedMetadata.java deleted file mode 100644 index d33a9877..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetRecentlyAddedMetadata.java +++ /dev/null @@ -1,1447 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetRecentlyAddedMetadata { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("allowSync") - private Optional allowSync; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionID") - private Optional librarySectionID; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionTitle") - private Optional librarySectionTitle; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionUUID") - private Optional librarySectionUUID; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ratingKey") - private Optional ratingKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("guid") - private Optional guid; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("studio") - private Optional studio; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title") - private Optional title; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("contentRating") - private Optional contentRating; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("summary") - private Optional summary; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("rating") - private Optional rating; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audienceRating") - private Optional audienceRating; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("year") - private Optional year; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tagline") - private Optional tagline; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("thumb") - private Optional thumb; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("art") - private Optional art; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("duration") - private Optional duration; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("originallyAvailableAt") - private Optional originallyAvailableAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("addedAt") - private Optional addedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updatedAt") - private Optional updatedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audienceRatingImage") - private Optional audienceRatingImage; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("chapterSource") - private Optional chapterSource; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("primaryExtraKey") - private Optional primaryExtraKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ratingImage") - private Optional ratingImage; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Media") - private Optional> media; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Genre") - private Optional> genre; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Director") - private Optional> director; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Writer") - private Optional> writer; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Country") - private Optional> country; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Role") - private Optional> role; - - @JsonCreator - public GetRecentlyAddedMetadata( - @JsonProperty("allowSync") Optional allowSync, - @JsonProperty("librarySectionID") Optional librarySectionID, - @JsonProperty("librarySectionTitle") Optional librarySectionTitle, - @JsonProperty("librarySectionUUID") Optional librarySectionUUID, - @JsonProperty("ratingKey") Optional ratingKey, - @JsonProperty("key") Optional key, - @JsonProperty("guid") Optional guid, - @JsonProperty("studio") Optional studio, - @JsonProperty("type") Optional type, - @JsonProperty("title") Optional title, - @JsonProperty("contentRating") Optional contentRating, - @JsonProperty("summary") Optional summary, - @JsonProperty("rating") Optional rating, - @JsonProperty("audienceRating") Optional audienceRating, - @JsonProperty("year") Optional year, - @JsonProperty("tagline") Optional tagline, - @JsonProperty("thumb") Optional thumb, - @JsonProperty("art") Optional art, - @JsonProperty("duration") Optional duration, - @JsonProperty("originallyAvailableAt") Optional originallyAvailableAt, - @JsonProperty("addedAt") Optional addedAt, - @JsonProperty("updatedAt") Optional updatedAt, - @JsonProperty("audienceRatingImage") Optional audienceRatingImage, - @JsonProperty("chapterSource") Optional chapterSource, - @JsonProperty("primaryExtraKey") Optional primaryExtraKey, - @JsonProperty("ratingImage") Optional ratingImage, - @JsonProperty("Media") Optional> media, - @JsonProperty("Genre") Optional> genre, - @JsonProperty("Director") Optional> director, - @JsonProperty("Writer") Optional> writer, - @JsonProperty("Country") Optional> country, - @JsonProperty("Role") Optional> role) { - Utils.checkNotNull(allowSync, "allowSync"); - Utils.checkNotNull(librarySectionID, "librarySectionID"); - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); - Utils.checkNotNull(ratingKey, "ratingKey"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(guid, "guid"); - Utils.checkNotNull(studio, "studio"); - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(title, "title"); - Utils.checkNotNull(contentRating, "contentRating"); - Utils.checkNotNull(summary, "summary"); - Utils.checkNotNull(rating, "rating"); - Utils.checkNotNull(audienceRating, "audienceRating"); - Utils.checkNotNull(year, "year"); - Utils.checkNotNull(tagline, "tagline"); - Utils.checkNotNull(thumb, "thumb"); - Utils.checkNotNull(art, "art"); - Utils.checkNotNull(duration, "duration"); - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - Utils.checkNotNull(addedAt, "addedAt"); - Utils.checkNotNull(updatedAt, "updatedAt"); - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - Utils.checkNotNull(chapterSource, "chapterSource"); - Utils.checkNotNull(primaryExtraKey, "primaryExtraKey"); - Utils.checkNotNull(ratingImage, "ratingImage"); - Utils.checkNotNull(media, "media"); - Utils.checkNotNull(genre, "genre"); - Utils.checkNotNull(director, "director"); - Utils.checkNotNull(writer, "writer"); - Utils.checkNotNull(country, "country"); - Utils.checkNotNull(role, "role"); - 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; - } - - public GetRecentlyAddedMetadata() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional allowSync() { - return (Optional) allowSync; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionID() { - return (Optional) librarySectionID; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionTitle() { - return (Optional) librarySectionTitle; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionUUID() { - return (Optional) librarySectionUUID; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional ratingKey() { - return (Optional) ratingKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional guid() { - return (Optional) guid; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional studio() { - return (Optional) studio; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title() { - return (Optional) title; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional contentRating() { - return (Optional) contentRating; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional summary() { - return (Optional) summary; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional rating() { - return (Optional) rating; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audienceRating() { - return (Optional) audienceRating; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional year() { - return (Optional) year; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tagline() { - return (Optional) tagline; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional thumb() { - return (Optional) thumb; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional art() { - return (Optional) art; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional duration() { - return (Optional) duration; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional originallyAvailableAt() { - return (Optional) originallyAvailableAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional addedAt() { - return (Optional) addedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional updatedAt() { - return (Optional) updatedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audienceRatingImage() { - return (Optional) audienceRatingImage; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional chapterSource() { - return (Optional) chapterSource; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional primaryExtraKey() { - return (Optional) primaryExtraKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional ratingImage() { - return (Optional) ratingImage; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> media() { - return (Optional>) media; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> genre() { - return (Optional>) genre; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> director() { - return (Optional>) director; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> writer() { - return (Optional>) writer; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> country() { - return (Optional>) country; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> role() { - return (Optional>) role; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetRecentlyAddedMetadata withAllowSync(boolean allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = Optional.ofNullable(allowSync); - return this; - } - - public GetRecentlyAddedMetadata withAllowSync(Optional allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = allowSync; - return this; - } - - public GetRecentlyAddedMetadata withLibrarySectionID(double librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = Optional.ofNullable(librarySectionID); - return this; - } - - public GetRecentlyAddedMetadata withLibrarySectionID(Optional librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = librarySectionID; - return this; - } - - public GetRecentlyAddedMetadata withLibrarySectionTitle(String librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = Optional.ofNullable(librarySectionTitle); - return this; - } - - public GetRecentlyAddedMetadata withLibrarySectionTitle(Optional librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = librarySectionTitle; - return this; - } - - public GetRecentlyAddedMetadata withLibrarySectionUUID(String librarySectionUUID) { - Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); - this.librarySectionUUID = Optional.ofNullable(librarySectionUUID); - return this; - } - - public GetRecentlyAddedMetadata withLibrarySectionUUID(Optional librarySectionUUID) { - Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); - this.librarySectionUUID = librarySectionUUID; - return this; - } - - public GetRecentlyAddedMetadata withRatingKey(double ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public GetRecentlyAddedMetadata withRatingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public GetRecentlyAddedMetadata withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public GetRecentlyAddedMetadata withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public GetRecentlyAddedMetadata withGuid(String guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = Optional.ofNullable(guid); - return this; - } - - public GetRecentlyAddedMetadata withGuid(Optional guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = guid; - return this; - } - - public GetRecentlyAddedMetadata withStudio(String studio) { - Utils.checkNotNull(studio, "studio"); - this.studio = Optional.ofNullable(studio); - return this; - } - - public GetRecentlyAddedMetadata withStudio(Optional studio) { - Utils.checkNotNull(studio, "studio"); - this.studio = studio; - return this; - } - - public GetRecentlyAddedMetadata withType(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public GetRecentlyAddedMetadata withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public GetRecentlyAddedMetadata withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public GetRecentlyAddedMetadata withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public GetRecentlyAddedMetadata withContentRating(String contentRating) { - Utils.checkNotNull(contentRating, "contentRating"); - this.contentRating = Optional.ofNullable(contentRating); - return this; - } - - public GetRecentlyAddedMetadata withContentRating(Optional contentRating) { - Utils.checkNotNull(contentRating, "contentRating"); - this.contentRating = contentRating; - return this; - } - - public GetRecentlyAddedMetadata withSummary(String summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = Optional.ofNullable(summary); - return this; - } - - public GetRecentlyAddedMetadata withSummary(Optional summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = summary; - return this; - } - - public GetRecentlyAddedMetadata withRating(double rating) { - Utils.checkNotNull(rating, "rating"); - this.rating = Optional.ofNullable(rating); - return this; - } - - public GetRecentlyAddedMetadata withRating(Optional rating) { - Utils.checkNotNull(rating, "rating"); - this.rating = rating; - return this; - } - - public GetRecentlyAddedMetadata withAudienceRating(double audienceRating) { - Utils.checkNotNull(audienceRating, "audienceRating"); - this.audienceRating = Optional.ofNullable(audienceRating); - return this; - } - - public GetRecentlyAddedMetadata withAudienceRating(Optional audienceRating) { - Utils.checkNotNull(audienceRating, "audienceRating"); - this.audienceRating = audienceRating; - return this; - } - - public GetRecentlyAddedMetadata withYear(double year) { - Utils.checkNotNull(year, "year"); - this.year = Optional.ofNullable(year); - return this; - } - - public GetRecentlyAddedMetadata withYear(Optional year) { - Utils.checkNotNull(year, "year"); - this.year = year; - return this; - } - - public GetRecentlyAddedMetadata withTagline(String tagline) { - Utils.checkNotNull(tagline, "tagline"); - this.tagline = Optional.ofNullable(tagline); - return this; - } - - public GetRecentlyAddedMetadata withTagline(Optional tagline) { - Utils.checkNotNull(tagline, "tagline"); - this.tagline = tagline; - return this; - } - - public GetRecentlyAddedMetadata withThumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public GetRecentlyAddedMetadata withThumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public GetRecentlyAddedMetadata withArt(String art) { - Utils.checkNotNull(art, "art"); - this.art = Optional.ofNullable(art); - return this; - } - - public GetRecentlyAddedMetadata withArt(Optional art) { - Utils.checkNotNull(art, "art"); - this.art = art; - return this; - } - - public GetRecentlyAddedMetadata withDuration(double duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public GetRecentlyAddedMetadata withDuration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public GetRecentlyAddedMetadata withOriginallyAvailableAt(OffsetDateTime originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = Optional.ofNullable(originallyAvailableAt); - return this; - } - - public GetRecentlyAddedMetadata withOriginallyAvailableAt(Optional originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = originallyAvailableAt; - return this; - } - - public GetRecentlyAddedMetadata withAddedAt(double addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = Optional.ofNullable(addedAt); - return this; - } - - public GetRecentlyAddedMetadata withAddedAt(Optional addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = addedAt; - return this; - } - - public GetRecentlyAddedMetadata withUpdatedAt(double updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public GetRecentlyAddedMetadata withUpdatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public GetRecentlyAddedMetadata withAudienceRatingImage(String audienceRatingImage) { - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - this.audienceRatingImage = Optional.ofNullable(audienceRatingImage); - return this; - } - - public GetRecentlyAddedMetadata withAudienceRatingImage(Optional audienceRatingImage) { - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - this.audienceRatingImage = audienceRatingImage; - return this; - } - - public GetRecentlyAddedMetadata withChapterSource(String chapterSource) { - Utils.checkNotNull(chapterSource, "chapterSource"); - this.chapterSource = Optional.ofNullable(chapterSource); - return this; - } - - public GetRecentlyAddedMetadata withChapterSource(Optional chapterSource) { - Utils.checkNotNull(chapterSource, "chapterSource"); - this.chapterSource = chapterSource; - return this; - } - - public GetRecentlyAddedMetadata withPrimaryExtraKey(String primaryExtraKey) { - Utils.checkNotNull(primaryExtraKey, "primaryExtraKey"); - this.primaryExtraKey = Optional.ofNullable(primaryExtraKey); - return this; - } - - public GetRecentlyAddedMetadata withPrimaryExtraKey(Optional primaryExtraKey) { - Utils.checkNotNull(primaryExtraKey, "primaryExtraKey"); - this.primaryExtraKey = primaryExtraKey; - return this; - } - - public GetRecentlyAddedMetadata withRatingImage(String ratingImage) { - Utils.checkNotNull(ratingImage, "ratingImage"); - this.ratingImage = Optional.ofNullable(ratingImage); - return this; - } - - public GetRecentlyAddedMetadata withRatingImage(Optional ratingImage) { - Utils.checkNotNull(ratingImage, "ratingImage"); - this.ratingImage = ratingImage; - return this; - } - - public GetRecentlyAddedMetadata withMedia(java.util.List media) { - Utils.checkNotNull(media, "media"); - this.media = Optional.ofNullable(media); - return this; - } - - public GetRecentlyAddedMetadata withMedia(Optional> media) { - Utils.checkNotNull(media, "media"); - this.media = media; - return this; - } - - public GetRecentlyAddedMetadata withGenre(java.util.List genre) { - Utils.checkNotNull(genre, "genre"); - this.genre = Optional.ofNullable(genre); - return this; - } - - public GetRecentlyAddedMetadata withGenre(Optional> genre) { - Utils.checkNotNull(genre, "genre"); - this.genre = genre; - return this; - } - - public GetRecentlyAddedMetadata withDirector(java.util.List director) { - Utils.checkNotNull(director, "director"); - this.director = Optional.ofNullable(director); - return this; - } - - public GetRecentlyAddedMetadata withDirector(Optional> director) { - Utils.checkNotNull(director, "director"); - this.director = director; - return this; - } - - public GetRecentlyAddedMetadata withWriter(java.util.List writer) { - Utils.checkNotNull(writer, "writer"); - this.writer = Optional.ofNullable(writer); - return this; - } - - public GetRecentlyAddedMetadata withWriter(Optional> writer) { - Utils.checkNotNull(writer, "writer"); - this.writer = writer; - return this; - } - - public GetRecentlyAddedMetadata withCountry(java.util.List country) { - Utils.checkNotNull(country, "country"); - this.country = Optional.ofNullable(country); - return this; - } - - public GetRecentlyAddedMetadata withCountry(Optional> country) { - Utils.checkNotNull(country, "country"); - this.country = country; - return this; - } - - public GetRecentlyAddedMetadata withRole(java.util.List role) { - Utils.checkNotNull(role, "role"); - this.role = Optional.ofNullable(role); - return this; - } - - public GetRecentlyAddedMetadata withRole(Optional> role) { - Utils.checkNotNull(role, "role"); - this.role = role; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetRecentlyAddedMetadata other = (GetRecentlyAddedMetadata) o; - return - java.util.Objects.deepEquals(this.allowSync, other.allowSync) && - java.util.Objects.deepEquals(this.librarySectionID, other.librarySectionID) && - java.util.Objects.deepEquals(this.librarySectionTitle, other.librarySectionTitle) && - java.util.Objects.deepEquals(this.librarySectionUUID, other.librarySectionUUID) && - java.util.Objects.deepEquals(this.ratingKey, other.ratingKey) && - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.guid, other.guid) && - java.util.Objects.deepEquals(this.studio, other.studio) && - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.title, other.title) && - java.util.Objects.deepEquals(this.contentRating, other.contentRating) && - java.util.Objects.deepEquals(this.summary, other.summary) && - java.util.Objects.deepEquals(this.rating, other.rating) && - java.util.Objects.deepEquals(this.audienceRating, other.audienceRating) && - java.util.Objects.deepEquals(this.year, other.year) && - java.util.Objects.deepEquals(this.tagline, other.tagline) && - java.util.Objects.deepEquals(this.thumb, other.thumb) && - java.util.Objects.deepEquals(this.art, other.art) && - java.util.Objects.deepEquals(this.duration, other.duration) && - java.util.Objects.deepEquals(this.originallyAvailableAt, other.originallyAvailableAt) && - java.util.Objects.deepEquals(this.addedAt, other.addedAt) && - java.util.Objects.deepEquals(this.updatedAt, other.updatedAt) && - java.util.Objects.deepEquals(this.audienceRatingImage, other.audienceRatingImage) && - java.util.Objects.deepEquals(this.chapterSource, other.chapterSource) && - java.util.Objects.deepEquals(this.primaryExtraKey, other.primaryExtraKey) && - java.util.Objects.deepEquals(this.ratingImage, other.ratingImage) && - java.util.Objects.deepEquals(this.media, other.media) && - java.util.Objects.deepEquals(this.genre, other.genre) && - java.util.Objects.deepEquals(this.director, other.director) && - java.util.Objects.deepEquals(this.writer, other.writer) && - java.util.Objects.deepEquals(this.country, other.country) && - java.util.Objects.deepEquals(this.role, other.role); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - allowSync, - librarySectionID, - librarySectionTitle, - librarySectionUUID, - ratingKey, - key, - guid, - studio, - type, - title, - contentRating, - summary, - rating, - audienceRating, - year, - tagline, - thumb, - art, - duration, - originallyAvailableAt, - addedAt, - updatedAt, - audienceRatingImage, - chapterSource, - primaryExtraKey, - ratingImage, - media, - genre, - director, - writer, - country, - role); - } - - @Override - public String toString() { - return Utils.toString(GetRecentlyAddedMetadata.class, - "allowSync", allowSync, - "librarySectionID", librarySectionID, - "librarySectionTitle", librarySectionTitle, - "librarySectionUUID", librarySectionUUID, - "ratingKey", ratingKey, - "key", key, - "guid", guid, - "studio", studio, - "type", type, - "title", title, - "contentRating", contentRating, - "summary", summary, - "rating", rating, - "audienceRating", audienceRating, - "year", year, - "tagline", tagline, - "thumb", thumb, - "art", art, - "duration", duration, - "originallyAvailableAt", originallyAvailableAt, - "addedAt", addedAt, - "updatedAt", updatedAt, - "audienceRatingImage", audienceRatingImage, - "chapterSource", chapterSource, - "primaryExtraKey", primaryExtraKey, - "ratingImage", ratingImage, - "media", media, - "genre", genre, - "director", director, - "writer", writer, - "country", country, - "role", role); - } - - public final static class Builder { - - private Optional allowSync = Optional.empty(); - - private Optional librarySectionID = Optional.empty(); - - private Optional librarySectionTitle = Optional.empty(); - - private Optional librarySectionUUID = Optional.empty(); - - private Optional ratingKey = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional guid = Optional.empty(); - - private Optional studio = Optional.empty(); - - private Optional type = Optional.empty(); - - private Optional title = Optional.empty(); - - private Optional contentRating = Optional.empty(); - - private Optional summary = Optional.empty(); - - private Optional rating = Optional.empty(); - - private Optional audienceRating = Optional.empty(); - - private Optional year = Optional.empty(); - - private Optional tagline = Optional.empty(); - - private Optional thumb = Optional.empty(); - - private Optional art = Optional.empty(); - - private Optional duration = Optional.empty(); - - private Optional originallyAvailableAt = Optional.empty(); - - private Optional addedAt = Optional.empty(); - - private Optional updatedAt = Optional.empty(); - - private Optional audienceRatingImage = Optional.empty(); - - private Optional chapterSource = Optional.empty(); - - private Optional primaryExtraKey = Optional.empty(); - - private Optional ratingImage = Optional.empty(); - - private Optional> media = Optional.empty(); - - private Optional> genre = Optional.empty(); - - private Optional> director = Optional.empty(); - - private Optional> writer = Optional.empty(); - - private Optional> country = Optional.empty(); - - private Optional> role = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder allowSync(boolean allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = Optional.ofNullable(allowSync); - return this; - } - - public Builder allowSync(Optional allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = allowSync; - return this; - } - - public Builder librarySectionID(double librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = Optional.ofNullable(librarySectionID); - return this; - } - - public Builder librarySectionID(Optional librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = librarySectionID; - return this; - } - - public Builder librarySectionTitle(String librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = Optional.ofNullable(librarySectionTitle); - return this; - } - - public Builder librarySectionTitle(Optional librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = librarySectionTitle; - return this; - } - - public Builder librarySectionUUID(String librarySectionUUID) { - Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); - this.librarySectionUUID = Optional.ofNullable(librarySectionUUID); - return this; - } - - public Builder librarySectionUUID(Optional librarySectionUUID) { - Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); - this.librarySectionUUID = librarySectionUUID; - return this; - } - - public Builder ratingKey(double ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public Builder ratingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder guid(String guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = Optional.ofNullable(guid); - return this; - } - - public Builder guid(Optional guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = guid; - return this; - } - - public Builder studio(String studio) { - Utils.checkNotNull(studio, "studio"); - this.studio = Optional.ofNullable(studio); - return this; - } - - public Builder studio(Optional studio) { - Utils.checkNotNull(studio, "studio"); - this.studio = studio; - return this; - } - - public Builder type(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Builder contentRating(String contentRating) { - Utils.checkNotNull(contentRating, "contentRating"); - this.contentRating = Optional.ofNullable(contentRating); - return this; - } - - public Builder contentRating(Optional contentRating) { - Utils.checkNotNull(contentRating, "contentRating"); - this.contentRating = contentRating; - return this; - } - - public Builder summary(String summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = Optional.ofNullable(summary); - return this; - } - - public Builder summary(Optional summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = summary; - return this; - } - - public Builder rating(double rating) { - Utils.checkNotNull(rating, "rating"); - this.rating = Optional.ofNullable(rating); - return this; - } - - public Builder rating(Optional rating) { - Utils.checkNotNull(rating, "rating"); - this.rating = rating; - return this; - } - - public Builder audienceRating(double audienceRating) { - Utils.checkNotNull(audienceRating, "audienceRating"); - this.audienceRating = Optional.ofNullable(audienceRating); - return this; - } - - public Builder audienceRating(Optional audienceRating) { - Utils.checkNotNull(audienceRating, "audienceRating"); - this.audienceRating = audienceRating; - return this; - } - - public Builder year(double year) { - Utils.checkNotNull(year, "year"); - this.year = Optional.ofNullable(year); - return this; - } - - public Builder year(Optional year) { - Utils.checkNotNull(year, "year"); - this.year = year; - return this; - } - - public Builder tagline(String tagline) { - Utils.checkNotNull(tagline, "tagline"); - this.tagline = Optional.ofNullable(tagline); - return this; - } - - public Builder tagline(Optional tagline) { - Utils.checkNotNull(tagline, "tagline"); - this.tagline = tagline; - return this; - } - - public Builder thumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public Builder thumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public Builder art(String art) { - Utils.checkNotNull(art, "art"); - this.art = Optional.ofNullable(art); - return this; - } - - public Builder art(Optional art) { - Utils.checkNotNull(art, "art"); - this.art = art; - return this; - } - - public Builder duration(double duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public Builder duration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public Builder originallyAvailableAt(OffsetDateTime originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = Optional.ofNullable(originallyAvailableAt); - return this; - } - - public Builder originallyAvailableAt(Optional originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = originallyAvailableAt; - return this; - } - - public Builder addedAt(double addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = Optional.ofNullable(addedAt); - return this; - } - - public Builder addedAt(Optional addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = addedAt; - return this; - } - - public Builder updatedAt(double updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public Builder updatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public Builder audienceRatingImage(String audienceRatingImage) { - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - this.audienceRatingImage = Optional.ofNullable(audienceRatingImage); - return this; - } - - public Builder audienceRatingImage(Optional audienceRatingImage) { - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - this.audienceRatingImage = audienceRatingImage; - return this; - } - - public Builder chapterSource(String chapterSource) { - Utils.checkNotNull(chapterSource, "chapterSource"); - this.chapterSource = Optional.ofNullable(chapterSource); - return this; - } - - public Builder chapterSource(Optional chapterSource) { - Utils.checkNotNull(chapterSource, "chapterSource"); - this.chapterSource = chapterSource; - return this; - } - - public Builder primaryExtraKey(String primaryExtraKey) { - Utils.checkNotNull(primaryExtraKey, "primaryExtraKey"); - this.primaryExtraKey = Optional.ofNullable(primaryExtraKey); - return this; - } - - public Builder primaryExtraKey(Optional primaryExtraKey) { - Utils.checkNotNull(primaryExtraKey, "primaryExtraKey"); - this.primaryExtraKey = primaryExtraKey; - return this; - } - - public Builder ratingImage(String ratingImage) { - Utils.checkNotNull(ratingImage, "ratingImage"); - this.ratingImage = Optional.ofNullable(ratingImage); - return this; - } - - public Builder ratingImage(Optional ratingImage) { - Utils.checkNotNull(ratingImage, "ratingImage"); - this.ratingImage = ratingImage; - return this; - } - - public Builder media(java.util.List media) { - Utils.checkNotNull(media, "media"); - this.media = Optional.ofNullable(media); - return this; - } - - public Builder media(Optional> media) { - Utils.checkNotNull(media, "media"); - this.media = media; - return this; - } - - public Builder genre(java.util.List genre) { - Utils.checkNotNull(genre, "genre"); - this.genre = Optional.ofNullable(genre); - return this; - } - - public Builder genre(Optional> genre) { - Utils.checkNotNull(genre, "genre"); - this.genre = genre; - return this; - } - - public Builder director(java.util.List director) { - Utils.checkNotNull(director, "director"); - this.director = Optional.ofNullable(director); - return this; - } - - public Builder director(Optional> director) { - Utils.checkNotNull(director, "director"); - this.director = director; - return this; - } - - public Builder writer(java.util.List writer) { - Utils.checkNotNull(writer, "writer"); - this.writer = Optional.ofNullable(writer); - return this; - } - - public Builder writer(Optional> writer) { - Utils.checkNotNull(writer, "writer"); - this.writer = writer; - return this; - } - - public Builder country(java.util.List country) { - Utils.checkNotNull(country, "country"); - this.country = Optional.ofNullable(country); - return this; - } - - public Builder country(Optional> country) { - Utils.checkNotNull(country, "country"); - this.country = country; - return this; - } - - public Builder role(java.util.List role) { - Utils.checkNotNull(role, "role"); - this.role = Optional.ofNullable(role); - return this; - } - - public Builder role(Optional> role) { - Utils.checkNotNull(role, "role"); - this.role = role; - return this; - } - - public GetRecentlyAddedMetadata build() { - return new GetRecentlyAddedMetadata( - allowSync, - librarySectionID, - librarySectionTitle, - librarySectionUUID, - ratingKey, - key, - guid, - studio, - type, - title, - contentRating, - summary, - rating, - audienceRating, - year, - tagline, - thumb, - art, - duration, - originallyAvailableAt, - addedAt, - updatedAt, - audienceRatingImage, - chapterSource, - primaryExtraKey, - ratingImage, - media, - genre, - director, - writer, - country, - role); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetRecentlyAddedRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetRecentlyAddedRequestBuilder.java deleted file mode 100644 index 818f36c0..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetRecentlyAddedRequestBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetRecentlyAddedRequestBuilder { - - private final SDKMethodInterfaces.MethodCallGetRecentlyAdded sdk; - - public GetRecentlyAddedRequestBuilder(SDKMethodInterfaces.MethodCallGetRecentlyAdded sdk) { - this.sdk = sdk; - } - - public GetRecentlyAddedResponse call() throws Exception { - - return sdk.getRecentlyAddedDirect(); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetRecentlyAddedResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetRecentlyAddedResponse.java deleted file mode 100644 index 15cf3cc9..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetRecentlyAddedResponse.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetRecentlyAddedResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * The recently added content - */ - private Optional object; - - @JsonCreator - public GetRecentlyAddedResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional object) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.object = object; - } - - public GetRecentlyAddedResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * The recently added content - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional object() { - return (Optional) object; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetRecentlyAddedResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetRecentlyAddedResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetRecentlyAddedResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * The recently added content - */ - public GetRecentlyAddedResponse withObject(GetRecentlyAddedResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * The recently added content - */ - public GetRecentlyAddedResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetRecentlyAddedResponse other = (GetRecentlyAddedResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.object, other.object); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse, - object); - } - - @Override - public String toString() { - return Utils.toString(GetRecentlyAddedResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "object", object); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional object = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * The recently added content - */ - public Builder object(GetRecentlyAddedResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * The recently added content - */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - public GetRecentlyAddedResponse build() { - return new GetRecentlyAddedResponse( - contentType, - statusCode, - rawResponse, - object); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetRecentlyAddedResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetRecentlyAddedResponseBody.java deleted file mode 100644 index 0d55be0b..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetRecentlyAddedResponseBody.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -/** - * GetRecentlyAddedResponseBody - The recently added content - */ - -public class GetRecentlyAddedResponseBody { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("MediaContainer") - private Optional mediaContainer; - - @JsonCreator - public GetRecentlyAddedResponseBody( - @JsonProperty("MediaContainer") Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - } - - public GetRecentlyAddedResponseBody() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaContainer() { - return (Optional) mediaContainer; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetRecentlyAddedResponseBody withMediaContainer(GetRecentlyAddedMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public GetRecentlyAddedResponseBody withMediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetRecentlyAddedResponseBody other = (GetRecentlyAddedResponseBody) o; - return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - mediaContainer); - } - - @Override - public String toString() { - return Utils.toString(GetRecentlyAddedResponseBody.class, - "mediaContainer", mediaContainer); - } - - public final static class Builder { - - private Optional mediaContainer = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder mediaContainer(GetRecentlyAddedMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public Builder mediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - public GetRecentlyAddedResponseBody build() { - return new GetRecentlyAddedResponseBody( - mediaContainer); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResizedPhotoRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResizedPhotoRequest.java deleted file mode 100644 index 0c423080..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResizedPhotoRequest.java +++ /dev/null @@ -1,358 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetResizedPhotoRequest { - - /** - * The width for the resized photo - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=width") - private double width; - - /** - * The height for the resized photo - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=height") - private double height; - - /** - * The opacity for the resized photo - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=opacity") - private long opacity; - - /** - * The width for the resized photo - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=blur") - private double blur; - - /** - * images are always scaled proportionally. A value of '1' in minSize will make the smaller native dimension the dimension resized against. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=minSize") - private MinSize minSize; - - /** - * allow images to be resized beyond native dimensions. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=upscale") - private Upscale upscale; - - /** - * path to image within Plex - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=url") - private String url; - - @JsonCreator - public GetResizedPhotoRequest( - double width, - double height, - long opacity, - double blur, - MinSize minSize, - Upscale upscale, - String url) { - Utils.checkNotNull(width, "width"); - Utils.checkNotNull(height, "height"); - Utils.checkNotNull(opacity, "opacity"); - Utils.checkNotNull(blur, "blur"); - Utils.checkNotNull(minSize, "minSize"); - Utils.checkNotNull(upscale, "upscale"); - Utils.checkNotNull(url, "url"); - this.width = width; - this.height = height; - this.opacity = opacity; - this.blur = blur; - this.minSize = minSize; - this.upscale = upscale; - this.url = url; - } - - /** - * The width for the resized photo - */ - @JsonIgnore - public double width() { - return width; - } - - /** - * The height for the resized photo - */ - @JsonIgnore - public double height() { - return height; - } - - /** - * The opacity for the resized photo - */ - @JsonIgnore - public long opacity() { - return opacity; - } - - /** - * The width for the resized photo - */ - @JsonIgnore - public double blur() { - return blur; - } - - /** - * images are always scaled proportionally. A value of '1' in minSize will make the smaller native dimension the dimension resized against. - */ - @JsonIgnore - public MinSize minSize() { - return minSize; - } - - /** - * allow images to be resized beyond native dimensions. - */ - @JsonIgnore - public Upscale upscale() { - return upscale; - } - - /** - * path to image within Plex - */ - @JsonIgnore - public String url() { - return url; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * The width for the resized photo - */ - public GetResizedPhotoRequest withWidth(double width) { - Utils.checkNotNull(width, "width"); - this.width = width; - return this; - } - - /** - * The height for the resized photo - */ - public GetResizedPhotoRequest withHeight(double height) { - Utils.checkNotNull(height, "height"); - this.height = height; - return this; - } - - /** - * The opacity for the resized photo - */ - public GetResizedPhotoRequest withOpacity(long opacity) { - Utils.checkNotNull(opacity, "opacity"); - this.opacity = opacity; - return this; - } - - /** - * The width for the resized photo - */ - public GetResizedPhotoRequest withBlur(double blur) { - Utils.checkNotNull(blur, "blur"); - this.blur = blur; - return this; - } - - /** - * images are always scaled proportionally. A value of '1' in minSize will make the smaller native dimension the dimension resized against. - */ - public GetResizedPhotoRequest withMinSize(MinSize minSize) { - Utils.checkNotNull(minSize, "minSize"); - this.minSize = minSize; - return this; - } - - /** - * allow images to be resized beyond native dimensions. - */ - public GetResizedPhotoRequest withUpscale(Upscale upscale) { - Utils.checkNotNull(upscale, "upscale"); - this.upscale = upscale; - return this; - } - - /** - * path to image within Plex - */ - public GetResizedPhotoRequest withUrl(String url) { - Utils.checkNotNull(url, "url"); - this.url = url; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetResizedPhotoRequest other = (GetResizedPhotoRequest) o; - return - java.util.Objects.deepEquals(this.width, other.width) && - java.util.Objects.deepEquals(this.height, other.height) && - java.util.Objects.deepEquals(this.opacity, other.opacity) && - java.util.Objects.deepEquals(this.blur, other.blur) && - java.util.Objects.deepEquals(this.minSize, other.minSize) && - java.util.Objects.deepEquals(this.upscale, other.upscale) && - java.util.Objects.deepEquals(this.url, other.url); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - width, - height, - opacity, - blur, - minSize, - upscale, - url); - } - - @Override - public String toString() { - return Utils.toString(GetResizedPhotoRequest.class, - "width", width, - "height", height, - "opacity", opacity, - "blur", blur, - "minSize", minSize, - "upscale", upscale, - "url", url); - } - - public final static class Builder { - - private Double width; - - private Double height; - - private Long opacity; - - private Double blur; - - private MinSize minSize; - - private Upscale upscale; - - private String url; - - private Builder() { - // force use of static builder() method - } - - /** - * The width for the resized photo - */ - public Builder width(double width) { - Utils.checkNotNull(width, "width"); - this.width = width; - return this; - } - - /** - * The height for the resized photo - */ - public Builder height(double height) { - Utils.checkNotNull(height, "height"); - this.height = height; - return this; - } - - /** - * The opacity for the resized photo - */ - public Builder opacity(long opacity) { - Utils.checkNotNull(opacity, "opacity"); - this.opacity = opacity; - return this; - } - - /** - * The width for the resized photo - */ - public Builder blur(double blur) { - Utils.checkNotNull(blur, "blur"); - this.blur = blur; - return this; - } - - /** - * images are always scaled proportionally. A value of '1' in minSize will make the smaller native dimension the dimension resized against. - */ - public Builder minSize(MinSize minSize) { - Utils.checkNotNull(minSize, "minSize"); - this.minSize = minSize; - return this; - } - - /** - * allow images to be resized beyond native dimensions. - */ - public Builder upscale(Upscale upscale) { - Utils.checkNotNull(upscale, "upscale"); - this.upscale = upscale; - return this; - } - - /** - * path to image within Plex - */ - public Builder url(String url) { - Utils.checkNotNull(url, "url"); - this.url = url; - return this; - } - - public GetResizedPhotoRequest build() { - if (opacity == null) { - opacity = _SINGLETON_VALUE_Opacity.value(); - } - return new GetResizedPhotoRequest( - width, - height, - opacity, - blur, - minSize, - upscale, - url); - } - - private static final LazySingletonValue _SINGLETON_VALUE_Opacity = - new LazySingletonValue<>( - "opacity", - "100", - new TypeReference() {}); - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResizedPhotoRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResizedPhotoRequestBuilder.java deleted file mode 100644 index 3aa02066..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResizedPhotoRequestBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetResizedPhotoRequestBuilder { - - private GetResizedPhotoRequest request; - private final SDKMethodInterfaces.MethodCallGetResizedPhoto sdk; - - public GetResizedPhotoRequestBuilder(SDKMethodInterfaces.MethodCallGetResizedPhoto sdk) { - this.sdk = sdk; - } - - public GetResizedPhotoRequestBuilder request(GetResizedPhotoRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public GetResizedPhotoResponse call() throws Exception { - - return sdk.getResizedPhoto( - request); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResizedPhotoResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResizedPhotoResponse.java deleted file mode 100644 index 784577d2..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResizedPhotoResponse.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetResizedPhotoResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - @JsonCreator - public GetResizedPhotoResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetResizedPhotoResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetResizedPhotoResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetResizedPhotoResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetResizedPhotoResponse other = (GetResizedPhotoResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetResizedPhotoResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetResizedPhotoResponse build() { - return new GetResizedPhotoResponse( - contentType, - statusCode, - rawResponse); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsMediaContainer.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsMediaContainer.java deleted file mode 100644 index 61ce8acf..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsMediaContainer.java +++ /dev/null @@ -1,154 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetResourcesStatisticsMediaContainer { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("StatisticsResources") - private Optional> statisticsResources; - - @JsonCreator - public GetResourcesStatisticsMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("StatisticsResources") Optional> statisticsResources) { - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(statisticsResources, "statisticsResources"); - this.size = size; - this.statisticsResources = statisticsResources; - } - - public GetResourcesStatisticsMediaContainer() { - this(Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> statisticsResources() { - return (Optional>) statisticsResources; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetResourcesStatisticsMediaContainer withSize(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public GetResourcesStatisticsMediaContainer withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public GetResourcesStatisticsMediaContainer withStatisticsResources(java.util.List statisticsResources) { - Utils.checkNotNull(statisticsResources, "statisticsResources"); - this.statisticsResources = Optional.ofNullable(statisticsResources); - return this; - } - - public GetResourcesStatisticsMediaContainer withStatisticsResources(Optional> statisticsResources) { - Utils.checkNotNull(statisticsResources, "statisticsResources"); - this.statisticsResources = statisticsResources; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetResourcesStatisticsMediaContainer other = (GetResourcesStatisticsMediaContainer) o; - return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.statisticsResources, other.statisticsResources); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - size, - statisticsResources); - } - - @Override - public String toString() { - return Utils.toString(GetResourcesStatisticsMediaContainer.class, - "size", size, - "statisticsResources", statisticsResources); - } - - public final static class Builder { - - private Optional size = Optional.empty(); - - private Optional> statisticsResources = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder size(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder statisticsResources(java.util.List statisticsResources) { - Utils.checkNotNull(statisticsResources, "statisticsResources"); - this.statisticsResources = Optional.ofNullable(statisticsResources); - return this; - } - - public Builder statisticsResources(Optional> statisticsResources) { - Utils.checkNotNull(statisticsResources, "statisticsResources"); - this.statisticsResources = statisticsResources; - return this; - } - - public GetResourcesStatisticsMediaContainer build() { - return new GetResourcesStatisticsMediaContainer( - size, - statisticsResources); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsRequest.java deleted file mode 100644 index 555255a8..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsRequest.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetResourcesStatisticsRequest { - - /** - * The timespan to retrieve statistics for - * the exact meaning of this parameter is not known - * - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=Timespan") - private Optional timespan; - - @JsonCreator - public GetResourcesStatisticsRequest( - Optional timespan) { - Utils.checkNotNull(timespan, "timespan"); - this.timespan = timespan; - } - - public GetResourcesStatisticsRequest() { - this(Optional.empty()); - } - - /** - * The timespan to retrieve statistics for - * the exact meaning of this parameter is not known - * - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional timespan() { - return (Optional) timespan; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * The timespan to retrieve statistics for - * the exact meaning of this parameter is not known - * - */ - public GetResourcesStatisticsRequest withTimespan(long timespan) { - Utils.checkNotNull(timespan, "timespan"); - this.timespan = Optional.ofNullable(timespan); - return this; - } - - /** - * The timespan to retrieve statistics for - * the exact meaning of this parameter is not known - * - */ - public GetResourcesStatisticsRequest withTimespan(Optional timespan) { - Utils.checkNotNull(timespan, "timespan"); - this.timespan = timespan; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetResourcesStatisticsRequest other = (GetResourcesStatisticsRequest) o; - return - java.util.Objects.deepEquals(this.timespan, other.timespan); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - timespan); - } - - @Override - public String toString() { - return Utils.toString(GetResourcesStatisticsRequest.class, - "timespan", timespan); - } - - public final static class Builder { - - private Optional timespan = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * The timespan to retrieve statistics for - * the exact meaning of this parameter is not known - * - */ - public Builder timespan(long timespan) { - Utils.checkNotNull(timespan, "timespan"); - this.timespan = Optional.ofNullable(timespan); - return this; - } - - /** - * The timespan to retrieve statistics for - * the exact meaning of this parameter is not known - * - */ - public Builder timespan(Optional timespan) { - Utils.checkNotNull(timespan, "timespan"); - this.timespan = timespan; - return this; - } - - public GetResourcesStatisticsRequest build() { - return new GetResourcesStatisticsRequest( - timespan); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsRequestBuilder.java deleted file mode 100644 index 9c2dd3f1..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsRequestBuilder.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetResourcesStatisticsRequestBuilder { - - private Optional timespan = Optional.empty(); - private final SDKMethodInterfaces.MethodCallGetResourcesStatistics sdk; - - public GetResourcesStatisticsRequestBuilder(SDKMethodInterfaces.MethodCallGetResourcesStatistics sdk) { - this.sdk = sdk; - } - - public GetResourcesStatisticsRequestBuilder timespan(long timespan) { - Utils.checkNotNull(timespan, "timespan"); - this.timespan = Optional.of(timespan); - return this; - } - - public GetResourcesStatisticsRequestBuilder timespan(Optional timespan) { - Utils.checkNotNull(timespan, "timespan"); - this.timespan = timespan; - return this; - } - - public GetResourcesStatisticsResponse call() throws Exception { - - return sdk.getResourcesStatistics( - timespan); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsResponse.java deleted file mode 100644 index 3b52c095..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsResponse.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetResourcesStatisticsResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Resource Statistics - */ - private Optional object; - - @JsonCreator - public GetResourcesStatisticsResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional object) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.object = object; - } - - public GetResourcesStatisticsResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Resource Statistics - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional object() { - return (Optional) object; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetResourcesStatisticsResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetResourcesStatisticsResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetResourcesStatisticsResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Resource Statistics - */ - public GetResourcesStatisticsResponse withObject(GetResourcesStatisticsResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * Resource Statistics - */ - public GetResourcesStatisticsResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetResourcesStatisticsResponse other = (GetResourcesStatisticsResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.object, other.object); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse, - object); - } - - @Override - public String toString() { - return Utils.toString(GetResourcesStatisticsResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "object", object); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional object = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Resource Statistics - */ - public Builder object(GetResourcesStatisticsResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * Resource Statistics - */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - public GetResourcesStatisticsResponse build() { - return new GetResourcesStatisticsResponse( - contentType, - statusCode, - rawResponse, - object); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsResponseBody.java deleted file mode 100644 index 7f34f154..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetResourcesStatisticsResponseBody.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -/** - * GetResourcesStatisticsResponseBody - Resource Statistics - */ - -public class GetResourcesStatisticsResponseBody { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("MediaContainer") - private Optional mediaContainer; - - @JsonCreator - public GetResourcesStatisticsResponseBody( - @JsonProperty("MediaContainer") Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - } - - public GetResourcesStatisticsResponseBody() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaContainer() { - return (Optional) mediaContainer; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetResourcesStatisticsResponseBody withMediaContainer(GetResourcesStatisticsMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public GetResourcesStatisticsResponseBody withMediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetResourcesStatisticsResponseBody other = (GetResourcesStatisticsResponseBody) o; - return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - mediaContainer); - } - - @Override - public String toString() { - return Utils.toString(GetResourcesStatisticsResponseBody.class, - "mediaContainer", mediaContainer); - } - - public final static class Builder { - - private Optional mediaContainer = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder mediaContainer(GetResourcesStatisticsMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public Builder mediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - public GetResourcesStatisticsResponseBody build() { - return new GetResourcesStatisticsResponseBody( - mediaContainer); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsCountry.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsCountry.java deleted file mode 100644 index 419f38d9..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsCountry.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetSearchResultsCountry { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tag") - private Optional tag; - - @JsonCreator - public GetSearchResultsCountry( - @JsonProperty("tag") Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - } - - public GetSearchResultsCountry() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tag() { - return (Optional) tag; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetSearchResultsCountry withTag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public GetSearchResultsCountry withTag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetSearchResultsCountry other = (GetSearchResultsCountry) o; - return - java.util.Objects.deepEquals(this.tag, other.tag); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - tag); - } - - @Override - public String toString() { - return Utils.toString(GetSearchResultsCountry.class, - "tag", tag); - } - - public final static class Builder { - - private Optional tag = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder tag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Builder tag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public GetSearchResultsCountry build() { - return new GetSearchResultsCountry( - tag); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsDirector.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsDirector.java deleted file mode 100644 index 58b32ad8..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsDirector.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetSearchResultsDirector { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tag") - private Optional tag; - - @JsonCreator - public GetSearchResultsDirector( - @JsonProperty("tag") Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - } - - public GetSearchResultsDirector() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tag() { - return (Optional) tag; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetSearchResultsDirector withTag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public GetSearchResultsDirector withTag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetSearchResultsDirector other = (GetSearchResultsDirector) o; - return - java.util.Objects.deepEquals(this.tag, other.tag); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - tag); - } - - @Override - public String toString() { - return Utils.toString(GetSearchResultsDirector.class, - "tag", tag); - } - - public final static class Builder { - - private Optional tag = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder tag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Builder tag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public GetSearchResultsDirector build() { - return new GetSearchResultsDirector( - tag); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsGenre.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsGenre.java deleted file mode 100644 index fb878211..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsGenre.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetSearchResultsGenre { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tag") - private Optional tag; - - @JsonCreator - public GetSearchResultsGenre( - @JsonProperty("tag") Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - } - - public GetSearchResultsGenre() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tag() { - return (Optional) tag; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetSearchResultsGenre withTag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public GetSearchResultsGenre withTag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetSearchResultsGenre other = (GetSearchResultsGenre) o; - return - java.util.Objects.deepEquals(this.tag, other.tag); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - tag); - } - - @Override - public String toString() { - return Utils.toString(GetSearchResultsGenre.class, - "tag", tag); - } - - public final static class Builder { - - private Optional tag = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder tag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Builder tag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public GetSearchResultsGenre build() { - return new GetSearchResultsGenre( - tag); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsMedia.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsMedia.java deleted file mode 100644 index 0fc2b14a..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsMedia.java +++ /dev/null @@ -1,713 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetSearchResultsMedia { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("duration") - private Optional duration; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("bitrate") - private Optional bitrate; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("width") - private Optional width; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("height") - private Optional height; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("aspectRatio") - private Optional aspectRatio; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audioChannels") - private Optional audioChannels; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audioCodec") - private Optional audioCodec; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("videoCodec") - private Optional videoCodec; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("videoResolution") - private Optional videoResolution; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("container") - private Optional container; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("videoFrameRate") - private Optional videoFrameRate; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audioProfile") - private Optional audioProfile; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("videoProfile") - private Optional videoProfile; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Part") - private Optional> part; - - @JsonCreator - public GetSearchResultsMedia( - @JsonProperty("id") Optional id, - @JsonProperty("duration") Optional duration, - @JsonProperty("bitrate") Optional bitrate, - @JsonProperty("width") Optional width, - @JsonProperty("height") Optional height, - @JsonProperty("aspectRatio") Optional aspectRatio, - @JsonProperty("audioChannels") Optional audioChannels, - @JsonProperty("audioCodec") Optional audioCodec, - @JsonProperty("videoCodec") Optional videoCodec, - @JsonProperty("videoResolution") Optional videoResolution, - @JsonProperty("container") Optional container, - @JsonProperty("videoFrameRate") Optional videoFrameRate, - @JsonProperty("audioProfile") Optional audioProfile, - @JsonProperty("videoProfile") Optional videoProfile, - @JsonProperty("Part") Optional> part) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(duration, "duration"); - Utils.checkNotNull(bitrate, "bitrate"); - Utils.checkNotNull(width, "width"); - Utils.checkNotNull(height, "height"); - Utils.checkNotNull(aspectRatio, "aspectRatio"); - Utils.checkNotNull(audioChannels, "audioChannels"); - Utils.checkNotNull(audioCodec, "audioCodec"); - Utils.checkNotNull(videoCodec, "videoCodec"); - Utils.checkNotNull(videoResolution, "videoResolution"); - Utils.checkNotNull(container, "container"); - Utils.checkNotNull(videoFrameRate, "videoFrameRate"); - Utils.checkNotNull(audioProfile, "audioProfile"); - Utils.checkNotNull(videoProfile, "videoProfile"); - Utils.checkNotNull(part, "part"); - 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; - } - - public GetSearchResultsMedia() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional duration() { - return (Optional) duration; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional bitrate() { - return (Optional) bitrate; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional width() { - return (Optional) width; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional height() { - return (Optional) height; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional aspectRatio() { - return (Optional) aspectRatio; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audioChannels() { - return (Optional) audioChannels; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audioCodec() { - return (Optional) audioCodec; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional videoCodec() { - return (Optional) videoCodec; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional videoResolution() { - return (Optional) videoResolution; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional container() { - return (Optional) container; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional videoFrameRate() { - return (Optional) videoFrameRate; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audioProfile() { - return (Optional) audioProfile; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional videoProfile() { - return (Optional) videoProfile; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> part() { - return (Optional>) part; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetSearchResultsMedia withId(double id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public GetSearchResultsMedia withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public GetSearchResultsMedia withDuration(double duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public GetSearchResultsMedia withDuration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public GetSearchResultsMedia withBitrate(double bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = Optional.ofNullable(bitrate); - return this; - } - - public GetSearchResultsMedia withBitrate(Optional bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = bitrate; - return this; - } - - public GetSearchResultsMedia withWidth(double width) { - Utils.checkNotNull(width, "width"); - this.width = Optional.ofNullable(width); - return this; - } - - public GetSearchResultsMedia withWidth(Optional width) { - Utils.checkNotNull(width, "width"); - this.width = width; - return this; - } - - public GetSearchResultsMedia withHeight(double height) { - Utils.checkNotNull(height, "height"); - this.height = Optional.ofNullable(height); - return this; - } - - public GetSearchResultsMedia withHeight(Optional height) { - Utils.checkNotNull(height, "height"); - this.height = height; - return this; - } - - public GetSearchResultsMedia withAspectRatio(double aspectRatio) { - Utils.checkNotNull(aspectRatio, "aspectRatio"); - this.aspectRatio = Optional.ofNullable(aspectRatio); - return this; - } - - public GetSearchResultsMedia withAspectRatio(Optional aspectRatio) { - Utils.checkNotNull(aspectRatio, "aspectRatio"); - this.aspectRatio = aspectRatio; - return this; - } - - public GetSearchResultsMedia withAudioChannels(double audioChannels) { - Utils.checkNotNull(audioChannels, "audioChannels"); - this.audioChannels = Optional.ofNullable(audioChannels); - return this; - } - - public GetSearchResultsMedia withAudioChannels(Optional audioChannels) { - Utils.checkNotNull(audioChannels, "audioChannels"); - this.audioChannels = audioChannels; - return this; - } - - public GetSearchResultsMedia withAudioCodec(String audioCodec) { - Utils.checkNotNull(audioCodec, "audioCodec"); - this.audioCodec = Optional.ofNullable(audioCodec); - return this; - } - - public GetSearchResultsMedia withAudioCodec(Optional audioCodec) { - Utils.checkNotNull(audioCodec, "audioCodec"); - this.audioCodec = audioCodec; - return this; - } - - public GetSearchResultsMedia withVideoCodec(String videoCodec) { - Utils.checkNotNull(videoCodec, "videoCodec"); - this.videoCodec = Optional.ofNullable(videoCodec); - return this; - } - - public GetSearchResultsMedia withVideoCodec(Optional videoCodec) { - Utils.checkNotNull(videoCodec, "videoCodec"); - this.videoCodec = videoCodec; - return this; - } - - public GetSearchResultsMedia withVideoResolution(double videoResolution) { - Utils.checkNotNull(videoResolution, "videoResolution"); - this.videoResolution = Optional.ofNullable(videoResolution); - return this; - } - - public GetSearchResultsMedia withVideoResolution(Optional videoResolution) { - Utils.checkNotNull(videoResolution, "videoResolution"); - this.videoResolution = videoResolution; - return this; - } - - public GetSearchResultsMedia withContainer(String container) { - Utils.checkNotNull(container, "container"); - this.container = Optional.ofNullable(container); - return this; - } - - public GetSearchResultsMedia withContainer(Optional container) { - Utils.checkNotNull(container, "container"); - this.container = container; - return this; - } - - public GetSearchResultsMedia withVideoFrameRate(String videoFrameRate) { - Utils.checkNotNull(videoFrameRate, "videoFrameRate"); - this.videoFrameRate = Optional.ofNullable(videoFrameRate); - return this; - } - - public GetSearchResultsMedia withVideoFrameRate(Optional videoFrameRate) { - Utils.checkNotNull(videoFrameRate, "videoFrameRate"); - this.videoFrameRate = videoFrameRate; - return this; - } - - public GetSearchResultsMedia withAudioProfile(String audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = Optional.ofNullable(audioProfile); - return this; - } - - public GetSearchResultsMedia withAudioProfile(Optional audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = audioProfile; - return this; - } - - public GetSearchResultsMedia withVideoProfile(String videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = Optional.ofNullable(videoProfile); - return this; - } - - public GetSearchResultsMedia withVideoProfile(Optional videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = videoProfile; - return this; - } - - public GetSearchResultsMedia withPart(java.util.List part) { - Utils.checkNotNull(part, "part"); - this.part = Optional.ofNullable(part); - return this; - } - - public GetSearchResultsMedia withPart(Optional> part) { - Utils.checkNotNull(part, "part"); - this.part = part; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetSearchResultsMedia other = (GetSearchResultsMedia) o; - return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.duration, other.duration) && - java.util.Objects.deepEquals(this.bitrate, other.bitrate) && - java.util.Objects.deepEquals(this.width, other.width) && - java.util.Objects.deepEquals(this.height, other.height) && - java.util.Objects.deepEquals(this.aspectRatio, other.aspectRatio) && - java.util.Objects.deepEquals(this.audioChannels, other.audioChannels) && - java.util.Objects.deepEquals(this.audioCodec, other.audioCodec) && - java.util.Objects.deepEquals(this.videoCodec, other.videoCodec) && - java.util.Objects.deepEquals(this.videoResolution, other.videoResolution) && - java.util.Objects.deepEquals(this.container, other.container) && - java.util.Objects.deepEquals(this.videoFrameRate, other.videoFrameRate) && - java.util.Objects.deepEquals(this.audioProfile, other.audioProfile) && - java.util.Objects.deepEquals(this.videoProfile, other.videoProfile) && - java.util.Objects.deepEquals(this.part, other.part); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id, - duration, - bitrate, - width, - height, - aspectRatio, - audioChannels, - audioCodec, - videoCodec, - videoResolution, - container, - videoFrameRate, - audioProfile, - videoProfile, - part); - } - - @Override - public String toString() { - return Utils.toString(GetSearchResultsMedia.class, - "id", id, - "duration", duration, - "bitrate", bitrate, - "width", width, - "height", height, - "aspectRatio", aspectRatio, - "audioChannels", audioChannels, - "audioCodec", audioCodec, - "videoCodec", videoCodec, - "videoResolution", videoResolution, - "container", container, - "videoFrameRate", videoFrameRate, - "audioProfile", audioProfile, - "videoProfile", videoProfile, - "part", part); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional duration = Optional.empty(); - - private Optional bitrate = Optional.empty(); - - private Optional width = Optional.empty(); - - private Optional height = Optional.empty(); - - private Optional aspectRatio = Optional.empty(); - - private Optional audioChannels = Optional.empty(); - - private Optional audioCodec = Optional.empty(); - - private Optional videoCodec = Optional.empty(); - - private Optional videoResolution = Optional.empty(); - - private Optional container = Optional.empty(); - - private Optional videoFrameRate = Optional.empty(); - - private Optional audioProfile = Optional.empty(); - - private Optional videoProfile = Optional.empty(); - - private Optional> part = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(double id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder duration(double duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public Builder duration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public Builder bitrate(double bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = Optional.ofNullable(bitrate); - return this; - } - - public Builder bitrate(Optional bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = bitrate; - return this; - } - - public Builder width(double width) { - Utils.checkNotNull(width, "width"); - this.width = Optional.ofNullable(width); - return this; - } - - public Builder width(Optional width) { - Utils.checkNotNull(width, "width"); - this.width = width; - return this; - } - - public Builder height(double height) { - Utils.checkNotNull(height, "height"); - this.height = Optional.ofNullable(height); - return this; - } - - public Builder height(Optional height) { - Utils.checkNotNull(height, "height"); - this.height = height; - return this; - } - - public Builder aspectRatio(double aspectRatio) { - Utils.checkNotNull(aspectRatio, "aspectRatio"); - this.aspectRatio = Optional.ofNullable(aspectRatio); - return this; - } - - public Builder aspectRatio(Optional aspectRatio) { - Utils.checkNotNull(aspectRatio, "aspectRatio"); - this.aspectRatio = aspectRatio; - return this; - } - - public Builder audioChannels(double audioChannels) { - Utils.checkNotNull(audioChannels, "audioChannels"); - this.audioChannels = Optional.ofNullable(audioChannels); - return this; - } - - public Builder audioChannels(Optional audioChannels) { - Utils.checkNotNull(audioChannels, "audioChannels"); - this.audioChannels = audioChannels; - return this; - } - - public Builder audioCodec(String audioCodec) { - Utils.checkNotNull(audioCodec, "audioCodec"); - this.audioCodec = Optional.ofNullable(audioCodec); - return this; - } - - public Builder audioCodec(Optional audioCodec) { - Utils.checkNotNull(audioCodec, "audioCodec"); - this.audioCodec = audioCodec; - return this; - } - - public Builder videoCodec(String videoCodec) { - Utils.checkNotNull(videoCodec, "videoCodec"); - this.videoCodec = Optional.ofNullable(videoCodec); - return this; - } - - public Builder videoCodec(Optional videoCodec) { - Utils.checkNotNull(videoCodec, "videoCodec"); - this.videoCodec = videoCodec; - return this; - } - - public Builder videoResolution(double videoResolution) { - Utils.checkNotNull(videoResolution, "videoResolution"); - this.videoResolution = Optional.ofNullable(videoResolution); - return this; - } - - public Builder videoResolution(Optional videoResolution) { - Utils.checkNotNull(videoResolution, "videoResolution"); - this.videoResolution = videoResolution; - return this; - } - - public Builder container(String container) { - Utils.checkNotNull(container, "container"); - this.container = Optional.ofNullable(container); - return this; - } - - public Builder container(Optional container) { - Utils.checkNotNull(container, "container"); - this.container = container; - return this; - } - - public Builder videoFrameRate(String videoFrameRate) { - Utils.checkNotNull(videoFrameRate, "videoFrameRate"); - this.videoFrameRate = Optional.ofNullable(videoFrameRate); - return this; - } - - public Builder videoFrameRate(Optional videoFrameRate) { - Utils.checkNotNull(videoFrameRate, "videoFrameRate"); - this.videoFrameRate = videoFrameRate; - return this; - } - - public Builder audioProfile(String audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = Optional.ofNullable(audioProfile); - return this; - } - - public Builder audioProfile(Optional audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = audioProfile; - return this; - } - - public Builder videoProfile(String videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = Optional.ofNullable(videoProfile); - return this; - } - - public Builder videoProfile(Optional videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = videoProfile; - return this; - } - - public Builder part(java.util.List part) { - Utils.checkNotNull(part, "part"); - this.part = Optional.ofNullable(part); - return this; - } - - public Builder part(Optional> part) { - Utils.checkNotNull(part, "part"); - this.part = part; - return this; - } - - public GetSearchResultsMedia build() { - return new GetSearchResultsMedia( - id, - duration, - bitrate, - width, - height, - aspectRatio, - audioChannels, - audioCodec, - videoCodec, - videoResolution, - container, - videoFrameRate, - audioProfile, - videoProfile, - part); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsMediaContainer.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsMediaContainer.java deleted file mode 100644 index 8999b531..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsMediaContainer.java +++ /dev/null @@ -1,326 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetSearchResultsMediaContainer { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("identifier") - private Optional identifier; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("mediaTagPrefix") - private Optional mediaTagPrefix; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("mediaTagVersion") - private Optional mediaTagVersion; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Metadata") - private Optional> metadata; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Provider") - private Optional> provider; - - @JsonCreator - public GetSearchResultsMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("identifier") Optional identifier, - @JsonProperty("mediaTagPrefix") Optional mediaTagPrefix, - @JsonProperty("mediaTagVersion") Optional mediaTagVersion, - @JsonProperty("Metadata") Optional> metadata, - @JsonProperty("Provider") Optional> provider) { - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(identifier, "identifier"); - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(provider, "provider"); - this.size = size; - this.identifier = identifier; - this.mediaTagPrefix = mediaTagPrefix; - this.mediaTagVersion = mediaTagVersion; - this.metadata = metadata; - this.provider = provider; - } - - public GetSearchResultsMediaContainer() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional identifier() { - return (Optional) identifier; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaTagPrefix() { - return (Optional) mediaTagPrefix; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaTagVersion() { - return (Optional) mediaTagVersion; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> provider() { - return (Optional>) provider; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetSearchResultsMediaContainer withSize(double size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public GetSearchResultsMediaContainer withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public GetSearchResultsMediaContainer withIdentifier(String identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = Optional.ofNullable(identifier); - return this; - } - - public GetSearchResultsMediaContainer withIdentifier(Optional identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = identifier; - return this; - } - - public GetSearchResultsMediaContainer withMediaTagPrefix(String mediaTagPrefix) { - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - this.mediaTagPrefix = Optional.ofNullable(mediaTagPrefix); - return this; - } - - public GetSearchResultsMediaContainer withMediaTagPrefix(Optional mediaTagPrefix) { - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - this.mediaTagPrefix = mediaTagPrefix; - return this; - } - - public GetSearchResultsMediaContainer withMediaTagVersion(double mediaTagVersion) { - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - this.mediaTagVersion = Optional.ofNullable(mediaTagVersion); - return this; - } - - public GetSearchResultsMediaContainer withMediaTagVersion(Optional mediaTagVersion) { - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - this.mediaTagVersion = mediaTagVersion; - return this; - } - - public GetSearchResultsMediaContainer withMetadata(java.util.List metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public GetSearchResultsMediaContainer withMetadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public GetSearchResultsMediaContainer withProvider(java.util.List provider) { - Utils.checkNotNull(provider, "provider"); - this.provider = Optional.ofNullable(provider); - return this; - } - - public GetSearchResultsMediaContainer withProvider(Optional> provider) { - Utils.checkNotNull(provider, "provider"); - this.provider = provider; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetSearchResultsMediaContainer other = (GetSearchResultsMediaContainer) o; - return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.identifier, other.identifier) && - java.util.Objects.deepEquals(this.mediaTagPrefix, other.mediaTagPrefix) && - java.util.Objects.deepEquals(this.mediaTagVersion, other.mediaTagVersion) && - java.util.Objects.deepEquals(this.metadata, other.metadata) && - java.util.Objects.deepEquals(this.provider, other.provider); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - size, - identifier, - mediaTagPrefix, - mediaTagVersion, - metadata, - provider); - } - - @Override - public String toString() { - return Utils.toString(GetSearchResultsMediaContainer.class, - "size", size, - "identifier", identifier, - "mediaTagPrefix", mediaTagPrefix, - "mediaTagVersion", mediaTagVersion, - "metadata", metadata, - "provider", provider); - } - - public final static class Builder { - - private Optional size = Optional.empty(); - - private Optional identifier = Optional.empty(); - - private Optional mediaTagPrefix = Optional.empty(); - - private Optional mediaTagVersion = Optional.empty(); - - private Optional> metadata = Optional.empty(); - - private Optional> provider = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder size(double size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder identifier(String identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = Optional.ofNullable(identifier); - return this; - } - - public Builder identifier(Optional identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = identifier; - return this; - } - - public Builder mediaTagPrefix(String mediaTagPrefix) { - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - this.mediaTagPrefix = Optional.ofNullable(mediaTagPrefix); - return this; - } - - public Builder mediaTagPrefix(Optional mediaTagPrefix) { - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - this.mediaTagPrefix = mediaTagPrefix; - return this; - } - - public Builder mediaTagVersion(double mediaTagVersion) { - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - this.mediaTagVersion = Optional.ofNullable(mediaTagVersion); - return this; - } - - public Builder mediaTagVersion(Optional mediaTagVersion) { - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - this.mediaTagVersion = mediaTagVersion; - return this; - } - - public Builder metadata(java.util.List metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public Builder metadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public Builder provider(java.util.List provider) { - Utils.checkNotNull(provider, "provider"); - this.provider = Optional.ofNullable(provider); - return this; - } - - public Builder provider(Optional> provider) { - Utils.checkNotNull(provider, "provider"); - this.provider = provider; - return this; - } - - public GetSearchResultsMediaContainer build() { - return new GetSearchResultsMediaContainer( - size, - identifier, - mediaTagPrefix, - mediaTagVersion, - metadata, - provider); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsMetadata.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsMetadata.java deleted file mode 100644 index 8a14ba23..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsMetadata.java +++ /dev/null @@ -1,1533 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetSearchResultsMetadata { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("allowSync") - private Optional allowSync; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionID") - private Optional librarySectionID; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionTitle") - private Optional librarySectionTitle; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionUUID") - private Optional librarySectionUUID; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("personal") - private Optional personal; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("sourceTitle") - private Optional sourceTitle; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ratingKey") - private Optional ratingKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("guid") - private Optional guid; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("studio") - private Optional studio; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title") - private Optional title; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("contentRating") - private Optional contentRating; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("summary") - private Optional summary; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("rating") - private Optional rating; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audienceRating") - private Optional audienceRating; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("year") - private Optional year; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tagline") - private Optional tagline; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("thumb") - private Optional thumb; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("art") - private Optional art; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("duration") - private Optional duration; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("originallyAvailableAt") - private Optional originallyAvailableAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("addedAt") - private Optional addedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updatedAt") - private Optional updatedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audienceRatingImage") - private Optional audienceRatingImage; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("chapterSource") - private Optional chapterSource; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("primaryExtraKey") - private Optional primaryExtraKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ratingImage") - private Optional ratingImage; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Media") - private Optional> media; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Genre") - private Optional> genre; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Director") - private Optional> director; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Writer") - private Optional> writer; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Country") - private Optional> country; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Role") - private Optional> role; - - @JsonCreator - public GetSearchResultsMetadata( - @JsonProperty("allowSync") Optional allowSync, - @JsonProperty("librarySectionID") Optional librarySectionID, - @JsonProperty("librarySectionTitle") Optional librarySectionTitle, - @JsonProperty("librarySectionUUID") Optional librarySectionUUID, - @JsonProperty("personal") Optional personal, - @JsonProperty("sourceTitle") Optional sourceTitle, - @JsonProperty("ratingKey") Optional ratingKey, - @JsonProperty("key") Optional key, - @JsonProperty("guid") Optional guid, - @JsonProperty("studio") Optional studio, - @JsonProperty("type") Optional type, - @JsonProperty("title") Optional title, - @JsonProperty("contentRating") Optional contentRating, - @JsonProperty("summary") Optional summary, - @JsonProperty("rating") Optional rating, - @JsonProperty("audienceRating") Optional audienceRating, - @JsonProperty("year") Optional year, - @JsonProperty("tagline") Optional tagline, - @JsonProperty("thumb") Optional thumb, - @JsonProperty("art") Optional art, - @JsonProperty("duration") Optional duration, - @JsonProperty("originallyAvailableAt") Optional originallyAvailableAt, - @JsonProperty("addedAt") Optional addedAt, - @JsonProperty("updatedAt") Optional updatedAt, - @JsonProperty("audienceRatingImage") Optional audienceRatingImage, - @JsonProperty("chapterSource") Optional chapterSource, - @JsonProperty("primaryExtraKey") Optional primaryExtraKey, - @JsonProperty("ratingImage") Optional ratingImage, - @JsonProperty("Media") Optional> media, - @JsonProperty("Genre") Optional> genre, - @JsonProperty("Director") Optional> director, - @JsonProperty("Writer") Optional> writer, - @JsonProperty("Country") Optional> country, - @JsonProperty("Role") Optional> role) { - Utils.checkNotNull(allowSync, "allowSync"); - Utils.checkNotNull(librarySectionID, "librarySectionID"); - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); - Utils.checkNotNull(personal, "personal"); - Utils.checkNotNull(sourceTitle, "sourceTitle"); - Utils.checkNotNull(ratingKey, "ratingKey"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(guid, "guid"); - Utils.checkNotNull(studio, "studio"); - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(title, "title"); - Utils.checkNotNull(contentRating, "contentRating"); - Utils.checkNotNull(summary, "summary"); - Utils.checkNotNull(rating, "rating"); - Utils.checkNotNull(audienceRating, "audienceRating"); - Utils.checkNotNull(year, "year"); - Utils.checkNotNull(tagline, "tagline"); - Utils.checkNotNull(thumb, "thumb"); - Utils.checkNotNull(art, "art"); - Utils.checkNotNull(duration, "duration"); - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - Utils.checkNotNull(addedAt, "addedAt"); - Utils.checkNotNull(updatedAt, "updatedAt"); - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - Utils.checkNotNull(chapterSource, "chapterSource"); - Utils.checkNotNull(primaryExtraKey, "primaryExtraKey"); - Utils.checkNotNull(ratingImage, "ratingImage"); - Utils.checkNotNull(media, "media"); - Utils.checkNotNull(genre, "genre"); - Utils.checkNotNull(director, "director"); - Utils.checkNotNull(writer, "writer"); - Utils.checkNotNull(country, "country"); - Utils.checkNotNull(role, "role"); - 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; - } - - public GetSearchResultsMetadata() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional allowSync() { - return (Optional) allowSync; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionID() { - return (Optional) librarySectionID; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionTitle() { - return (Optional) librarySectionTitle; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionUUID() { - return (Optional) librarySectionUUID; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional personal() { - return (Optional) personal; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional sourceTitle() { - return (Optional) sourceTitle; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional ratingKey() { - return (Optional) ratingKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional guid() { - return (Optional) guid; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional studio() { - return (Optional) studio; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title() { - return (Optional) title; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional contentRating() { - return (Optional) contentRating; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional summary() { - return (Optional) summary; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional rating() { - return (Optional) rating; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audienceRating() { - return (Optional) audienceRating; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional year() { - return (Optional) year; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tagline() { - return (Optional) tagline; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional thumb() { - return (Optional) thumb; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional art() { - return (Optional) art; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional duration() { - return (Optional) duration; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional originallyAvailableAt() { - return (Optional) originallyAvailableAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional addedAt() { - return (Optional) addedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional updatedAt() { - return (Optional) updatedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audienceRatingImage() { - return (Optional) audienceRatingImage; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional chapterSource() { - return (Optional) chapterSource; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional primaryExtraKey() { - return (Optional) primaryExtraKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional ratingImage() { - return (Optional) ratingImage; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> media() { - return (Optional>) media; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> genre() { - return (Optional>) genre; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> director() { - return (Optional>) director; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> writer() { - return (Optional>) writer; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> country() { - return (Optional>) country; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> role() { - return (Optional>) role; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetSearchResultsMetadata withAllowSync(boolean allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = Optional.ofNullable(allowSync); - return this; - } - - public GetSearchResultsMetadata withAllowSync(Optional allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = allowSync; - return this; - } - - public GetSearchResultsMetadata withLibrarySectionID(double librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = Optional.ofNullable(librarySectionID); - return this; - } - - public GetSearchResultsMetadata withLibrarySectionID(Optional librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = librarySectionID; - return this; - } - - public GetSearchResultsMetadata withLibrarySectionTitle(String librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = Optional.ofNullable(librarySectionTitle); - return this; - } - - public GetSearchResultsMetadata withLibrarySectionTitle(Optional librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = librarySectionTitle; - return this; - } - - public GetSearchResultsMetadata withLibrarySectionUUID(String librarySectionUUID) { - Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); - this.librarySectionUUID = Optional.ofNullable(librarySectionUUID); - return this; - } - - public GetSearchResultsMetadata withLibrarySectionUUID(Optional librarySectionUUID) { - Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); - this.librarySectionUUID = librarySectionUUID; - return this; - } - - public GetSearchResultsMetadata withPersonal(boolean personal) { - Utils.checkNotNull(personal, "personal"); - this.personal = Optional.ofNullable(personal); - return this; - } - - public GetSearchResultsMetadata withPersonal(Optional personal) { - Utils.checkNotNull(personal, "personal"); - this.personal = personal; - return this; - } - - public GetSearchResultsMetadata withSourceTitle(String sourceTitle) { - Utils.checkNotNull(sourceTitle, "sourceTitle"); - this.sourceTitle = Optional.ofNullable(sourceTitle); - return this; - } - - public GetSearchResultsMetadata withSourceTitle(Optional sourceTitle) { - Utils.checkNotNull(sourceTitle, "sourceTitle"); - this.sourceTitle = sourceTitle; - return this; - } - - public GetSearchResultsMetadata withRatingKey(double ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public GetSearchResultsMetadata withRatingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public GetSearchResultsMetadata withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public GetSearchResultsMetadata withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public GetSearchResultsMetadata withGuid(String guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = Optional.ofNullable(guid); - return this; - } - - public GetSearchResultsMetadata withGuid(Optional guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = guid; - return this; - } - - public GetSearchResultsMetadata withStudio(String studio) { - Utils.checkNotNull(studio, "studio"); - this.studio = Optional.ofNullable(studio); - return this; - } - - public GetSearchResultsMetadata withStudio(Optional studio) { - Utils.checkNotNull(studio, "studio"); - this.studio = studio; - return this; - } - - public GetSearchResultsMetadata withType(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public GetSearchResultsMetadata withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public GetSearchResultsMetadata withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public GetSearchResultsMetadata withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public GetSearchResultsMetadata withContentRating(String contentRating) { - Utils.checkNotNull(contentRating, "contentRating"); - this.contentRating = Optional.ofNullable(contentRating); - return this; - } - - public GetSearchResultsMetadata withContentRating(Optional contentRating) { - Utils.checkNotNull(contentRating, "contentRating"); - this.contentRating = contentRating; - return this; - } - - public GetSearchResultsMetadata withSummary(String summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = Optional.ofNullable(summary); - return this; - } - - public GetSearchResultsMetadata withSummary(Optional summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = summary; - return this; - } - - public GetSearchResultsMetadata withRating(double rating) { - Utils.checkNotNull(rating, "rating"); - this.rating = Optional.ofNullable(rating); - return this; - } - - public GetSearchResultsMetadata withRating(Optional rating) { - Utils.checkNotNull(rating, "rating"); - this.rating = rating; - return this; - } - - public GetSearchResultsMetadata withAudienceRating(double audienceRating) { - Utils.checkNotNull(audienceRating, "audienceRating"); - this.audienceRating = Optional.ofNullable(audienceRating); - return this; - } - - public GetSearchResultsMetadata withAudienceRating(Optional audienceRating) { - Utils.checkNotNull(audienceRating, "audienceRating"); - this.audienceRating = audienceRating; - return this; - } - - public GetSearchResultsMetadata withYear(double year) { - Utils.checkNotNull(year, "year"); - this.year = Optional.ofNullable(year); - return this; - } - - public GetSearchResultsMetadata withYear(Optional year) { - Utils.checkNotNull(year, "year"); - this.year = year; - return this; - } - - public GetSearchResultsMetadata withTagline(String tagline) { - Utils.checkNotNull(tagline, "tagline"); - this.tagline = Optional.ofNullable(tagline); - return this; - } - - public GetSearchResultsMetadata withTagline(Optional tagline) { - Utils.checkNotNull(tagline, "tagline"); - this.tagline = tagline; - return this; - } - - public GetSearchResultsMetadata withThumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public GetSearchResultsMetadata withThumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public GetSearchResultsMetadata withArt(String art) { - Utils.checkNotNull(art, "art"); - this.art = Optional.ofNullable(art); - return this; - } - - public GetSearchResultsMetadata withArt(Optional art) { - Utils.checkNotNull(art, "art"); - this.art = art; - return this; - } - - public GetSearchResultsMetadata withDuration(double duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public GetSearchResultsMetadata withDuration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public GetSearchResultsMetadata withOriginallyAvailableAt(OffsetDateTime originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = Optional.ofNullable(originallyAvailableAt); - return this; - } - - public GetSearchResultsMetadata withOriginallyAvailableAt(Optional originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = originallyAvailableAt; - return this; - } - - public GetSearchResultsMetadata withAddedAt(double addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = Optional.ofNullable(addedAt); - return this; - } - - public GetSearchResultsMetadata withAddedAt(Optional addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = addedAt; - return this; - } - - public GetSearchResultsMetadata withUpdatedAt(double updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public GetSearchResultsMetadata withUpdatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public GetSearchResultsMetadata withAudienceRatingImage(String audienceRatingImage) { - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - this.audienceRatingImage = Optional.ofNullable(audienceRatingImage); - return this; - } - - public GetSearchResultsMetadata withAudienceRatingImage(Optional audienceRatingImage) { - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - this.audienceRatingImage = audienceRatingImage; - return this; - } - - public GetSearchResultsMetadata withChapterSource(String chapterSource) { - Utils.checkNotNull(chapterSource, "chapterSource"); - this.chapterSource = Optional.ofNullable(chapterSource); - return this; - } - - public GetSearchResultsMetadata withChapterSource(Optional chapterSource) { - Utils.checkNotNull(chapterSource, "chapterSource"); - this.chapterSource = chapterSource; - return this; - } - - public GetSearchResultsMetadata withPrimaryExtraKey(String primaryExtraKey) { - Utils.checkNotNull(primaryExtraKey, "primaryExtraKey"); - this.primaryExtraKey = Optional.ofNullable(primaryExtraKey); - return this; - } - - public GetSearchResultsMetadata withPrimaryExtraKey(Optional primaryExtraKey) { - Utils.checkNotNull(primaryExtraKey, "primaryExtraKey"); - this.primaryExtraKey = primaryExtraKey; - return this; - } - - public GetSearchResultsMetadata withRatingImage(String ratingImage) { - Utils.checkNotNull(ratingImage, "ratingImage"); - this.ratingImage = Optional.ofNullable(ratingImage); - return this; - } - - public GetSearchResultsMetadata withRatingImage(Optional ratingImage) { - Utils.checkNotNull(ratingImage, "ratingImage"); - this.ratingImage = ratingImage; - return this; - } - - public GetSearchResultsMetadata withMedia(java.util.List media) { - Utils.checkNotNull(media, "media"); - this.media = Optional.ofNullable(media); - return this; - } - - public GetSearchResultsMetadata withMedia(Optional> media) { - Utils.checkNotNull(media, "media"); - this.media = media; - return this; - } - - public GetSearchResultsMetadata withGenre(java.util.List genre) { - Utils.checkNotNull(genre, "genre"); - this.genre = Optional.ofNullable(genre); - return this; - } - - public GetSearchResultsMetadata withGenre(Optional> genre) { - Utils.checkNotNull(genre, "genre"); - this.genre = genre; - return this; - } - - public GetSearchResultsMetadata withDirector(java.util.List director) { - Utils.checkNotNull(director, "director"); - this.director = Optional.ofNullable(director); - return this; - } - - public GetSearchResultsMetadata withDirector(Optional> director) { - Utils.checkNotNull(director, "director"); - this.director = director; - return this; - } - - public GetSearchResultsMetadata withWriter(java.util.List writer) { - Utils.checkNotNull(writer, "writer"); - this.writer = Optional.ofNullable(writer); - return this; - } - - public GetSearchResultsMetadata withWriter(Optional> writer) { - Utils.checkNotNull(writer, "writer"); - this.writer = writer; - return this; - } - - public GetSearchResultsMetadata withCountry(java.util.List country) { - Utils.checkNotNull(country, "country"); - this.country = Optional.ofNullable(country); - return this; - } - - public GetSearchResultsMetadata withCountry(Optional> country) { - Utils.checkNotNull(country, "country"); - this.country = country; - return this; - } - - public GetSearchResultsMetadata withRole(java.util.List role) { - Utils.checkNotNull(role, "role"); - this.role = Optional.ofNullable(role); - return this; - } - - public GetSearchResultsMetadata withRole(Optional> role) { - Utils.checkNotNull(role, "role"); - this.role = role; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetSearchResultsMetadata other = (GetSearchResultsMetadata) o; - return - java.util.Objects.deepEquals(this.allowSync, other.allowSync) && - java.util.Objects.deepEquals(this.librarySectionID, other.librarySectionID) && - java.util.Objects.deepEquals(this.librarySectionTitle, other.librarySectionTitle) && - java.util.Objects.deepEquals(this.librarySectionUUID, other.librarySectionUUID) && - java.util.Objects.deepEquals(this.personal, other.personal) && - java.util.Objects.deepEquals(this.sourceTitle, other.sourceTitle) && - java.util.Objects.deepEquals(this.ratingKey, other.ratingKey) && - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.guid, other.guid) && - java.util.Objects.deepEquals(this.studio, other.studio) && - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.title, other.title) && - java.util.Objects.deepEquals(this.contentRating, other.contentRating) && - java.util.Objects.deepEquals(this.summary, other.summary) && - java.util.Objects.deepEquals(this.rating, other.rating) && - java.util.Objects.deepEquals(this.audienceRating, other.audienceRating) && - java.util.Objects.deepEquals(this.year, other.year) && - java.util.Objects.deepEquals(this.tagline, other.tagline) && - java.util.Objects.deepEquals(this.thumb, other.thumb) && - java.util.Objects.deepEquals(this.art, other.art) && - java.util.Objects.deepEquals(this.duration, other.duration) && - java.util.Objects.deepEquals(this.originallyAvailableAt, other.originallyAvailableAt) && - java.util.Objects.deepEquals(this.addedAt, other.addedAt) && - java.util.Objects.deepEquals(this.updatedAt, other.updatedAt) && - java.util.Objects.deepEquals(this.audienceRatingImage, other.audienceRatingImage) && - java.util.Objects.deepEquals(this.chapterSource, other.chapterSource) && - java.util.Objects.deepEquals(this.primaryExtraKey, other.primaryExtraKey) && - java.util.Objects.deepEquals(this.ratingImage, other.ratingImage) && - java.util.Objects.deepEquals(this.media, other.media) && - java.util.Objects.deepEquals(this.genre, other.genre) && - java.util.Objects.deepEquals(this.director, other.director) && - java.util.Objects.deepEquals(this.writer, other.writer) && - java.util.Objects.deepEquals(this.country, other.country) && - java.util.Objects.deepEquals(this.role, other.role); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - allowSync, - librarySectionID, - librarySectionTitle, - librarySectionUUID, - personal, - sourceTitle, - ratingKey, - key, - guid, - studio, - type, - title, - contentRating, - summary, - rating, - audienceRating, - year, - tagline, - thumb, - art, - duration, - originallyAvailableAt, - addedAt, - updatedAt, - audienceRatingImage, - chapterSource, - primaryExtraKey, - ratingImage, - media, - genre, - director, - writer, - country, - role); - } - - @Override - public String toString() { - return Utils.toString(GetSearchResultsMetadata.class, - "allowSync", allowSync, - "librarySectionID", librarySectionID, - "librarySectionTitle", librarySectionTitle, - "librarySectionUUID", librarySectionUUID, - "personal", personal, - "sourceTitle", sourceTitle, - "ratingKey", ratingKey, - "key", key, - "guid", guid, - "studio", studio, - "type", type, - "title", title, - "contentRating", contentRating, - "summary", summary, - "rating", rating, - "audienceRating", audienceRating, - "year", year, - "tagline", tagline, - "thumb", thumb, - "art", art, - "duration", duration, - "originallyAvailableAt", originallyAvailableAt, - "addedAt", addedAt, - "updatedAt", updatedAt, - "audienceRatingImage", audienceRatingImage, - "chapterSource", chapterSource, - "primaryExtraKey", primaryExtraKey, - "ratingImage", ratingImage, - "media", media, - "genre", genre, - "director", director, - "writer", writer, - "country", country, - "role", role); - } - - public final static class Builder { - - private Optional allowSync = Optional.empty(); - - private Optional librarySectionID = Optional.empty(); - - private Optional librarySectionTitle = Optional.empty(); - - private Optional librarySectionUUID = Optional.empty(); - - private Optional personal = Optional.empty(); - - private Optional sourceTitle = Optional.empty(); - - private Optional ratingKey = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional guid = Optional.empty(); - - private Optional studio = Optional.empty(); - - private Optional type = Optional.empty(); - - private Optional title = Optional.empty(); - - private Optional contentRating = Optional.empty(); - - private Optional summary = Optional.empty(); - - private Optional rating = Optional.empty(); - - private Optional audienceRating = Optional.empty(); - - private Optional year = Optional.empty(); - - private Optional tagline = Optional.empty(); - - private Optional thumb = Optional.empty(); - - private Optional art = Optional.empty(); - - private Optional duration = Optional.empty(); - - private Optional originallyAvailableAt = Optional.empty(); - - private Optional addedAt = Optional.empty(); - - private Optional updatedAt = Optional.empty(); - - private Optional audienceRatingImage = Optional.empty(); - - private Optional chapterSource = Optional.empty(); - - private Optional primaryExtraKey = Optional.empty(); - - private Optional ratingImage = Optional.empty(); - - private Optional> media = Optional.empty(); - - private Optional> genre = Optional.empty(); - - private Optional> director = Optional.empty(); - - private Optional> writer = Optional.empty(); - - private Optional> country = Optional.empty(); - - private Optional> role = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder allowSync(boolean allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = Optional.ofNullable(allowSync); - return this; - } - - public Builder allowSync(Optional allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = allowSync; - return this; - } - - public Builder librarySectionID(double librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = Optional.ofNullable(librarySectionID); - return this; - } - - public Builder librarySectionID(Optional librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = librarySectionID; - return this; - } - - public Builder librarySectionTitle(String librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = Optional.ofNullable(librarySectionTitle); - return this; - } - - public Builder librarySectionTitle(Optional librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = librarySectionTitle; - return this; - } - - public Builder librarySectionUUID(String librarySectionUUID) { - Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); - this.librarySectionUUID = Optional.ofNullable(librarySectionUUID); - return this; - } - - public Builder librarySectionUUID(Optional librarySectionUUID) { - Utils.checkNotNull(librarySectionUUID, "librarySectionUUID"); - this.librarySectionUUID = librarySectionUUID; - return this; - } - - public Builder personal(boolean personal) { - Utils.checkNotNull(personal, "personal"); - this.personal = Optional.ofNullable(personal); - return this; - } - - public Builder personal(Optional personal) { - Utils.checkNotNull(personal, "personal"); - this.personal = personal; - return this; - } - - public Builder sourceTitle(String sourceTitle) { - Utils.checkNotNull(sourceTitle, "sourceTitle"); - this.sourceTitle = Optional.ofNullable(sourceTitle); - return this; - } - - public Builder sourceTitle(Optional sourceTitle) { - Utils.checkNotNull(sourceTitle, "sourceTitle"); - this.sourceTitle = sourceTitle; - return this; - } - - public Builder ratingKey(double ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public Builder ratingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder guid(String guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = Optional.ofNullable(guid); - return this; - } - - public Builder guid(Optional guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = guid; - return this; - } - - public Builder studio(String studio) { - Utils.checkNotNull(studio, "studio"); - this.studio = Optional.ofNullable(studio); - return this; - } - - public Builder studio(Optional studio) { - Utils.checkNotNull(studio, "studio"); - this.studio = studio; - return this; - } - - public Builder type(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Builder contentRating(String contentRating) { - Utils.checkNotNull(contentRating, "contentRating"); - this.contentRating = Optional.ofNullable(contentRating); - return this; - } - - public Builder contentRating(Optional contentRating) { - Utils.checkNotNull(contentRating, "contentRating"); - this.contentRating = contentRating; - return this; - } - - public Builder summary(String summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = Optional.ofNullable(summary); - return this; - } - - public Builder summary(Optional summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = summary; - return this; - } - - public Builder rating(double rating) { - Utils.checkNotNull(rating, "rating"); - this.rating = Optional.ofNullable(rating); - return this; - } - - public Builder rating(Optional rating) { - Utils.checkNotNull(rating, "rating"); - this.rating = rating; - return this; - } - - public Builder audienceRating(double audienceRating) { - Utils.checkNotNull(audienceRating, "audienceRating"); - this.audienceRating = Optional.ofNullable(audienceRating); - return this; - } - - public Builder audienceRating(Optional audienceRating) { - Utils.checkNotNull(audienceRating, "audienceRating"); - this.audienceRating = audienceRating; - return this; - } - - public Builder year(double year) { - Utils.checkNotNull(year, "year"); - this.year = Optional.ofNullable(year); - return this; - } - - public Builder year(Optional year) { - Utils.checkNotNull(year, "year"); - this.year = year; - return this; - } - - public Builder tagline(String tagline) { - Utils.checkNotNull(tagline, "tagline"); - this.tagline = Optional.ofNullable(tagline); - return this; - } - - public Builder tagline(Optional tagline) { - Utils.checkNotNull(tagline, "tagline"); - this.tagline = tagline; - return this; - } - - public Builder thumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public Builder thumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public Builder art(String art) { - Utils.checkNotNull(art, "art"); - this.art = Optional.ofNullable(art); - return this; - } - - public Builder art(Optional art) { - Utils.checkNotNull(art, "art"); - this.art = art; - return this; - } - - public Builder duration(double duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public Builder duration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public Builder originallyAvailableAt(OffsetDateTime originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = Optional.ofNullable(originallyAvailableAt); - return this; - } - - public Builder originallyAvailableAt(Optional originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = originallyAvailableAt; - return this; - } - - public Builder addedAt(double addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = Optional.ofNullable(addedAt); - return this; - } - - public Builder addedAt(Optional addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = addedAt; - return this; - } - - public Builder updatedAt(double updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public Builder updatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public Builder audienceRatingImage(String audienceRatingImage) { - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - this.audienceRatingImage = Optional.ofNullable(audienceRatingImage); - return this; - } - - public Builder audienceRatingImage(Optional audienceRatingImage) { - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - this.audienceRatingImage = audienceRatingImage; - return this; - } - - public Builder chapterSource(String chapterSource) { - Utils.checkNotNull(chapterSource, "chapterSource"); - this.chapterSource = Optional.ofNullable(chapterSource); - return this; - } - - public Builder chapterSource(Optional chapterSource) { - Utils.checkNotNull(chapterSource, "chapterSource"); - this.chapterSource = chapterSource; - return this; - } - - public Builder primaryExtraKey(String primaryExtraKey) { - Utils.checkNotNull(primaryExtraKey, "primaryExtraKey"); - this.primaryExtraKey = Optional.ofNullable(primaryExtraKey); - return this; - } - - public Builder primaryExtraKey(Optional primaryExtraKey) { - Utils.checkNotNull(primaryExtraKey, "primaryExtraKey"); - this.primaryExtraKey = primaryExtraKey; - return this; - } - - public Builder ratingImage(String ratingImage) { - Utils.checkNotNull(ratingImage, "ratingImage"); - this.ratingImage = Optional.ofNullable(ratingImage); - return this; - } - - public Builder ratingImage(Optional ratingImage) { - Utils.checkNotNull(ratingImage, "ratingImage"); - this.ratingImage = ratingImage; - return this; - } - - public Builder media(java.util.List media) { - Utils.checkNotNull(media, "media"); - this.media = Optional.ofNullable(media); - return this; - } - - public Builder media(Optional> media) { - Utils.checkNotNull(media, "media"); - this.media = media; - return this; - } - - public Builder genre(java.util.List genre) { - Utils.checkNotNull(genre, "genre"); - this.genre = Optional.ofNullable(genre); - return this; - } - - public Builder genre(Optional> genre) { - Utils.checkNotNull(genre, "genre"); - this.genre = genre; - return this; - } - - public Builder director(java.util.List director) { - Utils.checkNotNull(director, "director"); - this.director = Optional.ofNullable(director); - return this; - } - - public Builder director(Optional> director) { - Utils.checkNotNull(director, "director"); - this.director = director; - return this; - } - - public Builder writer(java.util.List writer) { - Utils.checkNotNull(writer, "writer"); - this.writer = Optional.ofNullable(writer); - return this; - } - - public Builder writer(Optional> writer) { - Utils.checkNotNull(writer, "writer"); - this.writer = writer; - return this; - } - - public Builder country(java.util.List country) { - Utils.checkNotNull(country, "country"); - this.country = Optional.ofNullable(country); - return this; - } - - public Builder country(Optional> country) { - Utils.checkNotNull(country, "country"); - this.country = country; - return this; - } - - public Builder role(java.util.List role) { - Utils.checkNotNull(role, "role"); - this.role = Optional.ofNullable(role); - return this; - } - - public Builder role(Optional> role) { - Utils.checkNotNull(role, "role"); - this.role = role; - return this; - } - - public GetSearchResultsMetadata build() { - return new GetSearchResultsMetadata( - allowSync, - librarySectionID, - librarySectionTitle, - librarySectionUUID, - personal, - sourceTitle, - ratingKey, - key, - guid, - studio, - type, - title, - contentRating, - summary, - rating, - audienceRating, - year, - tagline, - thumb, - art, - duration, - originallyAvailableAt, - addedAt, - updatedAt, - audienceRatingImage, - chapterSource, - primaryExtraKey, - ratingImage, - media, - genre, - director, - writer, - country, - role); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsPart.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsPart.java deleted file mode 100644 index 5cdc853c..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsPart.java +++ /dev/null @@ -1,412 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetSearchResultsPart { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("duration") - private Optional duration; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("file") - private Optional file; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audioProfile") - private Optional audioProfile; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("container") - private Optional container; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("videoProfile") - private Optional videoProfile; - - @JsonCreator - public GetSearchResultsPart( - @JsonProperty("id") Optional id, - @JsonProperty("key") Optional key, - @JsonProperty("duration") Optional duration, - @JsonProperty("file") Optional file, - @JsonProperty("size") Optional size, - @JsonProperty("audioProfile") Optional audioProfile, - @JsonProperty("container") Optional container, - @JsonProperty("videoProfile") Optional videoProfile) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(duration, "duration"); - Utils.checkNotNull(file, "file"); - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(audioProfile, "audioProfile"); - Utils.checkNotNull(container, "container"); - Utils.checkNotNull(videoProfile, "videoProfile"); - this.id = id; - this.key = key; - this.duration = duration; - this.file = file; - this.size = size; - this.audioProfile = audioProfile; - this.container = container; - this.videoProfile = videoProfile; - } - - public GetSearchResultsPart() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional duration() { - return (Optional) duration; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional file() { - return (Optional) file; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audioProfile() { - return (Optional) audioProfile; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional container() { - return (Optional) container; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional videoProfile() { - return (Optional) videoProfile; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetSearchResultsPart withId(double id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public GetSearchResultsPart withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public GetSearchResultsPart withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public GetSearchResultsPart withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public GetSearchResultsPart withDuration(double duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public GetSearchResultsPart withDuration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public GetSearchResultsPart withFile(String file) { - Utils.checkNotNull(file, "file"); - this.file = Optional.ofNullable(file); - return this; - } - - public GetSearchResultsPart withFile(Optional file) { - Utils.checkNotNull(file, "file"); - this.file = file; - return this; - } - - public GetSearchResultsPart withSize(double size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public GetSearchResultsPart withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public GetSearchResultsPart withAudioProfile(String audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = Optional.ofNullable(audioProfile); - return this; - } - - public GetSearchResultsPart withAudioProfile(Optional audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = audioProfile; - return this; - } - - public GetSearchResultsPart withContainer(String container) { - Utils.checkNotNull(container, "container"); - this.container = Optional.ofNullable(container); - return this; - } - - public GetSearchResultsPart withContainer(Optional container) { - Utils.checkNotNull(container, "container"); - this.container = container; - return this; - } - - public GetSearchResultsPart withVideoProfile(String videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = Optional.ofNullable(videoProfile); - return this; - } - - public GetSearchResultsPart withVideoProfile(Optional videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = videoProfile; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetSearchResultsPart other = (GetSearchResultsPart) o; - return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.duration, other.duration) && - java.util.Objects.deepEquals(this.file, other.file) && - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.audioProfile, other.audioProfile) && - java.util.Objects.deepEquals(this.container, other.container) && - java.util.Objects.deepEquals(this.videoProfile, other.videoProfile); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id, - key, - duration, - file, - size, - audioProfile, - container, - videoProfile); - } - - @Override - public String toString() { - return Utils.toString(GetSearchResultsPart.class, - "id", id, - "key", key, - "duration", duration, - "file", file, - "size", size, - "audioProfile", audioProfile, - "container", container, - "videoProfile", videoProfile); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional duration = Optional.empty(); - - private Optional file = Optional.empty(); - - private Optional size = Optional.empty(); - - private Optional audioProfile = Optional.empty(); - - private Optional container = Optional.empty(); - - private Optional videoProfile = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(double id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder duration(double duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public Builder duration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public Builder file(String file) { - Utils.checkNotNull(file, "file"); - this.file = Optional.ofNullable(file); - return this; - } - - public Builder file(Optional file) { - Utils.checkNotNull(file, "file"); - this.file = file; - return this; - } - - public Builder size(double size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder audioProfile(String audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = Optional.ofNullable(audioProfile); - return this; - } - - public Builder audioProfile(Optional audioProfile) { - Utils.checkNotNull(audioProfile, "audioProfile"); - this.audioProfile = audioProfile; - return this; - } - - public Builder container(String container) { - Utils.checkNotNull(container, "container"); - this.container = Optional.ofNullable(container); - return this; - } - - public Builder container(Optional container) { - Utils.checkNotNull(container, "container"); - this.container = container; - return this; - } - - public Builder videoProfile(String videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = Optional.ofNullable(videoProfile); - return this; - } - - public Builder videoProfile(Optional videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = videoProfile; - return this; - } - - public GetSearchResultsPart build() { - return new GetSearchResultsPart( - id, - key, - duration, - file, - size, - audioProfile, - container, - videoProfile); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsRequest.java deleted file mode 100644 index 680e3e4d..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsRequest.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetSearchResultsRequest { - - /** - * The search query string to use - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=query") - private String query; - - @JsonCreator - public GetSearchResultsRequest( - String query) { - Utils.checkNotNull(query, "query"); - this.query = query; - } - - /** - * The search query string to use - */ - @JsonIgnore - public String query() { - return query; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * The search query string to use - */ - public GetSearchResultsRequest withQuery(String query) { - Utils.checkNotNull(query, "query"); - this.query = query; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetSearchResultsRequest other = (GetSearchResultsRequest) o; - return - java.util.Objects.deepEquals(this.query, other.query); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - query); - } - - @Override - public String toString() { - return Utils.toString(GetSearchResultsRequest.class, - "query", query); - } - - public final static class Builder { - - private String query; - - private Builder() { - // force use of static builder() method - } - - /** - * The search query string to use - */ - public Builder query(String query) { - Utils.checkNotNull(query, "query"); - this.query = query; - return this; - } - - public GetSearchResultsRequest build() { - return new GetSearchResultsRequest( - query); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsRequestBuilder.java deleted file mode 100644 index 38d90152..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsRequestBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetSearchResultsRequestBuilder { - - private String query; - private final SDKMethodInterfaces.MethodCallGetSearchResults sdk; - - public GetSearchResultsRequestBuilder(SDKMethodInterfaces.MethodCallGetSearchResults sdk) { - this.sdk = sdk; - } - - public GetSearchResultsRequestBuilder query(String query) { - Utils.checkNotNull(query, "query"); - this.query = query; - return this; - } - - public GetSearchResultsResponse call() throws Exception { - - return sdk.getSearchResults( - query); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsResponse.java deleted file mode 100644 index b53a1c47..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsResponse.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetSearchResultsResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Search Results - */ - private Optional object; - - @JsonCreator - public GetSearchResultsResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional object) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.object = object; - } - - public GetSearchResultsResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Search Results - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional object() { - return (Optional) object; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetSearchResultsResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetSearchResultsResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetSearchResultsResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Search Results - */ - public GetSearchResultsResponse withObject(GetSearchResultsResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * Search Results - */ - public GetSearchResultsResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetSearchResultsResponse other = (GetSearchResultsResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.object, other.object); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse, - object); - } - - @Override - public String toString() { - return Utils.toString(GetSearchResultsResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "object", object); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional object = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Search Results - */ - public Builder object(GetSearchResultsResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * Search Results - */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - public GetSearchResultsResponse build() { - return new GetSearchResultsResponse( - contentType, - statusCode, - rawResponse, - object); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsResponseBody.java deleted file mode 100644 index d2b2f83a..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsResponseBody.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -/** - * GetSearchResultsResponseBody - Search Results - */ - -public class GetSearchResultsResponseBody { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("MediaContainer") - private Optional mediaContainer; - - @JsonCreator - public GetSearchResultsResponseBody( - @JsonProperty("MediaContainer") Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - } - - public GetSearchResultsResponseBody() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaContainer() { - return (Optional) mediaContainer; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetSearchResultsResponseBody withMediaContainer(GetSearchResultsMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public GetSearchResultsResponseBody withMediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetSearchResultsResponseBody other = (GetSearchResultsResponseBody) o; - return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - mediaContainer); - } - - @Override - public String toString() { - return Utils.toString(GetSearchResultsResponseBody.class, - "mediaContainer", mediaContainer); - } - - public final static class Builder { - - private Optional mediaContainer = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder mediaContainer(GetSearchResultsMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public Builder mediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - public GetSearchResultsResponseBody build() { - return new GetSearchResultsResponseBody( - mediaContainer); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsRole.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsRole.java deleted file mode 100644 index 7aa870e5..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsRole.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetSearchResultsRole { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tag") - private Optional tag; - - @JsonCreator - public GetSearchResultsRole( - @JsonProperty("tag") Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - } - - public GetSearchResultsRole() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tag() { - return (Optional) tag; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetSearchResultsRole withTag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public GetSearchResultsRole withTag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetSearchResultsRole other = (GetSearchResultsRole) o; - return - java.util.Objects.deepEquals(this.tag, other.tag); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - tag); - } - - @Override - public String toString() { - return Utils.toString(GetSearchResultsRole.class, - "tag", tag); - } - - public final static class Builder { - - private Optional tag = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder tag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Builder tag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public GetSearchResultsRole build() { - return new GetSearchResultsRole( - tag); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsWriter.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsWriter.java deleted file mode 100644 index 74d515e9..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSearchResultsWriter.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetSearchResultsWriter { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tag") - private Optional tag; - - @JsonCreator - public GetSearchResultsWriter( - @JsonProperty("tag") Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - } - - public GetSearchResultsWriter() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tag() { - return (Optional) tag; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetSearchResultsWriter withTag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public GetSearchResultsWriter withTag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetSearchResultsWriter other = (GetSearchResultsWriter) o; - return - java.util.Objects.deepEquals(this.tag, other.tag); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - tag); - } - - @Override - public String toString() { - return Utils.toString(GetSearchResultsWriter.class, - "tag", tag); - } - - public final static class Builder { - - private Optional tag = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder tag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Builder tag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public GetSearchResultsWriter build() { - return new GetSearchResultsWriter( - tag); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerActivitiesMediaContainer.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerActivitiesMediaContainer.java deleted file mode 100644 index 247540da..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerActivitiesMediaContainer.java +++ /dev/null @@ -1,154 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetServerActivitiesMediaContainer { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Activity") - private Optional> activity; - - @JsonCreator - public GetServerActivitiesMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("Activity") Optional> activity) { - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(activity, "activity"); - this.size = size; - this.activity = activity; - } - - public GetServerActivitiesMediaContainer() { - this(Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> activity() { - return (Optional>) activity; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetServerActivitiesMediaContainer withSize(double size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public GetServerActivitiesMediaContainer withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public GetServerActivitiesMediaContainer withActivity(java.util.List activity) { - Utils.checkNotNull(activity, "activity"); - this.activity = Optional.ofNullable(activity); - return this; - } - - public GetServerActivitiesMediaContainer withActivity(Optional> activity) { - Utils.checkNotNull(activity, "activity"); - this.activity = activity; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetServerActivitiesMediaContainer other = (GetServerActivitiesMediaContainer) o; - return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.activity, other.activity); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - size, - activity); - } - - @Override - public String toString() { - return Utils.toString(GetServerActivitiesMediaContainer.class, - "size", size, - "activity", activity); - } - - public final static class Builder { - - private Optional size = Optional.empty(); - - private Optional> activity = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder size(double size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder activity(java.util.List activity) { - Utils.checkNotNull(activity, "activity"); - this.activity = Optional.ofNullable(activity); - return this; - } - - public Builder activity(Optional> activity) { - Utils.checkNotNull(activity, "activity"); - this.activity = activity; - return this; - } - - public GetServerActivitiesMediaContainer build() { - return new GetServerActivitiesMediaContainer( - size, - activity); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerActivitiesRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerActivitiesRequestBuilder.java deleted file mode 100644 index 20372231..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerActivitiesRequestBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetServerActivitiesRequestBuilder { - - private final SDKMethodInterfaces.MethodCallGetServerActivities sdk; - - public GetServerActivitiesRequestBuilder(SDKMethodInterfaces.MethodCallGetServerActivities sdk) { - this.sdk = sdk; - } - - public GetServerActivitiesResponse call() throws Exception { - - return sdk.getServerActivitiesDirect(); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerActivitiesResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerActivitiesResponse.java deleted file mode 100644 index c4dd1a2e..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerActivitiesResponse.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetServerActivitiesResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * The Server Activities - */ - private Optional object; - - @JsonCreator - public GetServerActivitiesResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional object) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.object = object; - } - - public GetServerActivitiesResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * The Server Activities - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional object() { - return (Optional) object; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetServerActivitiesResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetServerActivitiesResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetServerActivitiesResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * The Server Activities - */ - public GetServerActivitiesResponse withObject(GetServerActivitiesResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * The Server Activities - */ - public GetServerActivitiesResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetServerActivitiesResponse other = (GetServerActivitiesResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.object, other.object); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse, - object); - } - - @Override - public String toString() { - return Utils.toString(GetServerActivitiesResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "object", object); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional object = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * The Server Activities - */ - public Builder object(GetServerActivitiesResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * The Server Activities - */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - public GetServerActivitiesResponse build() { - return new GetServerActivitiesResponse( - contentType, - statusCode, - rawResponse, - object); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerActivitiesResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerActivitiesResponseBody.java deleted file mode 100644 index 273c3aaa..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerActivitiesResponseBody.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -/** - * GetServerActivitiesResponseBody - The Server Activities - */ - -public class GetServerActivitiesResponseBody { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("MediaContainer") - private Optional mediaContainer; - - @JsonCreator - public GetServerActivitiesResponseBody( - @JsonProperty("MediaContainer") Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - } - - public GetServerActivitiesResponseBody() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaContainer() { - return (Optional) mediaContainer; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetServerActivitiesResponseBody withMediaContainer(GetServerActivitiesMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public GetServerActivitiesResponseBody withMediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetServerActivitiesResponseBody other = (GetServerActivitiesResponseBody) o; - return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - mediaContainer); - } - - @Override - public String toString() { - return Utils.toString(GetServerActivitiesResponseBody.class, - "mediaContainer", mediaContainer); - } - - public final static class Builder { - - private Optional mediaContainer = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder mediaContainer(GetServerActivitiesMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public Builder mediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - public GetServerActivitiesResponseBody build() { - return new GetServerActivitiesResponseBody( - mediaContainer); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerCapabilitiesRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerCapabilitiesRequestBuilder.java deleted file mode 100644 index d28fe58a..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerCapabilitiesRequestBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetServerCapabilitiesRequestBuilder { - - private final SDKMethodInterfaces.MethodCallGetServerCapabilities sdk; - - public GetServerCapabilitiesRequestBuilder(SDKMethodInterfaces.MethodCallGetServerCapabilities sdk) { - this.sdk = sdk; - } - - public GetServerCapabilitiesResponse call() throws Exception { - - return sdk.getServerCapabilitiesDirect(); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerCapabilitiesResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerCapabilitiesResponse.java deleted file mode 100644 index c86f2030..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerCapabilitiesResponse.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetServerCapabilitiesResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * The Server Capabilities - */ - private Optional object; - - @JsonCreator - public GetServerCapabilitiesResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional object) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.object = object; - } - - public GetServerCapabilitiesResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * The Server Capabilities - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional object() { - return (Optional) object; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetServerCapabilitiesResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetServerCapabilitiesResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetServerCapabilitiesResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * The Server Capabilities - */ - public GetServerCapabilitiesResponse withObject(GetServerCapabilitiesResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * The Server Capabilities - */ - public GetServerCapabilitiesResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetServerCapabilitiesResponse other = (GetServerCapabilitiesResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.object, other.object); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse, - object); - } - - @Override - public String toString() { - return Utils.toString(GetServerCapabilitiesResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "object", object); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional object = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * The Server Capabilities - */ - public Builder object(GetServerCapabilitiesResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * The Server Capabilities - */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - public GetServerCapabilitiesResponse build() { - return new GetServerCapabilitiesResponse( - contentType, - statusCode, - rawResponse, - object); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerCapabilitiesResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerCapabilitiesResponseBody.java deleted file mode 100644 index c23f83f0..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerCapabilitiesResponseBody.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -/** - * GetServerCapabilitiesResponseBody - The Server Capabilities - */ - -public class GetServerCapabilitiesResponseBody { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("MediaContainer") - private Optional mediaContainer; - - @JsonCreator - public GetServerCapabilitiesResponseBody( - @JsonProperty("MediaContainer") Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - } - - public GetServerCapabilitiesResponseBody() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaContainer() { - return (Optional) mediaContainer; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetServerCapabilitiesResponseBody withMediaContainer(MediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public GetServerCapabilitiesResponseBody withMediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetServerCapabilitiesResponseBody other = (GetServerCapabilitiesResponseBody) o; - return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - mediaContainer); - } - - @Override - public String toString() { - return Utils.toString(GetServerCapabilitiesResponseBody.class, - "mediaContainer", mediaContainer); - } - - public final static class Builder { - - private Optional mediaContainer = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder mediaContainer(MediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public Builder mediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - public GetServerCapabilitiesResponseBody build() { - return new GetServerCapabilitiesResponseBody( - mediaContainer); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerIdentityMediaContainer.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerIdentityMediaContainer.java deleted file mode 100644 index fe6cb159..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerIdentityMediaContainer.java +++ /dev/null @@ -1,240 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetServerIdentityMediaContainer { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("claimed") - private Optional claimed; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("machineIdentifier") - private Optional machineIdentifier; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("version") - private Optional version; - - @JsonCreator - public GetServerIdentityMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("claimed") Optional claimed, - @JsonProperty("machineIdentifier") Optional machineIdentifier, - @JsonProperty("version") Optional version) { - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(claimed, "claimed"); - Utils.checkNotNull(machineIdentifier, "machineIdentifier"); - Utils.checkNotNull(version, "version"); - this.size = size; - this.claimed = claimed; - this.machineIdentifier = machineIdentifier; - this.version = version; - } - - public GetServerIdentityMediaContainer() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional claimed() { - return (Optional) claimed; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional machineIdentifier() { - return (Optional) machineIdentifier; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional version() { - return (Optional) version; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetServerIdentityMediaContainer withSize(double size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public GetServerIdentityMediaContainer withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public GetServerIdentityMediaContainer withClaimed(boolean claimed) { - Utils.checkNotNull(claimed, "claimed"); - this.claimed = Optional.ofNullable(claimed); - return this; - } - - public GetServerIdentityMediaContainer withClaimed(Optional claimed) { - Utils.checkNotNull(claimed, "claimed"); - this.claimed = claimed; - return this; - } - - public GetServerIdentityMediaContainer withMachineIdentifier(String machineIdentifier) { - Utils.checkNotNull(machineIdentifier, "machineIdentifier"); - this.machineIdentifier = Optional.ofNullable(machineIdentifier); - return this; - } - - public GetServerIdentityMediaContainer withMachineIdentifier(Optional machineIdentifier) { - Utils.checkNotNull(machineIdentifier, "machineIdentifier"); - this.machineIdentifier = machineIdentifier; - return this; - } - - public GetServerIdentityMediaContainer withVersion(String version) { - Utils.checkNotNull(version, "version"); - this.version = Optional.ofNullable(version); - return this; - } - - public GetServerIdentityMediaContainer withVersion(Optional version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetServerIdentityMediaContainer other = (GetServerIdentityMediaContainer) o; - return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.claimed, other.claimed) && - java.util.Objects.deepEquals(this.machineIdentifier, other.machineIdentifier) && - java.util.Objects.deepEquals(this.version, other.version); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - size, - claimed, - machineIdentifier, - version); - } - - @Override - public String toString() { - return Utils.toString(GetServerIdentityMediaContainer.class, - "size", size, - "claimed", claimed, - "machineIdentifier", machineIdentifier, - "version", version); - } - - public final static class Builder { - - private Optional size = Optional.empty(); - - private Optional claimed = Optional.empty(); - - private Optional machineIdentifier = Optional.empty(); - - private Optional version = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder size(double size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder claimed(boolean claimed) { - Utils.checkNotNull(claimed, "claimed"); - this.claimed = Optional.ofNullable(claimed); - return this; - } - - public Builder claimed(Optional claimed) { - Utils.checkNotNull(claimed, "claimed"); - this.claimed = claimed; - return this; - } - - public Builder machineIdentifier(String machineIdentifier) { - Utils.checkNotNull(machineIdentifier, "machineIdentifier"); - this.machineIdentifier = Optional.ofNullable(machineIdentifier); - return this; - } - - public Builder machineIdentifier(Optional machineIdentifier) { - Utils.checkNotNull(machineIdentifier, "machineIdentifier"); - this.machineIdentifier = machineIdentifier; - return this; - } - - public Builder version(String version) { - Utils.checkNotNull(version, "version"); - this.version = Optional.ofNullable(version); - return this; - } - - public Builder version(Optional version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - public GetServerIdentityMediaContainer build() { - return new GetServerIdentityMediaContainer( - size, - claimed, - machineIdentifier, - version); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerIdentityRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerIdentityRequestBuilder.java deleted file mode 100644 index 1ffaba1d..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerIdentityRequestBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetServerIdentityRequestBuilder { - - private final SDKMethodInterfaces.MethodCallGetServerIdentity sdk; - - public GetServerIdentityRequestBuilder(SDKMethodInterfaces.MethodCallGetServerIdentity sdk) { - this.sdk = sdk; - } - - public GetServerIdentityResponse call() throws Exception { - - return sdk.getServerIdentityDirect(); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerIdentityResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerIdentityResponse.java deleted file mode 100644 index 509dacf9..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerIdentityResponse.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetServerIdentityResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * The Server Identity information - */ - private Optional object; - - @JsonCreator - public GetServerIdentityResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional object) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.object = object; - } - - public GetServerIdentityResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * The Server Identity information - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional object() { - return (Optional) object; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetServerIdentityResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetServerIdentityResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetServerIdentityResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * The Server Identity information - */ - public GetServerIdentityResponse withObject(GetServerIdentityResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * The Server Identity information - */ - public GetServerIdentityResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetServerIdentityResponse other = (GetServerIdentityResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.object, other.object); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse, - object); - } - - @Override - public String toString() { - return Utils.toString(GetServerIdentityResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "object", object); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional object = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * The Server Identity information - */ - public Builder object(GetServerIdentityResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * The Server Identity information - */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - public GetServerIdentityResponse build() { - return new GetServerIdentityResponse( - contentType, - statusCode, - rawResponse, - object); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerIdentityResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerIdentityResponseBody.java deleted file mode 100644 index bb77c300..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerIdentityResponseBody.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -/** - * GetServerIdentityResponseBody - The Server Identity information - */ - -public class GetServerIdentityResponseBody { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("MediaContainer") - private Optional mediaContainer; - - @JsonCreator - public GetServerIdentityResponseBody( - @JsonProperty("MediaContainer") Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - } - - public GetServerIdentityResponseBody() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaContainer() { - return (Optional) mediaContainer; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetServerIdentityResponseBody withMediaContainer(GetServerIdentityMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public GetServerIdentityResponseBody withMediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetServerIdentityResponseBody other = (GetServerIdentityResponseBody) o; - return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - mediaContainer); - } - - @Override - public String toString() { - return Utils.toString(GetServerIdentityResponseBody.class, - "mediaContainer", mediaContainer); - } - - public final static class Builder { - - private Optional mediaContainer = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder mediaContainer(GetServerIdentityMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public Builder mediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - public GetServerIdentityResponseBody build() { - return new GetServerIdentityResponseBody( - mediaContainer); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerListMediaContainer.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerListMediaContainer.java deleted file mode 100644 index 93cb75f5..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerListMediaContainer.java +++ /dev/null @@ -1,154 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetServerListMediaContainer { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Server") - private Optional> server; - - @JsonCreator - public GetServerListMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("Server") Optional> server) { - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(server, "server"); - this.size = size; - this.server = server; - } - - public GetServerListMediaContainer() { - this(Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> server() { - return (Optional>) server; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetServerListMediaContainer withSize(double size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public GetServerListMediaContainer withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public GetServerListMediaContainer withServer(java.util.List server) { - Utils.checkNotNull(server, "server"); - this.server = Optional.ofNullable(server); - return this; - } - - public GetServerListMediaContainer withServer(Optional> server) { - Utils.checkNotNull(server, "server"); - this.server = server; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetServerListMediaContainer other = (GetServerListMediaContainer) o; - return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.server, other.server); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - size, - server); - } - - @Override - public String toString() { - return Utils.toString(GetServerListMediaContainer.class, - "size", size, - "server", server); - } - - public final static class Builder { - - private Optional size = Optional.empty(); - - private Optional> server = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder size(double size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder server(java.util.List server) { - Utils.checkNotNull(server, "server"); - this.server = Optional.ofNullable(server); - return this; - } - - public Builder server(Optional> server) { - Utils.checkNotNull(server, "server"); - this.server = server; - return this; - } - - public GetServerListMediaContainer build() { - return new GetServerListMediaContainer( - size, - server); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerListRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerListRequestBuilder.java deleted file mode 100644 index 5868eeaa..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerListRequestBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetServerListRequestBuilder { - - private final SDKMethodInterfaces.MethodCallGetServerList sdk; - - public GetServerListRequestBuilder(SDKMethodInterfaces.MethodCallGetServerList sdk) { - this.sdk = sdk; - } - - public GetServerListResponse call() throws Exception { - - return sdk.getServerListDirect(); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerListResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerListResponse.java deleted file mode 100644 index 3b3a15c9..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerListResponse.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetServerListResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * List of Servers - */ - private Optional object; - - @JsonCreator - public GetServerListResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional object) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.object = object; - } - - public GetServerListResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * List of Servers - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional object() { - return (Optional) object; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetServerListResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetServerListResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetServerListResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * List of Servers - */ - public GetServerListResponse withObject(GetServerListResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * List of Servers - */ - public GetServerListResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetServerListResponse other = (GetServerListResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.object, other.object); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse, - object); - } - - @Override - public String toString() { - return Utils.toString(GetServerListResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "object", object); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional object = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * List of Servers - */ - public Builder object(GetServerListResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * List of Servers - */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - public GetServerListResponse build() { - return new GetServerListResponse( - contentType, - statusCode, - rawResponse, - object); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerListResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerListResponseBody.java deleted file mode 100644 index fe1ea116..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerListResponseBody.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -/** - * GetServerListResponseBody - List of Servers - */ - -public class GetServerListResponseBody { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("MediaContainer") - private Optional mediaContainer; - - @JsonCreator - public GetServerListResponseBody( - @JsonProperty("MediaContainer") Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - } - - public GetServerListResponseBody() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaContainer() { - return (Optional) mediaContainer; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetServerListResponseBody withMediaContainer(GetServerListMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public GetServerListResponseBody withMediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetServerListResponseBody other = (GetServerListResponseBody) o; - return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - mediaContainer); - } - - @Override - public String toString() { - return Utils.toString(GetServerListResponseBody.class, - "mediaContainer", mediaContainer); - } - - public final static class Builder { - - private Optional mediaContainer = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder mediaContainer(GetServerListMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public Builder mediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - public GetServerListResponseBody build() { - return new GetServerListResponseBody( - mediaContainer); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerListServer.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerListServer.java deleted file mode 100644 index 7b00b227..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerListServer.java +++ /dev/null @@ -1,326 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetServerListServer { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("host") - private Optional host; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("address") - private Optional address; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("port") - private Optional port; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("machineIdentifier") - private Optional machineIdentifier; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("version") - private Optional version; - - @JsonCreator - public GetServerListServer( - @JsonProperty("name") Optional name, - @JsonProperty("host") Optional host, - @JsonProperty("address") Optional address, - @JsonProperty("port") Optional port, - @JsonProperty("machineIdentifier") Optional machineIdentifier, - @JsonProperty("version") Optional version) { - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(host, "host"); - Utils.checkNotNull(address, "address"); - Utils.checkNotNull(port, "port"); - Utils.checkNotNull(machineIdentifier, "machineIdentifier"); - Utils.checkNotNull(version, "version"); - this.name = name; - this.host = host; - this.address = address; - this.port = port; - this.machineIdentifier = machineIdentifier; - this.version = version; - } - - public GetServerListServer() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional name() { - return (Optional) name; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional host() { - return (Optional) host; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional address() { - return (Optional) address; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional port() { - return (Optional) port; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional machineIdentifier() { - return (Optional) machineIdentifier; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional version() { - return (Optional) version; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetServerListServer withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public GetServerListServer withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public GetServerListServer withHost(String host) { - Utils.checkNotNull(host, "host"); - this.host = Optional.ofNullable(host); - return this; - } - - public GetServerListServer withHost(Optional host) { - Utils.checkNotNull(host, "host"); - this.host = host; - return this; - } - - public GetServerListServer withAddress(String address) { - Utils.checkNotNull(address, "address"); - this.address = Optional.ofNullable(address); - return this; - } - - public GetServerListServer withAddress(Optional address) { - Utils.checkNotNull(address, "address"); - this.address = address; - return this; - } - - public GetServerListServer withPort(double port) { - Utils.checkNotNull(port, "port"); - this.port = Optional.ofNullable(port); - return this; - } - - public GetServerListServer withPort(Optional port) { - Utils.checkNotNull(port, "port"); - this.port = port; - return this; - } - - public GetServerListServer withMachineIdentifier(String machineIdentifier) { - Utils.checkNotNull(machineIdentifier, "machineIdentifier"); - this.machineIdentifier = Optional.ofNullable(machineIdentifier); - return this; - } - - public GetServerListServer withMachineIdentifier(Optional machineIdentifier) { - Utils.checkNotNull(machineIdentifier, "machineIdentifier"); - this.machineIdentifier = machineIdentifier; - return this; - } - - public GetServerListServer withVersion(String version) { - Utils.checkNotNull(version, "version"); - this.version = Optional.ofNullable(version); - return this; - } - - public GetServerListServer withVersion(Optional version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetServerListServer other = (GetServerListServer) o; - return - java.util.Objects.deepEquals(this.name, other.name) && - java.util.Objects.deepEquals(this.host, other.host) && - java.util.Objects.deepEquals(this.address, other.address) && - java.util.Objects.deepEquals(this.port, other.port) && - java.util.Objects.deepEquals(this.machineIdentifier, other.machineIdentifier) && - java.util.Objects.deepEquals(this.version, other.version); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - name, - host, - address, - port, - machineIdentifier, - version); - } - - @Override - public String toString() { - return Utils.toString(GetServerListServer.class, - "name", name, - "host", host, - "address", address, - "port", port, - "machineIdentifier", machineIdentifier, - "version", version); - } - - public final static class Builder { - - private Optional name = Optional.empty(); - - private Optional host = Optional.empty(); - - private Optional address = Optional.empty(); - - private Optional port = Optional.empty(); - - private Optional machineIdentifier = Optional.empty(); - - private Optional version = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Builder host(String host) { - Utils.checkNotNull(host, "host"); - this.host = Optional.ofNullable(host); - return this; - } - - public Builder host(Optional host) { - Utils.checkNotNull(host, "host"); - this.host = host; - return this; - } - - public Builder address(String address) { - Utils.checkNotNull(address, "address"); - this.address = Optional.ofNullable(address); - return this; - } - - public Builder address(Optional address) { - Utils.checkNotNull(address, "address"); - this.address = address; - return this; - } - - public Builder port(double port) { - Utils.checkNotNull(port, "port"); - this.port = Optional.ofNullable(port); - return this; - } - - public Builder port(Optional port) { - Utils.checkNotNull(port, "port"); - this.port = port; - return this; - } - - public Builder machineIdentifier(String machineIdentifier) { - Utils.checkNotNull(machineIdentifier, "machineIdentifier"); - this.machineIdentifier = Optional.ofNullable(machineIdentifier); - return this; - } - - public Builder machineIdentifier(Optional machineIdentifier) { - Utils.checkNotNull(machineIdentifier, "machineIdentifier"); - this.machineIdentifier = machineIdentifier; - return this; - } - - public Builder version(String version) { - Utils.checkNotNull(version, "version"); - this.version = Optional.ofNullable(version); - return this; - } - - public Builder version(Optional version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - public GetServerListServer build() { - return new GetServerListServer( - name, - host, - address, - port, - machineIdentifier, - version); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerPreferencesMediaContainer.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerPreferencesMediaContainer.java deleted file mode 100644 index eca5b9f2..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerPreferencesMediaContainer.java +++ /dev/null @@ -1,154 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetServerPreferencesMediaContainer { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Setting") - private Optional> setting; - - @JsonCreator - public GetServerPreferencesMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("Setting") Optional> setting) { - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(setting, "setting"); - this.size = size; - this.setting = setting; - } - - public GetServerPreferencesMediaContainer() { - this(Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> setting() { - return (Optional>) setting; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetServerPreferencesMediaContainer withSize(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public GetServerPreferencesMediaContainer withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public GetServerPreferencesMediaContainer withSetting(java.util.List setting) { - Utils.checkNotNull(setting, "setting"); - this.setting = Optional.ofNullable(setting); - return this; - } - - public GetServerPreferencesMediaContainer withSetting(Optional> setting) { - Utils.checkNotNull(setting, "setting"); - this.setting = setting; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetServerPreferencesMediaContainer other = (GetServerPreferencesMediaContainer) o; - return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.setting, other.setting); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - size, - setting); - } - - @Override - public String toString() { - return Utils.toString(GetServerPreferencesMediaContainer.class, - "size", size, - "setting", setting); - } - - public final static class Builder { - - private Optional size = Optional.empty(); - - private Optional> setting = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder size(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder setting(java.util.List setting) { - Utils.checkNotNull(setting, "setting"); - this.setting = Optional.ofNullable(setting); - return this; - } - - public Builder setting(Optional> setting) { - Utils.checkNotNull(setting, "setting"); - this.setting = setting; - return this; - } - - public GetServerPreferencesMediaContainer build() { - return new GetServerPreferencesMediaContainer( - size, - setting); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerPreferencesRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerPreferencesRequestBuilder.java deleted file mode 100644 index 29adcab1..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerPreferencesRequestBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetServerPreferencesRequestBuilder { - - private final SDKMethodInterfaces.MethodCallGetServerPreferences sdk; - - public GetServerPreferencesRequestBuilder(SDKMethodInterfaces.MethodCallGetServerPreferences sdk) { - this.sdk = sdk; - } - - public GetServerPreferencesResponse call() throws Exception { - - return sdk.getServerPreferencesDirect(); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerPreferencesResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerPreferencesResponse.java deleted file mode 100644 index 1f81a858..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerPreferencesResponse.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetServerPreferencesResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Server Preferences - */ - private Optional object; - - @JsonCreator - public GetServerPreferencesResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional object) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.object = object; - } - - public GetServerPreferencesResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Server Preferences - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional object() { - return (Optional) object; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetServerPreferencesResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetServerPreferencesResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetServerPreferencesResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Server Preferences - */ - public GetServerPreferencesResponse withObject(GetServerPreferencesResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * Server Preferences - */ - public GetServerPreferencesResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetServerPreferencesResponse other = (GetServerPreferencesResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.object, other.object); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse, - object); - } - - @Override - public String toString() { - return Utils.toString(GetServerPreferencesResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "object", object); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional object = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Server Preferences - */ - public Builder object(GetServerPreferencesResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * Server Preferences - */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - public GetServerPreferencesResponse build() { - return new GetServerPreferencesResponse( - contentType, - statusCode, - rawResponse, - object); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerPreferencesResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerPreferencesResponseBody.java deleted file mode 100644 index 68236846..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetServerPreferencesResponseBody.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -/** - * GetServerPreferencesResponseBody - Server Preferences - */ - -public class GetServerPreferencesResponseBody { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("MediaContainer") - private Optional mediaContainer; - - @JsonCreator - public GetServerPreferencesResponseBody( - @JsonProperty("MediaContainer") Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - } - - public GetServerPreferencesResponseBody() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaContainer() { - return (Optional) mediaContainer; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetServerPreferencesResponseBody withMediaContainer(GetServerPreferencesMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public GetServerPreferencesResponseBody withMediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetServerPreferencesResponseBody other = (GetServerPreferencesResponseBody) o; - return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - mediaContainer); - } - - @Override - public String toString() { - return Utils.toString(GetServerPreferencesResponseBody.class, - "mediaContainer", mediaContainer); - } - - public final static class Builder { - - private Optional mediaContainer = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder mediaContainer(GetServerPreferencesMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public Builder mediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - public GetServerPreferencesResponseBody build() { - return new GetServerPreferencesResponseBody( - mediaContainer); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryMediaContainer.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryMediaContainer.java deleted file mode 100644 index dc38fde0..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryMediaContainer.java +++ /dev/null @@ -1,154 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetSessionHistoryMediaContainer { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Metadata") - private Optional> metadata; - - @JsonCreator - public GetSessionHistoryMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("Metadata") Optional> metadata) { - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(metadata, "metadata"); - this.size = size; - this.metadata = metadata; - } - - public GetSessionHistoryMediaContainer() { - this(Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetSessionHistoryMediaContainer withSize(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public GetSessionHistoryMediaContainer withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public GetSessionHistoryMediaContainer withMetadata(java.util.List metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public GetSessionHistoryMediaContainer withMetadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetSessionHistoryMediaContainer other = (GetSessionHistoryMediaContainer) o; - return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.metadata, other.metadata); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - size, - metadata); - } - - @Override - public String toString() { - return Utils.toString(GetSessionHistoryMediaContainer.class, - "size", size, - "metadata", metadata); - } - - public final static class Builder { - - private Optional size = Optional.empty(); - - private Optional> metadata = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder size(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder metadata(java.util.List metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public Builder metadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public GetSessionHistoryMediaContainer build() { - return new GetSessionHistoryMediaContainer( - size, - metadata); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryMetadata.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryMetadata.java deleted file mode 100644 index ce883a15..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryMetadata.java +++ /dev/null @@ -1,886 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetSessionHistoryMetadata { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("historyKey") - private Optional historyKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ratingKey") - private Optional ratingKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionID") - private Optional librarySectionID; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentKey") - private Optional parentKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("grandparentKey") - private Optional grandparentKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title") - private Optional title; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("grandparentTitle") - private Optional grandparentTitle; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("thumb") - private Optional thumb; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentThumb") - private Optional parentThumb; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("grandparentThumb") - private Optional grandparentThumb; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("grandparentArt") - private Optional grandparentArt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("index") - private Optional index; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentIndex") - private Optional parentIndex; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("originallyAvailableAt") - private Optional originallyAvailableAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("viewedAt") - private Optional viewedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("accountID") - private Optional accountID; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("deviceID") - private Optional deviceID; - - @JsonCreator - public GetSessionHistoryMetadata( - @JsonProperty("historyKey") Optional historyKey, - @JsonProperty("key") Optional key, - @JsonProperty("ratingKey") Optional ratingKey, - @JsonProperty("librarySectionID") Optional librarySectionID, - @JsonProperty("parentKey") Optional parentKey, - @JsonProperty("grandparentKey") Optional grandparentKey, - @JsonProperty("title") Optional title, - @JsonProperty("grandparentTitle") Optional grandparentTitle, - @JsonProperty("type") Optional type, - @JsonProperty("thumb") Optional thumb, - @JsonProperty("parentThumb") Optional parentThumb, - @JsonProperty("grandparentThumb") Optional grandparentThumb, - @JsonProperty("grandparentArt") Optional grandparentArt, - @JsonProperty("index") Optional index, - @JsonProperty("parentIndex") Optional parentIndex, - @JsonProperty("originallyAvailableAt") Optional originallyAvailableAt, - @JsonProperty("viewedAt") Optional viewedAt, - @JsonProperty("accountID") Optional accountID, - @JsonProperty("deviceID") Optional deviceID) { - Utils.checkNotNull(historyKey, "historyKey"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(ratingKey, "ratingKey"); - Utils.checkNotNull(librarySectionID, "librarySectionID"); - Utils.checkNotNull(parentKey, "parentKey"); - Utils.checkNotNull(grandparentKey, "grandparentKey"); - Utils.checkNotNull(title, "title"); - Utils.checkNotNull(grandparentTitle, "grandparentTitle"); - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(thumb, "thumb"); - Utils.checkNotNull(parentThumb, "parentThumb"); - Utils.checkNotNull(grandparentThumb, "grandparentThumb"); - Utils.checkNotNull(grandparentArt, "grandparentArt"); - Utils.checkNotNull(index, "index"); - Utils.checkNotNull(parentIndex, "parentIndex"); - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - Utils.checkNotNull(viewedAt, "viewedAt"); - Utils.checkNotNull(accountID, "accountID"); - Utils.checkNotNull(deviceID, "deviceID"); - 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; - } - - public GetSessionHistoryMetadata() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional historyKey() { - return (Optional) historyKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional ratingKey() { - return (Optional) ratingKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionID() { - return (Optional) librarySectionID; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentKey() { - return (Optional) parentKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional grandparentKey() { - return (Optional) grandparentKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title() { - return (Optional) title; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional grandparentTitle() { - return (Optional) grandparentTitle; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional thumb() { - return (Optional) thumb; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentThumb() { - return (Optional) parentThumb; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional grandparentThumb() { - return (Optional) grandparentThumb; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional grandparentArt() { - return (Optional) grandparentArt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional index() { - return (Optional) index; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentIndex() { - return (Optional) parentIndex; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional originallyAvailableAt() { - return (Optional) originallyAvailableAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional viewedAt() { - return (Optional) viewedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional accountID() { - return (Optional) accountID; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional deviceID() { - return (Optional) deviceID; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetSessionHistoryMetadata withHistoryKey(String historyKey) { - Utils.checkNotNull(historyKey, "historyKey"); - this.historyKey = Optional.ofNullable(historyKey); - return this; - } - - public GetSessionHistoryMetadata withHistoryKey(Optional historyKey) { - Utils.checkNotNull(historyKey, "historyKey"); - this.historyKey = historyKey; - return this; - } - - public GetSessionHistoryMetadata withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public GetSessionHistoryMetadata withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public GetSessionHistoryMetadata withRatingKey(String ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public GetSessionHistoryMetadata withRatingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public GetSessionHistoryMetadata withLibrarySectionID(String librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = Optional.ofNullable(librarySectionID); - return this; - } - - public GetSessionHistoryMetadata withLibrarySectionID(Optional librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = librarySectionID; - return this; - } - - public GetSessionHistoryMetadata withParentKey(String parentKey) { - Utils.checkNotNull(parentKey, "parentKey"); - this.parentKey = Optional.ofNullable(parentKey); - return this; - } - - public GetSessionHistoryMetadata withParentKey(Optional parentKey) { - Utils.checkNotNull(parentKey, "parentKey"); - this.parentKey = parentKey; - return this; - } - - public GetSessionHistoryMetadata withGrandparentKey(String grandparentKey) { - Utils.checkNotNull(grandparentKey, "grandparentKey"); - this.grandparentKey = Optional.ofNullable(grandparentKey); - return this; - } - - public GetSessionHistoryMetadata withGrandparentKey(Optional grandparentKey) { - Utils.checkNotNull(grandparentKey, "grandparentKey"); - this.grandparentKey = grandparentKey; - return this; - } - - public GetSessionHistoryMetadata withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public GetSessionHistoryMetadata withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public GetSessionHistoryMetadata withGrandparentTitle(String grandparentTitle) { - Utils.checkNotNull(grandparentTitle, "grandparentTitle"); - this.grandparentTitle = Optional.ofNullable(grandparentTitle); - return this; - } - - public GetSessionHistoryMetadata withGrandparentTitle(Optional grandparentTitle) { - Utils.checkNotNull(grandparentTitle, "grandparentTitle"); - this.grandparentTitle = grandparentTitle; - return this; - } - - public GetSessionHistoryMetadata withType(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public GetSessionHistoryMetadata withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public GetSessionHistoryMetadata withThumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public GetSessionHistoryMetadata withThumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public GetSessionHistoryMetadata withParentThumb(String parentThumb) { - Utils.checkNotNull(parentThumb, "parentThumb"); - this.parentThumb = Optional.ofNullable(parentThumb); - return this; - } - - public GetSessionHistoryMetadata withParentThumb(Optional parentThumb) { - Utils.checkNotNull(parentThumb, "parentThumb"); - this.parentThumb = parentThumb; - return this; - } - - public GetSessionHistoryMetadata withGrandparentThumb(String grandparentThumb) { - Utils.checkNotNull(grandparentThumb, "grandparentThumb"); - this.grandparentThumb = Optional.ofNullable(grandparentThumb); - return this; - } - - public GetSessionHistoryMetadata withGrandparentThumb(Optional grandparentThumb) { - Utils.checkNotNull(grandparentThumb, "grandparentThumb"); - this.grandparentThumb = grandparentThumb; - return this; - } - - public GetSessionHistoryMetadata withGrandparentArt(String grandparentArt) { - Utils.checkNotNull(grandparentArt, "grandparentArt"); - this.grandparentArt = Optional.ofNullable(grandparentArt); - return this; - } - - public GetSessionHistoryMetadata withGrandparentArt(Optional grandparentArt) { - Utils.checkNotNull(grandparentArt, "grandparentArt"); - this.grandparentArt = grandparentArt; - return this; - } - - public GetSessionHistoryMetadata withIndex(int index) { - Utils.checkNotNull(index, "index"); - this.index = Optional.ofNullable(index); - return this; - } - - public GetSessionHistoryMetadata withIndex(Optional index) { - Utils.checkNotNull(index, "index"); - this.index = index; - return this; - } - - public GetSessionHistoryMetadata withParentIndex(int parentIndex) { - Utils.checkNotNull(parentIndex, "parentIndex"); - this.parentIndex = Optional.ofNullable(parentIndex); - return this; - } - - public GetSessionHistoryMetadata withParentIndex(Optional parentIndex) { - Utils.checkNotNull(parentIndex, "parentIndex"); - this.parentIndex = parentIndex; - return this; - } - - public GetSessionHistoryMetadata withOriginallyAvailableAt(LocalDate originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = Optional.ofNullable(originallyAvailableAt); - return this; - } - - public GetSessionHistoryMetadata withOriginallyAvailableAt(Optional originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = originallyAvailableAt; - return this; - } - - public GetSessionHistoryMetadata withViewedAt(int viewedAt) { - Utils.checkNotNull(viewedAt, "viewedAt"); - this.viewedAt = Optional.ofNullable(viewedAt); - return this; - } - - public GetSessionHistoryMetadata withViewedAt(Optional viewedAt) { - Utils.checkNotNull(viewedAt, "viewedAt"); - this.viewedAt = viewedAt; - return this; - } - - public GetSessionHistoryMetadata withAccountID(int accountID) { - Utils.checkNotNull(accountID, "accountID"); - this.accountID = Optional.ofNullable(accountID); - return this; - } - - public GetSessionHistoryMetadata withAccountID(Optional accountID) { - Utils.checkNotNull(accountID, "accountID"); - this.accountID = accountID; - return this; - } - - public GetSessionHistoryMetadata withDeviceID(int deviceID) { - Utils.checkNotNull(deviceID, "deviceID"); - this.deviceID = Optional.ofNullable(deviceID); - return this; - } - - public GetSessionHistoryMetadata withDeviceID(Optional deviceID) { - Utils.checkNotNull(deviceID, "deviceID"); - this.deviceID = deviceID; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetSessionHistoryMetadata other = (GetSessionHistoryMetadata) o; - return - java.util.Objects.deepEquals(this.historyKey, other.historyKey) && - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.ratingKey, other.ratingKey) && - java.util.Objects.deepEquals(this.librarySectionID, other.librarySectionID) && - java.util.Objects.deepEquals(this.parentKey, other.parentKey) && - java.util.Objects.deepEquals(this.grandparentKey, other.grandparentKey) && - java.util.Objects.deepEquals(this.title, other.title) && - java.util.Objects.deepEquals(this.grandparentTitle, other.grandparentTitle) && - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.thumb, other.thumb) && - java.util.Objects.deepEquals(this.parentThumb, other.parentThumb) && - java.util.Objects.deepEquals(this.grandparentThumb, other.grandparentThumb) && - java.util.Objects.deepEquals(this.grandparentArt, other.grandparentArt) && - java.util.Objects.deepEquals(this.index, other.index) && - java.util.Objects.deepEquals(this.parentIndex, other.parentIndex) && - java.util.Objects.deepEquals(this.originallyAvailableAt, other.originallyAvailableAt) && - java.util.Objects.deepEquals(this.viewedAt, other.viewedAt) && - java.util.Objects.deepEquals(this.accountID, other.accountID) && - java.util.Objects.deepEquals(this.deviceID, other.deviceID); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - historyKey, - key, - ratingKey, - librarySectionID, - parentKey, - grandparentKey, - title, - grandparentTitle, - type, - thumb, - parentThumb, - grandparentThumb, - grandparentArt, - index, - parentIndex, - originallyAvailableAt, - viewedAt, - accountID, - deviceID); - } - - @Override - public String toString() { - return Utils.toString(GetSessionHistoryMetadata.class, - "historyKey", historyKey, - "key", key, - "ratingKey", ratingKey, - "librarySectionID", librarySectionID, - "parentKey", parentKey, - "grandparentKey", grandparentKey, - "title", title, - "grandparentTitle", grandparentTitle, - "type", type, - "thumb", thumb, - "parentThumb", parentThumb, - "grandparentThumb", grandparentThumb, - "grandparentArt", grandparentArt, - "index", index, - "parentIndex", parentIndex, - "originallyAvailableAt", originallyAvailableAt, - "viewedAt", viewedAt, - "accountID", accountID, - "deviceID", deviceID); - } - - public final static class Builder { - - private Optional historyKey = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional ratingKey = Optional.empty(); - - private Optional librarySectionID = Optional.empty(); - - private Optional parentKey = Optional.empty(); - - private Optional grandparentKey = Optional.empty(); - - private Optional title = Optional.empty(); - - private Optional grandparentTitle = Optional.empty(); - - private Optional type = Optional.empty(); - - private Optional thumb = Optional.empty(); - - private Optional parentThumb = Optional.empty(); - - private Optional grandparentThumb = Optional.empty(); - - private Optional grandparentArt = Optional.empty(); - - private Optional index = Optional.empty(); - - private Optional parentIndex = Optional.empty(); - - private Optional originallyAvailableAt = Optional.empty(); - - private Optional viewedAt = Optional.empty(); - - private Optional accountID = Optional.empty(); - - private Optional deviceID = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder historyKey(String historyKey) { - Utils.checkNotNull(historyKey, "historyKey"); - this.historyKey = Optional.ofNullable(historyKey); - return this; - } - - public Builder historyKey(Optional historyKey) { - Utils.checkNotNull(historyKey, "historyKey"); - this.historyKey = historyKey; - return this; - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder ratingKey(String ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public Builder ratingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public Builder librarySectionID(String librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = Optional.ofNullable(librarySectionID); - return this; - } - - public Builder librarySectionID(Optional librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = librarySectionID; - return this; - } - - public Builder parentKey(String parentKey) { - Utils.checkNotNull(parentKey, "parentKey"); - this.parentKey = Optional.ofNullable(parentKey); - return this; - } - - public Builder parentKey(Optional parentKey) { - Utils.checkNotNull(parentKey, "parentKey"); - this.parentKey = parentKey; - return this; - } - - public Builder grandparentKey(String grandparentKey) { - Utils.checkNotNull(grandparentKey, "grandparentKey"); - this.grandparentKey = Optional.ofNullable(grandparentKey); - return this; - } - - public Builder grandparentKey(Optional grandparentKey) { - Utils.checkNotNull(grandparentKey, "grandparentKey"); - this.grandparentKey = grandparentKey; - return this; - } - - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Builder grandparentTitle(String grandparentTitle) { - Utils.checkNotNull(grandparentTitle, "grandparentTitle"); - this.grandparentTitle = Optional.ofNullable(grandparentTitle); - return this; - } - - public Builder grandparentTitle(Optional grandparentTitle) { - Utils.checkNotNull(grandparentTitle, "grandparentTitle"); - this.grandparentTitle = grandparentTitle; - return this; - } - - public Builder type(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Builder thumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public Builder thumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public Builder parentThumb(String parentThumb) { - Utils.checkNotNull(parentThumb, "parentThumb"); - this.parentThumb = Optional.ofNullable(parentThumb); - return this; - } - - public Builder parentThumb(Optional parentThumb) { - Utils.checkNotNull(parentThumb, "parentThumb"); - this.parentThumb = parentThumb; - return this; - } - - public Builder grandparentThumb(String grandparentThumb) { - Utils.checkNotNull(grandparentThumb, "grandparentThumb"); - this.grandparentThumb = Optional.ofNullable(grandparentThumb); - return this; - } - - public Builder grandparentThumb(Optional grandparentThumb) { - Utils.checkNotNull(grandparentThumb, "grandparentThumb"); - this.grandparentThumb = grandparentThumb; - return this; - } - - public Builder grandparentArt(String grandparentArt) { - Utils.checkNotNull(grandparentArt, "grandparentArt"); - this.grandparentArt = Optional.ofNullable(grandparentArt); - return this; - } - - public Builder grandparentArt(Optional grandparentArt) { - Utils.checkNotNull(grandparentArt, "grandparentArt"); - this.grandparentArt = grandparentArt; - return this; - } - - public Builder index(int index) { - Utils.checkNotNull(index, "index"); - this.index = Optional.ofNullable(index); - return this; - } - - public Builder index(Optional index) { - Utils.checkNotNull(index, "index"); - this.index = index; - return this; - } - - public Builder parentIndex(int parentIndex) { - Utils.checkNotNull(parentIndex, "parentIndex"); - this.parentIndex = Optional.ofNullable(parentIndex); - return this; - } - - public Builder parentIndex(Optional parentIndex) { - Utils.checkNotNull(parentIndex, "parentIndex"); - this.parentIndex = parentIndex; - return this; - } - - public Builder originallyAvailableAt(LocalDate originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = Optional.ofNullable(originallyAvailableAt); - return this; - } - - public Builder originallyAvailableAt(Optional originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = originallyAvailableAt; - return this; - } - - public Builder viewedAt(int viewedAt) { - Utils.checkNotNull(viewedAt, "viewedAt"); - this.viewedAt = Optional.ofNullable(viewedAt); - return this; - } - - public Builder viewedAt(Optional viewedAt) { - Utils.checkNotNull(viewedAt, "viewedAt"); - this.viewedAt = viewedAt; - return this; - } - - public Builder accountID(int accountID) { - Utils.checkNotNull(accountID, "accountID"); - this.accountID = Optional.ofNullable(accountID); - return this; - } - - public Builder accountID(Optional accountID) { - Utils.checkNotNull(accountID, "accountID"); - this.accountID = accountID; - return this; - } - - public Builder deviceID(int deviceID) { - Utils.checkNotNull(deviceID, "deviceID"); - this.deviceID = Optional.ofNullable(deviceID); - return this; - } - - public Builder deviceID(Optional deviceID) { - Utils.checkNotNull(deviceID, "deviceID"); - this.deviceID = deviceID; - return this; - } - - public GetSessionHistoryMetadata build() { - return new GetSessionHistoryMetadata( - historyKey, - key, - ratingKey, - librarySectionID, - parentKey, - grandparentKey, - title, - grandparentTitle, - type, - thumb, - parentThumb, - grandparentThumb, - grandparentArt, - index, - parentIndex, - originallyAvailableAt, - viewedAt, - accountID, - deviceID); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryRequest.java deleted file mode 100644 index 34725b22..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryRequest.java +++ /dev/null @@ -1,336 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetSessionHistoryRequest { - - /** - * Sorts the results by the specified field followed by the direction (asc, desc) - * - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=sort") - private Optional sort; - - /** - * Filter results by those that are related to a specific users id - * - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=accountId") - private Optional accountId; - - /** - * Filters content by field and direction/equality - * (Unknown if viewedAt is the only supported column) - * - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=filter") - private Optional filter; - - /** - * Filters the results based on the id of a valid library section - * - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=librarySectionID") - private Optional librarySectionID; - - @JsonCreator - public GetSessionHistoryRequest( - Optional sort, - Optional accountId, - Optional filter, - Optional librarySectionID) { - Utils.checkNotNull(sort, "sort"); - Utils.checkNotNull(accountId, "accountId"); - Utils.checkNotNull(filter, "filter"); - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.sort = sort; - this.accountId = accountId; - this.filter = filter; - this.librarySectionID = librarySectionID; - } - - public GetSessionHistoryRequest() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - /** - * Sorts the results by the specified field followed by the direction (asc, desc) - * - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional sort() { - return (Optional) sort; - } - - /** - * Filter results by those that are related to a specific users id - * - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional accountId() { - return (Optional) accountId; - } - - /** - * Filters content by field and direction/equality - * (Unknown if viewedAt is the only supported column) - * - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional filter() { - return (Optional) filter; - } - - /** - * Filters the results based on the id of a valid library section - * - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionID() { - return (Optional) librarySectionID; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * Sorts the results by the specified field followed by the direction (asc, desc) - * - */ - public GetSessionHistoryRequest withSort(String sort) { - Utils.checkNotNull(sort, "sort"); - this.sort = Optional.ofNullable(sort); - return this; - } - - /** - * Sorts the results by the specified field followed by the direction (asc, desc) - * - */ - public GetSessionHistoryRequest withSort(Optional sort) { - Utils.checkNotNull(sort, "sort"); - this.sort = sort; - return this; - } - - /** - * Filter results by those that are related to a specific users id - * - */ - public GetSessionHistoryRequest withAccountId(long accountId) { - Utils.checkNotNull(accountId, "accountId"); - this.accountId = Optional.ofNullable(accountId); - return this; - } - - /** - * Filter results by those that are related to a specific users id - * - */ - public GetSessionHistoryRequest withAccountId(Optional accountId) { - Utils.checkNotNull(accountId, "accountId"); - this.accountId = accountId; - return this; - } - - /** - * Filters content by field and direction/equality - * (Unknown if viewedAt is the only supported column) - * - */ - public GetSessionHistoryRequest withFilter(Filter filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - /** - * Filters content by field and direction/equality - * (Unknown if viewedAt is the only supported column) - * - */ - public GetSessionHistoryRequest withFilter(Optional filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - /** - * Filters the results based on the id of a valid library section - * - */ - public GetSessionHistoryRequest withLibrarySectionID(long librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = Optional.ofNullable(librarySectionID); - return this; - } - - /** - * Filters the results based on the id of a valid library section - * - */ - public GetSessionHistoryRequest withLibrarySectionID(Optional librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = librarySectionID; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetSessionHistoryRequest other = (GetSessionHistoryRequest) o; - return - java.util.Objects.deepEquals(this.sort, other.sort) && - java.util.Objects.deepEquals(this.accountId, other.accountId) && - java.util.Objects.deepEquals(this.filter, other.filter) && - java.util.Objects.deepEquals(this.librarySectionID, other.librarySectionID); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - sort, - accountId, - filter, - librarySectionID); - } - - @Override - public String toString() { - return Utils.toString(GetSessionHistoryRequest.class, - "sort", sort, - "accountId", accountId, - "filter", filter, - "librarySectionID", librarySectionID); - } - - public final static class Builder { - - private Optional sort = Optional.empty(); - - private Optional accountId = Optional.empty(); - - private Optional filter = Optional.empty(); - - private Optional librarySectionID = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * Sorts the results by the specified field followed by the direction (asc, desc) - * - */ - public Builder sort(String sort) { - Utils.checkNotNull(sort, "sort"); - this.sort = Optional.ofNullable(sort); - return this; - } - - /** - * Sorts the results by the specified field followed by the direction (asc, desc) - * - */ - public Builder sort(Optional sort) { - Utils.checkNotNull(sort, "sort"); - this.sort = sort; - return this; - } - - /** - * Filter results by those that are related to a specific users id - * - */ - public Builder accountId(long accountId) { - Utils.checkNotNull(accountId, "accountId"); - this.accountId = Optional.ofNullable(accountId); - return this; - } - - /** - * Filter results by those that are related to a specific users id - * - */ - public Builder accountId(Optional accountId) { - Utils.checkNotNull(accountId, "accountId"); - this.accountId = accountId; - return this; - } - - /** - * Filters content by field and direction/equality - * (Unknown if viewedAt is the only supported column) - * - */ - public Builder filter(Filter filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - /** - * Filters content by field and direction/equality - * (Unknown if viewedAt is the only supported column) - * - */ - public Builder filter(Optional filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - /** - * Filters the results based on the id of a valid library section - * - */ - public Builder librarySectionID(long librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = Optional.ofNullable(librarySectionID); - return this; - } - - /** - * Filters the results based on the id of a valid library section - * - */ - public Builder librarySectionID(Optional librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = librarySectionID; - return this; - } - - public GetSessionHistoryRequest build() { - return new GetSessionHistoryRequest( - sort, - accountId, - filter, - librarySectionID); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryRequestBuilder.java deleted file mode 100644 index 888b9301..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryRequestBuilder.java +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetSessionHistoryRequestBuilder { - - private Optional sort = Optional.empty(); - private Optional accountId = Optional.empty(); - private Optional filter = Optional.empty(); - private Optional librarySectionID = Optional.empty(); - private final SDKMethodInterfaces.MethodCallGetSessionHistory sdk; - - public GetSessionHistoryRequestBuilder(SDKMethodInterfaces.MethodCallGetSessionHistory sdk) { - this.sdk = sdk; - } - - public GetSessionHistoryRequestBuilder sort(String sort) { - Utils.checkNotNull(sort, "sort"); - this.sort = Optional.of(sort); - return this; - } - - public GetSessionHistoryRequestBuilder sort(Optional sort) { - Utils.checkNotNull(sort, "sort"); - this.sort = sort; - return this; - } - - public GetSessionHistoryRequestBuilder accountId(long accountId) { - Utils.checkNotNull(accountId, "accountId"); - this.accountId = Optional.of(accountId); - return this; - } - - public GetSessionHistoryRequestBuilder accountId(Optional accountId) { - Utils.checkNotNull(accountId, "accountId"); - this.accountId = accountId; - return this; - } - - public GetSessionHistoryRequestBuilder filter(Filter filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.of(filter); - return this; - } - - public GetSessionHistoryRequestBuilder filter(Optional filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - public GetSessionHistoryRequestBuilder librarySectionID(long librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = Optional.of(librarySectionID); - return this; - } - - public GetSessionHistoryRequestBuilder librarySectionID(Optional librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = librarySectionID; - return this; - } - - public GetSessionHistoryResponse call() throws Exception { - - return sdk.getSessionHistory( - sort, - accountId, - filter, - librarySectionID); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryResponse.java deleted file mode 100644 index 39dcc58d..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryResponse.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetSessionHistoryResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * List of Plex Sessions - */ - private Optional object; - - @JsonCreator - public GetSessionHistoryResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional object) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.object = object; - } - - public GetSessionHistoryResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * List of Plex Sessions - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional object() { - return (Optional) object; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetSessionHistoryResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetSessionHistoryResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetSessionHistoryResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * List of Plex Sessions - */ - public GetSessionHistoryResponse withObject(GetSessionHistoryResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * List of Plex Sessions - */ - public GetSessionHistoryResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetSessionHistoryResponse other = (GetSessionHistoryResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.object, other.object); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse, - object); - } - - @Override - public String toString() { - return Utils.toString(GetSessionHistoryResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "object", object); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional object = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * List of Plex Sessions - */ - public Builder object(GetSessionHistoryResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * List of Plex Sessions - */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - public GetSessionHistoryResponse build() { - return new GetSessionHistoryResponse( - contentType, - statusCode, - rawResponse, - object); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryResponseBody.java deleted file mode 100644 index 277b49b6..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionHistoryResponseBody.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -/** - * GetSessionHistoryResponseBody - List of Plex Sessions - */ - -public class GetSessionHistoryResponseBody { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("MediaContainer") - private Optional mediaContainer; - - @JsonCreator - public GetSessionHistoryResponseBody( - @JsonProperty("MediaContainer") Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - } - - public GetSessionHistoryResponseBody() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaContainer() { - return (Optional) mediaContainer; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetSessionHistoryResponseBody withMediaContainer(GetSessionHistoryMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public GetSessionHistoryResponseBody withMediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetSessionHistoryResponseBody other = (GetSessionHistoryResponseBody) o; - return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - mediaContainer); - } - - @Override - public String toString() { - return Utils.toString(GetSessionHistoryResponseBody.class, - "mediaContainer", mediaContainer); - } - - public final static class Builder { - - private Optional mediaContainer = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder mediaContainer(GetSessionHistoryMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public Builder mediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - public GetSessionHistoryResponseBody build() { - return new GetSessionHistoryResponseBody( - mediaContainer); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsMedia.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsMedia.java deleted file mode 100644 index df243c55..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsMedia.java +++ /dev/null @@ -1,412 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetSessionsMedia { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audioChannels") - private Optional audioChannels; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audioCodec") - private Optional audioCodec; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("bitrate") - private Optional bitrate; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("container") - private Optional container; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("duration") - private Optional duration; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("selected") - private Optional selected; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Part") - private Optional> part; - - @JsonCreator - public GetSessionsMedia( - @JsonProperty("audioChannels") Optional audioChannels, - @JsonProperty("audioCodec") Optional audioCodec, - @JsonProperty("bitrate") Optional bitrate, - @JsonProperty("container") Optional container, - @JsonProperty("duration") Optional duration, - @JsonProperty("id") Optional id, - @JsonProperty("selected") Optional selected, - @JsonProperty("Part") Optional> part) { - Utils.checkNotNull(audioChannels, "audioChannels"); - Utils.checkNotNull(audioCodec, "audioCodec"); - Utils.checkNotNull(bitrate, "bitrate"); - Utils.checkNotNull(container, "container"); - Utils.checkNotNull(duration, "duration"); - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(selected, "selected"); - Utils.checkNotNull(part, "part"); - this.audioChannels = audioChannels; - this.audioCodec = audioCodec; - this.bitrate = bitrate; - this.container = container; - this.duration = duration; - this.id = id; - this.selected = selected; - this.part = part; - } - - public GetSessionsMedia() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audioChannels() { - return (Optional) audioChannels; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audioCodec() { - return (Optional) audioCodec; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional bitrate() { - return (Optional) bitrate; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional container() { - return (Optional) container; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional duration() { - return (Optional) duration; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional selected() { - return (Optional) selected; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> part() { - return (Optional>) part; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetSessionsMedia withAudioChannels(int audioChannels) { - Utils.checkNotNull(audioChannels, "audioChannels"); - this.audioChannels = Optional.ofNullable(audioChannels); - return this; - } - - public GetSessionsMedia withAudioChannels(Optional audioChannels) { - Utils.checkNotNull(audioChannels, "audioChannels"); - this.audioChannels = audioChannels; - return this; - } - - public GetSessionsMedia withAudioCodec(String audioCodec) { - Utils.checkNotNull(audioCodec, "audioCodec"); - this.audioCodec = Optional.ofNullable(audioCodec); - return this; - } - - public GetSessionsMedia withAudioCodec(Optional audioCodec) { - Utils.checkNotNull(audioCodec, "audioCodec"); - this.audioCodec = audioCodec; - return this; - } - - public GetSessionsMedia withBitrate(int bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = Optional.ofNullable(bitrate); - return this; - } - - public GetSessionsMedia withBitrate(Optional bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = bitrate; - return this; - } - - public GetSessionsMedia withContainer(String container) { - Utils.checkNotNull(container, "container"); - this.container = Optional.ofNullable(container); - return this; - } - - public GetSessionsMedia withContainer(Optional container) { - Utils.checkNotNull(container, "container"); - this.container = container; - return this; - } - - public GetSessionsMedia withDuration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public GetSessionsMedia withDuration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public GetSessionsMedia withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public GetSessionsMedia withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public GetSessionsMedia withSelected(boolean selected) { - Utils.checkNotNull(selected, "selected"); - this.selected = Optional.ofNullable(selected); - return this; - } - - public GetSessionsMedia withSelected(Optional selected) { - Utils.checkNotNull(selected, "selected"); - this.selected = selected; - return this; - } - - public GetSessionsMedia withPart(java.util.List part) { - Utils.checkNotNull(part, "part"); - this.part = Optional.ofNullable(part); - return this; - } - - public GetSessionsMedia withPart(Optional> part) { - Utils.checkNotNull(part, "part"); - this.part = part; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetSessionsMedia other = (GetSessionsMedia) o; - return - java.util.Objects.deepEquals(this.audioChannels, other.audioChannels) && - java.util.Objects.deepEquals(this.audioCodec, other.audioCodec) && - java.util.Objects.deepEquals(this.bitrate, other.bitrate) && - java.util.Objects.deepEquals(this.container, other.container) && - java.util.Objects.deepEquals(this.duration, other.duration) && - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.selected, other.selected) && - java.util.Objects.deepEquals(this.part, other.part); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - audioChannels, - audioCodec, - bitrate, - container, - duration, - id, - selected, - part); - } - - @Override - public String toString() { - return Utils.toString(GetSessionsMedia.class, - "audioChannels", audioChannels, - "audioCodec", audioCodec, - "bitrate", bitrate, - "container", container, - "duration", duration, - "id", id, - "selected", selected, - "part", part); - } - - public final static class Builder { - - private Optional audioChannels = Optional.empty(); - - private Optional audioCodec = Optional.empty(); - - private Optional bitrate = Optional.empty(); - - private Optional container = Optional.empty(); - - private Optional duration = Optional.empty(); - - private Optional id = Optional.empty(); - - private Optional selected = Optional.empty(); - - private Optional> part = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder audioChannels(int audioChannels) { - Utils.checkNotNull(audioChannels, "audioChannels"); - this.audioChannels = Optional.ofNullable(audioChannels); - return this; - } - - public Builder audioChannels(Optional audioChannels) { - Utils.checkNotNull(audioChannels, "audioChannels"); - this.audioChannels = audioChannels; - return this; - } - - public Builder audioCodec(String audioCodec) { - Utils.checkNotNull(audioCodec, "audioCodec"); - this.audioCodec = Optional.ofNullable(audioCodec); - return this; - } - - public Builder audioCodec(Optional audioCodec) { - Utils.checkNotNull(audioCodec, "audioCodec"); - this.audioCodec = audioCodec; - return this; - } - - public Builder bitrate(int bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = Optional.ofNullable(bitrate); - return this; - } - - public Builder bitrate(Optional bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = bitrate; - return this; - } - - public Builder container(String container) { - Utils.checkNotNull(container, "container"); - this.container = Optional.ofNullable(container); - return this; - } - - public Builder container(Optional container) { - Utils.checkNotNull(container, "container"); - this.container = container; - return this; - } - - public Builder duration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public Builder duration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder selected(boolean selected) { - Utils.checkNotNull(selected, "selected"); - this.selected = Optional.ofNullable(selected); - return this; - } - - public Builder selected(Optional selected) { - Utils.checkNotNull(selected, "selected"); - this.selected = selected; - return this; - } - - public Builder part(java.util.List part) { - Utils.checkNotNull(part, "part"); - this.part = Optional.ofNullable(part); - return this; - } - - public Builder part(Optional> part) { - Utils.checkNotNull(part, "part"); - this.part = part; - return this; - } - - public GetSessionsMedia build() { - return new GetSessionsMedia( - audioChannels, - audioCodec, - bitrate, - container, - duration, - id, - selected, - part); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsMediaContainer.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsMediaContainer.java deleted file mode 100644 index 3fd81fec..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsMediaContainer.java +++ /dev/null @@ -1,154 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetSessionsMediaContainer { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Metadata") - private Optional> metadata; - - @JsonCreator - public GetSessionsMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("Metadata") Optional> metadata) { - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(metadata, "metadata"); - this.size = size; - this.metadata = metadata; - } - - public GetSessionsMediaContainer() { - this(Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetSessionsMediaContainer withSize(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public GetSessionsMediaContainer withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public GetSessionsMediaContainer withMetadata(java.util.List metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public GetSessionsMediaContainer withMetadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetSessionsMediaContainer other = (GetSessionsMediaContainer) o; - return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.metadata, other.metadata); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - size, - metadata); - } - - @Override - public String toString() { - return Utils.toString(GetSessionsMediaContainer.class, - "size", size, - "metadata", metadata); - } - - public final static class Builder { - - private Optional size = Optional.empty(); - - private Optional> metadata = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder size(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder metadata(java.util.List metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public Builder metadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public GetSessionsMediaContainer build() { - return new GetSessionsMediaContainer( - size, - metadata); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsMetadata.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsMetadata.java deleted file mode 100644 index a632a8c3..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsMetadata.java +++ /dev/null @@ -1,1659 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetSessionsMetadata { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("addedAt") - private Optional addedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("art") - private Optional art; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("duration") - private Optional duration; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("grandparentArt") - private Optional grandparentArt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("grandparentGuid") - private Optional grandparentGuid; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("grandparentKey") - private Optional grandparentKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("grandparentRatingKey") - private Optional grandparentRatingKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("grandparentThumb") - private Optional grandparentThumb; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("grandparentTitle") - private Optional grandparentTitle; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("guid") - private Optional guid; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("index") - private Optional index; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionID") - private Optional librarySectionID; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionKey") - private Optional librarySectionKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionTitle") - private Optional librarySectionTitle; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("musicAnalysisVersion") - private Optional musicAnalysisVersion; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentGuid") - private Optional parentGuid; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentIndex") - private Optional parentIndex; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentKey") - private Optional parentKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentRatingKey") - private Optional parentRatingKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentStudio") - private Optional parentStudio; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentThumb") - private Optional parentThumb; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentTitle") - private Optional parentTitle; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentYear") - private Optional parentYear; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ratingCount") - private Optional ratingCount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ratingKey") - private Optional ratingKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("sessionKey") - private Optional sessionKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("thumb") - private Optional thumb; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title") - private Optional title; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("titleSort") - private Optional titleSort; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updatedAt") - private Optional updatedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("viewOffset") - private Optional viewOffset; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Media") - private Optional> media; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("User") - private Optional user; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Player") - private Optional player; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Session") - private Optional session; - - @JsonCreator - public GetSessionsMetadata( - @JsonProperty("addedAt") Optional addedAt, - @JsonProperty("art") Optional art, - @JsonProperty("duration") Optional duration, - @JsonProperty("grandparentArt") Optional grandparentArt, - @JsonProperty("grandparentGuid") Optional grandparentGuid, - @JsonProperty("grandparentKey") Optional grandparentKey, - @JsonProperty("grandparentRatingKey") Optional grandparentRatingKey, - @JsonProperty("grandparentThumb") Optional grandparentThumb, - @JsonProperty("grandparentTitle") Optional grandparentTitle, - @JsonProperty("guid") Optional guid, - @JsonProperty("index") Optional index, - @JsonProperty("key") Optional key, - @JsonProperty("librarySectionID") Optional librarySectionID, - @JsonProperty("librarySectionKey") Optional librarySectionKey, - @JsonProperty("librarySectionTitle") Optional librarySectionTitle, - @JsonProperty("musicAnalysisVersion") Optional musicAnalysisVersion, - @JsonProperty("parentGuid") Optional parentGuid, - @JsonProperty("parentIndex") Optional parentIndex, - @JsonProperty("parentKey") Optional parentKey, - @JsonProperty("parentRatingKey") Optional parentRatingKey, - @JsonProperty("parentStudio") Optional parentStudio, - @JsonProperty("parentThumb") Optional parentThumb, - @JsonProperty("parentTitle") Optional parentTitle, - @JsonProperty("parentYear") Optional parentYear, - @JsonProperty("ratingCount") Optional ratingCount, - @JsonProperty("ratingKey") Optional ratingKey, - @JsonProperty("sessionKey") Optional sessionKey, - @JsonProperty("thumb") Optional thumb, - @JsonProperty("title") Optional title, - @JsonProperty("titleSort") Optional titleSort, - @JsonProperty("type") Optional type, - @JsonProperty("updatedAt") Optional updatedAt, - @JsonProperty("viewOffset") Optional viewOffset, - @JsonProperty("Media") Optional> media, - @JsonProperty("User") Optional user, - @JsonProperty("Player") Optional player, - @JsonProperty("Session") Optional session) { - Utils.checkNotNull(addedAt, "addedAt"); - Utils.checkNotNull(art, "art"); - Utils.checkNotNull(duration, "duration"); - Utils.checkNotNull(grandparentArt, "grandparentArt"); - Utils.checkNotNull(grandparentGuid, "grandparentGuid"); - Utils.checkNotNull(grandparentKey, "grandparentKey"); - Utils.checkNotNull(grandparentRatingKey, "grandparentRatingKey"); - Utils.checkNotNull(grandparentThumb, "grandparentThumb"); - Utils.checkNotNull(grandparentTitle, "grandparentTitle"); - Utils.checkNotNull(guid, "guid"); - Utils.checkNotNull(index, "index"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(librarySectionID, "librarySectionID"); - Utils.checkNotNull(librarySectionKey, "librarySectionKey"); - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - Utils.checkNotNull(musicAnalysisVersion, "musicAnalysisVersion"); - Utils.checkNotNull(parentGuid, "parentGuid"); - Utils.checkNotNull(parentIndex, "parentIndex"); - Utils.checkNotNull(parentKey, "parentKey"); - Utils.checkNotNull(parentRatingKey, "parentRatingKey"); - Utils.checkNotNull(parentStudio, "parentStudio"); - Utils.checkNotNull(parentThumb, "parentThumb"); - Utils.checkNotNull(parentTitle, "parentTitle"); - Utils.checkNotNull(parentYear, "parentYear"); - Utils.checkNotNull(ratingCount, "ratingCount"); - Utils.checkNotNull(ratingKey, "ratingKey"); - Utils.checkNotNull(sessionKey, "sessionKey"); - Utils.checkNotNull(thumb, "thumb"); - Utils.checkNotNull(title, "title"); - Utils.checkNotNull(titleSort, "titleSort"); - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(updatedAt, "updatedAt"); - Utils.checkNotNull(viewOffset, "viewOffset"); - Utils.checkNotNull(media, "media"); - Utils.checkNotNull(user, "user"); - Utils.checkNotNull(player, "player"); - Utils.checkNotNull(session, "session"); - 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; - } - - public GetSessionsMetadata() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional addedAt() { - return (Optional) addedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional art() { - return (Optional) art; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional duration() { - return (Optional) duration; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional grandparentArt() { - return (Optional) grandparentArt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional grandparentGuid() { - return (Optional) grandparentGuid; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional grandparentKey() { - return (Optional) grandparentKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional grandparentRatingKey() { - return (Optional) grandparentRatingKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional grandparentThumb() { - return (Optional) grandparentThumb; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional grandparentTitle() { - return (Optional) grandparentTitle; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional guid() { - return (Optional) guid; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional index() { - return (Optional) index; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionID() { - return (Optional) librarySectionID; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionKey() { - return (Optional) librarySectionKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionTitle() { - return (Optional) librarySectionTitle; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional musicAnalysisVersion() { - return (Optional) musicAnalysisVersion; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentGuid() { - return (Optional) parentGuid; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentIndex() { - return (Optional) parentIndex; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentKey() { - return (Optional) parentKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentRatingKey() { - return (Optional) parentRatingKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentStudio() { - return (Optional) parentStudio; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentThumb() { - return (Optional) parentThumb; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentTitle() { - return (Optional) parentTitle; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentYear() { - return (Optional) parentYear; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional ratingCount() { - return (Optional) ratingCount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional ratingKey() { - return (Optional) ratingKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional sessionKey() { - return (Optional) sessionKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional thumb() { - return (Optional) thumb; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title() { - return (Optional) title; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional titleSort() { - return (Optional) titleSort; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional updatedAt() { - return (Optional) updatedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional viewOffset() { - return (Optional) viewOffset; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> media() { - return (Optional>) media; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional user() { - return (Optional) user; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional player() { - return (Optional) player; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional session() { - return (Optional) session; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetSessionsMetadata withAddedAt(int addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = Optional.ofNullable(addedAt); - return this; - } - - public GetSessionsMetadata withAddedAt(Optional addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = addedAt; - return this; - } - - public GetSessionsMetadata withArt(String art) { - Utils.checkNotNull(art, "art"); - this.art = Optional.ofNullable(art); - return this; - } - - public GetSessionsMetadata withArt(Optional art) { - Utils.checkNotNull(art, "art"); - this.art = art; - return this; - } - - public GetSessionsMetadata withDuration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public GetSessionsMetadata withDuration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public GetSessionsMetadata withGrandparentArt(String grandparentArt) { - Utils.checkNotNull(grandparentArt, "grandparentArt"); - this.grandparentArt = Optional.ofNullable(grandparentArt); - return this; - } - - public GetSessionsMetadata withGrandparentArt(Optional grandparentArt) { - Utils.checkNotNull(grandparentArt, "grandparentArt"); - this.grandparentArt = grandparentArt; - return this; - } - - public GetSessionsMetadata withGrandparentGuid(String grandparentGuid) { - Utils.checkNotNull(grandparentGuid, "grandparentGuid"); - this.grandparentGuid = Optional.ofNullable(grandparentGuid); - return this; - } - - public GetSessionsMetadata withGrandparentGuid(Optional grandparentGuid) { - Utils.checkNotNull(grandparentGuid, "grandparentGuid"); - this.grandparentGuid = grandparentGuid; - return this; - } - - public GetSessionsMetadata withGrandparentKey(String grandparentKey) { - Utils.checkNotNull(grandparentKey, "grandparentKey"); - this.grandparentKey = Optional.ofNullable(grandparentKey); - return this; - } - - public GetSessionsMetadata withGrandparentKey(Optional grandparentKey) { - Utils.checkNotNull(grandparentKey, "grandparentKey"); - this.grandparentKey = grandparentKey; - return this; - } - - public GetSessionsMetadata withGrandparentRatingKey(String grandparentRatingKey) { - Utils.checkNotNull(grandparentRatingKey, "grandparentRatingKey"); - this.grandparentRatingKey = Optional.ofNullable(grandparentRatingKey); - return this; - } - - public GetSessionsMetadata withGrandparentRatingKey(Optional grandparentRatingKey) { - Utils.checkNotNull(grandparentRatingKey, "grandparentRatingKey"); - this.grandparentRatingKey = grandparentRatingKey; - return this; - } - - public GetSessionsMetadata withGrandparentThumb(String grandparentThumb) { - Utils.checkNotNull(grandparentThumb, "grandparentThumb"); - this.grandparentThumb = Optional.ofNullable(grandparentThumb); - return this; - } - - public GetSessionsMetadata withGrandparentThumb(Optional grandparentThumb) { - Utils.checkNotNull(grandparentThumb, "grandparentThumb"); - this.grandparentThumb = grandparentThumb; - return this; - } - - public GetSessionsMetadata withGrandparentTitle(String grandparentTitle) { - Utils.checkNotNull(grandparentTitle, "grandparentTitle"); - this.grandparentTitle = Optional.ofNullable(grandparentTitle); - return this; - } - - public GetSessionsMetadata withGrandparentTitle(Optional grandparentTitle) { - Utils.checkNotNull(grandparentTitle, "grandparentTitle"); - this.grandparentTitle = grandparentTitle; - return this; - } - - public GetSessionsMetadata withGuid(String guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = Optional.ofNullable(guid); - return this; - } - - public GetSessionsMetadata withGuid(Optional guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = guid; - return this; - } - - public GetSessionsMetadata withIndex(int index) { - Utils.checkNotNull(index, "index"); - this.index = Optional.ofNullable(index); - return this; - } - - public GetSessionsMetadata withIndex(Optional index) { - Utils.checkNotNull(index, "index"); - this.index = index; - return this; - } - - public GetSessionsMetadata withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public GetSessionsMetadata withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public GetSessionsMetadata withLibrarySectionID(String librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = Optional.ofNullable(librarySectionID); - return this; - } - - public GetSessionsMetadata withLibrarySectionID(Optional librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = librarySectionID; - return this; - } - - public GetSessionsMetadata withLibrarySectionKey(String librarySectionKey) { - Utils.checkNotNull(librarySectionKey, "librarySectionKey"); - this.librarySectionKey = Optional.ofNullable(librarySectionKey); - return this; - } - - public GetSessionsMetadata withLibrarySectionKey(Optional librarySectionKey) { - Utils.checkNotNull(librarySectionKey, "librarySectionKey"); - this.librarySectionKey = librarySectionKey; - return this; - } - - public GetSessionsMetadata withLibrarySectionTitle(String librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = Optional.ofNullable(librarySectionTitle); - return this; - } - - public GetSessionsMetadata withLibrarySectionTitle(Optional librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = librarySectionTitle; - return this; - } - - public GetSessionsMetadata withMusicAnalysisVersion(String musicAnalysisVersion) { - Utils.checkNotNull(musicAnalysisVersion, "musicAnalysisVersion"); - this.musicAnalysisVersion = Optional.ofNullable(musicAnalysisVersion); - return this; - } - - public GetSessionsMetadata withMusicAnalysisVersion(Optional musicAnalysisVersion) { - Utils.checkNotNull(musicAnalysisVersion, "musicAnalysisVersion"); - this.musicAnalysisVersion = musicAnalysisVersion; - return this; - } - - public GetSessionsMetadata withParentGuid(String parentGuid) { - Utils.checkNotNull(parentGuid, "parentGuid"); - this.parentGuid = Optional.ofNullable(parentGuid); - return this; - } - - public GetSessionsMetadata withParentGuid(Optional parentGuid) { - Utils.checkNotNull(parentGuid, "parentGuid"); - this.parentGuid = parentGuid; - return this; - } - - public GetSessionsMetadata withParentIndex(int parentIndex) { - Utils.checkNotNull(parentIndex, "parentIndex"); - this.parentIndex = Optional.ofNullable(parentIndex); - return this; - } - - public GetSessionsMetadata withParentIndex(Optional parentIndex) { - Utils.checkNotNull(parentIndex, "parentIndex"); - this.parentIndex = parentIndex; - return this; - } - - public GetSessionsMetadata withParentKey(String parentKey) { - Utils.checkNotNull(parentKey, "parentKey"); - this.parentKey = Optional.ofNullable(parentKey); - return this; - } - - public GetSessionsMetadata withParentKey(Optional parentKey) { - Utils.checkNotNull(parentKey, "parentKey"); - this.parentKey = parentKey; - return this; - } - - public GetSessionsMetadata withParentRatingKey(String parentRatingKey) { - Utils.checkNotNull(parentRatingKey, "parentRatingKey"); - this.parentRatingKey = Optional.ofNullable(parentRatingKey); - return this; - } - - public GetSessionsMetadata withParentRatingKey(Optional parentRatingKey) { - Utils.checkNotNull(parentRatingKey, "parentRatingKey"); - this.parentRatingKey = parentRatingKey; - return this; - } - - public GetSessionsMetadata withParentStudio(String parentStudio) { - Utils.checkNotNull(parentStudio, "parentStudio"); - this.parentStudio = Optional.ofNullable(parentStudio); - return this; - } - - public GetSessionsMetadata withParentStudio(Optional parentStudio) { - Utils.checkNotNull(parentStudio, "parentStudio"); - this.parentStudio = parentStudio; - return this; - } - - public GetSessionsMetadata withParentThumb(String parentThumb) { - Utils.checkNotNull(parentThumb, "parentThumb"); - this.parentThumb = Optional.ofNullable(parentThumb); - return this; - } - - public GetSessionsMetadata withParentThumb(Optional parentThumb) { - Utils.checkNotNull(parentThumb, "parentThumb"); - this.parentThumb = parentThumb; - return this; - } - - public GetSessionsMetadata withParentTitle(String parentTitle) { - Utils.checkNotNull(parentTitle, "parentTitle"); - this.parentTitle = Optional.ofNullable(parentTitle); - return this; - } - - public GetSessionsMetadata withParentTitle(Optional parentTitle) { - Utils.checkNotNull(parentTitle, "parentTitle"); - this.parentTitle = parentTitle; - return this; - } - - public GetSessionsMetadata withParentYear(int parentYear) { - Utils.checkNotNull(parentYear, "parentYear"); - this.parentYear = Optional.ofNullable(parentYear); - return this; - } - - public GetSessionsMetadata withParentYear(Optional parentYear) { - Utils.checkNotNull(parentYear, "parentYear"); - this.parentYear = parentYear; - return this; - } - - public GetSessionsMetadata withRatingCount(int ratingCount) { - Utils.checkNotNull(ratingCount, "ratingCount"); - this.ratingCount = Optional.ofNullable(ratingCount); - return this; - } - - public GetSessionsMetadata withRatingCount(Optional ratingCount) { - Utils.checkNotNull(ratingCount, "ratingCount"); - this.ratingCount = ratingCount; - return this; - } - - public GetSessionsMetadata withRatingKey(String ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public GetSessionsMetadata withRatingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public GetSessionsMetadata withSessionKey(String sessionKey) { - Utils.checkNotNull(sessionKey, "sessionKey"); - this.sessionKey = Optional.ofNullable(sessionKey); - return this; - } - - public GetSessionsMetadata withSessionKey(Optional sessionKey) { - Utils.checkNotNull(sessionKey, "sessionKey"); - this.sessionKey = sessionKey; - return this; - } - - public GetSessionsMetadata withThumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public GetSessionsMetadata withThumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public GetSessionsMetadata withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public GetSessionsMetadata withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public GetSessionsMetadata withTitleSort(String titleSort) { - Utils.checkNotNull(titleSort, "titleSort"); - this.titleSort = Optional.ofNullable(titleSort); - return this; - } - - public GetSessionsMetadata withTitleSort(Optional titleSort) { - Utils.checkNotNull(titleSort, "titleSort"); - this.titleSort = titleSort; - return this; - } - - public GetSessionsMetadata withType(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public GetSessionsMetadata withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public GetSessionsMetadata withUpdatedAt(int updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public GetSessionsMetadata withUpdatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public GetSessionsMetadata withViewOffset(int viewOffset) { - Utils.checkNotNull(viewOffset, "viewOffset"); - this.viewOffset = Optional.ofNullable(viewOffset); - return this; - } - - public GetSessionsMetadata withViewOffset(Optional viewOffset) { - Utils.checkNotNull(viewOffset, "viewOffset"); - this.viewOffset = viewOffset; - return this; - } - - public GetSessionsMetadata withMedia(java.util.List media) { - Utils.checkNotNull(media, "media"); - this.media = Optional.ofNullable(media); - return this; - } - - public GetSessionsMetadata withMedia(Optional> media) { - Utils.checkNotNull(media, "media"); - this.media = media; - return this; - } - - public GetSessionsMetadata withUser(GetSessionsUser user) { - Utils.checkNotNull(user, "user"); - this.user = Optional.ofNullable(user); - return this; - } - - public GetSessionsMetadata withUser(Optional user) { - Utils.checkNotNull(user, "user"); - this.user = user; - return this; - } - - public GetSessionsMetadata withPlayer(Player player) { - Utils.checkNotNull(player, "player"); - this.player = Optional.ofNullable(player); - return this; - } - - public GetSessionsMetadata withPlayer(Optional player) { - Utils.checkNotNull(player, "player"); - this.player = player; - return this; - } - - public GetSessionsMetadata withSession(Session session) { - Utils.checkNotNull(session, "session"); - this.session = Optional.ofNullable(session); - return this; - } - - public GetSessionsMetadata withSession(Optional session) { - Utils.checkNotNull(session, "session"); - this.session = session; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetSessionsMetadata other = (GetSessionsMetadata) o; - return - java.util.Objects.deepEquals(this.addedAt, other.addedAt) && - java.util.Objects.deepEquals(this.art, other.art) && - java.util.Objects.deepEquals(this.duration, other.duration) && - java.util.Objects.deepEquals(this.grandparentArt, other.grandparentArt) && - java.util.Objects.deepEquals(this.grandparentGuid, other.grandparentGuid) && - java.util.Objects.deepEquals(this.grandparentKey, other.grandparentKey) && - java.util.Objects.deepEquals(this.grandparentRatingKey, other.grandparentRatingKey) && - java.util.Objects.deepEquals(this.grandparentThumb, other.grandparentThumb) && - java.util.Objects.deepEquals(this.grandparentTitle, other.grandparentTitle) && - java.util.Objects.deepEquals(this.guid, other.guid) && - java.util.Objects.deepEquals(this.index, other.index) && - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.librarySectionID, other.librarySectionID) && - java.util.Objects.deepEquals(this.librarySectionKey, other.librarySectionKey) && - java.util.Objects.deepEquals(this.librarySectionTitle, other.librarySectionTitle) && - java.util.Objects.deepEquals(this.musicAnalysisVersion, other.musicAnalysisVersion) && - java.util.Objects.deepEquals(this.parentGuid, other.parentGuid) && - java.util.Objects.deepEquals(this.parentIndex, other.parentIndex) && - java.util.Objects.deepEquals(this.parentKey, other.parentKey) && - java.util.Objects.deepEquals(this.parentRatingKey, other.parentRatingKey) && - java.util.Objects.deepEquals(this.parentStudio, other.parentStudio) && - java.util.Objects.deepEquals(this.parentThumb, other.parentThumb) && - java.util.Objects.deepEquals(this.parentTitle, other.parentTitle) && - java.util.Objects.deepEquals(this.parentYear, other.parentYear) && - java.util.Objects.deepEquals(this.ratingCount, other.ratingCount) && - java.util.Objects.deepEquals(this.ratingKey, other.ratingKey) && - java.util.Objects.deepEquals(this.sessionKey, other.sessionKey) && - java.util.Objects.deepEquals(this.thumb, other.thumb) && - java.util.Objects.deepEquals(this.title, other.title) && - java.util.Objects.deepEquals(this.titleSort, other.titleSort) && - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.updatedAt, other.updatedAt) && - java.util.Objects.deepEquals(this.viewOffset, other.viewOffset) && - java.util.Objects.deepEquals(this.media, other.media) && - java.util.Objects.deepEquals(this.user, other.user) && - java.util.Objects.deepEquals(this.player, other.player) && - java.util.Objects.deepEquals(this.session, other.session); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - addedAt, - art, - duration, - grandparentArt, - grandparentGuid, - grandparentKey, - grandparentRatingKey, - grandparentThumb, - grandparentTitle, - guid, - index, - key, - librarySectionID, - librarySectionKey, - librarySectionTitle, - musicAnalysisVersion, - parentGuid, - parentIndex, - parentKey, - parentRatingKey, - parentStudio, - parentThumb, - parentTitle, - parentYear, - ratingCount, - ratingKey, - sessionKey, - thumb, - title, - titleSort, - type, - updatedAt, - viewOffset, - media, - user, - player, - session); - } - - @Override - public String toString() { - return Utils.toString(GetSessionsMetadata.class, - "addedAt", addedAt, - "art", art, - "duration", duration, - "grandparentArt", grandparentArt, - "grandparentGuid", grandparentGuid, - "grandparentKey", grandparentKey, - "grandparentRatingKey", grandparentRatingKey, - "grandparentThumb", grandparentThumb, - "grandparentTitle", grandparentTitle, - "guid", guid, - "index", index, - "key", key, - "librarySectionID", librarySectionID, - "librarySectionKey", librarySectionKey, - "librarySectionTitle", librarySectionTitle, - "musicAnalysisVersion", musicAnalysisVersion, - "parentGuid", parentGuid, - "parentIndex", parentIndex, - "parentKey", parentKey, - "parentRatingKey", parentRatingKey, - "parentStudio", parentStudio, - "parentThumb", parentThumb, - "parentTitle", parentTitle, - "parentYear", parentYear, - "ratingCount", ratingCount, - "ratingKey", ratingKey, - "sessionKey", sessionKey, - "thumb", thumb, - "title", title, - "titleSort", titleSort, - "type", type, - "updatedAt", updatedAt, - "viewOffset", viewOffset, - "media", media, - "user", user, - "player", player, - "session", session); - } - - public final static class Builder { - - private Optional addedAt = Optional.empty(); - - private Optional art = Optional.empty(); - - private Optional duration = Optional.empty(); - - private Optional grandparentArt = Optional.empty(); - - private Optional grandparentGuid = Optional.empty(); - - private Optional grandparentKey = Optional.empty(); - - private Optional grandparentRatingKey = Optional.empty(); - - private Optional grandparentThumb = Optional.empty(); - - private Optional grandparentTitle = Optional.empty(); - - private Optional guid = Optional.empty(); - - private Optional index = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional librarySectionID = Optional.empty(); - - private Optional librarySectionKey = Optional.empty(); - - private Optional librarySectionTitle = Optional.empty(); - - private Optional musicAnalysisVersion = Optional.empty(); - - private Optional parentGuid = Optional.empty(); - - private Optional parentIndex = Optional.empty(); - - private Optional parentKey = Optional.empty(); - - private Optional parentRatingKey = Optional.empty(); - - private Optional parentStudio = Optional.empty(); - - private Optional parentThumb = Optional.empty(); - - private Optional parentTitle = Optional.empty(); - - private Optional parentYear = Optional.empty(); - - private Optional ratingCount = Optional.empty(); - - private Optional ratingKey = Optional.empty(); - - private Optional sessionKey = Optional.empty(); - - private Optional thumb = Optional.empty(); - - private Optional title = Optional.empty(); - - private Optional titleSort = Optional.empty(); - - private Optional type = Optional.empty(); - - private Optional updatedAt = Optional.empty(); - - private Optional viewOffset = Optional.empty(); - - private Optional> media = Optional.empty(); - - private Optional user = Optional.empty(); - - private Optional player = Optional.empty(); - - private Optional session = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder addedAt(int addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = Optional.ofNullable(addedAt); - return this; - } - - public Builder addedAt(Optional addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = addedAt; - return this; - } - - public Builder art(String art) { - Utils.checkNotNull(art, "art"); - this.art = Optional.ofNullable(art); - return this; - } - - public Builder art(Optional art) { - Utils.checkNotNull(art, "art"); - this.art = art; - return this; - } - - public Builder duration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public Builder duration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public Builder grandparentArt(String grandparentArt) { - Utils.checkNotNull(grandparentArt, "grandparentArt"); - this.grandparentArt = Optional.ofNullable(grandparentArt); - return this; - } - - public Builder grandparentArt(Optional grandparentArt) { - Utils.checkNotNull(grandparentArt, "grandparentArt"); - this.grandparentArt = grandparentArt; - return this; - } - - public Builder grandparentGuid(String grandparentGuid) { - Utils.checkNotNull(grandparentGuid, "grandparentGuid"); - this.grandparentGuid = Optional.ofNullable(grandparentGuid); - return this; - } - - public Builder grandparentGuid(Optional grandparentGuid) { - Utils.checkNotNull(grandparentGuid, "grandparentGuid"); - this.grandparentGuid = grandparentGuid; - return this; - } - - public Builder grandparentKey(String grandparentKey) { - Utils.checkNotNull(grandparentKey, "grandparentKey"); - this.grandparentKey = Optional.ofNullable(grandparentKey); - return this; - } - - public Builder grandparentKey(Optional grandparentKey) { - Utils.checkNotNull(grandparentKey, "grandparentKey"); - this.grandparentKey = grandparentKey; - return this; - } - - public Builder grandparentRatingKey(String grandparentRatingKey) { - Utils.checkNotNull(grandparentRatingKey, "grandparentRatingKey"); - this.grandparentRatingKey = Optional.ofNullable(grandparentRatingKey); - return this; - } - - public Builder grandparentRatingKey(Optional grandparentRatingKey) { - Utils.checkNotNull(grandparentRatingKey, "grandparentRatingKey"); - this.grandparentRatingKey = grandparentRatingKey; - return this; - } - - public Builder grandparentThumb(String grandparentThumb) { - Utils.checkNotNull(grandparentThumb, "grandparentThumb"); - this.grandparentThumb = Optional.ofNullable(grandparentThumb); - return this; - } - - public Builder grandparentThumb(Optional grandparentThumb) { - Utils.checkNotNull(grandparentThumb, "grandparentThumb"); - this.grandparentThumb = grandparentThumb; - return this; - } - - public Builder grandparentTitle(String grandparentTitle) { - Utils.checkNotNull(grandparentTitle, "grandparentTitle"); - this.grandparentTitle = Optional.ofNullable(grandparentTitle); - return this; - } - - public Builder grandparentTitle(Optional grandparentTitle) { - Utils.checkNotNull(grandparentTitle, "grandparentTitle"); - this.grandparentTitle = grandparentTitle; - return this; - } - - public Builder guid(String guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = Optional.ofNullable(guid); - return this; - } - - public Builder guid(Optional guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = guid; - return this; - } - - public Builder index(int index) { - Utils.checkNotNull(index, "index"); - this.index = Optional.ofNullable(index); - return this; - } - - public Builder index(Optional index) { - Utils.checkNotNull(index, "index"); - this.index = index; - return this; - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder librarySectionID(String librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = Optional.ofNullable(librarySectionID); - return this; - } - - public Builder librarySectionID(Optional librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = librarySectionID; - return this; - } - - public Builder librarySectionKey(String librarySectionKey) { - Utils.checkNotNull(librarySectionKey, "librarySectionKey"); - this.librarySectionKey = Optional.ofNullable(librarySectionKey); - return this; - } - - public Builder librarySectionKey(Optional librarySectionKey) { - Utils.checkNotNull(librarySectionKey, "librarySectionKey"); - this.librarySectionKey = librarySectionKey; - return this; - } - - public Builder librarySectionTitle(String librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = Optional.ofNullable(librarySectionTitle); - return this; - } - - public Builder librarySectionTitle(Optional librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = librarySectionTitle; - return this; - } - - public Builder musicAnalysisVersion(String musicAnalysisVersion) { - Utils.checkNotNull(musicAnalysisVersion, "musicAnalysisVersion"); - this.musicAnalysisVersion = Optional.ofNullable(musicAnalysisVersion); - return this; - } - - public Builder musicAnalysisVersion(Optional musicAnalysisVersion) { - Utils.checkNotNull(musicAnalysisVersion, "musicAnalysisVersion"); - this.musicAnalysisVersion = musicAnalysisVersion; - return this; - } - - public Builder parentGuid(String parentGuid) { - Utils.checkNotNull(parentGuid, "parentGuid"); - this.parentGuid = Optional.ofNullable(parentGuid); - return this; - } - - public Builder parentGuid(Optional parentGuid) { - Utils.checkNotNull(parentGuid, "parentGuid"); - this.parentGuid = parentGuid; - return this; - } - - public Builder parentIndex(int parentIndex) { - Utils.checkNotNull(parentIndex, "parentIndex"); - this.parentIndex = Optional.ofNullable(parentIndex); - return this; - } - - public Builder parentIndex(Optional parentIndex) { - Utils.checkNotNull(parentIndex, "parentIndex"); - this.parentIndex = parentIndex; - return this; - } - - public Builder parentKey(String parentKey) { - Utils.checkNotNull(parentKey, "parentKey"); - this.parentKey = Optional.ofNullable(parentKey); - return this; - } - - public Builder parentKey(Optional parentKey) { - Utils.checkNotNull(parentKey, "parentKey"); - this.parentKey = parentKey; - return this; - } - - public Builder parentRatingKey(String parentRatingKey) { - Utils.checkNotNull(parentRatingKey, "parentRatingKey"); - this.parentRatingKey = Optional.ofNullable(parentRatingKey); - return this; - } - - public Builder parentRatingKey(Optional parentRatingKey) { - Utils.checkNotNull(parentRatingKey, "parentRatingKey"); - this.parentRatingKey = parentRatingKey; - return this; - } - - public Builder parentStudio(String parentStudio) { - Utils.checkNotNull(parentStudio, "parentStudio"); - this.parentStudio = Optional.ofNullable(parentStudio); - return this; - } - - public Builder parentStudio(Optional parentStudio) { - Utils.checkNotNull(parentStudio, "parentStudio"); - this.parentStudio = parentStudio; - return this; - } - - public Builder parentThumb(String parentThumb) { - Utils.checkNotNull(parentThumb, "parentThumb"); - this.parentThumb = Optional.ofNullable(parentThumb); - return this; - } - - public Builder parentThumb(Optional parentThumb) { - Utils.checkNotNull(parentThumb, "parentThumb"); - this.parentThumb = parentThumb; - return this; - } - - public Builder parentTitle(String parentTitle) { - Utils.checkNotNull(parentTitle, "parentTitle"); - this.parentTitle = Optional.ofNullable(parentTitle); - return this; - } - - public Builder parentTitle(Optional parentTitle) { - Utils.checkNotNull(parentTitle, "parentTitle"); - this.parentTitle = parentTitle; - return this; - } - - public Builder parentYear(int parentYear) { - Utils.checkNotNull(parentYear, "parentYear"); - this.parentYear = Optional.ofNullable(parentYear); - return this; - } - - public Builder parentYear(Optional parentYear) { - Utils.checkNotNull(parentYear, "parentYear"); - this.parentYear = parentYear; - return this; - } - - public Builder ratingCount(int ratingCount) { - Utils.checkNotNull(ratingCount, "ratingCount"); - this.ratingCount = Optional.ofNullable(ratingCount); - return this; - } - - public Builder ratingCount(Optional ratingCount) { - Utils.checkNotNull(ratingCount, "ratingCount"); - this.ratingCount = ratingCount; - return this; - } - - public Builder ratingKey(String ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public Builder ratingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public Builder sessionKey(String sessionKey) { - Utils.checkNotNull(sessionKey, "sessionKey"); - this.sessionKey = Optional.ofNullable(sessionKey); - return this; - } - - public Builder sessionKey(Optional sessionKey) { - Utils.checkNotNull(sessionKey, "sessionKey"); - this.sessionKey = sessionKey; - return this; - } - - public Builder thumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public Builder thumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Builder titleSort(String titleSort) { - Utils.checkNotNull(titleSort, "titleSort"); - this.titleSort = Optional.ofNullable(titleSort); - return this; - } - - public Builder titleSort(Optional titleSort) { - Utils.checkNotNull(titleSort, "titleSort"); - this.titleSort = titleSort; - return this; - } - - public Builder type(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Builder updatedAt(int updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public Builder updatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public Builder viewOffset(int viewOffset) { - Utils.checkNotNull(viewOffset, "viewOffset"); - this.viewOffset = Optional.ofNullable(viewOffset); - return this; - } - - public Builder viewOffset(Optional viewOffset) { - Utils.checkNotNull(viewOffset, "viewOffset"); - this.viewOffset = viewOffset; - return this; - } - - public Builder media(java.util.List media) { - Utils.checkNotNull(media, "media"); - this.media = Optional.ofNullable(media); - return this; - } - - public Builder media(Optional> media) { - Utils.checkNotNull(media, "media"); - this.media = media; - return this; - } - - public Builder user(GetSessionsUser user) { - Utils.checkNotNull(user, "user"); - this.user = Optional.ofNullable(user); - return this; - } - - public Builder user(Optional user) { - Utils.checkNotNull(user, "user"); - this.user = user; - return this; - } - - public Builder player(Player player) { - Utils.checkNotNull(player, "player"); - this.player = Optional.ofNullable(player); - return this; - } - - public Builder player(Optional player) { - Utils.checkNotNull(player, "player"); - this.player = player; - return this; - } - - public Builder session(Session session) { - Utils.checkNotNull(session, "session"); - this.session = Optional.ofNullable(session); - return this; - } - - public Builder session(Optional session) { - Utils.checkNotNull(session, "session"); - this.session = session; - return this; - } - - public GetSessionsMetadata build() { - return new GetSessionsMetadata( - addedAt, - art, - duration, - grandparentArt, - grandparentGuid, - grandparentKey, - grandparentRatingKey, - grandparentThumb, - grandparentTitle, - guid, - index, - key, - librarySectionID, - librarySectionKey, - librarySectionTitle, - musicAnalysisVersion, - parentGuid, - parentIndex, - parentKey, - parentRatingKey, - parentStudio, - parentThumb, - parentTitle, - parentYear, - ratingCount, - ratingKey, - sessionKey, - thumb, - title, - titleSort, - type, - updatedAt, - viewOffset, - media, - user, - player, - session); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsPart.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsPart.java deleted file mode 100644 index 7735cdbb..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsPart.java +++ /dev/null @@ -1,498 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetSessionsPart { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("container") - private Optional container; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("duration") - private Optional duration; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("file") - private Optional file; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("hasThumbnail") - private Optional hasThumbnail; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("decision") - private Optional decision; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("selected") - private Optional selected; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Stream") - private Optional> stream; - - @JsonCreator - public GetSessionsPart( - @JsonProperty("container") Optional container, - @JsonProperty("duration") Optional duration, - @JsonProperty("file") Optional file, - @JsonProperty("hasThumbnail") Optional hasThumbnail, - @JsonProperty("id") Optional id, - @JsonProperty("key") Optional key, - @JsonProperty("size") Optional size, - @JsonProperty("decision") Optional decision, - @JsonProperty("selected") Optional selected, - @JsonProperty("Stream") Optional> stream) { - Utils.checkNotNull(container, "container"); - Utils.checkNotNull(duration, "duration"); - Utils.checkNotNull(file, "file"); - Utils.checkNotNull(hasThumbnail, "hasThumbnail"); - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(decision, "decision"); - Utils.checkNotNull(selected, "selected"); - Utils.checkNotNull(stream, "stream"); - 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; - } - - public GetSessionsPart() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional container() { - return (Optional) container; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional duration() { - return (Optional) duration; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional file() { - return (Optional) file; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional hasThumbnail() { - return (Optional) hasThumbnail; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional decision() { - return (Optional) decision; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional selected() { - return (Optional) selected; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> stream() { - return (Optional>) stream; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetSessionsPart withContainer(String container) { - Utils.checkNotNull(container, "container"); - this.container = Optional.ofNullable(container); - return this; - } - - public GetSessionsPart withContainer(Optional container) { - Utils.checkNotNull(container, "container"); - this.container = container; - return this; - } - - public GetSessionsPart withDuration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public GetSessionsPart withDuration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public GetSessionsPart withFile(String file) { - Utils.checkNotNull(file, "file"); - this.file = Optional.ofNullable(file); - return this; - } - - public GetSessionsPart withFile(Optional file) { - Utils.checkNotNull(file, "file"); - this.file = file; - return this; - } - - public GetSessionsPart withHasThumbnail(String hasThumbnail) { - Utils.checkNotNull(hasThumbnail, "hasThumbnail"); - this.hasThumbnail = Optional.ofNullable(hasThumbnail); - return this; - } - - public GetSessionsPart withHasThumbnail(Optional hasThumbnail) { - Utils.checkNotNull(hasThumbnail, "hasThumbnail"); - this.hasThumbnail = hasThumbnail; - return this; - } - - public GetSessionsPart withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public GetSessionsPart withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public GetSessionsPart withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public GetSessionsPart withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public GetSessionsPart withSize(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public GetSessionsPart withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public GetSessionsPart withDecision(String decision) { - Utils.checkNotNull(decision, "decision"); - this.decision = Optional.ofNullable(decision); - return this; - } - - public GetSessionsPart withDecision(Optional decision) { - Utils.checkNotNull(decision, "decision"); - this.decision = decision; - return this; - } - - public GetSessionsPart withSelected(boolean selected) { - Utils.checkNotNull(selected, "selected"); - this.selected = Optional.ofNullable(selected); - return this; - } - - public GetSessionsPart withSelected(Optional selected) { - Utils.checkNotNull(selected, "selected"); - this.selected = selected; - return this; - } - - public GetSessionsPart withStream(java.util.List stream) { - Utils.checkNotNull(stream, "stream"); - this.stream = Optional.ofNullable(stream); - return this; - } - - public GetSessionsPart withStream(Optional> stream) { - Utils.checkNotNull(stream, "stream"); - this.stream = stream; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetSessionsPart other = (GetSessionsPart) o; - return - java.util.Objects.deepEquals(this.container, other.container) && - java.util.Objects.deepEquals(this.duration, other.duration) && - java.util.Objects.deepEquals(this.file, other.file) && - java.util.Objects.deepEquals(this.hasThumbnail, other.hasThumbnail) && - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.decision, other.decision) && - java.util.Objects.deepEquals(this.selected, other.selected) && - java.util.Objects.deepEquals(this.stream, other.stream); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - container, - duration, - file, - hasThumbnail, - id, - key, - size, - decision, - selected, - stream); - } - - @Override - public String toString() { - return Utils.toString(GetSessionsPart.class, - "container", container, - "duration", duration, - "file", file, - "hasThumbnail", hasThumbnail, - "id", id, - "key", key, - "size", size, - "decision", decision, - "selected", selected, - "stream", stream); - } - - public final static class Builder { - - private Optional container = Optional.empty(); - - private Optional duration = Optional.empty(); - - private Optional file = Optional.empty(); - - private Optional hasThumbnail = Optional.empty(); - - private Optional id = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional size = Optional.empty(); - - private Optional decision = Optional.empty(); - - private Optional selected = Optional.empty(); - - private Optional> stream = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder container(String container) { - Utils.checkNotNull(container, "container"); - this.container = Optional.ofNullable(container); - return this; - } - - public Builder container(Optional container) { - Utils.checkNotNull(container, "container"); - this.container = container; - return this; - } - - public Builder duration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public Builder duration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public Builder file(String file) { - Utils.checkNotNull(file, "file"); - this.file = Optional.ofNullable(file); - return this; - } - - public Builder file(Optional file) { - Utils.checkNotNull(file, "file"); - this.file = file; - return this; - } - - public Builder hasThumbnail(String hasThumbnail) { - Utils.checkNotNull(hasThumbnail, "hasThumbnail"); - this.hasThumbnail = Optional.ofNullable(hasThumbnail); - return this; - } - - public Builder hasThumbnail(Optional hasThumbnail) { - Utils.checkNotNull(hasThumbnail, "hasThumbnail"); - this.hasThumbnail = hasThumbnail; - return this; - } - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder size(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder decision(String decision) { - Utils.checkNotNull(decision, "decision"); - this.decision = Optional.ofNullable(decision); - return this; - } - - public Builder decision(Optional decision) { - Utils.checkNotNull(decision, "decision"); - this.decision = decision; - return this; - } - - public Builder selected(boolean selected) { - Utils.checkNotNull(selected, "selected"); - this.selected = Optional.ofNullable(selected); - return this; - } - - public Builder selected(Optional selected) { - Utils.checkNotNull(selected, "selected"); - this.selected = selected; - return this; - } - - public Builder stream(java.util.List stream) { - Utils.checkNotNull(stream, "stream"); - this.stream = Optional.ofNullable(stream); - return this; - } - - public Builder stream(Optional> stream) { - Utils.checkNotNull(stream, "stream"); - this.stream = stream; - return this; - } - - public GetSessionsPart build() { - return new GetSessionsPart( - container, - duration, - file, - hasThumbnail, - id, - key, - size, - decision, - selected, - stream); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsRequestBuilder.java deleted file mode 100644 index db873072..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsRequestBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetSessionsRequestBuilder { - - private final SDKMethodInterfaces.MethodCallGetSessions sdk; - - public GetSessionsRequestBuilder(SDKMethodInterfaces.MethodCallGetSessions sdk) { - this.sdk = sdk; - } - - public GetSessionsResponse call() throws Exception { - - return sdk.getSessionsDirect(); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsResponse.java deleted file mode 100644 index b79b14ed..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsResponse.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetSessionsResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * List of Active Plex Sessions - */ - private Optional object; - - @JsonCreator - public GetSessionsResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional object) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.object = object; - } - - public GetSessionsResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * List of Active Plex Sessions - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional object() { - return (Optional) object; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetSessionsResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetSessionsResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetSessionsResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * List of Active Plex Sessions - */ - public GetSessionsResponse withObject(GetSessionsResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * List of Active Plex Sessions - */ - public GetSessionsResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetSessionsResponse other = (GetSessionsResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.object, other.object); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse, - object); - } - - @Override - public String toString() { - return Utils.toString(GetSessionsResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "object", object); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional object = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * List of Active Plex Sessions - */ - public Builder object(GetSessionsResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * List of Active Plex Sessions - */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - public GetSessionsResponse build() { - return new GetSessionsResponse( - contentType, - statusCode, - rawResponse, - object); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsResponseBody.java deleted file mode 100644 index 9e28604b..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsResponseBody.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -/** - * GetSessionsResponseBody - List of Active Plex Sessions - */ - -public class GetSessionsResponseBody { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("MediaContainer") - private Optional mediaContainer; - - @JsonCreator - public GetSessionsResponseBody( - @JsonProperty("MediaContainer") Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - } - - public GetSessionsResponseBody() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaContainer() { - return (Optional) mediaContainer; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetSessionsResponseBody withMediaContainer(GetSessionsMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public GetSessionsResponseBody withMediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetSessionsResponseBody other = (GetSessionsResponseBody) o; - return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - mediaContainer); - } - - @Override - public String toString() { - return Utils.toString(GetSessionsResponseBody.class, - "mediaContainer", mediaContainer); - } - - public final static class Builder { - - private Optional mediaContainer = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder mediaContainer(GetSessionsMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public Builder mediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - public GetSessionsResponseBody build() { - return new GetSessionsResponseBody( - mediaContainer); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsStream.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsStream.java deleted file mode 100644 index 645f24a1..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsStream.java +++ /dev/null @@ -1,928 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetSessionsStream { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("albumGain") - private Optional albumGain; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("albumPeak") - private Optional albumPeak; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("albumRange") - private Optional albumRange; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audioChannelLayout") - private Optional audioChannelLayout; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("bitDepth") - private Optional bitDepth; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("bitrate") - private Optional bitrate; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("channels") - private Optional channels; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("codec") - private Optional codec; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("displayTitle") - private Optional displayTitle; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("extendedDisplayTitle") - private Optional extendedDisplayTitle; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("gain") - private Optional gain; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("index") - private Optional index; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("loudness") - private Optional loudness; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("lra") - private Optional lra; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("peak") - private Optional peak; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("samplingRate") - private Optional samplingRate; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("selected") - private Optional selected; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("streamType") - private Optional streamType; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("location") - private Optional location; - - @JsonCreator - public GetSessionsStream( - @JsonProperty("albumGain") Optional albumGain, - @JsonProperty("albumPeak") Optional albumPeak, - @JsonProperty("albumRange") Optional albumRange, - @JsonProperty("audioChannelLayout") Optional audioChannelLayout, - @JsonProperty("bitDepth") Optional bitDepth, - @JsonProperty("bitrate") Optional bitrate, - @JsonProperty("channels") Optional channels, - @JsonProperty("codec") Optional codec, - @JsonProperty("displayTitle") Optional displayTitle, - @JsonProperty("extendedDisplayTitle") Optional extendedDisplayTitle, - @JsonProperty("gain") Optional gain, - @JsonProperty("id") Optional id, - @JsonProperty("index") Optional index, - @JsonProperty("loudness") Optional loudness, - @JsonProperty("lra") Optional lra, - @JsonProperty("peak") Optional peak, - @JsonProperty("samplingRate") Optional samplingRate, - @JsonProperty("selected") Optional selected, - @JsonProperty("streamType") Optional streamType, - @JsonProperty("location") Optional location) { - Utils.checkNotNull(albumGain, "albumGain"); - Utils.checkNotNull(albumPeak, "albumPeak"); - Utils.checkNotNull(albumRange, "albumRange"); - Utils.checkNotNull(audioChannelLayout, "audioChannelLayout"); - Utils.checkNotNull(bitDepth, "bitDepth"); - Utils.checkNotNull(bitrate, "bitrate"); - Utils.checkNotNull(channels, "channels"); - Utils.checkNotNull(codec, "codec"); - Utils.checkNotNull(displayTitle, "displayTitle"); - Utils.checkNotNull(extendedDisplayTitle, "extendedDisplayTitle"); - Utils.checkNotNull(gain, "gain"); - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(index, "index"); - Utils.checkNotNull(loudness, "loudness"); - Utils.checkNotNull(lra, "lra"); - Utils.checkNotNull(peak, "peak"); - Utils.checkNotNull(samplingRate, "samplingRate"); - Utils.checkNotNull(selected, "selected"); - Utils.checkNotNull(streamType, "streamType"); - Utils.checkNotNull(location, "location"); - 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; - } - - public GetSessionsStream() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional albumGain() { - return (Optional) albumGain; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional albumPeak() { - return (Optional) albumPeak; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional albumRange() { - return (Optional) albumRange; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audioChannelLayout() { - return (Optional) audioChannelLayout; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional bitDepth() { - return (Optional) bitDepth; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional bitrate() { - return (Optional) bitrate; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional channels() { - return (Optional) channels; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional codec() { - return (Optional) codec; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional displayTitle() { - return (Optional) displayTitle; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional extendedDisplayTitle() { - return (Optional) extendedDisplayTitle; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional gain() { - return (Optional) gain; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional index() { - return (Optional) index; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional loudness() { - return (Optional) loudness; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional lra() { - return (Optional) lra; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional peak() { - return (Optional) peak; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional samplingRate() { - return (Optional) samplingRate; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional selected() { - return (Optional) selected; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional streamType() { - return (Optional) streamType; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional location() { - return (Optional) location; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetSessionsStream withAlbumGain(String albumGain) { - Utils.checkNotNull(albumGain, "albumGain"); - this.albumGain = Optional.ofNullable(albumGain); - return this; - } - - public GetSessionsStream withAlbumGain(Optional albumGain) { - Utils.checkNotNull(albumGain, "albumGain"); - this.albumGain = albumGain; - return this; - } - - public GetSessionsStream withAlbumPeak(String albumPeak) { - Utils.checkNotNull(albumPeak, "albumPeak"); - this.albumPeak = Optional.ofNullable(albumPeak); - return this; - } - - public GetSessionsStream withAlbumPeak(Optional albumPeak) { - Utils.checkNotNull(albumPeak, "albumPeak"); - this.albumPeak = albumPeak; - return this; - } - - public GetSessionsStream withAlbumRange(String albumRange) { - Utils.checkNotNull(albumRange, "albumRange"); - this.albumRange = Optional.ofNullable(albumRange); - return this; - } - - public GetSessionsStream withAlbumRange(Optional albumRange) { - Utils.checkNotNull(albumRange, "albumRange"); - this.albumRange = albumRange; - return this; - } - - public GetSessionsStream withAudioChannelLayout(String audioChannelLayout) { - Utils.checkNotNull(audioChannelLayout, "audioChannelLayout"); - this.audioChannelLayout = Optional.ofNullable(audioChannelLayout); - return this; - } - - public GetSessionsStream withAudioChannelLayout(Optional audioChannelLayout) { - Utils.checkNotNull(audioChannelLayout, "audioChannelLayout"); - this.audioChannelLayout = audioChannelLayout; - return this; - } - - public GetSessionsStream withBitDepth(int bitDepth) { - Utils.checkNotNull(bitDepth, "bitDepth"); - this.bitDepth = Optional.ofNullable(bitDepth); - return this; - } - - public GetSessionsStream withBitDepth(Optional bitDepth) { - Utils.checkNotNull(bitDepth, "bitDepth"); - this.bitDepth = bitDepth; - return this; - } - - public GetSessionsStream withBitrate(int bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = Optional.ofNullable(bitrate); - return this; - } - - public GetSessionsStream withBitrate(Optional bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = bitrate; - return this; - } - - public GetSessionsStream withChannels(int channels) { - Utils.checkNotNull(channels, "channels"); - this.channels = Optional.ofNullable(channels); - return this; - } - - public GetSessionsStream withChannels(Optional channels) { - Utils.checkNotNull(channels, "channels"); - this.channels = channels; - return this; - } - - public GetSessionsStream withCodec(String codec) { - Utils.checkNotNull(codec, "codec"); - this.codec = Optional.ofNullable(codec); - return this; - } - - public GetSessionsStream withCodec(Optional codec) { - Utils.checkNotNull(codec, "codec"); - this.codec = codec; - return this; - } - - public GetSessionsStream withDisplayTitle(String displayTitle) { - Utils.checkNotNull(displayTitle, "displayTitle"); - this.displayTitle = Optional.ofNullable(displayTitle); - return this; - } - - public GetSessionsStream withDisplayTitle(Optional displayTitle) { - Utils.checkNotNull(displayTitle, "displayTitle"); - this.displayTitle = displayTitle; - return this; - } - - public GetSessionsStream withExtendedDisplayTitle(String extendedDisplayTitle) { - Utils.checkNotNull(extendedDisplayTitle, "extendedDisplayTitle"); - this.extendedDisplayTitle = Optional.ofNullable(extendedDisplayTitle); - return this; - } - - public GetSessionsStream withExtendedDisplayTitle(Optional extendedDisplayTitle) { - Utils.checkNotNull(extendedDisplayTitle, "extendedDisplayTitle"); - this.extendedDisplayTitle = extendedDisplayTitle; - return this; - } - - public GetSessionsStream withGain(String gain) { - Utils.checkNotNull(gain, "gain"); - this.gain = Optional.ofNullable(gain); - return this; - } - - public GetSessionsStream withGain(Optional gain) { - Utils.checkNotNull(gain, "gain"); - this.gain = gain; - return this; - } - - public GetSessionsStream withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public GetSessionsStream withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public GetSessionsStream withIndex(int index) { - Utils.checkNotNull(index, "index"); - this.index = Optional.ofNullable(index); - return this; - } - - public GetSessionsStream withIndex(Optional index) { - Utils.checkNotNull(index, "index"); - this.index = index; - return this; - } - - public GetSessionsStream withLoudness(String loudness) { - Utils.checkNotNull(loudness, "loudness"); - this.loudness = Optional.ofNullable(loudness); - return this; - } - - public GetSessionsStream withLoudness(Optional loudness) { - Utils.checkNotNull(loudness, "loudness"); - this.loudness = loudness; - return this; - } - - public GetSessionsStream withLra(String lra) { - Utils.checkNotNull(lra, "lra"); - this.lra = Optional.ofNullable(lra); - return this; - } - - public GetSessionsStream withLra(Optional lra) { - Utils.checkNotNull(lra, "lra"); - this.lra = lra; - return this; - } - - public GetSessionsStream withPeak(String peak) { - Utils.checkNotNull(peak, "peak"); - this.peak = Optional.ofNullable(peak); - return this; - } - - public GetSessionsStream withPeak(Optional peak) { - Utils.checkNotNull(peak, "peak"); - this.peak = peak; - return this; - } - - public GetSessionsStream withSamplingRate(int samplingRate) { - Utils.checkNotNull(samplingRate, "samplingRate"); - this.samplingRate = Optional.ofNullable(samplingRate); - return this; - } - - public GetSessionsStream withSamplingRate(Optional samplingRate) { - Utils.checkNotNull(samplingRate, "samplingRate"); - this.samplingRate = samplingRate; - return this; - } - - public GetSessionsStream withSelected(boolean selected) { - Utils.checkNotNull(selected, "selected"); - this.selected = Optional.ofNullable(selected); - return this; - } - - public GetSessionsStream withSelected(Optional selected) { - Utils.checkNotNull(selected, "selected"); - this.selected = selected; - return this; - } - - public GetSessionsStream withStreamType(int streamType) { - Utils.checkNotNull(streamType, "streamType"); - this.streamType = Optional.ofNullable(streamType); - return this; - } - - public GetSessionsStream withStreamType(Optional streamType) { - Utils.checkNotNull(streamType, "streamType"); - this.streamType = streamType; - return this; - } - - public GetSessionsStream withLocation(String location) { - Utils.checkNotNull(location, "location"); - this.location = Optional.ofNullable(location); - return this; - } - - public GetSessionsStream withLocation(Optional location) { - Utils.checkNotNull(location, "location"); - this.location = location; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetSessionsStream other = (GetSessionsStream) o; - return - java.util.Objects.deepEquals(this.albumGain, other.albumGain) && - java.util.Objects.deepEquals(this.albumPeak, other.albumPeak) && - java.util.Objects.deepEquals(this.albumRange, other.albumRange) && - java.util.Objects.deepEquals(this.audioChannelLayout, other.audioChannelLayout) && - java.util.Objects.deepEquals(this.bitDepth, other.bitDepth) && - java.util.Objects.deepEquals(this.bitrate, other.bitrate) && - java.util.Objects.deepEquals(this.channels, other.channels) && - java.util.Objects.deepEquals(this.codec, other.codec) && - java.util.Objects.deepEquals(this.displayTitle, other.displayTitle) && - java.util.Objects.deepEquals(this.extendedDisplayTitle, other.extendedDisplayTitle) && - java.util.Objects.deepEquals(this.gain, other.gain) && - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.index, other.index) && - java.util.Objects.deepEquals(this.loudness, other.loudness) && - java.util.Objects.deepEquals(this.lra, other.lra) && - java.util.Objects.deepEquals(this.peak, other.peak) && - java.util.Objects.deepEquals(this.samplingRate, other.samplingRate) && - java.util.Objects.deepEquals(this.selected, other.selected) && - java.util.Objects.deepEquals(this.streamType, other.streamType) && - java.util.Objects.deepEquals(this.location, other.location); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - albumGain, - albumPeak, - albumRange, - audioChannelLayout, - bitDepth, - bitrate, - channels, - codec, - displayTitle, - extendedDisplayTitle, - gain, - id, - index, - loudness, - lra, - peak, - samplingRate, - selected, - streamType, - location); - } - - @Override - public String toString() { - return Utils.toString(GetSessionsStream.class, - "albumGain", albumGain, - "albumPeak", albumPeak, - "albumRange", albumRange, - "audioChannelLayout", audioChannelLayout, - "bitDepth", bitDepth, - "bitrate", bitrate, - "channels", channels, - "codec", codec, - "displayTitle", displayTitle, - "extendedDisplayTitle", extendedDisplayTitle, - "gain", gain, - "id", id, - "index", index, - "loudness", loudness, - "lra", lra, - "peak", peak, - "samplingRate", samplingRate, - "selected", selected, - "streamType", streamType, - "location", location); - } - - public final static class Builder { - - private Optional albumGain = Optional.empty(); - - private Optional albumPeak = Optional.empty(); - - private Optional albumRange = Optional.empty(); - - private Optional audioChannelLayout = Optional.empty(); - - private Optional bitDepth = Optional.empty(); - - private Optional bitrate = Optional.empty(); - - private Optional channels = Optional.empty(); - - private Optional codec = Optional.empty(); - - private Optional displayTitle = Optional.empty(); - - private Optional extendedDisplayTitle = Optional.empty(); - - private Optional gain = Optional.empty(); - - private Optional id = Optional.empty(); - - private Optional index = Optional.empty(); - - private Optional loudness = Optional.empty(); - - private Optional lra = Optional.empty(); - - private Optional peak = Optional.empty(); - - private Optional samplingRate = Optional.empty(); - - private Optional selected = Optional.empty(); - - private Optional streamType = Optional.empty(); - - private Optional location = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder albumGain(String albumGain) { - Utils.checkNotNull(albumGain, "albumGain"); - this.albumGain = Optional.ofNullable(albumGain); - return this; - } - - public Builder albumGain(Optional albumGain) { - Utils.checkNotNull(albumGain, "albumGain"); - this.albumGain = albumGain; - return this; - } - - public Builder albumPeak(String albumPeak) { - Utils.checkNotNull(albumPeak, "albumPeak"); - this.albumPeak = Optional.ofNullable(albumPeak); - return this; - } - - public Builder albumPeak(Optional albumPeak) { - Utils.checkNotNull(albumPeak, "albumPeak"); - this.albumPeak = albumPeak; - return this; - } - - public Builder albumRange(String albumRange) { - Utils.checkNotNull(albumRange, "albumRange"); - this.albumRange = Optional.ofNullable(albumRange); - return this; - } - - public Builder albumRange(Optional albumRange) { - Utils.checkNotNull(albumRange, "albumRange"); - this.albumRange = albumRange; - return this; - } - - public Builder audioChannelLayout(String audioChannelLayout) { - Utils.checkNotNull(audioChannelLayout, "audioChannelLayout"); - this.audioChannelLayout = Optional.ofNullable(audioChannelLayout); - return this; - } - - public Builder audioChannelLayout(Optional audioChannelLayout) { - Utils.checkNotNull(audioChannelLayout, "audioChannelLayout"); - this.audioChannelLayout = audioChannelLayout; - return this; - } - - public Builder bitDepth(int bitDepth) { - Utils.checkNotNull(bitDepth, "bitDepth"); - this.bitDepth = Optional.ofNullable(bitDepth); - return this; - } - - public Builder bitDepth(Optional bitDepth) { - Utils.checkNotNull(bitDepth, "bitDepth"); - this.bitDepth = bitDepth; - return this; - } - - public Builder bitrate(int bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = Optional.ofNullable(bitrate); - return this; - } - - public Builder bitrate(Optional bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = bitrate; - return this; - } - - public Builder channels(int channels) { - Utils.checkNotNull(channels, "channels"); - this.channels = Optional.ofNullable(channels); - return this; - } - - public Builder channels(Optional channels) { - Utils.checkNotNull(channels, "channels"); - this.channels = channels; - return this; - } - - public Builder codec(String codec) { - Utils.checkNotNull(codec, "codec"); - this.codec = Optional.ofNullable(codec); - return this; - } - - public Builder codec(Optional codec) { - Utils.checkNotNull(codec, "codec"); - this.codec = codec; - return this; - } - - public Builder displayTitle(String displayTitle) { - Utils.checkNotNull(displayTitle, "displayTitle"); - this.displayTitle = Optional.ofNullable(displayTitle); - return this; - } - - public Builder displayTitle(Optional displayTitle) { - Utils.checkNotNull(displayTitle, "displayTitle"); - this.displayTitle = displayTitle; - return this; - } - - public Builder extendedDisplayTitle(String extendedDisplayTitle) { - Utils.checkNotNull(extendedDisplayTitle, "extendedDisplayTitle"); - this.extendedDisplayTitle = Optional.ofNullable(extendedDisplayTitle); - return this; - } - - public Builder extendedDisplayTitle(Optional extendedDisplayTitle) { - Utils.checkNotNull(extendedDisplayTitle, "extendedDisplayTitle"); - this.extendedDisplayTitle = extendedDisplayTitle; - return this; - } - - public Builder gain(String gain) { - Utils.checkNotNull(gain, "gain"); - this.gain = Optional.ofNullable(gain); - return this; - } - - public Builder gain(Optional gain) { - Utils.checkNotNull(gain, "gain"); - this.gain = gain; - return this; - } - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder index(int index) { - Utils.checkNotNull(index, "index"); - this.index = Optional.ofNullable(index); - return this; - } - - public Builder index(Optional index) { - Utils.checkNotNull(index, "index"); - this.index = index; - return this; - } - - public Builder loudness(String loudness) { - Utils.checkNotNull(loudness, "loudness"); - this.loudness = Optional.ofNullable(loudness); - return this; - } - - public Builder loudness(Optional loudness) { - Utils.checkNotNull(loudness, "loudness"); - this.loudness = loudness; - return this; - } - - public Builder lra(String lra) { - Utils.checkNotNull(lra, "lra"); - this.lra = Optional.ofNullable(lra); - return this; - } - - public Builder lra(Optional lra) { - Utils.checkNotNull(lra, "lra"); - this.lra = lra; - return this; - } - - public Builder peak(String peak) { - Utils.checkNotNull(peak, "peak"); - this.peak = Optional.ofNullable(peak); - return this; - } - - public Builder peak(Optional peak) { - Utils.checkNotNull(peak, "peak"); - this.peak = peak; - return this; - } - - public Builder samplingRate(int samplingRate) { - Utils.checkNotNull(samplingRate, "samplingRate"); - this.samplingRate = Optional.ofNullable(samplingRate); - return this; - } - - public Builder samplingRate(Optional samplingRate) { - Utils.checkNotNull(samplingRate, "samplingRate"); - this.samplingRate = samplingRate; - return this; - } - - public Builder selected(boolean selected) { - Utils.checkNotNull(selected, "selected"); - this.selected = Optional.ofNullable(selected); - return this; - } - - public Builder selected(Optional selected) { - Utils.checkNotNull(selected, "selected"); - this.selected = selected; - return this; - } - - public Builder streamType(int streamType) { - Utils.checkNotNull(streamType, "streamType"); - this.streamType = Optional.ofNullable(streamType); - return this; - } - - public Builder streamType(Optional streamType) { - Utils.checkNotNull(streamType, "streamType"); - this.streamType = streamType; - return this; - } - - public Builder location(String location) { - Utils.checkNotNull(location, "location"); - this.location = Optional.ofNullable(location); - return this; - } - - public Builder location(Optional location) { - Utils.checkNotNull(location, "location"); - this.location = location; - return this; - } - - public GetSessionsStream build() { - return new GetSessionsStream( - albumGain, - albumPeak, - albumRange, - audioChannelLayout, - bitDepth, - bitrate, - channels, - codec, - displayTitle, - extendedDisplayTitle, - gain, - id, - index, - loudness, - lra, - peak, - samplingRate, - selected, - streamType, - location); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsUser.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsUser.java deleted file mode 100644 index 438c3f07..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSessionsUser.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetSessionsUser { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("thumb") - private Optional thumb; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title") - private Optional title; - - @JsonCreator - public GetSessionsUser( - @JsonProperty("id") Optional id, - @JsonProperty("thumb") Optional thumb, - @JsonProperty("title") Optional title) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(thumb, "thumb"); - Utils.checkNotNull(title, "title"); - this.id = id; - this.thumb = thumb; - this.title = title; - } - - public GetSessionsUser() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional thumb() { - return (Optional) thumb; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title() { - return (Optional) title; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetSessionsUser withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public GetSessionsUser withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public GetSessionsUser withThumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public GetSessionsUser withThumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public GetSessionsUser withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public GetSessionsUser withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetSessionsUser other = (GetSessionsUser) o; - return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.thumb, other.thumb) && - java.util.Objects.deepEquals(this.title, other.title); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id, - thumb, - title); - } - - @Override - public String toString() { - return Utils.toString(GetSessionsUser.class, - "id", id, - "thumb", thumb, - "title", title); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional thumb = Optional.empty(); - - private Optional title = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder thumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public Builder thumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public GetSessionsUser build() { - return new GetSessionsUser( - id, - thumb, - title); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSourceConnectionInformationRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSourceConnectionInformationRequest.java deleted file mode 100644 index a56db5eb..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSourceConnectionInformationRequest.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetSourceConnectionInformationRequest { - - /** - * The source identifier with an included prefix. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=source") - private String source; - - @JsonCreator - public GetSourceConnectionInformationRequest( - String source) { - Utils.checkNotNull(source, "source"); - this.source = source; - } - - /** - * The source identifier with an included prefix. - */ - @JsonIgnore - public String source() { - return source; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * The source identifier with an included prefix. - */ - public GetSourceConnectionInformationRequest withSource(String source) { - Utils.checkNotNull(source, "source"); - this.source = source; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetSourceConnectionInformationRequest other = (GetSourceConnectionInformationRequest) o; - return - java.util.Objects.deepEquals(this.source, other.source); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - source); - } - - @Override - public String toString() { - return Utils.toString(GetSourceConnectionInformationRequest.class, - "source", source); - } - - public final static class Builder { - - private String source; - - private Builder() { - // force use of static builder() method - } - - /** - * The source identifier with an included prefix. - */ - public Builder source(String source) { - Utils.checkNotNull(source, "source"); - this.source = source; - return this; - } - - public GetSourceConnectionInformationRequest build() { - return new GetSourceConnectionInformationRequest( - source); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSourceConnectionInformationRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSourceConnectionInformationRequestBuilder.java deleted file mode 100644 index 68a6af4e..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSourceConnectionInformationRequestBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetSourceConnectionInformationRequestBuilder { - - private String source; - private final SDKMethodInterfaces.MethodCallGetSourceConnectionInformation sdk; - - public GetSourceConnectionInformationRequestBuilder(SDKMethodInterfaces.MethodCallGetSourceConnectionInformation sdk) { - this.sdk = sdk; - } - - public GetSourceConnectionInformationRequestBuilder source(String source) { - Utils.checkNotNull(source, "source"); - this.source = source; - return this; - } - - public GetSourceConnectionInformationResponse call() throws Exception { - - return sdk.getSourceConnectionInformation( - source); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSourceConnectionInformationResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSourceConnectionInformationResponse.java deleted file mode 100644 index b5999057..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetSourceConnectionInformationResponse.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetSourceConnectionInformationResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - @JsonCreator - public GetSourceConnectionInformationResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetSourceConnectionInformationResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetSourceConnectionInformationResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetSourceConnectionInformationResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetSourceConnectionInformationResponse other = (GetSourceConnectionInformationResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetSourceConnectionInformationResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetSourceConnectionInformationResponse build() { - return new GetSourceConnectionInformationResponse( - contentType, - statusCode, - rawResponse); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsDevice.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsDevice.java deleted file mode 100644 index c188d53b..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsDevice.java +++ /dev/null @@ -1,283 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetStatisticsDevice { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("platform") - private Optional platform; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("clientIdentifier") - private Optional clientIdentifier; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("createdAt") - private Optional createdAt; - - @JsonCreator - public GetStatisticsDevice( - @JsonProperty("id") Optional id, - @JsonProperty("name") Optional name, - @JsonProperty("platform") Optional platform, - @JsonProperty("clientIdentifier") Optional clientIdentifier, - @JsonProperty("createdAt") Optional createdAt) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(platform, "platform"); - Utils.checkNotNull(clientIdentifier, "clientIdentifier"); - Utils.checkNotNull(createdAt, "createdAt"); - this.id = id; - this.name = name; - this.platform = platform; - this.clientIdentifier = clientIdentifier; - this.createdAt = createdAt; - } - - public GetStatisticsDevice() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional name() { - return (Optional) name; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional platform() { - return (Optional) platform; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional clientIdentifier() { - return (Optional) clientIdentifier; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional createdAt() { - return (Optional) createdAt; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetStatisticsDevice withId(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public GetStatisticsDevice withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public GetStatisticsDevice withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public GetStatisticsDevice withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public GetStatisticsDevice withPlatform(String platform) { - Utils.checkNotNull(platform, "platform"); - this.platform = Optional.ofNullable(platform); - return this; - } - - public GetStatisticsDevice withPlatform(Optional platform) { - Utils.checkNotNull(platform, "platform"); - this.platform = platform; - return this; - } - - public GetStatisticsDevice withClientIdentifier(String clientIdentifier) { - Utils.checkNotNull(clientIdentifier, "clientIdentifier"); - this.clientIdentifier = Optional.ofNullable(clientIdentifier); - return this; - } - - public GetStatisticsDevice withClientIdentifier(Optional clientIdentifier) { - Utils.checkNotNull(clientIdentifier, "clientIdentifier"); - this.clientIdentifier = clientIdentifier; - return this; - } - - public GetStatisticsDevice withCreatedAt(int createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = Optional.ofNullable(createdAt); - return this; - } - - public GetStatisticsDevice withCreatedAt(Optional createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetStatisticsDevice other = (GetStatisticsDevice) o; - return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.name, other.name) && - java.util.Objects.deepEquals(this.platform, other.platform) && - java.util.Objects.deepEquals(this.clientIdentifier, other.clientIdentifier) && - java.util.Objects.deepEquals(this.createdAt, other.createdAt); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id, - name, - platform, - clientIdentifier, - createdAt); - } - - @Override - public String toString() { - return Utils.toString(GetStatisticsDevice.class, - "id", id, - "name", name, - "platform", platform, - "clientIdentifier", clientIdentifier, - "createdAt", createdAt); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional name = Optional.empty(); - - private Optional platform = Optional.empty(); - - private Optional clientIdentifier = Optional.empty(); - - private Optional createdAt = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Builder platform(String platform) { - Utils.checkNotNull(platform, "platform"); - this.platform = Optional.ofNullable(platform); - return this; - } - - public Builder platform(Optional platform) { - Utils.checkNotNull(platform, "platform"); - this.platform = platform; - return this; - } - - public Builder clientIdentifier(String clientIdentifier) { - Utils.checkNotNull(clientIdentifier, "clientIdentifier"); - this.clientIdentifier = Optional.ofNullable(clientIdentifier); - return this; - } - - public Builder clientIdentifier(Optional clientIdentifier) { - Utils.checkNotNull(clientIdentifier, "clientIdentifier"); - this.clientIdentifier = clientIdentifier; - return this; - } - - public Builder createdAt(int createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = Optional.ofNullable(createdAt); - return this; - } - - public Builder createdAt(Optional createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - public GetStatisticsDevice build() { - return new GetStatisticsDevice( - id, - name, - platform, - clientIdentifier, - createdAt); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsMediaContainer.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsMediaContainer.java deleted file mode 100644 index 5d88fd9f..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsMediaContainer.java +++ /dev/null @@ -1,240 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetStatisticsMediaContainer { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Device") - private Optional> device; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Account") - private Optional> account; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("StatisticsMedia") - private Optional> statisticsMedia; - - @JsonCreator - public GetStatisticsMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("Device") Optional> device, - @JsonProperty("Account") Optional> account, - @JsonProperty("StatisticsMedia") Optional> statisticsMedia) { - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(device, "device"); - Utils.checkNotNull(account, "account"); - Utils.checkNotNull(statisticsMedia, "statisticsMedia"); - this.size = size; - this.device = device; - this.account = account; - this.statisticsMedia = statisticsMedia; - } - - public GetStatisticsMediaContainer() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> device() { - return (Optional>) device; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> account() { - return (Optional>) account; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> statisticsMedia() { - return (Optional>) statisticsMedia; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetStatisticsMediaContainer withSize(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public GetStatisticsMediaContainer withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public GetStatisticsMediaContainer withDevice(java.util.List device) { - Utils.checkNotNull(device, "device"); - this.device = Optional.ofNullable(device); - return this; - } - - public GetStatisticsMediaContainer withDevice(Optional> device) { - Utils.checkNotNull(device, "device"); - this.device = device; - return this; - } - - public GetStatisticsMediaContainer withAccount(java.util.List account) { - Utils.checkNotNull(account, "account"); - this.account = Optional.ofNullable(account); - return this; - } - - public GetStatisticsMediaContainer withAccount(Optional> account) { - Utils.checkNotNull(account, "account"); - this.account = account; - return this; - } - - public GetStatisticsMediaContainer withStatisticsMedia(java.util.List statisticsMedia) { - Utils.checkNotNull(statisticsMedia, "statisticsMedia"); - this.statisticsMedia = Optional.ofNullable(statisticsMedia); - return this; - } - - public GetStatisticsMediaContainer withStatisticsMedia(Optional> statisticsMedia) { - Utils.checkNotNull(statisticsMedia, "statisticsMedia"); - this.statisticsMedia = statisticsMedia; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetStatisticsMediaContainer other = (GetStatisticsMediaContainer) o; - return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.device, other.device) && - java.util.Objects.deepEquals(this.account, other.account) && - java.util.Objects.deepEquals(this.statisticsMedia, other.statisticsMedia); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - size, - device, - account, - statisticsMedia); - } - - @Override - public String toString() { - return Utils.toString(GetStatisticsMediaContainer.class, - "size", size, - "device", device, - "account", account, - "statisticsMedia", statisticsMedia); - } - - public final static class Builder { - - private Optional size = Optional.empty(); - - private Optional> device = Optional.empty(); - - private Optional> account = Optional.empty(); - - private Optional> statisticsMedia = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder size(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder device(java.util.List device) { - Utils.checkNotNull(device, "device"); - this.device = Optional.ofNullable(device); - return this; - } - - public Builder device(Optional> device) { - Utils.checkNotNull(device, "device"); - this.device = device; - return this; - } - - public Builder account(java.util.List account) { - Utils.checkNotNull(account, "account"); - this.account = Optional.ofNullable(account); - return this; - } - - public Builder account(Optional> account) { - Utils.checkNotNull(account, "account"); - this.account = account; - return this; - } - - public Builder statisticsMedia(java.util.List statisticsMedia) { - Utils.checkNotNull(statisticsMedia, "statisticsMedia"); - this.statisticsMedia = Optional.ofNullable(statisticsMedia); - return this; - } - - public Builder statisticsMedia(Optional> statisticsMedia) { - Utils.checkNotNull(statisticsMedia, "statisticsMedia"); - this.statisticsMedia = statisticsMedia; - return this; - } - - public GetStatisticsMediaContainer build() { - return new GetStatisticsMediaContainer( - size, - device, - account, - statisticsMedia); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsRequest.java deleted file mode 100644 index 702cfe82..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsRequest.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetStatisticsRequest { - - /** - * The timespan to retrieve statistics for - * the exact meaning of this parameter is not known - * - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=Timespan") - private Optional timespan; - - @JsonCreator - public GetStatisticsRequest( - Optional timespan) { - Utils.checkNotNull(timespan, "timespan"); - this.timespan = timespan; - } - - public GetStatisticsRequest() { - this(Optional.empty()); - } - - /** - * The timespan to retrieve statistics for - * the exact meaning of this parameter is not known - * - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional timespan() { - return (Optional) timespan; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * The timespan to retrieve statistics for - * the exact meaning of this parameter is not known - * - */ - public GetStatisticsRequest withTimespan(long timespan) { - Utils.checkNotNull(timespan, "timespan"); - this.timespan = Optional.ofNullable(timespan); - return this; - } - - /** - * The timespan to retrieve statistics for - * the exact meaning of this parameter is not known - * - */ - public GetStatisticsRequest withTimespan(Optional timespan) { - Utils.checkNotNull(timespan, "timespan"); - this.timespan = timespan; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetStatisticsRequest other = (GetStatisticsRequest) o; - return - java.util.Objects.deepEquals(this.timespan, other.timespan); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - timespan); - } - - @Override - public String toString() { - return Utils.toString(GetStatisticsRequest.class, - "timespan", timespan); - } - - public final static class Builder { - - private Optional timespan = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * The timespan to retrieve statistics for - * the exact meaning of this parameter is not known - * - */ - public Builder timespan(long timespan) { - Utils.checkNotNull(timespan, "timespan"); - this.timespan = Optional.ofNullable(timespan); - return this; - } - - /** - * The timespan to retrieve statistics for - * the exact meaning of this parameter is not known - * - */ - public Builder timespan(Optional timespan) { - Utils.checkNotNull(timespan, "timespan"); - this.timespan = timespan; - return this; - } - - public GetStatisticsRequest build() { - return new GetStatisticsRequest( - timespan); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsRequestBuilder.java deleted file mode 100644 index 08ae8146..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsRequestBuilder.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetStatisticsRequestBuilder { - - private Optional timespan = Optional.empty(); - private final SDKMethodInterfaces.MethodCallGetStatistics sdk; - - public GetStatisticsRequestBuilder(SDKMethodInterfaces.MethodCallGetStatistics sdk) { - this.sdk = sdk; - } - - public GetStatisticsRequestBuilder timespan(long timespan) { - Utils.checkNotNull(timespan, "timespan"); - this.timespan = Optional.of(timespan); - return this; - } - - public GetStatisticsRequestBuilder timespan(Optional timespan) { - Utils.checkNotNull(timespan, "timespan"); - this.timespan = timespan; - return this; - } - - public GetStatisticsResponse call() throws Exception { - - return sdk.getStatistics( - timespan); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsResponse.java deleted file mode 100644 index 33f14469..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsResponse.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetStatisticsResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Media Statistics - */ - private Optional object; - - @JsonCreator - public GetStatisticsResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional object) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.object = object; - } - - public GetStatisticsResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Media Statistics - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional object() { - return (Optional) object; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetStatisticsResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetStatisticsResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetStatisticsResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Media Statistics - */ - public GetStatisticsResponse withObject(GetStatisticsResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * Media Statistics - */ - public GetStatisticsResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetStatisticsResponse other = (GetStatisticsResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.object, other.object); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse, - object); - } - - @Override - public String toString() { - return Utils.toString(GetStatisticsResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "object", object); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional object = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Media Statistics - */ - public Builder object(GetStatisticsResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * Media Statistics - */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - public GetStatisticsResponse build() { - return new GetStatisticsResponse( - contentType, - statusCode, - rawResponse, - object); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsResponseBody.java deleted file mode 100644 index 5298686d..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetStatisticsResponseBody.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -/** - * GetStatisticsResponseBody - Media Statistics - */ - -public class GetStatisticsResponseBody { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("MediaContainer") - private Optional mediaContainer; - - @JsonCreator - public GetStatisticsResponseBody( - @JsonProperty("MediaContainer") Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - } - - public GetStatisticsResponseBody() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaContainer() { - return (Optional) mediaContainer; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetStatisticsResponseBody withMediaContainer(GetStatisticsMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public GetStatisticsResponseBody withMediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetStatisticsResponseBody other = (GetStatisticsResponseBody) o; - return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - mediaContainer); - } - - @Override - public String toString() { - return Utils.toString(GetStatisticsResponseBody.class, - "mediaContainer", mediaContainer); - } - - public final static class Builder { - - private Optional mediaContainer = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder mediaContainer(GetStatisticsMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public Builder mediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - public GetStatisticsResponseBody build() { - return new GetStatisticsResponseBody( - mediaContainer); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTimelineRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTimelineRequest.java deleted file mode 100644 index c6a990dc..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTimelineRequest.java +++ /dev/null @@ -1,471 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetTimelineRequest { - - /** - * The rating key of the media item - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=ratingKey") - private double ratingKey; - - /** - * The key of the media item to get the timeline for - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=key") - private String key; - - /** - * The state of the media item - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=state") - private State state; - - /** - * Whether the media item has MDE - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=hasMDE") - private double hasMDE; - - /** - * The time of the media item - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=time") - private double time; - - /** - * The duration of the media item - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=duration") - private double duration; - - /** - * The context of the media item - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=context") - private String context; - - /** - * The play queue item ID of the media item - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=playQueueItemID") - private double playQueueItemID; - - /** - * The playback time of the media item - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=playBackTime") - private double playBackTime; - - /** - * The row of the media item - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=row") - private double row; - - @JsonCreator - public GetTimelineRequest( - double ratingKey, - String key, - State state, - double hasMDE, - double time, - double duration, - String context, - double playQueueItemID, - double playBackTime, - double row) { - Utils.checkNotNull(ratingKey, "ratingKey"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(state, "state"); - Utils.checkNotNull(hasMDE, "hasMDE"); - Utils.checkNotNull(time, "time"); - Utils.checkNotNull(duration, "duration"); - Utils.checkNotNull(context, "context"); - Utils.checkNotNull(playQueueItemID, "playQueueItemID"); - Utils.checkNotNull(playBackTime, "playBackTime"); - Utils.checkNotNull(row, "row"); - 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; - } - - /** - * The rating key of the media item - */ - @JsonIgnore - public double ratingKey() { - return ratingKey; - } - - /** - * The key of the media item to get the timeline for - */ - @JsonIgnore - public String key() { - return key; - } - - /** - * The state of the media item - */ - @JsonIgnore - public State state() { - return state; - } - - /** - * Whether the media item has MDE - */ - @JsonIgnore - public double hasMDE() { - return hasMDE; - } - - /** - * The time of the media item - */ - @JsonIgnore - public double time() { - return time; - } - - /** - * The duration of the media item - */ - @JsonIgnore - public double duration() { - return duration; - } - - /** - * The context of the media item - */ - @JsonIgnore - public String context() { - return context; - } - - /** - * The play queue item ID of the media item - */ - @JsonIgnore - public double playQueueItemID() { - return playQueueItemID; - } - - /** - * The playback time of the media item - */ - @JsonIgnore - public double playBackTime() { - return playBackTime; - } - - /** - * The row of the media item - */ - @JsonIgnore - public double row() { - return row; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * The rating key of the media item - */ - public GetTimelineRequest withRatingKey(double ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - /** - * The key of the media item to get the timeline for - */ - public GetTimelineRequest withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - /** - * The state of the media item - */ - public GetTimelineRequest withState(State state) { - Utils.checkNotNull(state, "state"); - this.state = state; - return this; - } - - /** - * Whether the media item has MDE - */ - public GetTimelineRequest withHasMDE(double hasMDE) { - Utils.checkNotNull(hasMDE, "hasMDE"); - this.hasMDE = hasMDE; - return this; - } - - /** - * The time of the media item - */ - public GetTimelineRequest withTime(double time) { - Utils.checkNotNull(time, "time"); - this.time = time; - return this; - } - - /** - * The duration of the media item - */ - public GetTimelineRequest withDuration(double duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - /** - * The context of the media item - */ - public GetTimelineRequest withContext(String context) { - Utils.checkNotNull(context, "context"); - this.context = context; - return this; - } - - /** - * The play queue item ID of the media item - */ - public GetTimelineRequest withPlayQueueItemID(double playQueueItemID) { - Utils.checkNotNull(playQueueItemID, "playQueueItemID"); - this.playQueueItemID = playQueueItemID; - return this; - } - - /** - * The playback time of the media item - */ - public GetTimelineRequest withPlayBackTime(double playBackTime) { - Utils.checkNotNull(playBackTime, "playBackTime"); - this.playBackTime = playBackTime; - return this; - } - - /** - * The row of the media item - */ - public GetTimelineRequest withRow(double row) { - Utils.checkNotNull(row, "row"); - this.row = row; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetTimelineRequest other = (GetTimelineRequest) o; - return - java.util.Objects.deepEquals(this.ratingKey, other.ratingKey) && - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.state, other.state) && - java.util.Objects.deepEquals(this.hasMDE, other.hasMDE) && - java.util.Objects.deepEquals(this.time, other.time) && - java.util.Objects.deepEquals(this.duration, other.duration) && - java.util.Objects.deepEquals(this.context, other.context) && - java.util.Objects.deepEquals(this.playQueueItemID, other.playQueueItemID) && - java.util.Objects.deepEquals(this.playBackTime, other.playBackTime) && - java.util.Objects.deepEquals(this.row, other.row); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - ratingKey, - key, - state, - hasMDE, - time, - duration, - context, - playQueueItemID, - playBackTime, - row); - } - - @Override - public String toString() { - return Utils.toString(GetTimelineRequest.class, - "ratingKey", ratingKey, - "key", key, - "state", state, - "hasMDE", hasMDE, - "time", time, - "duration", duration, - "context", context, - "playQueueItemID", playQueueItemID, - "playBackTime", playBackTime, - "row", row); - } - - public final static class Builder { - - private Double ratingKey; - - private String key; - - private State state; - - private Double hasMDE; - - private Double time; - - private Double duration; - - private String context; - - private Double playQueueItemID; - - private Double playBackTime; - - private Double row; - - private Builder() { - // force use of static builder() method - } - - /** - * The rating key of the media item - */ - public Builder ratingKey(double ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - /** - * The key of the media item to get the timeline for - */ - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - /** - * The state of the media item - */ - public Builder state(State state) { - Utils.checkNotNull(state, "state"); - this.state = state; - return this; - } - - /** - * Whether the media item has MDE - */ - public Builder hasMDE(double hasMDE) { - Utils.checkNotNull(hasMDE, "hasMDE"); - this.hasMDE = hasMDE; - return this; - } - - /** - * The time of the media item - */ - public Builder time(double time) { - Utils.checkNotNull(time, "time"); - this.time = time; - return this; - } - - /** - * The duration of the media item - */ - public Builder duration(double duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - /** - * The context of the media item - */ - public Builder context(String context) { - Utils.checkNotNull(context, "context"); - this.context = context; - return this; - } - - /** - * The play queue item ID of the media item - */ - public Builder playQueueItemID(double playQueueItemID) { - Utils.checkNotNull(playQueueItemID, "playQueueItemID"); - this.playQueueItemID = playQueueItemID; - return this; - } - - /** - * The playback time of the media item - */ - public Builder playBackTime(double playBackTime) { - Utils.checkNotNull(playBackTime, "playBackTime"); - this.playBackTime = playBackTime; - return this; - } - - /** - * The row of the media item - */ - public Builder row(double row) { - Utils.checkNotNull(row, "row"); - this.row = row; - return this; - } - - public GetTimelineRequest build() { - return new GetTimelineRequest( - ratingKey, - key, - state, - hasMDE, - time, - duration, - context, - playQueueItemID, - playBackTime, - row); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTimelineRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTimelineRequestBuilder.java deleted file mode 100644 index c5bd73bd..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTimelineRequestBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetTimelineRequestBuilder { - - private GetTimelineRequest request; - private final SDKMethodInterfaces.MethodCallGetTimeline sdk; - - public GetTimelineRequestBuilder(SDKMethodInterfaces.MethodCallGetTimeline sdk) { - this.sdk = sdk; - } - - public GetTimelineRequestBuilder request(GetTimelineRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public GetTimelineResponse call() throws Exception { - - return sdk.getTimeline( - request); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTimelineResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTimelineResponse.java deleted file mode 100644 index 360c79ca..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTimelineResponse.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetTimelineResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - @JsonCreator - public GetTimelineResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetTimelineResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetTimelineResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetTimelineResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetTimelineResponse other = (GetTimelineResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetTimelineResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetTimelineResponse build() { - return new GetTimelineResponse( - contentType, - statusCode, - rawResponse); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTokenLocation.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTokenLocation.java deleted file mode 100644 index 7cc76d33..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTokenLocation.java +++ /dev/null @@ -1,498 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetTokenLocation { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("european_union_member") - private Optional europeanUnionMember; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("continent_code") - private Optional continentCode; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("country") - private Optional country; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("city") - private Optional city; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("time_zone") - private Optional timeZone; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("postal_code") - private Optional postalCode; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("in_privacy_restricted_country") - private Optional inPrivacyRestrictedCountry; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("subdivisions") - private Optional subdivisions; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("coordinates") - private Optional coordinates; - - @JsonCreator - public GetTokenLocation( - @JsonProperty("code") Optional code, - @JsonProperty("european_union_member") Optional europeanUnionMember, - @JsonProperty("continent_code") Optional continentCode, - @JsonProperty("country") Optional country, - @JsonProperty("city") Optional city, - @JsonProperty("time_zone") Optional timeZone, - @JsonProperty("postal_code") Optional postalCode, - @JsonProperty("in_privacy_restricted_country") Optional inPrivacyRestrictedCountry, - @JsonProperty("subdivisions") Optional subdivisions, - @JsonProperty("coordinates") Optional coordinates) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(europeanUnionMember, "europeanUnionMember"); - Utils.checkNotNull(continentCode, "continentCode"); - Utils.checkNotNull(country, "country"); - Utils.checkNotNull(city, "city"); - Utils.checkNotNull(timeZone, "timeZone"); - Utils.checkNotNull(postalCode, "postalCode"); - Utils.checkNotNull(inPrivacyRestrictedCountry, "inPrivacyRestrictedCountry"); - Utils.checkNotNull(subdivisions, "subdivisions"); - Utils.checkNotNull(coordinates, "coordinates"); - 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; - } - - public GetTokenLocation() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional europeanUnionMember() { - return (Optional) europeanUnionMember; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional continentCode() { - return (Optional) continentCode; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional country() { - return (Optional) country; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional city() { - return (Optional) city; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional timeZone() { - return (Optional) timeZone; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional postalCode() { - return (Optional) postalCode; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional inPrivacyRestrictedCountry() { - return (Optional) inPrivacyRestrictedCountry; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional subdivisions() { - return (Optional) subdivisions; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional coordinates() { - return (Optional) coordinates; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetTokenLocation withCode(String code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetTokenLocation withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetTokenLocation withEuropeanUnionMember(boolean europeanUnionMember) { - Utils.checkNotNull(europeanUnionMember, "europeanUnionMember"); - this.europeanUnionMember = Optional.ofNullable(europeanUnionMember); - return this; - } - - public GetTokenLocation withEuropeanUnionMember(Optional europeanUnionMember) { - Utils.checkNotNull(europeanUnionMember, "europeanUnionMember"); - this.europeanUnionMember = europeanUnionMember; - return this; - } - - public GetTokenLocation withContinentCode(String continentCode) { - Utils.checkNotNull(continentCode, "continentCode"); - this.continentCode = Optional.ofNullable(continentCode); - return this; - } - - public GetTokenLocation withContinentCode(Optional continentCode) { - Utils.checkNotNull(continentCode, "continentCode"); - this.continentCode = continentCode; - return this; - } - - public GetTokenLocation withCountry(String country) { - Utils.checkNotNull(country, "country"); - this.country = Optional.ofNullable(country); - return this; - } - - public GetTokenLocation withCountry(Optional country) { - Utils.checkNotNull(country, "country"); - this.country = country; - return this; - } - - public GetTokenLocation withCity(String city) { - Utils.checkNotNull(city, "city"); - this.city = Optional.ofNullable(city); - return this; - } - - public GetTokenLocation withCity(Optional city) { - Utils.checkNotNull(city, "city"); - this.city = city; - return this; - } - - public GetTokenLocation withTimeZone(String timeZone) { - Utils.checkNotNull(timeZone, "timeZone"); - this.timeZone = Optional.ofNullable(timeZone); - return this; - } - - public GetTokenLocation withTimeZone(Optional timeZone) { - Utils.checkNotNull(timeZone, "timeZone"); - this.timeZone = timeZone; - return this; - } - - public GetTokenLocation withPostalCode(String postalCode) { - Utils.checkNotNull(postalCode, "postalCode"); - this.postalCode = Optional.ofNullable(postalCode); - return this; - } - - public GetTokenLocation withPostalCode(Optional postalCode) { - Utils.checkNotNull(postalCode, "postalCode"); - this.postalCode = postalCode; - return this; - } - - public GetTokenLocation withInPrivacyRestrictedCountry(boolean inPrivacyRestrictedCountry) { - Utils.checkNotNull(inPrivacyRestrictedCountry, "inPrivacyRestrictedCountry"); - this.inPrivacyRestrictedCountry = Optional.ofNullable(inPrivacyRestrictedCountry); - return this; - } - - public GetTokenLocation withInPrivacyRestrictedCountry(Optional inPrivacyRestrictedCountry) { - Utils.checkNotNull(inPrivacyRestrictedCountry, "inPrivacyRestrictedCountry"); - this.inPrivacyRestrictedCountry = inPrivacyRestrictedCountry; - return this; - } - - public GetTokenLocation withSubdivisions(String subdivisions) { - Utils.checkNotNull(subdivisions, "subdivisions"); - this.subdivisions = Optional.ofNullable(subdivisions); - return this; - } - - public GetTokenLocation withSubdivisions(Optional subdivisions) { - Utils.checkNotNull(subdivisions, "subdivisions"); - this.subdivisions = subdivisions; - return this; - } - - public GetTokenLocation withCoordinates(String coordinates) { - Utils.checkNotNull(coordinates, "coordinates"); - this.coordinates = Optional.ofNullable(coordinates); - return this; - } - - public GetTokenLocation withCoordinates(Optional coordinates) { - Utils.checkNotNull(coordinates, "coordinates"); - this.coordinates = coordinates; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetTokenLocation other = (GetTokenLocation) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.europeanUnionMember, other.europeanUnionMember) && - java.util.Objects.deepEquals(this.continentCode, other.continentCode) && - java.util.Objects.deepEquals(this.country, other.country) && - java.util.Objects.deepEquals(this.city, other.city) && - java.util.Objects.deepEquals(this.timeZone, other.timeZone) && - java.util.Objects.deepEquals(this.postalCode, other.postalCode) && - java.util.Objects.deepEquals(this.inPrivacyRestrictedCountry, other.inPrivacyRestrictedCountry) && - java.util.Objects.deepEquals(this.subdivisions, other.subdivisions) && - java.util.Objects.deepEquals(this.coordinates, other.coordinates); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - europeanUnionMember, - continentCode, - country, - city, - timeZone, - postalCode, - inPrivacyRestrictedCountry, - subdivisions, - coordinates); - } - - @Override - public String toString() { - return Utils.toString(GetTokenLocation.class, - "code", code, - "europeanUnionMember", europeanUnionMember, - "continentCode", continentCode, - "country", country, - "city", city, - "timeZone", timeZone, - "postalCode", postalCode, - "inPrivacyRestrictedCountry", inPrivacyRestrictedCountry, - "subdivisions", subdivisions, - "coordinates", coordinates); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional europeanUnionMember = Optional.empty(); - - private Optional continentCode = Optional.empty(); - - private Optional country = Optional.empty(); - - private Optional city = Optional.empty(); - - private Optional timeZone = Optional.empty(); - - private Optional postalCode = Optional.empty(); - - private Optional inPrivacyRestrictedCountry = Optional.empty(); - - private Optional subdivisions = Optional.empty(); - - private Optional coordinates = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(String code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder europeanUnionMember(boolean europeanUnionMember) { - Utils.checkNotNull(europeanUnionMember, "europeanUnionMember"); - this.europeanUnionMember = Optional.ofNullable(europeanUnionMember); - return this; - } - - public Builder europeanUnionMember(Optional europeanUnionMember) { - Utils.checkNotNull(europeanUnionMember, "europeanUnionMember"); - this.europeanUnionMember = europeanUnionMember; - return this; - } - - public Builder continentCode(String continentCode) { - Utils.checkNotNull(continentCode, "continentCode"); - this.continentCode = Optional.ofNullable(continentCode); - return this; - } - - public Builder continentCode(Optional continentCode) { - Utils.checkNotNull(continentCode, "continentCode"); - this.continentCode = continentCode; - return this; - } - - public Builder country(String country) { - Utils.checkNotNull(country, "country"); - this.country = Optional.ofNullable(country); - return this; - } - - public Builder country(Optional country) { - Utils.checkNotNull(country, "country"); - this.country = country; - return this; - } - - public Builder city(String city) { - Utils.checkNotNull(city, "city"); - this.city = Optional.ofNullable(city); - return this; - } - - public Builder city(Optional city) { - Utils.checkNotNull(city, "city"); - this.city = city; - return this; - } - - public Builder timeZone(String timeZone) { - Utils.checkNotNull(timeZone, "timeZone"); - this.timeZone = Optional.ofNullable(timeZone); - return this; - } - - public Builder timeZone(Optional timeZone) { - Utils.checkNotNull(timeZone, "timeZone"); - this.timeZone = timeZone; - return this; - } - - public Builder postalCode(String postalCode) { - Utils.checkNotNull(postalCode, "postalCode"); - this.postalCode = Optional.ofNullable(postalCode); - return this; - } - - public Builder postalCode(Optional postalCode) { - Utils.checkNotNull(postalCode, "postalCode"); - this.postalCode = postalCode; - return this; - } - - public Builder inPrivacyRestrictedCountry(boolean inPrivacyRestrictedCountry) { - Utils.checkNotNull(inPrivacyRestrictedCountry, "inPrivacyRestrictedCountry"); - this.inPrivacyRestrictedCountry = Optional.ofNullable(inPrivacyRestrictedCountry); - return this; - } - - public Builder inPrivacyRestrictedCountry(Optional inPrivacyRestrictedCountry) { - Utils.checkNotNull(inPrivacyRestrictedCountry, "inPrivacyRestrictedCountry"); - this.inPrivacyRestrictedCountry = inPrivacyRestrictedCountry; - return this; - } - - public Builder subdivisions(String subdivisions) { - Utils.checkNotNull(subdivisions, "subdivisions"); - this.subdivisions = Optional.ofNullable(subdivisions); - return this; - } - - public Builder subdivisions(Optional subdivisions) { - Utils.checkNotNull(subdivisions, "subdivisions"); - this.subdivisions = subdivisions; - return this; - } - - public Builder coordinates(String coordinates) { - Utils.checkNotNull(coordinates, "coordinates"); - this.coordinates = Optional.ofNullable(coordinates); - return this; - } - - public Builder coordinates(Optional coordinates) { - Utils.checkNotNull(coordinates, "coordinates"); - this.coordinates = coordinates; - return this; - } - - public GetTokenLocation build() { - return new GetTokenLocation( - code, - europeanUnionMember, - continentCode, - country, - city, - timeZone, - postalCode, - inPrivacyRestrictedCountry, - subdivisions, - coordinates); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTokenRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTokenRequest.java deleted file mode 100644 index 329110fb..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTokenRequest.java +++ /dev/null @@ -1,186 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetTokenRequest { - - /** - * The PinID to retrieve an access token for - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=pinID") - private String pinID; - - /** - * 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) - * - */ - @SpeakeasyMetadata("header:style=simple,explode=false,name=X-Plex-Client-Identifier") - private Optional xPlexClientIdentifier; - - @JsonCreator - public GetTokenRequest( - String pinID, - Optional xPlexClientIdentifier) { - Utils.checkNotNull(pinID, "pinID"); - Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier"); - this.pinID = pinID; - this.xPlexClientIdentifier = xPlexClientIdentifier; - } - - public GetTokenRequest( - String pinID) { - this(pinID, Optional.empty()); - } - - /** - * The PinID to retrieve an access token for - */ - @JsonIgnore - public String pinID() { - return pinID; - } - - /** - * 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) - * - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional xPlexClientIdentifier() { - return (Optional) xPlexClientIdentifier; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * The PinID to retrieve an access token for - */ - public GetTokenRequest withPinID(String pinID) { - Utils.checkNotNull(pinID, "pinID"); - this.pinID = pinID; - return this; - } - - /** - * 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) - * - */ - public GetTokenRequest withXPlexClientIdentifier(String xPlexClientIdentifier) { - Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier"); - this.xPlexClientIdentifier = Optional.ofNullable(xPlexClientIdentifier); - return this; - } - - /** - * 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) - * - */ - public GetTokenRequest withXPlexClientIdentifier(Optional xPlexClientIdentifier) { - Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier"); - this.xPlexClientIdentifier = xPlexClientIdentifier; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetTokenRequest other = (GetTokenRequest) o; - return - java.util.Objects.deepEquals(this.pinID, other.pinID) && - java.util.Objects.deepEquals(this.xPlexClientIdentifier, other.xPlexClientIdentifier); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - pinID, - xPlexClientIdentifier); - } - - @Override - public String toString() { - return Utils.toString(GetTokenRequest.class, - "pinID", pinID, - "xPlexClientIdentifier", xPlexClientIdentifier); - } - - public final static class Builder { - - private String pinID; - - private Optional xPlexClientIdentifier = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * The PinID to retrieve an access token for - */ - public Builder pinID(String pinID) { - Utils.checkNotNull(pinID, "pinID"); - this.pinID = pinID; - return this; - } - - /** - * 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) - * - */ - public Builder xPlexClientIdentifier(String xPlexClientIdentifier) { - Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier"); - this.xPlexClientIdentifier = Optional.ofNullable(xPlexClientIdentifier); - return this; - } - - /** - * 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) - * - */ - public Builder xPlexClientIdentifier(Optional xPlexClientIdentifier) { - Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier"); - this.xPlexClientIdentifier = xPlexClientIdentifier; - return this; - } - - public GetTokenRequest build() { - return new GetTokenRequest( - pinID, - xPlexClientIdentifier); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTokenRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTokenRequestBuilder.java deleted file mode 100644 index b3bc41c0..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTokenRequestBuilder.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetTokenRequestBuilder { - - private String pinID; - private Optional xPlexClientIdentifier = Optional.empty(); - private java.util.Optional serverURL = Optional.empty(); - private final SDKMethodInterfaces.MethodCallGetToken sdk; - - public GetTokenRequestBuilder(SDKMethodInterfaces.MethodCallGetToken sdk) { - this.sdk = sdk; - } - - public GetTokenRequestBuilder pinID(String pinID) { - Utils.checkNotNull(pinID, "pinID"); - this.pinID = pinID; - return this; - } - - public GetTokenRequestBuilder xPlexClientIdentifier(String xPlexClientIdentifier) { - Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier"); - this.xPlexClientIdentifier = Optional.of(xPlexClientIdentifier); - return this; - } - - public GetTokenRequestBuilder xPlexClientIdentifier(Optional xPlexClientIdentifier) { - Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier"); - this.xPlexClientIdentifier = xPlexClientIdentifier; - return this; - } - - public GetTokenRequestBuilder serverURL(String serverURL) { - Utils.checkNotNull(serverURL, "serverURL"); - this.serverURL = Optional.of(serverURL); - return this; - } - - public GetTokenRequestBuilder serverURL(java.util.Optional serverURL) { - Utils.checkNotNull(serverURL, "serverURL"); - this.serverURL = serverURL; - return this; - } - - public GetTokenResponse call() throws Exception { - - return sdk.getToken( - pinID, - xPlexClientIdentifier, - serverURL); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTokenResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTokenResponse.java deleted file mode 100644 index 2557104e..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTokenResponse.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetTokenResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Access Token - */ - private Optional object; - - @JsonCreator - public GetTokenResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional object) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.object = object; - } - - public GetTokenResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Access Token - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional object() { - return (Optional) object; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetTokenResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetTokenResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetTokenResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Access Token - */ - public GetTokenResponse withObject(GetTokenResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * Access Token - */ - public GetTokenResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetTokenResponse other = (GetTokenResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.object, other.object); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse, - object); - } - - @Override - public String toString() { - return Utils.toString(GetTokenResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "object", object); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional object = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Access Token - */ - public Builder object(GetTokenResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * Access Token - */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - public GetTokenResponse build() { - return new GetTokenResponse( - contentType, - statusCode, - rawResponse, - object); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTokenResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTokenResponseBody.java deleted file mode 100644 index 75eb7f1c..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTokenResponseBody.java +++ /dev/null @@ -1,644 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.OffsetDateTime; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -/** - * GetTokenResponseBody - Access Token - */ - -public class GetTokenResponseBody { - - /** - * PinID for use with authentication - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("product") - private Optional product; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("trusted") - private Optional trusted; - - /** - * 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 - * - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("qr") - private Optional qr; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("clientIdentifier") - private Optional clientIdentifier; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("location") - private Optional location; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("expiresIn") - private Optional expiresIn; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("createdAt") - private Optional createdAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("expiresAt") - private Optional expiresAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("authToken") - private Optional authToken; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("newRegistration") - private Optional newRegistration; - - @JsonCreator - public GetTokenResponseBody( - @JsonProperty("id") Optional id, - @JsonProperty("code") Optional code, - @JsonProperty("product") Optional product, - @JsonProperty("trusted") Optional trusted, - @JsonProperty("qr") Optional qr, - @JsonProperty("clientIdentifier") Optional clientIdentifier, - @JsonProperty("location") Optional location, - @JsonProperty("expiresIn") Optional expiresIn, - @JsonProperty("createdAt") Optional createdAt, - @JsonProperty("expiresAt") Optional expiresAt, - @JsonProperty("authToken") Optional authToken, - @JsonProperty("newRegistration") Optional newRegistration) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(product, "product"); - Utils.checkNotNull(trusted, "trusted"); - Utils.checkNotNull(qr, "qr"); - Utils.checkNotNull(clientIdentifier, "clientIdentifier"); - Utils.checkNotNull(location, "location"); - Utils.checkNotNull(expiresIn, "expiresIn"); - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(expiresAt, "expiresAt"); - Utils.checkNotNull(authToken, "authToken"); - Utils.checkNotNull(newRegistration, "newRegistration"); - 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; - } - - public GetTokenResponseBody() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - /** - * PinID for use with authentication - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional product() { - return (Optional) product; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional trusted() { - return (Optional) trusted; - } - - /** - * 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 - * - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional qr() { - return (Optional) qr; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional clientIdentifier() { - return (Optional) clientIdentifier; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional location() { - return (Optional) location; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional expiresIn() { - return (Optional) expiresIn; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional createdAt() { - return (Optional) createdAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional expiresAt() { - return (Optional) expiresAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional authToken() { - return (Optional) authToken; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional newRegistration() { - return (Optional) newRegistration; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * PinID for use with authentication - */ - public GetTokenResponseBody withId(double id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * PinID for use with authentication - */ - public GetTokenResponseBody withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public GetTokenResponseBody withCode(String code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public GetTokenResponseBody withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public GetTokenResponseBody withProduct(String product) { - Utils.checkNotNull(product, "product"); - this.product = Optional.ofNullable(product); - return this; - } - - public GetTokenResponseBody withProduct(Optional product) { - Utils.checkNotNull(product, "product"); - this.product = product; - return this; - } - - public GetTokenResponseBody withTrusted(boolean trusted) { - Utils.checkNotNull(trusted, "trusted"); - this.trusted = Optional.ofNullable(trusted); - return this; - } - - public GetTokenResponseBody withTrusted(Optional trusted) { - Utils.checkNotNull(trusted, "trusted"); - this.trusted = trusted; - return this; - } - - /** - * 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 - * - */ - public GetTokenResponseBody withQr(String qr) { - Utils.checkNotNull(qr, "qr"); - this.qr = Optional.ofNullable(qr); - return this; - } - - /** - * 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 - * - */ - public GetTokenResponseBody withQr(Optional qr) { - Utils.checkNotNull(qr, "qr"); - this.qr = qr; - return this; - } - - public GetTokenResponseBody withClientIdentifier(String clientIdentifier) { - Utils.checkNotNull(clientIdentifier, "clientIdentifier"); - this.clientIdentifier = Optional.ofNullable(clientIdentifier); - return this; - } - - public GetTokenResponseBody withClientIdentifier(Optional clientIdentifier) { - Utils.checkNotNull(clientIdentifier, "clientIdentifier"); - this.clientIdentifier = clientIdentifier; - return this; - } - - public GetTokenResponseBody withLocation(GetTokenLocation location) { - Utils.checkNotNull(location, "location"); - this.location = Optional.ofNullable(location); - return this; - } - - public GetTokenResponseBody withLocation(Optional location) { - Utils.checkNotNull(location, "location"); - this.location = location; - return this; - } - - public GetTokenResponseBody withExpiresIn(double expiresIn) { - Utils.checkNotNull(expiresIn, "expiresIn"); - this.expiresIn = Optional.ofNullable(expiresIn); - return this; - } - - public GetTokenResponseBody withExpiresIn(Optional expiresIn) { - Utils.checkNotNull(expiresIn, "expiresIn"); - this.expiresIn = expiresIn; - return this; - } - - public GetTokenResponseBody withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = Optional.ofNullable(createdAt); - return this; - } - - public GetTokenResponseBody withCreatedAt(Optional createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - public GetTokenResponseBody withExpiresAt(OffsetDateTime expiresAt) { - Utils.checkNotNull(expiresAt, "expiresAt"); - this.expiresAt = Optional.ofNullable(expiresAt); - return this; - } - - public GetTokenResponseBody withExpiresAt(Optional expiresAt) { - Utils.checkNotNull(expiresAt, "expiresAt"); - this.expiresAt = expiresAt; - return this; - } - - public GetTokenResponseBody withAuthToken(String authToken) { - Utils.checkNotNull(authToken, "authToken"); - this.authToken = Optional.ofNullable(authToken); - return this; - } - - public GetTokenResponseBody withAuthToken(Optional authToken) { - Utils.checkNotNull(authToken, "authToken"); - this.authToken = authToken; - return this; - } - - public GetTokenResponseBody withNewRegistration(String newRegistration) { - Utils.checkNotNull(newRegistration, "newRegistration"); - this.newRegistration = Optional.ofNullable(newRegistration); - return this; - } - - public GetTokenResponseBody withNewRegistration(Optional newRegistration) { - Utils.checkNotNull(newRegistration, "newRegistration"); - this.newRegistration = newRegistration; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetTokenResponseBody other = (GetTokenResponseBody) o; - return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.product, other.product) && - java.util.Objects.deepEquals(this.trusted, other.trusted) && - java.util.Objects.deepEquals(this.qr, other.qr) && - java.util.Objects.deepEquals(this.clientIdentifier, other.clientIdentifier) && - java.util.Objects.deepEquals(this.location, other.location) && - java.util.Objects.deepEquals(this.expiresIn, other.expiresIn) && - java.util.Objects.deepEquals(this.createdAt, other.createdAt) && - java.util.Objects.deepEquals(this.expiresAt, other.expiresAt) && - java.util.Objects.deepEquals(this.authToken, other.authToken) && - java.util.Objects.deepEquals(this.newRegistration, other.newRegistration); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id, - code, - product, - trusted, - qr, - clientIdentifier, - location, - expiresIn, - createdAt, - expiresAt, - authToken, - newRegistration); - } - - @Override - public String toString() { - return Utils.toString(GetTokenResponseBody.class, - "id", id, - "code", code, - "product", product, - "trusted", trusted, - "qr", qr, - "clientIdentifier", clientIdentifier, - "location", location, - "expiresIn", expiresIn, - "createdAt", createdAt, - "expiresAt", expiresAt, - "authToken", authToken, - "newRegistration", newRegistration); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional code = Optional.empty(); - - private Optional product = Optional.empty(); - - private Optional trusted = Optional.empty(); - - private Optional qr = Optional.empty(); - - private Optional clientIdentifier = Optional.empty(); - - private Optional location = Optional.empty(); - - private Optional expiresIn = Optional.empty(); - - private Optional createdAt = Optional.empty(); - - private Optional expiresAt = Optional.empty(); - - private Optional authToken = Optional.empty(); - - private Optional newRegistration = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * PinID for use with authentication - */ - public Builder id(double id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - /** - * PinID for use with authentication - */ - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder code(String code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder product(String product) { - Utils.checkNotNull(product, "product"); - this.product = Optional.ofNullable(product); - return this; - } - - public Builder product(Optional product) { - Utils.checkNotNull(product, "product"); - this.product = product; - return this; - } - - public Builder trusted(boolean trusted) { - Utils.checkNotNull(trusted, "trusted"); - this.trusted = Optional.ofNullable(trusted); - return this; - } - - public Builder trusted(Optional trusted) { - Utils.checkNotNull(trusted, "trusted"); - this.trusted = trusted; - return this; - } - - /** - * 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 - * - */ - public Builder qr(String qr) { - Utils.checkNotNull(qr, "qr"); - this.qr = Optional.ofNullable(qr); - return this; - } - - /** - * 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 - * - */ - public Builder qr(Optional qr) { - Utils.checkNotNull(qr, "qr"); - this.qr = qr; - return this; - } - - public Builder clientIdentifier(String clientIdentifier) { - Utils.checkNotNull(clientIdentifier, "clientIdentifier"); - this.clientIdentifier = Optional.ofNullable(clientIdentifier); - return this; - } - - public Builder clientIdentifier(Optional clientIdentifier) { - Utils.checkNotNull(clientIdentifier, "clientIdentifier"); - this.clientIdentifier = clientIdentifier; - return this; - } - - public Builder location(GetTokenLocation location) { - Utils.checkNotNull(location, "location"); - this.location = Optional.ofNullable(location); - return this; - } - - public Builder location(Optional location) { - Utils.checkNotNull(location, "location"); - this.location = location; - return this; - } - - public Builder expiresIn(double expiresIn) { - Utils.checkNotNull(expiresIn, "expiresIn"); - this.expiresIn = Optional.ofNullable(expiresIn); - return this; - } - - public Builder expiresIn(Optional expiresIn) { - Utils.checkNotNull(expiresIn, "expiresIn"); - this.expiresIn = expiresIn; - return this; - } - - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = Optional.ofNullable(createdAt); - return this; - } - - public Builder createdAt(Optional createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - public Builder expiresAt(OffsetDateTime expiresAt) { - Utils.checkNotNull(expiresAt, "expiresAt"); - this.expiresAt = Optional.ofNullable(expiresAt); - return this; - } - - public Builder expiresAt(Optional expiresAt) { - Utils.checkNotNull(expiresAt, "expiresAt"); - this.expiresAt = expiresAt; - return this; - } - - public Builder authToken(String authToken) { - Utils.checkNotNull(authToken, "authToken"); - this.authToken = Optional.ofNullable(authToken); - return this; - } - - public Builder authToken(Optional authToken) { - Utils.checkNotNull(authToken, "authToken"); - this.authToken = authToken; - return this; - } - - public Builder newRegistration(String newRegistration) { - Utils.checkNotNull(newRegistration, "newRegistration"); - this.newRegistration = Optional.ofNullable(newRegistration); - return this; - } - - public Builder newRegistration(Optional newRegistration) { - Utils.checkNotNull(newRegistration, "newRegistration"); - this.newRegistration = newRegistration; - return this; - } - - public GetTokenResponseBody build() { - return new GetTokenResponseBody( - id, - code, - product, - trusted, - qr, - clientIdentifier, - location, - expiresIn, - createdAt, - expiresAt, - authToken, - newRegistration); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentCountry.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentCountry.java deleted file mode 100644 index b02a3bcd..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentCountry.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetTopWatchedContentCountry { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("filter") - private Optional filter; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tag") - private Optional tag; - - @JsonCreator - public GetTopWatchedContentCountry( - @JsonProperty("id") Optional id, - @JsonProperty("filter") Optional filter, - @JsonProperty("tag") Optional tag) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(filter, "filter"); - Utils.checkNotNull(tag, "tag"); - this.id = id; - this.filter = filter; - this.tag = tag; - } - - public GetTopWatchedContentCountry() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional filter() { - return (Optional) filter; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tag() { - return (Optional) tag; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetTopWatchedContentCountry withId(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public GetTopWatchedContentCountry withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public GetTopWatchedContentCountry withFilter(String filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - public GetTopWatchedContentCountry withFilter(Optional filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - public GetTopWatchedContentCountry withTag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public GetTopWatchedContentCountry withTag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetTopWatchedContentCountry other = (GetTopWatchedContentCountry) o; - return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.filter, other.filter) && - java.util.Objects.deepEquals(this.tag, other.tag); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id, - filter, - tag); - } - - @Override - public String toString() { - return Utils.toString(GetTopWatchedContentCountry.class, - "id", id, - "filter", filter, - "tag", tag); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional filter = Optional.empty(); - - private Optional tag = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder filter(String filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - public Builder filter(Optional filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - public Builder tag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Builder tag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public GetTopWatchedContentCountry build() { - return new GetTopWatchedContentCountry( - id, - filter, - tag); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentGenre.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentGenre.java deleted file mode 100644 index ac3e50ff..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentGenre.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetTopWatchedContentGenre { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("filter") - private Optional filter; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tag") - private Optional tag; - - @JsonCreator - public GetTopWatchedContentGenre( - @JsonProperty("id") Optional id, - @JsonProperty("filter") Optional filter, - @JsonProperty("tag") Optional tag) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(filter, "filter"); - Utils.checkNotNull(tag, "tag"); - this.id = id; - this.filter = filter; - this.tag = tag; - } - - public GetTopWatchedContentGenre() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional filter() { - return (Optional) filter; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tag() { - return (Optional) tag; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetTopWatchedContentGenre withId(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public GetTopWatchedContentGenre withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public GetTopWatchedContentGenre withFilter(String filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - public GetTopWatchedContentGenre withFilter(Optional filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - public GetTopWatchedContentGenre withTag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public GetTopWatchedContentGenre withTag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetTopWatchedContentGenre other = (GetTopWatchedContentGenre) o; - return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.filter, other.filter) && - java.util.Objects.deepEquals(this.tag, other.tag); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id, - filter, - tag); - } - - @Override - public String toString() { - return Utils.toString(GetTopWatchedContentGenre.class, - "id", id, - "filter", filter, - "tag", tag); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional filter = Optional.empty(); - - private Optional tag = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder filter(String filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - public Builder filter(Optional filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - public Builder tag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Builder tag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public GetTopWatchedContentGenre build() { - return new GetTopWatchedContentGenre( - id, - filter, - tag); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentGuids.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentGuids.java deleted file mode 100644 index c6334606..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentGuids.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetTopWatchedContentGuids { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonCreator - public GetTopWatchedContentGuids( - @JsonProperty("id") Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - } - - public GetTopWatchedContentGuids() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetTopWatchedContentGuids withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public GetTopWatchedContentGuids withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetTopWatchedContentGuids other = (GetTopWatchedContentGuids) o; - return - java.util.Objects.deepEquals(this.id, other.id); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id); - } - - @Override - public String toString() { - return Utils.toString(GetTopWatchedContentGuids.class, - "id", id); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public GetTopWatchedContentGuids build() { - return new GetTopWatchedContentGuids( - id); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentMediaContainer.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentMediaContainer.java deleted file mode 100644 index fe840b18..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentMediaContainer.java +++ /dev/null @@ -1,326 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetTopWatchedContentMediaContainer { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("allowSync") - private Optional allowSync; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("identifier") - private Optional identifier; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("mediaTagPrefix") - private Optional mediaTagPrefix; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("mediaTagVersion") - private Optional mediaTagVersion; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Metadata") - private Optional> metadata; - - @JsonCreator - public GetTopWatchedContentMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("allowSync") Optional allowSync, - @JsonProperty("identifier") Optional identifier, - @JsonProperty("mediaTagPrefix") Optional mediaTagPrefix, - @JsonProperty("mediaTagVersion") Optional mediaTagVersion, - @JsonProperty("Metadata") Optional> metadata) { - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(allowSync, "allowSync"); - Utils.checkNotNull(identifier, "identifier"); - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - Utils.checkNotNull(metadata, "metadata"); - this.size = size; - this.allowSync = allowSync; - this.identifier = identifier; - this.mediaTagPrefix = mediaTagPrefix; - this.mediaTagVersion = mediaTagVersion; - this.metadata = metadata; - } - - public GetTopWatchedContentMediaContainer() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional allowSync() { - return (Optional) allowSync; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional identifier() { - return (Optional) identifier; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaTagPrefix() { - return (Optional) mediaTagPrefix; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaTagVersion() { - return (Optional) mediaTagVersion; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetTopWatchedContentMediaContainer withSize(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public GetTopWatchedContentMediaContainer withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public GetTopWatchedContentMediaContainer withAllowSync(boolean allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = Optional.ofNullable(allowSync); - return this; - } - - public GetTopWatchedContentMediaContainer withAllowSync(Optional allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = allowSync; - return this; - } - - public GetTopWatchedContentMediaContainer withIdentifier(String identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = Optional.ofNullable(identifier); - return this; - } - - public GetTopWatchedContentMediaContainer withIdentifier(Optional identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = identifier; - return this; - } - - public GetTopWatchedContentMediaContainer withMediaTagPrefix(String mediaTagPrefix) { - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - this.mediaTagPrefix = Optional.ofNullable(mediaTagPrefix); - return this; - } - - public GetTopWatchedContentMediaContainer withMediaTagPrefix(Optional mediaTagPrefix) { - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - this.mediaTagPrefix = mediaTagPrefix; - return this; - } - - public GetTopWatchedContentMediaContainer withMediaTagVersion(int mediaTagVersion) { - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - this.mediaTagVersion = Optional.ofNullable(mediaTagVersion); - return this; - } - - public GetTopWatchedContentMediaContainer withMediaTagVersion(Optional mediaTagVersion) { - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - this.mediaTagVersion = mediaTagVersion; - return this; - } - - public GetTopWatchedContentMediaContainer withMetadata(java.util.List metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public GetTopWatchedContentMediaContainer withMetadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetTopWatchedContentMediaContainer other = (GetTopWatchedContentMediaContainer) o; - return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.allowSync, other.allowSync) && - java.util.Objects.deepEquals(this.identifier, other.identifier) && - java.util.Objects.deepEquals(this.mediaTagPrefix, other.mediaTagPrefix) && - java.util.Objects.deepEquals(this.mediaTagVersion, other.mediaTagVersion) && - java.util.Objects.deepEquals(this.metadata, other.metadata); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - size, - allowSync, - identifier, - mediaTagPrefix, - mediaTagVersion, - metadata); - } - - @Override - public String toString() { - return Utils.toString(GetTopWatchedContentMediaContainer.class, - "size", size, - "allowSync", allowSync, - "identifier", identifier, - "mediaTagPrefix", mediaTagPrefix, - "mediaTagVersion", mediaTagVersion, - "metadata", metadata); - } - - public final static class Builder { - - private Optional size = Optional.empty(); - - private Optional allowSync = Optional.empty(); - - private Optional identifier = Optional.empty(); - - private Optional mediaTagPrefix = Optional.empty(); - - private Optional mediaTagVersion = Optional.empty(); - - private Optional> metadata = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder size(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder allowSync(boolean allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = Optional.ofNullable(allowSync); - return this; - } - - public Builder allowSync(Optional allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = allowSync; - return this; - } - - public Builder identifier(String identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = Optional.ofNullable(identifier); - return this; - } - - public Builder identifier(Optional identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = identifier; - return this; - } - - public Builder mediaTagPrefix(String mediaTagPrefix) { - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - this.mediaTagPrefix = Optional.ofNullable(mediaTagPrefix); - return this; - } - - public Builder mediaTagPrefix(Optional mediaTagPrefix) { - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - this.mediaTagPrefix = mediaTagPrefix; - return this; - } - - public Builder mediaTagVersion(int mediaTagVersion) { - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - this.mediaTagVersion = Optional.ofNullable(mediaTagVersion); - return this; - } - - public Builder mediaTagVersion(Optional mediaTagVersion) { - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - this.mediaTagVersion = mediaTagVersion; - return this; - } - - public Builder metadata(java.util.List metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public Builder metadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public GetTopWatchedContentMediaContainer build() { - return new GetTopWatchedContentMediaContainer( - size, - allowSync, - identifier, - mediaTagPrefix, - mediaTagVersion, - metadata); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentMetadata.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentMetadata.java deleted file mode 100644 index 22ce063a..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentMetadata.java +++ /dev/null @@ -1,1445 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetTopWatchedContentMetadata { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ratingKey") - private Optional ratingKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("guid") - private Optional guid; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("slug") - private Optional slug; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("studio") - private Optional studio; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title") - private Optional title; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionTitle") - private Optional librarySectionTitle; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionID") - private Optional librarySectionID; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionKey") - private Optional librarySectionKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("contentRating") - private Optional contentRating; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("summary") - private Optional summary; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("index") - private Optional index; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audienceRating") - private Optional audienceRating; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("year") - private Optional year; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tagline") - private Optional tagline; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("thumb") - private Optional thumb; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("art") - private Optional art; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("duration") - private Optional duration; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("originallyAvailableAt") - private Optional originallyAvailableAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("leafCount") - private Optional leafCount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("viewedLeafCount") - private Optional viewedLeafCount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("childCount") - private Optional childCount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("addedAt") - private Optional addedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updatedAt") - private Optional updatedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("globalViewCount") - private Optional globalViewCount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audienceRatingImage") - private Optional audienceRatingImage; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Genre") - private Optional> genre; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Country") - private Optional> country; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Guid") - private Optional> guids; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Role") - private Optional> role; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("User") - private Optional> user; - - @JsonCreator - public GetTopWatchedContentMetadata( - @JsonProperty("ratingKey") Optional ratingKey, - @JsonProperty("key") Optional key, - @JsonProperty("guid") Optional guid, - @JsonProperty("slug") Optional slug, - @JsonProperty("studio") Optional studio, - @JsonProperty("type") Optional type, - @JsonProperty("title") Optional title, - @JsonProperty("librarySectionTitle") Optional librarySectionTitle, - @JsonProperty("librarySectionID") Optional librarySectionID, - @JsonProperty("librarySectionKey") Optional librarySectionKey, - @JsonProperty("contentRating") Optional contentRating, - @JsonProperty("summary") Optional summary, - @JsonProperty("index") Optional index, - @JsonProperty("audienceRating") Optional audienceRating, - @JsonProperty("year") Optional year, - @JsonProperty("tagline") Optional tagline, - @JsonProperty("thumb") Optional thumb, - @JsonProperty("art") Optional art, - @JsonProperty("duration") Optional duration, - @JsonProperty("originallyAvailableAt") Optional originallyAvailableAt, - @JsonProperty("leafCount") Optional leafCount, - @JsonProperty("viewedLeafCount") Optional viewedLeafCount, - @JsonProperty("childCount") Optional childCount, - @JsonProperty("addedAt") Optional addedAt, - @JsonProperty("updatedAt") Optional updatedAt, - @JsonProperty("globalViewCount") Optional globalViewCount, - @JsonProperty("audienceRatingImage") Optional audienceRatingImage, - @JsonProperty("Genre") Optional> genre, - @JsonProperty("Country") Optional> country, - @JsonProperty("guids") Optional> guids, - @JsonProperty("Role") Optional> role, - @JsonProperty("User") Optional> user) { - Utils.checkNotNull(ratingKey, "ratingKey"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(guid, "guid"); - Utils.checkNotNull(slug, "slug"); - Utils.checkNotNull(studio, "studio"); - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(title, "title"); - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - Utils.checkNotNull(librarySectionID, "librarySectionID"); - Utils.checkNotNull(librarySectionKey, "librarySectionKey"); - Utils.checkNotNull(contentRating, "contentRating"); - Utils.checkNotNull(summary, "summary"); - Utils.checkNotNull(index, "index"); - Utils.checkNotNull(audienceRating, "audienceRating"); - Utils.checkNotNull(year, "year"); - Utils.checkNotNull(tagline, "tagline"); - Utils.checkNotNull(thumb, "thumb"); - Utils.checkNotNull(art, "art"); - Utils.checkNotNull(duration, "duration"); - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - Utils.checkNotNull(leafCount, "leafCount"); - Utils.checkNotNull(viewedLeafCount, "viewedLeafCount"); - Utils.checkNotNull(childCount, "childCount"); - Utils.checkNotNull(addedAt, "addedAt"); - Utils.checkNotNull(updatedAt, "updatedAt"); - Utils.checkNotNull(globalViewCount, "globalViewCount"); - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - Utils.checkNotNull(genre, "genre"); - Utils.checkNotNull(country, "country"); - Utils.checkNotNull(guids, "guids"); - Utils.checkNotNull(role, "role"); - Utils.checkNotNull(user, "user"); - 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; - } - - public GetTopWatchedContentMetadata() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional ratingKey() { - return (Optional) ratingKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional guid() { - return (Optional) guid; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional slug() { - return (Optional) slug; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional studio() { - return (Optional) studio; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title() { - return (Optional) title; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionTitle() { - return (Optional) librarySectionTitle; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionID() { - return (Optional) librarySectionID; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionKey() { - return (Optional) librarySectionKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional contentRating() { - return (Optional) contentRating; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional summary() { - return (Optional) summary; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional index() { - return (Optional) index; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audienceRating() { - return (Optional) audienceRating; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional year() { - return (Optional) year; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tagline() { - return (Optional) tagline; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional thumb() { - return (Optional) thumb; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional art() { - return (Optional) art; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional duration() { - return (Optional) duration; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional originallyAvailableAt() { - return (Optional) originallyAvailableAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional leafCount() { - return (Optional) leafCount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional viewedLeafCount() { - return (Optional) viewedLeafCount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional childCount() { - return (Optional) childCount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional addedAt() { - return (Optional) addedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional updatedAt() { - return (Optional) updatedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional globalViewCount() { - return (Optional) globalViewCount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audienceRatingImage() { - return (Optional) audienceRatingImage; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> genre() { - return (Optional>) genre; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> country() { - return (Optional>) country; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> guids() { - return (Optional>) guids; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> role() { - return (Optional>) role; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> user() { - return (Optional>) user; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetTopWatchedContentMetadata withRatingKey(String ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public GetTopWatchedContentMetadata withRatingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public GetTopWatchedContentMetadata withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public GetTopWatchedContentMetadata withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public GetTopWatchedContentMetadata withGuid(String guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = Optional.ofNullable(guid); - return this; - } - - public GetTopWatchedContentMetadata withGuid(Optional guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = guid; - return this; - } - - public GetTopWatchedContentMetadata withSlug(String slug) { - Utils.checkNotNull(slug, "slug"); - this.slug = Optional.ofNullable(slug); - return this; - } - - public GetTopWatchedContentMetadata withSlug(Optional slug) { - Utils.checkNotNull(slug, "slug"); - this.slug = slug; - return this; - } - - public GetTopWatchedContentMetadata withStudio(String studio) { - Utils.checkNotNull(studio, "studio"); - this.studio = Optional.ofNullable(studio); - return this; - } - - public GetTopWatchedContentMetadata withStudio(Optional studio) { - Utils.checkNotNull(studio, "studio"); - this.studio = studio; - return this; - } - - public GetTopWatchedContentMetadata withType(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public GetTopWatchedContentMetadata withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public GetTopWatchedContentMetadata withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public GetTopWatchedContentMetadata withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public GetTopWatchedContentMetadata withLibrarySectionTitle(String librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = Optional.ofNullable(librarySectionTitle); - return this; - } - - public GetTopWatchedContentMetadata withLibrarySectionTitle(Optional librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = librarySectionTitle; - return this; - } - - public GetTopWatchedContentMetadata withLibrarySectionID(int librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = Optional.ofNullable(librarySectionID); - return this; - } - - public GetTopWatchedContentMetadata withLibrarySectionID(Optional librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = librarySectionID; - return this; - } - - public GetTopWatchedContentMetadata withLibrarySectionKey(String librarySectionKey) { - Utils.checkNotNull(librarySectionKey, "librarySectionKey"); - this.librarySectionKey = Optional.ofNullable(librarySectionKey); - return this; - } - - public GetTopWatchedContentMetadata withLibrarySectionKey(Optional librarySectionKey) { - Utils.checkNotNull(librarySectionKey, "librarySectionKey"); - this.librarySectionKey = librarySectionKey; - return this; - } - - public GetTopWatchedContentMetadata withContentRating(String contentRating) { - Utils.checkNotNull(contentRating, "contentRating"); - this.contentRating = Optional.ofNullable(contentRating); - return this; - } - - public GetTopWatchedContentMetadata withContentRating(Optional contentRating) { - Utils.checkNotNull(contentRating, "contentRating"); - this.contentRating = contentRating; - return this; - } - - public GetTopWatchedContentMetadata withSummary(String summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = Optional.ofNullable(summary); - return this; - } - - public GetTopWatchedContentMetadata withSummary(Optional summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = summary; - return this; - } - - public GetTopWatchedContentMetadata withIndex(long index) { - Utils.checkNotNull(index, "index"); - this.index = Optional.ofNullable(index); - return this; - } - - public GetTopWatchedContentMetadata withIndex(Optional index) { - Utils.checkNotNull(index, "index"); - this.index = index; - return this; - } - - public GetTopWatchedContentMetadata withAudienceRating(double audienceRating) { - Utils.checkNotNull(audienceRating, "audienceRating"); - this.audienceRating = Optional.ofNullable(audienceRating); - return this; - } - - public GetTopWatchedContentMetadata withAudienceRating(Optional audienceRating) { - Utils.checkNotNull(audienceRating, "audienceRating"); - this.audienceRating = audienceRating; - return this; - } - - public GetTopWatchedContentMetadata withYear(int year) { - Utils.checkNotNull(year, "year"); - this.year = Optional.ofNullable(year); - return this; - } - - public GetTopWatchedContentMetadata withYear(Optional year) { - Utils.checkNotNull(year, "year"); - this.year = year; - return this; - } - - public GetTopWatchedContentMetadata withTagline(String tagline) { - Utils.checkNotNull(tagline, "tagline"); - this.tagline = Optional.ofNullable(tagline); - return this; - } - - public GetTopWatchedContentMetadata withTagline(Optional tagline) { - Utils.checkNotNull(tagline, "tagline"); - this.tagline = tagline; - return this; - } - - public GetTopWatchedContentMetadata withThumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public GetTopWatchedContentMetadata withThumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public GetTopWatchedContentMetadata withArt(String art) { - Utils.checkNotNull(art, "art"); - this.art = Optional.ofNullable(art); - return this; - } - - public GetTopWatchedContentMetadata withArt(Optional art) { - Utils.checkNotNull(art, "art"); - this.art = art; - return this; - } - - public GetTopWatchedContentMetadata withDuration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public GetTopWatchedContentMetadata withDuration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public GetTopWatchedContentMetadata withOriginallyAvailableAt(LocalDate originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = Optional.ofNullable(originallyAvailableAt); - return this; - } - - public GetTopWatchedContentMetadata withOriginallyAvailableAt(Optional originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = originallyAvailableAt; - return this; - } - - public GetTopWatchedContentMetadata withLeafCount(long leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = Optional.ofNullable(leafCount); - return this; - } - - public GetTopWatchedContentMetadata withLeafCount(Optional leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = leafCount; - return this; - } - - public GetTopWatchedContentMetadata withViewedLeafCount(long viewedLeafCount) { - Utils.checkNotNull(viewedLeafCount, "viewedLeafCount"); - this.viewedLeafCount = Optional.ofNullable(viewedLeafCount); - return this; - } - - public GetTopWatchedContentMetadata withViewedLeafCount(Optional viewedLeafCount) { - Utils.checkNotNull(viewedLeafCount, "viewedLeafCount"); - this.viewedLeafCount = viewedLeafCount; - return this; - } - - public GetTopWatchedContentMetadata withChildCount(long childCount) { - Utils.checkNotNull(childCount, "childCount"); - this.childCount = Optional.ofNullable(childCount); - return this; - } - - public GetTopWatchedContentMetadata withChildCount(Optional childCount) { - Utils.checkNotNull(childCount, "childCount"); - this.childCount = childCount; - return this; - } - - public GetTopWatchedContentMetadata withAddedAt(int addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = Optional.ofNullable(addedAt); - return this; - } - - public GetTopWatchedContentMetadata withAddedAt(Optional addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = addedAt; - return this; - } - - public GetTopWatchedContentMetadata withUpdatedAt(int updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public GetTopWatchedContentMetadata withUpdatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public GetTopWatchedContentMetadata withGlobalViewCount(long globalViewCount) { - Utils.checkNotNull(globalViewCount, "globalViewCount"); - this.globalViewCount = Optional.ofNullable(globalViewCount); - return this; - } - - public GetTopWatchedContentMetadata withGlobalViewCount(Optional globalViewCount) { - Utils.checkNotNull(globalViewCount, "globalViewCount"); - this.globalViewCount = globalViewCount; - return this; - } - - public GetTopWatchedContentMetadata withAudienceRatingImage(String audienceRatingImage) { - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - this.audienceRatingImage = Optional.ofNullable(audienceRatingImage); - return this; - } - - public GetTopWatchedContentMetadata withAudienceRatingImage(Optional audienceRatingImage) { - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - this.audienceRatingImage = audienceRatingImage; - return this; - } - - public GetTopWatchedContentMetadata withGenre(java.util.List genre) { - Utils.checkNotNull(genre, "genre"); - this.genre = Optional.ofNullable(genre); - return this; - } - - public GetTopWatchedContentMetadata withGenre(Optional> genre) { - Utils.checkNotNull(genre, "genre"); - this.genre = genre; - return this; - } - - public GetTopWatchedContentMetadata withCountry(java.util.List country) { - Utils.checkNotNull(country, "country"); - this.country = Optional.ofNullable(country); - return this; - } - - public GetTopWatchedContentMetadata withCountry(Optional> country) { - Utils.checkNotNull(country, "country"); - this.country = country; - return this; - } - - public GetTopWatchedContentMetadata withGuids(java.util.List guids) { - Utils.checkNotNull(guids, "guids"); - this.guids = Optional.ofNullable(guids); - return this; - } - - public GetTopWatchedContentMetadata withGuids(Optional> guids) { - Utils.checkNotNull(guids, "guids"); - this.guids = guids; - return this; - } - - public GetTopWatchedContentMetadata withRole(java.util.List role) { - Utils.checkNotNull(role, "role"); - this.role = Optional.ofNullable(role); - return this; - } - - public GetTopWatchedContentMetadata withRole(Optional> role) { - Utils.checkNotNull(role, "role"); - this.role = role; - return this; - } - - public GetTopWatchedContentMetadata withUser(java.util.List user) { - Utils.checkNotNull(user, "user"); - this.user = Optional.ofNullable(user); - return this; - } - - public GetTopWatchedContentMetadata withUser(Optional> user) { - Utils.checkNotNull(user, "user"); - this.user = user; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetTopWatchedContentMetadata other = (GetTopWatchedContentMetadata) o; - return - java.util.Objects.deepEquals(this.ratingKey, other.ratingKey) && - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.guid, other.guid) && - java.util.Objects.deepEquals(this.slug, other.slug) && - java.util.Objects.deepEquals(this.studio, other.studio) && - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.title, other.title) && - java.util.Objects.deepEquals(this.librarySectionTitle, other.librarySectionTitle) && - java.util.Objects.deepEquals(this.librarySectionID, other.librarySectionID) && - java.util.Objects.deepEquals(this.librarySectionKey, other.librarySectionKey) && - java.util.Objects.deepEquals(this.contentRating, other.contentRating) && - java.util.Objects.deepEquals(this.summary, other.summary) && - java.util.Objects.deepEquals(this.index, other.index) && - java.util.Objects.deepEquals(this.audienceRating, other.audienceRating) && - java.util.Objects.deepEquals(this.year, other.year) && - java.util.Objects.deepEquals(this.tagline, other.tagline) && - java.util.Objects.deepEquals(this.thumb, other.thumb) && - java.util.Objects.deepEquals(this.art, other.art) && - java.util.Objects.deepEquals(this.duration, other.duration) && - java.util.Objects.deepEquals(this.originallyAvailableAt, other.originallyAvailableAt) && - java.util.Objects.deepEquals(this.leafCount, other.leafCount) && - java.util.Objects.deepEquals(this.viewedLeafCount, other.viewedLeafCount) && - java.util.Objects.deepEquals(this.childCount, other.childCount) && - java.util.Objects.deepEquals(this.addedAt, other.addedAt) && - java.util.Objects.deepEquals(this.updatedAt, other.updatedAt) && - java.util.Objects.deepEquals(this.globalViewCount, other.globalViewCount) && - java.util.Objects.deepEquals(this.audienceRatingImage, other.audienceRatingImage) && - java.util.Objects.deepEquals(this.genre, other.genre) && - java.util.Objects.deepEquals(this.country, other.country) && - java.util.Objects.deepEquals(this.guids, other.guids) && - java.util.Objects.deepEquals(this.role, other.role) && - java.util.Objects.deepEquals(this.user, other.user); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - ratingKey, - key, - guid, - slug, - studio, - type, - title, - librarySectionTitle, - librarySectionID, - librarySectionKey, - contentRating, - summary, - index, - audienceRating, - year, - tagline, - thumb, - art, - duration, - originallyAvailableAt, - leafCount, - viewedLeafCount, - childCount, - addedAt, - updatedAt, - globalViewCount, - audienceRatingImage, - genre, - country, - guids, - role, - user); - } - - @Override - public String toString() { - return Utils.toString(GetTopWatchedContentMetadata.class, - "ratingKey", ratingKey, - "key", key, - "guid", guid, - "slug", slug, - "studio", studio, - "type", type, - "title", title, - "librarySectionTitle", librarySectionTitle, - "librarySectionID", librarySectionID, - "librarySectionKey", librarySectionKey, - "contentRating", contentRating, - "summary", summary, - "index", index, - "audienceRating", audienceRating, - "year", year, - "tagline", tagline, - "thumb", thumb, - "art", art, - "duration", duration, - "originallyAvailableAt", originallyAvailableAt, - "leafCount", leafCount, - "viewedLeafCount", viewedLeafCount, - "childCount", childCount, - "addedAt", addedAt, - "updatedAt", updatedAt, - "globalViewCount", globalViewCount, - "audienceRatingImage", audienceRatingImage, - "genre", genre, - "country", country, - "guids", guids, - "role", role, - "user", user); - } - - public final static class Builder { - - private Optional ratingKey = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional guid = Optional.empty(); - - private Optional slug = Optional.empty(); - - private Optional studio = Optional.empty(); - - private Optional type = Optional.empty(); - - private Optional title = Optional.empty(); - - private Optional librarySectionTitle = Optional.empty(); - - private Optional librarySectionID = Optional.empty(); - - private Optional librarySectionKey = Optional.empty(); - - private Optional contentRating = Optional.empty(); - - private Optional summary = Optional.empty(); - - private Optional index = Optional.empty(); - - private Optional audienceRating = Optional.empty(); - - private Optional year = Optional.empty(); - - private Optional tagline = Optional.empty(); - - private Optional thumb = Optional.empty(); - - private Optional art = Optional.empty(); - - private Optional duration = Optional.empty(); - - private Optional originallyAvailableAt = Optional.empty(); - - private Optional leafCount = Optional.empty(); - - private Optional viewedLeafCount = Optional.empty(); - - private Optional childCount = Optional.empty(); - - private Optional addedAt = Optional.empty(); - - private Optional updatedAt = Optional.empty(); - - private Optional globalViewCount = Optional.empty(); - - private Optional audienceRatingImage = Optional.empty(); - - private Optional> genre = Optional.empty(); - - private Optional> country = Optional.empty(); - - private Optional> guids = Optional.empty(); - - private Optional> role = Optional.empty(); - - private Optional> user = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder ratingKey(String ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public Builder ratingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder guid(String guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = Optional.ofNullable(guid); - return this; - } - - public Builder guid(Optional guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = guid; - return this; - } - - public Builder slug(String slug) { - Utils.checkNotNull(slug, "slug"); - this.slug = Optional.ofNullable(slug); - return this; - } - - public Builder slug(Optional slug) { - Utils.checkNotNull(slug, "slug"); - this.slug = slug; - return this; - } - - public Builder studio(String studio) { - Utils.checkNotNull(studio, "studio"); - this.studio = Optional.ofNullable(studio); - return this; - } - - public Builder studio(Optional studio) { - Utils.checkNotNull(studio, "studio"); - this.studio = studio; - return this; - } - - public Builder type(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Builder librarySectionTitle(String librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = Optional.ofNullable(librarySectionTitle); - return this; - } - - public Builder librarySectionTitle(Optional librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = librarySectionTitle; - return this; - } - - public Builder librarySectionID(int librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = Optional.ofNullable(librarySectionID); - return this; - } - - public Builder librarySectionID(Optional librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = librarySectionID; - return this; - } - - public Builder librarySectionKey(String librarySectionKey) { - Utils.checkNotNull(librarySectionKey, "librarySectionKey"); - this.librarySectionKey = Optional.ofNullable(librarySectionKey); - return this; - } - - public Builder librarySectionKey(Optional librarySectionKey) { - Utils.checkNotNull(librarySectionKey, "librarySectionKey"); - this.librarySectionKey = librarySectionKey; - return this; - } - - public Builder contentRating(String contentRating) { - Utils.checkNotNull(contentRating, "contentRating"); - this.contentRating = Optional.ofNullable(contentRating); - return this; - } - - public Builder contentRating(Optional contentRating) { - Utils.checkNotNull(contentRating, "contentRating"); - this.contentRating = contentRating; - return this; - } - - public Builder summary(String summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = Optional.ofNullable(summary); - return this; - } - - public Builder summary(Optional summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = summary; - return this; - } - - public Builder index(long index) { - Utils.checkNotNull(index, "index"); - this.index = Optional.ofNullable(index); - return this; - } - - public Builder index(Optional index) { - Utils.checkNotNull(index, "index"); - this.index = index; - return this; - } - - public Builder audienceRating(double audienceRating) { - Utils.checkNotNull(audienceRating, "audienceRating"); - this.audienceRating = Optional.ofNullable(audienceRating); - return this; - } - - public Builder audienceRating(Optional audienceRating) { - Utils.checkNotNull(audienceRating, "audienceRating"); - this.audienceRating = audienceRating; - return this; - } - - public Builder year(int year) { - Utils.checkNotNull(year, "year"); - this.year = Optional.ofNullable(year); - return this; - } - - public Builder year(Optional year) { - Utils.checkNotNull(year, "year"); - this.year = year; - return this; - } - - public Builder tagline(String tagline) { - Utils.checkNotNull(tagline, "tagline"); - this.tagline = Optional.ofNullable(tagline); - return this; - } - - public Builder tagline(Optional tagline) { - Utils.checkNotNull(tagline, "tagline"); - this.tagline = tagline; - return this; - } - - public Builder thumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public Builder thumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public Builder art(String art) { - Utils.checkNotNull(art, "art"); - this.art = Optional.ofNullable(art); - return this; - } - - public Builder art(Optional art) { - Utils.checkNotNull(art, "art"); - this.art = art; - return this; - } - - public Builder duration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public Builder duration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public Builder originallyAvailableAt(LocalDate originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = Optional.ofNullable(originallyAvailableAt); - return this; - } - - public Builder originallyAvailableAt(Optional originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = originallyAvailableAt; - return this; - } - - public Builder leafCount(long leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = Optional.ofNullable(leafCount); - return this; - } - - public Builder leafCount(Optional leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = leafCount; - return this; - } - - public Builder viewedLeafCount(long viewedLeafCount) { - Utils.checkNotNull(viewedLeafCount, "viewedLeafCount"); - this.viewedLeafCount = Optional.ofNullable(viewedLeafCount); - return this; - } - - public Builder viewedLeafCount(Optional viewedLeafCount) { - Utils.checkNotNull(viewedLeafCount, "viewedLeafCount"); - this.viewedLeafCount = viewedLeafCount; - return this; - } - - public Builder childCount(long childCount) { - Utils.checkNotNull(childCount, "childCount"); - this.childCount = Optional.ofNullable(childCount); - return this; - } - - public Builder childCount(Optional childCount) { - Utils.checkNotNull(childCount, "childCount"); - this.childCount = childCount; - return this; - } - - public Builder addedAt(int addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = Optional.ofNullable(addedAt); - return this; - } - - public Builder addedAt(Optional addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = addedAt; - return this; - } - - public Builder updatedAt(int updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public Builder updatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public Builder globalViewCount(long globalViewCount) { - Utils.checkNotNull(globalViewCount, "globalViewCount"); - this.globalViewCount = Optional.ofNullable(globalViewCount); - return this; - } - - public Builder globalViewCount(Optional globalViewCount) { - Utils.checkNotNull(globalViewCount, "globalViewCount"); - this.globalViewCount = globalViewCount; - return this; - } - - public Builder audienceRatingImage(String audienceRatingImage) { - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - this.audienceRatingImage = Optional.ofNullable(audienceRatingImage); - return this; - } - - public Builder audienceRatingImage(Optional audienceRatingImage) { - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - this.audienceRatingImage = audienceRatingImage; - return this; - } - - public Builder genre(java.util.List genre) { - Utils.checkNotNull(genre, "genre"); - this.genre = Optional.ofNullable(genre); - return this; - } - - public Builder genre(Optional> genre) { - Utils.checkNotNull(genre, "genre"); - this.genre = genre; - return this; - } - - public Builder country(java.util.List country) { - Utils.checkNotNull(country, "country"); - this.country = Optional.ofNullable(country); - return this; - } - - public Builder country(Optional> country) { - Utils.checkNotNull(country, "country"); - this.country = country; - return this; - } - - public Builder guids(java.util.List guids) { - Utils.checkNotNull(guids, "guids"); - this.guids = Optional.ofNullable(guids); - return this; - } - - public Builder guids(Optional> guids) { - Utils.checkNotNull(guids, "guids"); - this.guids = guids; - return this; - } - - public Builder role(java.util.List role) { - Utils.checkNotNull(role, "role"); - this.role = Optional.ofNullable(role); - return this; - } - - public Builder role(Optional> role) { - Utils.checkNotNull(role, "role"); - this.role = role; - return this; - } - - public Builder user(java.util.List user) { - Utils.checkNotNull(user, "user"); - this.user = Optional.ofNullable(user); - return this; - } - - public Builder user(Optional> user) { - Utils.checkNotNull(user, "user"); - this.user = user; - return this; - } - - public GetTopWatchedContentMetadata build() { - return new GetTopWatchedContentMetadata( - ratingKey, - key, - guid, - slug, - studio, - type, - title, - librarySectionTitle, - librarySectionID, - librarySectionKey, - contentRating, - summary, - index, - audienceRating, - year, - tagline, - thumb, - art, - duration, - originallyAvailableAt, - leafCount, - viewedLeafCount, - childCount, - addedAt, - updatedAt, - globalViewCount, - audienceRatingImage, - genre, - country, - guids, - role, - user); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentRequest.java deleted file mode 100644 index b193d28d..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentRequest.java +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetTopWatchedContentRequest { - - /** - * the library type (1 - movies, 2 - shows, 3 - music) - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=type") - private long type; - - /** - * Adds the Guids object to the response - * - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeGuids") - private Optional includeGuids; - - @JsonCreator - public GetTopWatchedContentRequest( - long type, - Optional includeGuids) { - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(includeGuids, "includeGuids"); - this.type = type; - this.includeGuids = includeGuids; - } - - public GetTopWatchedContentRequest( - long type) { - this(type, Optional.empty()); - } - - /** - * the library type (1 - movies, 2 - shows, 3 - music) - */ - @JsonIgnore - public long type() { - return type; - } - - /** - * Adds the Guids object to the response - * - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional includeGuids() { - return (Optional) includeGuids; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * the library type (1 - movies, 2 - shows, 3 - music) - */ - public GetTopWatchedContentRequest withType(long type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - /** - * Adds the Guids object to the response - * - */ - public GetTopWatchedContentRequest withIncludeGuids(long includeGuids) { - Utils.checkNotNull(includeGuids, "includeGuids"); - this.includeGuids = Optional.ofNullable(includeGuids); - return this; - } - - /** - * Adds the Guids object to the response - * - */ - public GetTopWatchedContentRequest withIncludeGuids(Optional includeGuids) { - Utils.checkNotNull(includeGuids, "includeGuids"); - this.includeGuids = includeGuids; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetTopWatchedContentRequest other = (GetTopWatchedContentRequest) o; - return - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.includeGuids, other.includeGuids); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - type, - includeGuids); - } - - @Override - public String toString() { - return Utils.toString(GetTopWatchedContentRequest.class, - "type", type, - "includeGuids", includeGuids); - } - - public final static class Builder { - - private Long type; - - private Optional includeGuids = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * the library type (1 - movies, 2 - shows, 3 - music) - */ - public Builder type(long type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - /** - * Adds the Guids object to the response - * - */ - public Builder includeGuids(long includeGuids) { - Utils.checkNotNull(includeGuids, "includeGuids"); - this.includeGuids = Optional.ofNullable(includeGuids); - return this; - } - - /** - * Adds the Guids object to the response - * - */ - public Builder includeGuids(Optional includeGuids) { - Utils.checkNotNull(includeGuids, "includeGuids"); - this.includeGuids = includeGuids; - return this; - } - - public GetTopWatchedContentRequest build() { - return new GetTopWatchedContentRequest( - type, - includeGuids); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentRequestBuilder.java deleted file mode 100644 index 9eac2367..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentRequestBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetTopWatchedContentRequestBuilder { - - private Long type; - private Optional includeGuids = Optional.empty(); - private final SDKMethodInterfaces.MethodCallGetTopWatchedContent sdk; - - public GetTopWatchedContentRequestBuilder(SDKMethodInterfaces.MethodCallGetTopWatchedContent sdk) { - this.sdk = sdk; - } - - public GetTopWatchedContentRequestBuilder type(long type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public GetTopWatchedContentRequestBuilder includeGuids(long includeGuids) { - Utils.checkNotNull(includeGuids, "includeGuids"); - this.includeGuids = Optional.of(includeGuids); - return this; - } - - public GetTopWatchedContentRequestBuilder includeGuids(Optional includeGuids) { - Utils.checkNotNull(includeGuids, "includeGuids"); - this.includeGuids = includeGuids; - return this; - } - - public GetTopWatchedContentResponse call() throws Exception { - - return sdk.getTopWatchedContent( - type, - includeGuids); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentResponse.java deleted file mode 100644 index d8a0d3bd..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentResponse.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetTopWatchedContentResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * The metadata of the library item. - */ - private Optional object; - - @JsonCreator - public GetTopWatchedContentResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional object) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.object = object; - } - - public GetTopWatchedContentResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * The metadata of the library item. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional object() { - return (Optional) object; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetTopWatchedContentResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetTopWatchedContentResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetTopWatchedContentResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * The metadata of the library item. - */ - public GetTopWatchedContentResponse withObject(GetTopWatchedContentResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * The metadata of the library item. - */ - public GetTopWatchedContentResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetTopWatchedContentResponse other = (GetTopWatchedContentResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.object, other.object); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse, - object); - } - - @Override - public String toString() { - return Utils.toString(GetTopWatchedContentResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "object", object); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional object = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * The metadata of the library item. - */ - public Builder object(GetTopWatchedContentResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * The metadata of the library item. - */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - public GetTopWatchedContentResponse build() { - return new GetTopWatchedContentResponse( - contentType, - statusCode, - rawResponse, - object); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentResponseBody.java deleted file mode 100644 index da530e11..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentResponseBody.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -/** - * GetTopWatchedContentResponseBody - The metadata of the library item. - */ - -public class GetTopWatchedContentResponseBody { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("MediaContainer") - private Optional mediaContainer; - - @JsonCreator - public GetTopWatchedContentResponseBody( - @JsonProperty("MediaContainer") Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - } - - public GetTopWatchedContentResponseBody() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaContainer() { - return (Optional) mediaContainer; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetTopWatchedContentResponseBody withMediaContainer(GetTopWatchedContentMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public GetTopWatchedContentResponseBody withMediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetTopWatchedContentResponseBody other = (GetTopWatchedContentResponseBody) o; - return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - mediaContainer); - } - - @Override - public String toString() { - return Utils.toString(GetTopWatchedContentResponseBody.class, - "mediaContainer", mediaContainer); - } - - public final static class Builder { - - private Optional mediaContainer = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder mediaContainer(GetTopWatchedContentMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public Builder mediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - public GetTopWatchedContentResponseBody build() { - return new GetTopWatchedContentResponseBody( - mediaContainer); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentRole.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentRole.java deleted file mode 100644 index 08150776..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTopWatchedContentRole.java +++ /dev/null @@ -1,326 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetTopWatchedContentRole { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("filter") - private Optional filter; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tag") - private Optional tag; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tagKey") - private Optional tagKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("role") - private Optional role; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("thumb") - private Optional thumb; - - @JsonCreator - public GetTopWatchedContentRole( - @JsonProperty("id") Optional id, - @JsonProperty("filter") Optional filter, - @JsonProperty("tag") Optional tag, - @JsonProperty("tagKey") Optional tagKey, - @JsonProperty("role") Optional role, - @JsonProperty("thumb") Optional thumb) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(filter, "filter"); - Utils.checkNotNull(tag, "tag"); - Utils.checkNotNull(tagKey, "tagKey"); - Utils.checkNotNull(role, "role"); - Utils.checkNotNull(thumb, "thumb"); - this.id = id; - this.filter = filter; - this.tag = tag; - this.tagKey = tagKey; - this.role = role; - this.thumb = thumb; - } - - public GetTopWatchedContentRole() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional filter() { - return (Optional) filter; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tag() { - return (Optional) tag; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tagKey() { - return (Optional) tagKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional role() { - return (Optional) role; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional thumb() { - return (Optional) thumb; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetTopWatchedContentRole withId(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public GetTopWatchedContentRole withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public GetTopWatchedContentRole withFilter(String filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - public GetTopWatchedContentRole withFilter(Optional filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - public GetTopWatchedContentRole withTag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public GetTopWatchedContentRole withTag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public GetTopWatchedContentRole withTagKey(String tagKey) { - Utils.checkNotNull(tagKey, "tagKey"); - this.tagKey = Optional.ofNullable(tagKey); - return this; - } - - public GetTopWatchedContentRole withTagKey(Optional tagKey) { - Utils.checkNotNull(tagKey, "tagKey"); - this.tagKey = tagKey; - return this; - } - - public GetTopWatchedContentRole withRole(String role) { - Utils.checkNotNull(role, "role"); - this.role = Optional.ofNullable(role); - return this; - } - - public GetTopWatchedContentRole withRole(Optional role) { - Utils.checkNotNull(role, "role"); - this.role = role; - return this; - } - - public GetTopWatchedContentRole withThumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public GetTopWatchedContentRole withThumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetTopWatchedContentRole other = (GetTopWatchedContentRole) o; - return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.filter, other.filter) && - java.util.Objects.deepEquals(this.tag, other.tag) && - java.util.Objects.deepEquals(this.tagKey, other.tagKey) && - java.util.Objects.deepEquals(this.role, other.role) && - java.util.Objects.deepEquals(this.thumb, other.thumb); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id, - filter, - tag, - tagKey, - role, - thumb); - } - - @Override - public String toString() { - return Utils.toString(GetTopWatchedContentRole.class, - "id", id, - "filter", filter, - "tag", tag, - "tagKey", tagKey, - "role", role, - "thumb", thumb); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional filter = Optional.empty(); - - private Optional tag = Optional.empty(); - - private Optional tagKey = Optional.empty(); - - private Optional role = Optional.empty(); - - private Optional thumb = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder filter(String filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - public Builder filter(Optional filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - public Builder tag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Builder tag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public Builder tagKey(String tagKey) { - Utils.checkNotNull(tagKey, "tagKey"); - this.tagKey = Optional.ofNullable(tagKey); - return this; - } - - public Builder tagKey(Optional tagKey) { - Utils.checkNotNull(tagKey, "tagKey"); - this.tagKey = tagKey; - return this; - } - - public Builder role(String role) { - Utils.checkNotNull(role, "role"); - this.role = Optional.ofNullable(role); - return this; - } - - public Builder role(Optional role) { - Utils.checkNotNull(role, "role"); - this.role = role; - return this; - } - - public Builder thumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public Builder thumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public GetTopWatchedContentRole build() { - return new GetTopWatchedContentRole( - id, - filter, - tag, - tagKey, - role, - thumb); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTranscodeSessionsMediaContainer.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTranscodeSessionsMediaContainer.java deleted file mode 100644 index 4b25b246..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTranscodeSessionsMediaContainer.java +++ /dev/null @@ -1,154 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetTranscodeSessionsMediaContainer { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("TranscodeSession") - private Optional> transcodeSession; - - @JsonCreator - public GetTranscodeSessionsMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("TranscodeSession") Optional> transcodeSession) { - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(transcodeSession, "transcodeSession"); - this.size = size; - this.transcodeSession = transcodeSession; - } - - public GetTranscodeSessionsMediaContainer() { - this(Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> transcodeSession() { - return (Optional>) transcodeSession; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetTranscodeSessionsMediaContainer withSize(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public GetTranscodeSessionsMediaContainer withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public GetTranscodeSessionsMediaContainer withTranscodeSession(java.util.List transcodeSession) { - Utils.checkNotNull(transcodeSession, "transcodeSession"); - this.transcodeSession = Optional.ofNullable(transcodeSession); - return this; - } - - public GetTranscodeSessionsMediaContainer withTranscodeSession(Optional> transcodeSession) { - Utils.checkNotNull(transcodeSession, "transcodeSession"); - this.transcodeSession = transcodeSession; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetTranscodeSessionsMediaContainer other = (GetTranscodeSessionsMediaContainer) o; - return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.transcodeSession, other.transcodeSession); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - size, - transcodeSession); - } - - @Override - public String toString() { - return Utils.toString(GetTranscodeSessionsMediaContainer.class, - "size", size, - "transcodeSession", transcodeSession); - } - - public final static class Builder { - - private Optional size = Optional.empty(); - - private Optional> transcodeSession = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder size(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder transcodeSession(java.util.List transcodeSession) { - Utils.checkNotNull(transcodeSession, "transcodeSession"); - this.transcodeSession = Optional.ofNullable(transcodeSession); - return this; - } - - public Builder transcodeSession(Optional> transcodeSession) { - Utils.checkNotNull(transcodeSession, "transcodeSession"); - this.transcodeSession = transcodeSession; - return this; - } - - public GetTranscodeSessionsMediaContainer build() { - return new GetTranscodeSessionsMediaContainer( - size, - transcodeSession); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTranscodeSessionsRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTranscodeSessionsRequestBuilder.java deleted file mode 100644 index 6df6e42b..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTranscodeSessionsRequestBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetTranscodeSessionsRequestBuilder { - - private final SDKMethodInterfaces.MethodCallGetTranscodeSessions sdk; - - public GetTranscodeSessionsRequestBuilder(SDKMethodInterfaces.MethodCallGetTranscodeSessions sdk) { - this.sdk = sdk; - } - - public GetTranscodeSessionsResponse call() throws Exception { - - return sdk.getTranscodeSessionsDirect(); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTranscodeSessionsResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTranscodeSessionsResponse.java deleted file mode 100644 index d5c9f72c..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTranscodeSessionsResponse.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetTranscodeSessionsResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * The Transcode Sessions - */ - private Optional object; - - @JsonCreator - public GetTranscodeSessionsResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional object) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.object = object; - } - - public GetTranscodeSessionsResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * The Transcode Sessions - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional object() { - return (Optional) object; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetTranscodeSessionsResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetTranscodeSessionsResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetTranscodeSessionsResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * The Transcode Sessions - */ - public GetTranscodeSessionsResponse withObject(GetTranscodeSessionsResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * The Transcode Sessions - */ - public GetTranscodeSessionsResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetTranscodeSessionsResponse other = (GetTranscodeSessionsResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.object, other.object); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse, - object); - } - - @Override - public String toString() { - return Utils.toString(GetTranscodeSessionsResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "object", object); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional object = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * The Transcode Sessions - */ - public Builder object(GetTranscodeSessionsResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * The Transcode Sessions - */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - public GetTranscodeSessionsResponse build() { - return new GetTranscodeSessionsResponse( - contentType, - statusCode, - rawResponse, - object); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTranscodeSessionsResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTranscodeSessionsResponseBody.java deleted file mode 100644 index c8813eae..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTranscodeSessionsResponseBody.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -/** - * GetTranscodeSessionsResponseBody - The Transcode Sessions - */ - -public class GetTranscodeSessionsResponseBody { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("MediaContainer") - private Optional mediaContainer; - - @JsonCreator - public GetTranscodeSessionsResponseBody( - @JsonProperty("MediaContainer") Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - } - - public GetTranscodeSessionsResponseBody() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaContainer() { - return (Optional) mediaContainer; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetTranscodeSessionsResponseBody withMediaContainer(GetTranscodeSessionsMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public GetTranscodeSessionsResponseBody withMediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetTranscodeSessionsResponseBody other = (GetTranscodeSessionsResponseBody) o; - return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - mediaContainer); - } - - @Override - public String toString() { - return Utils.toString(GetTranscodeSessionsResponseBody.class, - "mediaContainer", mediaContainer); - } - - public final static class Builder { - - private Optional mediaContainer = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder mediaContainer(GetTranscodeSessionsMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public Builder mediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - public GetTranscodeSessionsResponseBody build() { - return new GetTranscodeSessionsResponseBody( - mediaContainer); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTransientTokenQueryParamType.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTransientTokenQueryParamType.java deleted file mode 100644 index 09276b7f..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTransientTokenQueryParamType.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * GetTransientTokenQueryParamType - `delegation` - This is the only supported `type` parameter. - */ -public enum GetTransientTokenQueryParamType { - DELEGATION("delegation"); - - @JsonValue - private final String value; - - private GetTransientTokenQueryParamType(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTransientTokenRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTransientTokenRequest.java deleted file mode 100644 index 64495323..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTransientTokenRequest.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetTransientTokenRequest { - - /** - * `delegation` - This is the only supported `type` parameter. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=type") - private GetTransientTokenQueryParamType type; - - /** - * `all` - This is the only supported `scope` parameter. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=scope") - private Scope scope; - - @JsonCreator - public GetTransientTokenRequest( - GetTransientTokenQueryParamType type, - Scope scope) { - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(scope, "scope"); - this.type = type; - this.scope = scope; - } - - /** - * `delegation` - This is the only supported `type` parameter. - */ - @JsonIgnore - public GetTransientTokenQueryParamType type() { - return type; - } - - /** - * `all` - This is the only supported `scope` parameter. - */ - @JsonIgnore - public Scope scope() { - return scope; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * `delegation` - This is the only supported `type` parameter. - */ - public GetTransientTokenRequest withType(GetTransientTokenQueryParamType type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - /** - * `all` - This is the only supported `scope` parameter. - */ - public GetTransientTokenRequest withScope(Scope scope) { - Utils.checkNotNull(scope, "scope"); - this.scope = scope; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetTransientTokenRequest other = (GetTransientTokenRequest) o; - return - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.scope, other.scope); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - type, - scope); - } - - @Override - public String toString() { - return Utils.toString(GetTransientTokenRequest.class, - "type", type, - "scope", scope); - } - - public final static class Builder { - - private GetTransientTokenQueryParamType type; - - private Scope scope; - - private Builder() { - // force use of static builder() method - } - - /** - * `delegation` - This is the only supported `type` parameter. - */ - public Builder type(GetTransientTokenQueryParamType type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - /** - * `all` - This is the only supported `scope` parameter. - */ - public Builder scope(Scope scope) { - Utils.checkNotNull(scope, "scope"); - this.scope = scope; - return this; - } - - public GetTransientTokenRequest build() { - return new GetTransientTokenRequest( - type, - scope); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTransientTokenRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTransientTokenRequestBuilder.java deleted file mode 100644 index 3c7a3ae2..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTransientTokenRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetTransientTokenRequestBuilder { - - private GetTransientTokenQueryParamType type; - private Scope scope; - private final SDKMethodInterfaces.MethodCallGetTransientToken sdk; - - public GetTransientTokenRequestBuilder(SDKMethodInterfaces.MethodCallGetTransientToken sdk) { - this.sdk = sdk; - } - - public GetTransientTokenRequestBuilder type(GetTransientTokenQueryParamType type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public GetTransientTokenRequestBuilder scope(Scope scope) { - Utils.checkNotNull(scope, "scope"); - this.scope = scope; - return this; - } - - public GetTransientTokenResponse call() throws Exception { - - return sdk.getTransientToken( - type, - scope); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTransientTokenResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTransientTokenResponse.java deleted file mode 100644 index 9c06af81..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetTransientTokenResponse.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetTransientTokenResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - @JsonCreator - public GetTransientTokenResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetTransientTokenResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetTransientTokenResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetTransientTokenResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetTransientTokenResponse other = (GetTransientTokenResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetTransientTokenResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetTransientTokenResponse build() { - return new GetTransientTokenResponse( - contentType, - statusCode, - rawResponse); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetUpdateStatusMediaContainer.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetUpdateStatusMediaContainer.java deleted file mode 100644 index 44794bcd..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetUpdateStatusMediaContainer.java +++ /dev/null @@ -1,326 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetUpdateStatusMediaContainer { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("canInstall") - private Optional canInstall; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("checkedAt") - private Optional checkedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("downloadURL") - private Optional downloadURL; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("status") - private Optional status; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Release") - private Optional> release; - - @JsonCreator - public GetUpdateStatusMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("canInstall") Optional canInstall, - @JsonProperty("checkedAt") Optional checkedAt, - @JsonProperty("downloadURL") Optional downloadURL, - @JsonProperty("status") Optional status, - @JsonProperty("Release") Optional> release) { - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(canInstall, "canInstall"); - Utils.checkNotNull(checkedAt, "checkedAt"); - Utils.checkNotNull(downloadURL, "downloadURL"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(release, "release"); - this.size = size; - this.canInstall = canInstall; - this.checkedAt = checkedAt; - this.downloadURL = downloadURL; - this.status = status; - this.release = release; - } - - public GetUpdateStatusMediaContainer() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional canInstall() { - return (Optional) canInstall; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional checkedAt() { - return (Optional) checkedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional downloadURL() { - return (Optional) downloadURL; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional status() { - return (Optional) status; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> release() { - return (Optional>) release; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetUpdateStatusMediaContainer withSize(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public GetUpdateStatusMediaContainer withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public GetUpdateStatusMediaContainer withCanInstall(boolean canInstall) { - Utils.checkNotNull(canInstall, "canInstall"); - this.canInstall = Optional.ofNullable(canInstall); - return this; - } - - public GetUpdateStatusMediaContainer withCanInstall(Optional canInstall) { - Utils.checkNotNull(canInstall, "canInstall"); - this.canInstall = canInstall; - return this; - } - - public GetUpdateStatusMediaContainer withCheckedAt(int checkedAt) { - Utils.checkNotNull(checkedAt, "checkedAt"); - this.checkedAt = Optional.ofNullable(checkedAt); - return this; - } - - public GetUpdateStatusMediaContainer withCheckedAt(Optional checkedAt) { - Utils.checkNotNull(checkedAt, "checkedAt"); - this.checkedAt = checkedAt; - return this; - } - - public GetUpdateStatusMediaContainer withDownloadURL(String downloadURL) { - Utils.checkNotNull(downloadURL, "downloadURL"); - this.downloadURL = Optional.ofNullable(downloadURL); - return this; - } - - public GetUpdateStatusMediaContainer withDownloadURL(Optional downloadURL) { - Utils.checkNotNull(downloadURL, "downloadURL"); - this.downloadURL = downloadURL; - return this; - } - - public GetUpdateStatusMediaContainer withStatus(int status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public GetUpdateStatusMediaContainer withStatus(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public GetUpdateStatusMediaContainer withRelease(java.util.List release) { - Utils.checkNotNull(release, "release"); - this.release = Optional.ofNullable(release); - return this; - } - - public GetUpdateStatusMediaContainer withRelease(Optional> release) { - Utils.checkNotNull(release, "release"); - this.release = release; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetUpdateStatusMediaContainer other = (GetUpdateStatusMediaContainer) o; - return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.canInstall, other.canInstall) && - java.util.Objects.deepEquals(this.checkedAt, other.checkedAt) && - java.util.Objects.deepEquals(this.downloadURL, other.downloadURL) && - java.util.Objects.deepEquals(this.status, other.status) && - java.util.Objects.deepEquals(this.release, other.release); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - size, - canInstall, - checkedAt, - downloadURL, - status, - release); - } - - @Override - public String toString() { - return Utils.toString(GetUpdateStatusMediaContainer.class, - "size", size, - "canInstall", canInstall, - "checkedAt", checkedAt, - "downloadURL", downloadURL, - "status", status, - "release", release); - } - - public final static class Builder { - - private Optional size = Optional.empty(); - - private Optional canInstall = Optional.empty(); - - private Optional checkedAt = Optional.empty(); - - private Optional downloadURL = Optional.empty(); - - private Optional status = Optional.empty(); - - private Optional> release = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder size(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder canInstall(boolean canInstall) { - Utils.checkNotNull(canInstall, "canInstall"); - this.canInstall = Optional.ofNullable(canInstall); - return this; - } - - public Builder canInstall(Optional canInstall) { - Utils.checkNotNull(canInstall, "canInstall"); - this.canInstall = canInstall; - return this; - } - - public Builder checkedAt(int checkedAt) { - Utils.checkNotNull(checkedAt, "checkedAt"); - this.checkedAt = Optional.ofNullable(checkedAt); - return this; - } - - public Builder checkedAt(Optional checkedAt) { - Utils.checkNotNull(checkedAt, "checkedAt"); - this.checkedAt = checkedAt; - return this; - } - - public Builder downloadURL(String downloadURL) { - Utils.checkNotNull(downloadURL, "downloadURL"); - this.downloadURL = Optional.ofNullable(downloadURL); - return this; - } - - public Builder downloadURL(Optional downloadURL) { - Utils.checkNotNull(downloadURL, "downloadURL"); - this.downloadURL = downloadURL; - return this; - } - - public Builder status(int status) { - Utils.checkNotNull(status, "status"); - this.status = Optional.ofNullable(status); - return this; - } - - public Builder status(Optional status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public Builder release(java.util.List release) { - Utils.checkNotNull(release, "release"); - this.release = Optional.ofNullable(release); - return this; - } - - public Builder release(Optional> release) { - Utils.checkNotNull(release, "release"); - this.release = release; - return this; - } - - public GetUpdateStatusMediaContainer build() { - return new GetUpdateStatusMediaContainer( - size, - canInstall, - checkedAt, - downloadURL, - status, - release); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetUpdateStatusRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetUpdateStatusRequestBuilder.java deleted file mode 100644 index ee14c429..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetUpdateStatusRequestBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetUpdateStatusRequestBuilder { - - private final SDKMethodInterfaces.MethodCallGetUpdateStatus sdk; - - public GetUpdateStatusRequestBuilder(SDKMethodInterfaces.MethodCallGetUpdateStatus sdk) { - this.sdk = sdk; - } - - public GetUpdateStatusResponse call() throws Exception { - - return sdk.getUpdateStatusDirect(); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetUpdateStatusResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetUpdateStatusResponse.java deleted file mode 100644 index 7de16623..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetUpdateStatusResponse.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetUpdateStatusResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * The Server Updates - */ - private Optional object; - - @JsonCreator - public GetUpdateStatusResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional object) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.object = object; - } - - public GetUpdateStatusResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * The Server Updates - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional object() { - return (Optional) object; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetUpdateStatusResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetUpdateStatusResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetUpdateStatusResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * The Server Updates - */ - public GetUpdateStatusResponse withObject(GetUpdateStatusResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * The Server Updates - */ - public GetUpdateStatusResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetUpdateStatusResponse other = (GetUpdateStatusResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.object, other.object); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse, - object); - } - - @Override - public String toString() { - return Utils.toString(GetUpdateStatusResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "object", object); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional object = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * The Server Updates - */ - public Builder object(GetUpdateStatusResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * The Server Updates - */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - public GetUpdateStatusResponse build() { - return new GetUpdateStatusResponse( - contentType, - statusCode, - rawResponse, - object); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetUpdateStatusResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetUpdateStatusResponseBody.java deleted file mode 100644 index 19a72c2a..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetUpdateStatusResponseBody.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -/** - * GetUpdateStatusResponseBody - The Server Updates - */ - -public class GetUpdateStatusResponseBody { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("MediaContainer") - private Optional mediaContainer; - - @JsonCreator - public GetUpdateStatusResponseBody( - @JsonProperty("MediaContainer") Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - } - - public GetUpdateStatusResponseBody() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaContainer() { - return (Optional) mediaContainer; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetUpdateStatusResponseBody withMediaContainer(GetUpdateStatusMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public GetUpdateStatusResponseBody withMediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetUpdateStatusResponseBody other = (GetUpdateStatusResponseBody) o; - return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - mediaContainer); - } - - @Override - public String toString() { - return Utils.toString(GetUpdateStatusResponseBody.class, - "mediaContainer", mediaContainer); - } - - public final static class Builder { - - private Optional mediaContainer = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder mediaContainer(GetUpdateStatusMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public Builder mediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - public GetUpdateStatusResponseBody build() { - return new GetUpdateStatusResponseBody( - mediaContainer); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetWatchlistRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetWatchlistRequest.java deleted file mode 100644 index 38a3a661..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetWatchlistRequest.java +++ /dev/null @@ -1,642 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetWatchlistRequest { - - /** - * Filter - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=filter") - private PathParamFilter filter; - - /** - * 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" - * - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=sort") - private Optional sort; - - /** - * The type of library to filter. Can be "movie" or "show", or all if not present. - * - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=libtype") - private Optional libtype; - - /** - * 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. - * - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=maxresults") - private Optional maxresults; - - /** - * include collections in the results - * - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeCollections") - private Optional includeCollections; - - /** - * include external media in the results - * - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeExternalMedia") - private Optional includeExternalMedia; - - /** - * User Token - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Token") - private String xPlexToken; - - /** - * 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. - * - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Container-Start") - private Optional xPlexContainerStart; - - /** - * 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. - * - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Container-Size") - private Optional xPlexContainerSize; - - @JsonCreator - public GetWatchlistRequest( - PathParamFilter filter, - Optional sort, - Optional libtype, - Optional maxresults, - Optional includeCollections, - Optional includeExternalMedia, - String xPlexToken, - Optional xPlexContainerStart, - Optional xPlexContainerSize) { - Utils.checkNotNull(filter, "filter"); - Utils.checkNotNull(sort, "sort"); - Utils.checkNotNull(libtype, "libtype"); - Utils.checkNotNull(maxresults, "maxresults"); - Utils.checkNotNull(includeCollections, "includeCollections"); - Utils.checkNotNull(includeExternalMedia, "includeExternalMedia"); - Utils.checkNotNull(xPlexToken, "xPlexToken"); - Utils.checkNotNull(xPlexContainerStart, "xPlexContainerStart"); - Utils.checkNotNull(xPlexContainerSize, "xPlexContainerSize"); - this.filter = filter; - this.sort = sort; - this.libtype = libtype; - this.maxresults = maxresults; - this.includeCollections = includeCollections; - this.includeExternalMedia = includeExternalMedia; - this.xPlexToken = xPlexToken; - this.xPlexContainerStart = xPlexContainerStart; - this.xPlexContainerSize = xPlexContainerSize; - } - - public GetWatchlistRequest( - PathParamFilter filter, - String xPlexToken) { - this(filter, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), xPlexToken, Optional.empty(), Optional.empty()); - } - - /** - * Filter - */ - @JsonIgnore - public PathParamFilter filter() { - return filter; - } - - /** - * 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" - * - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional sort() { - return (Optional) sort; - } - - /** - * The type of library to filter. Can be "movie" or "show", or all if not present. - * - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional libtype() { - return (Optional) libtype; - } - - /** - * 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. - * - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional maxresults() { - return (Optional) maxresults; - } - - /** - * include collections in the results - * - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional includeCollections() { - return (Optional) includeCollections; - } - - /** - * include external media in the results - * - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional includeExternalMedia() { - return (Optional) includeExternalMedia; - } - - /** - * User Token - */ - @JsonIgnore - public String xPlexToken() { - return xPlexToken; - } - - /** - * 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. - * - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional xPlexContainerStart() { - return (Optional) xPlexContainerStart; - } - - /** - * 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. - * - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional xPlexContainerSize() { - return (Optional) xPlexContainerSize; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * Filter - */ - public GetWatchlistRequest withFilter(PathParamFilter filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - /** - * 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" - * - */ - public GetWatchlistRequest withSort(String sort) { - Utils.checkNotNull(sort, "sort"); - this.sort = Optional.ofNullable(sort); - return this; - } - - /** - * 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" - * - */ - public GetWatchlistRequest withSort(Optional sort) { - Utils.checkNotNull(sort, "sort"); - this.sort = sort; - return this; - } - - /** - * The type of library to filter. Can be "movie" or "show", or all if not present. - * - */ - public GetWatchlistRequest withLibtype(Libtype libtype) { - Utils.checkNotNull(libtype, "libtype"); - this.libtype = Optional.ofNullable(libtype); - return this; - } - - /** - * The type of library to filter. Can be "movie" or "show", or all if not present. - * - */ - public GetWatchlistRequest withLibtype(Optional libtype) { - Utils.checkNotNull(libtype, "libtype"); - this.libtype = libtype; - return this; - } - - /** - * 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. - * - */ - public GetWatchlistRequest withMaxresults(int maxresults) { - Utils.checkNotNull(maxresults, "maxresults"); - this.maxresults = Optional.ofNullable(maxresults); - return this; - } - - /** - * 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. - * - */ - public GetWatchlistRequest withMaxresults(Optional maxresults) { - Utils.checkNotNull(maxresults, "maxresults"); - this.maxresults = maxresults; - return this; - } - - /** - * include collections in the results - * - */ - public GetWatchlistRequest withIncludeCollections(IncludeCollections includeCollections) { - Utils.checkNotNull(includeCollections, "includeCollections"); - this.includeCollections = Optional.ofNullable(includeCollections); - return this; - } - - /** - * include collections in the results - * - */ - public GetWatchlistRequest withIncludeCollections(Optional includeCollections) { - Utils.checkNotNull(includeCollections, "includeCollections"); - this.includeCollections = includeCollections; - return this; - } - - /** - * include external media in the results - * - */ - public GetWatchlistRequest withIncludeExternalMedia(IncludeExternalMedia includeExternalMedia) { - Utils.checkNotNull(includeExternalMedia, "includeExternalMedia"); - this.includeExternalMedia = Optional.ofNullable(includeExternalMedia); - return this; - } - - /** - * include external media in the results - * - */ - public GetWatchlistRequest withIncludeExternalMedia(Optional includeExternalMedia) { - Utils.checkNotNull(includeExternalMedia, "includeExternalMedia"); - this.includeExternalMedia = includeExternalMedia; - return this; - } - - /** - * User Token - */ - public GetWatchlistRequest withXPlexToken(String xPlexToken) { - Utils.checkNotNull(xPlexToken, "xPlexToken"); - this.xPlexToken = xPlexToken; - return this; - } - - /** - * 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. - * - */ - public GetWatchlistRequest withXPlexContainerStart(int xPlexContainerStart) { - Utils.checkNotNull(xPlexContainerStart, "xPlexContainerStart"); - this.xPlexContainerStart = Optional.ofNullable(xPlexContainerStart); - return this; - } - - /** - * 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. - * - */ - public GetWatchlistRequest withXPlexContainerStart(Optional xPlexContainerStart) { - Utils.checkNotNull(xPlexContainerStart, "xPlexContainerStart"); - this.xPlexContainerStart = xPlexContainerStart; - return this; - } - - /** - * 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. - * - */ - public GetWatchlistRequest withXPlexContainerSize(int xPlexContainerSize) { - Utils.checkNotNull(xPlexContainerSize, "xPlexContainerSize"); - this.xPlexContainerSize = Optional.ofNullable(xPlexContainerSize); - return this; - } - - /** - * 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. - * - */ - public GetWatchlistRequest withXPlexContainerSize(Optional xPlexContainerSize) { - Utils.checkNotNull(xPlexContainerSize, "xPlexContainerSize"); - this.xPlexContainerSize = xPlexContainerSize; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetWatchlistRequest other = (GetWatchlistRequest) o; - return - java.util.Objects.deepEquals(this.filter, other.filter) && - java.util.Objects.deepEquals(this.sort, other.sort) && - java.util.Objects.deepEquals(this.libtype, other.libtype) && - java.util.Objects.deepEquals(this.maxresults, other.maxresults) && - java.util.Objects.deepEquals(this.includeCollections, other.includeCollections) && - java.util.Objects.deepEquals(this.includeExternalMedia, other.includeExternalMedia) && - java.util.Objects.deepEquals(this.xPlexToken, other.xPlexToken) && - java.util.Objects.deepEquals(this.xPlexContainerStart, other.xPlexContainerStart) && - java.util.Objects.deepEquals(this.xPlexContainerSize, other.xPlexContainerSize); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - filter, - sort, - libtype, - maxresults, - includeCollections, - includeExternalMedia, - xPlexToken, - xPlexContainerStart, - xPlexContainerSize); - } - - @Override - public String toString() { - return Utils.toString(GetWatchlistRequest.class, - "filter", filter, - "sort", sort, - "libtype", libtype, - "maxresults", maxresults, - "includeCollections", includeCollections, - "includeExternalMedia", includeExternalMedia, - "xPlexToken", xPlexToken, - "xPlexContainerStart", xPlexContainerStart, - "xPlexContainerSize", xPlexContainerSize); - } - - public final static class Builder { - - private PathParamFilter filter; - - private Optional sort = Optional.empty(); - - private Optional libtype = Optional.empty(); - - private Optional maxresults = Optional.empty(); - - private Optional includeCollections = Optional.empty(); - - private Optional includeExternalMedia = Optional.empty(); - - private String xPlexToken; - - private Optional xPlexContainerStart = Optional.empty(); - - private Optional xPlexContainerSize = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * Filter - */ - public Builder filter(PathParamFilter filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - /** - * 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" - * - */ - public Builder sort(String sort) { - Utils.checkNotNull(sort, "sort"); - this.sort = Optional.ofNullable(sort); - return this; - } - - /** - * 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" - * - */ - public Builder sort(Optional sort) { - Utils.checkNotNull(sort, "sort"); - this.sort = sort; - return this; - } - - /** - * The type of library to filter. Can be "movie" or "show", or all if not present. - * - */ - public Builder libtype(Libtype libtype) { - Utils.checkNotNull(libtype, "libtype"); - this.libtype = Optional.ofNullable(libtype); - return this; - } - - /** - * The type of library to filter. Can be "movie" or "show", or all if not present. - * - */ - public Builder libtype(Optional libtype) { - Utils.checkNotNull(libtype, "libtype"); - this.libtype = libtype; - return this; - } - - /** - * 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. - * - */ - public Builder maxresults(int maxresults) { - Utils.checkNotNull(maxresults, "maxresults"); - this.maxresults = Optional.ofNullable(maxresults); - return this; - } - - /** - * 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. - * - */ - public Builder maxresults(Optional maxresults) { - Utils.checkNotNull(maxresults, "maxresults"); - this.maxresults = maxresults; - return this; - } - - /** - * include collections in the results - * - */ - public Builder includeCollections(IncludeCollections includeCollections) { - Utils.checkNotNull(includeCollections, "includeCollections"); - this.includeCollections = Optional.ofNullable(includeCollections); - return this; - } - - /** - * include collections in the results - * - */ - public Builder includeCollections(Optional includeCollections) { - Utils.checkNotNull(includeCollections, "includeCollections"); - this.includeCollections = includeCollections; - return this; - } - - /** - * include external media in the results - * - */ - public Builder includeExternalMedia(IncludeExternalMedia includeExternalMedia) { - Utils.checkNotNull(includeExternalMedia, "includeExternalMedia"); - this.includeExternalMedia = Optional.ofNullable(includeExternalMedia); - return this; - } - - /** - * include external media in the results - * - */ - public Builder includeExternalMedia(Optional includeExternalMedia) { - Utils.checkNotNull(includeExternalMedia, "includeExternalMedia"); - this.includeExternalMedia = includeExternalMedia; - return this; - } - - /** - * User Token - */ - public Builder xPlexToken(String xPlexToken) { - Utils.checkNotNull(xPlexToken, "xPlexToken"); - this.xPlexToken = xPlexToken; - return this; - } - - /** - * 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. - * - */ - public Builder xPlexContainerStart(int xPlexContainerStart) { - Utils.checkNotNull(xPlexContainerStart, "xPlexContainerStart"); - this.xPlexContainerStart = Optional.ofNullable(xPlexContainerStart); - return this; - } - - /** - * 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. - * - */ - public Builder xPlexContainerStart(Optional xPlexContainerStart) { - Utils.checkNotNull(xPlexContainerStart, "xPlexContainerStart"); - this.xPlexContainerStart = xPlexContainerStart; - return this; - } - - /** - * 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. - * - */ - public Builder xPlexContainerSize(int xPlexContainerSize) { - Utils.checkNotNull(xPlexContainerSize, "xPlexContainerSize"); - this.xPlexContainerSize = Optional.ofNullable(xPlexContainerSize); - return this; - } - - /** - * 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. - * - */ - public Builder xPlexContainerSize(Optional xPlexContainerSize) { - Utils.checkNotNull(xPlexContainerSize, "xPlexContainerSize"); - this.xPlexContainerSize = xPlexContainerSize; - return this; - } - - public GetWatchlistRequest build() { - return new GetWatchlistRequest( - filter, - sort, - libtype, - maxresults, - includeCollections, - includeExternalMedia, - xPlexToken, - xPlexContainerStart, - xPlexContainerSize); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetWatchlistRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetWatchlistRequestBuilder.java deleted file mode 100644 index 415bc889..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetWatchlistRequestBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class GetWatchlistRequestBuilder { - - private GetWatchlistRequest request; - private java.util.Optional serverURL = Optional.empty(); - private final SDKMethodInterfaces.MethodCallGetWatchlist sdk; - - public GetWatchlistRequestBuilder(SDKMethodInterfaces.MethodCallGetWatchlist sdk) { - this.sdk = sdk; - } - - public GetWatchlistRequestBuilder request(GetWatchlistRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public GetWatchlistRequestBuilder serverURL(String serverURL) { - Utils.checkNotNull(serverURL, "serverURL"); - this.serverURL = Optional.of(serverURL); - return this; - } - - public GetWatchlistRequestBuilder serverURL(java.util.Optional serverURL) { - Utils.checkNotNull(serverURL, "serverURL"); - this.serverURL = serverURL; - return this; - } - - public GetWatchlistResponse call() throws Exception { - - return sdk.getWatchlist( - request, - serverURL); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetWatchlistResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetWatchlistResponse.java deleted file mode 100644 index 4bf18090..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetWatchlistResponse.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class GetWatchlistResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Watchlist Data - */ - private Optional object; - - @JsonCreator - public GetWatchlistResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional object) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.object = object; - } - - public GetWatchlistResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Watchlist Data - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional object() { - return (Optional) object; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public GetWatchlistResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetWatchlistResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetWatchlistResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Watchlist Data - */ - public GetWatchlistResponse withObject(GetWatchlistResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * Watchlist Data - */ - public GetWatchlistResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetWatchlistResponse other = (GetWatchlistResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.object, other.object); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse, - object); - } - - @Override - public String toString() { - return Utils.toString(GetWatchlistResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "object", object); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional object = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Watchlist Data - */ - public Builder object(GetWatchlistResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * Watchlist Data - */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - public GetWatchlistResponse build() { - return new GetWatchlistResponse( - contentType, - statusCode, - rawResponse, - object); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetWatchlistResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetWatchlistResponseBody.java deleted file mode 100644 index 1e2eacdc..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/GetWatchlistResponseBody.java +++ /dev/null @@ -1,372 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -/** - * GetWatchlistResponseBody - Watchlist Data - */ - -public class GetWatchlistResponseBody { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionID") - private Optional librarySectionID; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("librarySectionTitle") - private Optional librarySectionTitle; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("offset") - private Optional offset; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("totalSize") - private Optional totalSize; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("identifier") - private Optional identifier; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Metadata") - private Optional> metadata; - - @JsonCreator - public GetWatchlistResponseBody( - @JsonProperty("librarySectionID") Optional librarySectionID, - @JsonProperty("librarySectionTitle") Optional librarySectionTitle, - @JsonProperty("offset") Optional offset, - @JsonProperty("totalSize") Optional totalSize, - @JsonProperty("identifier") Optional identifier, - @JsonProperty("size") Optional size, - @JsonProperty("Metadata") Optional> metadata) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - Utils.checkNotNull(offset, "offset"); - Utils.checkNotNull(totalSize, "totalSize"); - Utils.checkNotNull(identifier, "identifier"); - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(metadata, "metadata"); - this.librarySectionID = librarySectionID; - this.librarySectionTitle = librarySectionTitle; - this.offset = offset; - this.totalSize = totalSize; - this.identifier = identifier; - this.size = size; - this.metadata = metadata; - } - - public GetWatchlistResponseBody() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionID() { - return (Optional) librarySectionID; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional librarySectionTitle() { - return (Optional) librarySectionTitle; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional offset() { - return (Optional) offset; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional totalSize() { - return (Optional) totalSize; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional identifier() { - return (Optional) identifier; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; - } - - public final static Builder builder() { - return new Builder(); - } - - public GetWatchlistResponseBody withLibrarySectionID(String librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = Optional.ofNullable(librarySectionID); - return this; - } - - public GetWatchlistResponseBody withLibrarySectionID(Optional librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = librarySectionID; - return this; - } - - public GetWatchlistResponseBody withLibrarySectionTitle(String librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = Optional.ofNullable(librarySectionTitle); - return this; - } - - public GetWatchlistResponseBody withLibrarySectionTitle(Optional librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = librarySectionTitle; - return this; - } - - public GetWatchlistResponseBody withOffset(int offset) { - Utils.checkNotNull(offset, "offset"); - this.offset = Optional.ofNullable(offset); - return this; - } - - public GetWatchlistResponseBody withOffset(Optional offset) { - Utils.checkNotNull(offset, "offset"); - this.offset = offset; - return this; - } - - public GetWatchlistResponseBody withTotalSize(int totalSize) { - Utils.checkNotNull(totalSize, "totalSize"); - this.totalSize = Optional.ofNullable(totalSize); - return this; - } - - public GetWatchlistResponseBody withTotalSize(Optional totalSize) { - Utils.checkNotNull(totalSize, "totalSize"); - this.totalSize = totalSize; - return this; - } - - public GetWatchlistResponseBody withIdentifier(String identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = Optional.ofNullable(identifier); - return this; - } - - public GetWatchlistResponseBody withIdentifier(Optional identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = identifier; - return this; - } - - public GetWatchlistResponseBody withSize(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public GetWatchlistResponseBody withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public GetWatchlistResponseBody withMetadata(java.util.List metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public GetWatchlistResponseBody withMetadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetWatchlistResponseBody other = (GetWatchlistResponseBody) o; - return - java.util.Objects.deepEquals(this.librarySectionID, other.librarySectionID) && - java.util.Objects.deepEquals(this.librarySectionTitle, other.librarySectionTitle) && - java.util.Objects.deepEquals(this.offset, other.offset) && - java.util.Objects.deepEquals(this.totalSize, other.totalSize) && - java.util.Objects.deepEquals(this.identifier, other.identifier) && - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.metadata, other.metadata); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - librarySectionID, - librarySectionTitle, - offset, - totalSize, - identifier, - size, - metadata); - } - - @Override - public String toString() { - return Utils.toString(GetWatchlistResponseBody.class, - "librarySectionID", librarySectionID, - "librarySectionTitle", librarySectionTitle, - "offset", offset, - "totalSize", totalSize, - "identifier", identifier, - "size", size, - "metadata", metadata); - } - - public final static class Builder { - - private Optional librarySectionID = Optional.empty(); - - private Optional librarySectionTitle = Optional.empty(); - - private Optional offset = Optional.empty(); - - private Optional totalSize = Optional.empty(); - - private Optional identifier = Optional.empty(); - - private Optional size = Optional.empty(); - - private Optional> metadata = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder librarySectionID(String librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = Optional.ofNullable(librarySectionID); - return this; - } - - public Builder librarySectionID(Optional librarySectionID) { - Utils.checkNotNull(librarySectionID, "librarySectionID"); - this.librarySectionID = librarySectionID; - return this; - } - - public Builder librarySectionTitle(String librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = Optional.ofNullable(librarySectionTitle); - return this; - } - - public Builder librarySectionTitle(Optional librarySectionTitle) { - Utils.checkNotNull(librarySectionTitle, "librarySectionTitle"); - this.librarySectionTitle = librarySectionTitle; - return this; - } - - public Builder offset(int offset) { - Utils.checkNotNull(offset, "offset"); - this.offset = Optional.ofNullable(offset); - return this; - } - - public Builder offset(Optional offset) { - Utils.checkNotNull(offset, "offset"); - this.offset = offset; - return this; - } - - public Builder totalSize(int totalSize) { - Utils.checkNotNull(totalSize, "totalSize"); - this.totalSize = Optional.ofNullable(totalSize); - return this; - } - - public Builder totalSize(Optional totalSize) { - Utils.checkNotNull(totalSize, "totalSize"); - this.totalSize = totalSize; - return this; - } - - public Builder identifier(String identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = Optional.ofNullable(identifier); - return this; - } - - public Builder identifier(Optional identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = identifier; - return this; - } - - public Builder size(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder metadata(java.util.List metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public Builder metadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public GetWatchlistResponseBody build() { - return new GetWatchlistResponseBody( - librarySectionID, - librarySectionTitle, - offset, - totalSize, - identifier, - size, - metadata); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Guids.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Guids.java deleted file mode 100644 index cd18d0fb..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Guids.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class Guids { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonCreator - public Guids( - @JsonProperty("id") Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - } - - public Guids() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - public final static Builder builder() { - return new Builder(); - } - - public Guids withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Guids withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Guids other = (Guids) o; - return - java.util.Objects.deepEquals(this.id, other.id); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id); - } - - @Override - public String toString() { - return Utils.toString(Guids.class, - "id", id); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Guids build() { - return new Guids( - id); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Hub.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Hub.java deleted file mode 100644 index 4ae7a25a..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Hub.java +++ /dev/null @@ -1,541 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class Hub { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("hubKey") - private Optional hubKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title") - private Optional title; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("hubIdentifier") - private Optional hubIdentifier; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("context") - private Optional context; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("more") - private Optional more; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("style") - private Optional style; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("promoted") - private Optional promoted; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Metadata") - private Optional> metadata; - - @JsonCreator - public Hub( - @JsonProperty("hubKey") Optional hubKey, - @JsonProperty("key") Optional key, - @JsonProperty("title") Optional title, - @JsonProperty("type") Optional type, - @JsonProperty("hubIdentifier") Optional hubIdentifier, - @JsonProperty("context") Optional context, - @JsonProperty("size") Optional size, - @JsonProperty("more") Optional more, - @JsonProperty("style") Optional style, - @JsonProperty("promoted") Optional promoted, - @JsonProperty("Metadata") Optional> metadata) { - Utils.checkNotNull(hubKey, "hubKey"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(title, "title"); - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(hubIdentifier, "hubIdentifier"); - Utils.checkNotNull(context, "context"); - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(more, "more"); - Utils.checkNotNull(style, "style"); - Utils.checkNotNull(promoted, "promoted"); - Utils.checkNotNull(metadata, "metadata"); - 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; - } - - public Hub() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional hubKey() { - return (Optional) hubKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title() { - return (Optional) title; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional hubIdentifier() { - return (Optional) hubIdentifier; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional context() { - return (Optional) context; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional more() { - return (Optional) more; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional style() { - return (Optional) style; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional promoted() { - return (Optional) promoted; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; - } - - public final static Builder builder() { - return new Builder(); - } - - public Hub withHubKey(String hubKey) { - Utils.checkNotNull(hubKey, "hubKey"); - this.hubKey = Optional.ofNullable(hubKey); - return this; - } - - public Hub withHubKey(Optional hubKey) { - Utils.checkNotNull(hubKey, "hubKey"); - this.hubKey = hubKey; - return this; - } - - public Hub withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Hub withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Hub withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Hub withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Hub withType(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Hub withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Hub withHubIdentifier(String hubIdentifier) { - Utils.checkNotNull(hubIdentifier, "hubIdentifier"); - this.hubIdentifier = Optional.ofNullable(hubIdentifier); - return this; - } - - public Hub withHubIdentifier(Optional hubIdentifier) { - Utils.checkNotNull(hubIdentifier, "hubIdentifier"); - this.hubIdentifier = hubIdentifier; - return this; - } - - public Hub withContext(String context) { - Utils.checkNotNull(context, "context"); - this.context = Optional.ofNullable(context); - return this; - } - - public Hub withContext(Optional context) { - Utils.checkNotNull(context, "context"); - this.context = context; - return this; - } - - public Hub withSize(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Hub withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Hub withMore(boolean more) { - Utils.checkNotNull(more, "more"); - this.more = Optional.ofNullable(more); - return this; - } - - public Hub withMore(Optional more) { - Utils.checkNotNull(more, "more"); - this.more = more; - return this; - } - - public Hub withStyle(String style) { - Utils.checkNotNull(style, "style"); - this.style = Optional.ofNullable(style); - return this; - } - - public Hub withStyle(Optional style) { - Utils.checkNotNull(style, "style"); - this.style = style; - return this; - } - - public Hub withPromoted(boolean promoted) { - Utils.checkNotNull(promoted, "promoted"); - this.promoted = Optional.ofNullable(promoted); - return this; - } - - public Hub withPromoted(Optional promoted) { - Utils.checkNotNull(promoted, "promoted"); - this.promoted = promoted; - return this; - } - - public Hub withMetadata(java.util.List metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public Hub withMetadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Hub other = (Hub) o; - return - java.util.Objects.deepEquals(this.hubKey, other.hubKey) && - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.title, other.title) && - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.hubIdentifier, other.hubIdentifier) && - java.util.Objects.deepEquals(this.context, other.context) && - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.more, other.more) && - java.util.Objects.deepEquals(this.style, other.style) && - java.util.Objects.deepEquals(this.promoted, other.promoted) && - java.util.Objects.deepEquals(this.metadata, other.metadata); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - hubKey, - key, - title, - type, - hubIdentifier, - context, - size, - more, - style, - promoted, - metadata); - } - - @Override - public String toString() { - return Utils.toString(Hub.class, - "hubKey", hubKey, - "key", key, - "title", title, - "type", type, - "hubIdentifier", hubIdentifier, - "context", context, - "size", size, - "more", more, - "style", style, - "promoted", promoted, - "metadata", metadata); - } - - public final static class Builder { - - private Optional hubKey = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional title = Optional.empty(); - - private Optional type = Optional.empty(); - - private Optional hubIdentifier = Optional.empty(); - - private Optional context = Optional.empty(); - - private Optional size = Optional.empty(); - - private Optional more = Optional.empty(); - - private Optional style = Optional.empty(); - - private Optional promoted = Optional.empty(); - - private Optional> metadata = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder hubKey(String hubKey) { - Utils.checkNotNull(hubKey, "hubKey"); - this.hubKey = Optional.ofNullable(hubKey); - return this; - } - - public Builder hubKey(Optional hubKey) { - Utils.checkNotNull(hubKey, "hubKey"); - this.hubKey = hubKey; - return this; - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Builder type(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Builder hubIdentifier(String hubIdentifier) { - Utils.checkNotNull(hubIdentifier, "hubIdentifier"); - this.hubIdentifier = Optional.ofNullable(hubIdentifier); - return this; - } - - public Builder hubIdentifier(Optional hubIdentifier) { - Utils.checkNotNull(hubIdentifier, "hubIdentifier"); - this.hubIdentifier = hubIdentifier; - return this; - } - - public Builder context(String context) { - Utils.checkNotNull(context, "context"); - this.context = Optional.ofNullable(context); - return this; - } - - public Builder context(Optional context) { - Utils.checkNotNull(context, "context"); - this.context = context; - return this; - } - - public Builder size(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder more(boolean more) { - Utils.checkNotNull(more, "more"); - this.more = Optional.ofNullable(more); - return this; - } - - public Builder more(Optional more) { - Utils.checkNotNull(more, "more"); - this.more = more; - return this; - } - - public Builder style(String style) { - Utils.checkNotNull(style, "style"); - this.style = Optional.ofNullable(style); - return this; - } - - public Builder style(Optional style) { - Utils.checkNotNull(style, "style"); - this.style = style; - return this; - } - - public Builder promoted(boolean promoted) { - Utils.checkNotNull(promoted, "promoted"); - this.promoted = Optional.ofNullable(promoted); - return this; - } - - public Builder promoted(Optional promoted) { - Utils.checkNotNull(promoted, "promoted"); - this.promoted = promoted; - return this; - } - - public Builder metadata(java.util.List metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public Builder metadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public Hub build() { - return new Hub( - hubKey, - key, - title, - type, - hubIdentifier, - context, - size, - more, - style, - promoted, - metadata); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Image.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Image.java deleted file mode 100644 index d5423001..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Image.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class Image { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("alt") - private Optional alt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("url") - private Optional url; - - @JsonCreator - public Image( - @JsonProperty("alt") Optional alt, - @JsonProperty("type") Optional type, - @JsonProperty("url") Optional url) { - Utils.checkNotNull(alt, "alt"); - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(url, "url"); - this.alt = alt; - this.type = type; - this.url = url; - } - - public Image() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional alt() { - return (Optional) alt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional url() { - return (Optional) url; - } - - public final static Builder builder() { - return new Builder(); - } - - public Image withAlt(String alt) { - Utils.checkNotNull(alt, "alt"); - this.alt = Optional.ofNullable(alt); - return this; - } - - public Image withAlt(Optional alt) { - Utils.checkNotNull(alt, "alt"); - this.alt = alt; - return this; - } - - public Image withType(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Image withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Image withUrl(String url) { - Utils.checkNotNull(url, "url"); - this.url = Optional.ofNullable(url); - return this; - } - - public Image withUrl(Optional url) { - Utils.checkNotNull(url, "url"); - this.url = url; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Image other = (Image) o; - return - java.util.Objects.deepEquals(this.alt, other.alt) && - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.url, other.url); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - alt, - type, - url); - } - - @Override - public String toString() { - return Utils.toString(Image.class, - "alt", alt, - "type", type, - "url", url); - } - - public final static class Builder { - - private Optional alt = Optional.empty(); - - private Optional type = Optional.empty(); - - private Optional url = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder alt(String alt) { - Utils.checkNotNull(alt, "alt"); - this.alt = Optional.ofNullable(alt); - return this; - } - - public Builder alt(Optional alt) { - Utils.checkNotNull(alt, "alt"); - this.alt = alt; - return this; - } - - public Builder type(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Builder url(String url) { - Utils.checkNotNull(url, "url"); - this.url = Optional.ofNullable(url); - return this; - } - - public Builder url(Optional url) { - Utils.checkNotNull(url, "url"); - this.url = url; - return this; - } - - public Image build() { - return new Image( - alt, - type, - url); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/IncludeCollections.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/IncludeCollections.java deleted file mode 100644 index f8daf2a4..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/IncludeCollections.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * IncludeCollections - include collections in the results - * - */ -public enum IncludeCollections { - ONE(1L), - ZERO(0L); - - @JsonValue - private final long value; - - private IncludeCollections(long value) { - this.value = value; - } - - public long value() { - return value; - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/IncludeDetails.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/IncludeDetails.java deleted file mode 100644 index 79a6995f..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/IncludeDetails.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * IncludeDetails - 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. - * - */ -public enum IncludeDetails { - ZERO(0L), - ONE(1L); - - @JsonValue - private final long value; - - private IncludeDetails(long value) { - this.value = value; - } - - public long value() { - return value; - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/IncludeExternalMedia.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/IncludeExternalMedia.java deleted file mode 100644 index 9fb97ffc..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/IncludeExternalMedia.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * IncludeExternalMedia - include external media in the results - * - */ -public enum IncludeExternalMedia { - ONE(1L), - ZERO(0L); - - @JsonValue - private final long value; - - private IncludeExternalMedia(long value) { - this.value = value; - } - - public long value() { - return value; - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Level.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Level.java deleted file mode 100644 index c41ab86f..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Level.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * Level - An integer log level to write to the PMS log with. - * 0: Error - * 1: Warning - * 2: Info - * 3: Debug - * 4: Verbose - * - */ -public enum Level { - ZERO(0L), - ONE(1L), - TWO(2L), - THREE(3L), - FOUR(4L); - - @JsonValue - private final long value; - - private Level(long value) { - this.value = value; - } - - public long value() { - return value; - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/LibrarySectionID.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/LibrarySectionID.java deleted file mode 100644 index 014effc6..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/LibrarySectionID.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.Utils; - -import java.time.OffsetDateTime; -import java.time.LocalDate; -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import lukehagar.plexapi.plexapi.utils.TypedObject; -import lukehagar.plexapi.plexapi.utils.Utils.JsonShape; - - -@JsonDeserialize(using = LibrarySectionID._Deserializer.class) -public class LibrarySectionID { - - @com.fasterxml.jackson.annotation.JsonValue - private TypedObject value; - - private LibrarySectionID(TypedObject value) { - this.value = value; - } - - public static LibrarySectionID of(long value) { - Utils.checkNotNull(value, "value"); - return new LibrarySectionID(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static LibrarySectionID of(String value) { - Utils.checkNotNull(value, "value"); - return new LibrarySectionID(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - /** - * Returns an instance of one of these types: - *

    - *
  • {@code long}
  • - *
  • {@code String}
  • - *
- * - *

Use {@code instanceof} to determine what type is returned. For example: - * - *

-     * if (obj.value() instanceof String) {
-     *     String answer = (String) obj.value();
-     *     System.out.println("answer=" + answer);
-     * }
-     * 
- * - * @return value of oneOf type - **/ - public java.lang.Object value() { - return value.value(); - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LibrarySectionID other = (LibrarySectionID) o; - return java.util.Objects.deepEquals(this.value.value(), other.value.value()); - } - - @Override - public int hashCode() { - return java.util.Objects.hash(value.value()); - } - - @SuppressWarnings("serial") - public static final class _Deserializer extends lukehagar.plexapi.plexapi.utils.OneOfDeserializer { - - public _Deserializer() { - super(LibrarySectionID.class, - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); - } - } - - @Override - public String toString() { - return Utils.toString(LibrarySectionID.class, - "value", value); - } - -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Libtype.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Libtype.java deleted file mode 100644 index 4dae2edc..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Libtype.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * Libtype - The type of library to filter. Can be "movie" or "show", or all if not present. - * - */ -public enum Libtype { - MOVIE("movie"), - SHOW("show"); - - @JsonValue - private final String value; - - private Libtype(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Location.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Location.java deleted file mode 100644 index 58898c15..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Location.java +++ /dev/null @@ -1,498 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class Location { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("code") - private Optional code; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("european_union_member") - private Optional europeanUnionMember; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("continent_code") - private Optional continentCode; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("country") - private Optional country; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("city") - private Optional city; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("time_zone") - private Optional timeZone; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("postal_code") - private Optional postalCode; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("in_privacy_restricted_country") - private Optional inPrivacyRestrictedCountry; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("subdivisions") - private Optional subdivisions; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("coordinates") - private Optional coordinates; - - @JsonCreator - public Location( - @JsonProperty("code") Optional code, - @JsonProperty("european_union_member") Optional europeanUnionMember, - @JsonProperty("continent_code") Optional continentCode, - @JsonProperty("country") Optional country, - @JsonProperty("city") Optional city, - @JsonProperty("time_zone") Optional timeZone, - @JsonProperty("postal_code") Optional postalCode, - @JsonProperty("in_privacy_restricted_country") Optional inPrivacyRestrictedCountry, - @JsonProperty("subdivisions") Optional subdivisions, - @JsonProperty("coordinates") Optional coordinates) { - Utils.checkNotNull(code, "code"); - Utils.checkNotNull(europeanUnionMember, "europeanUnionMember"); - Utils.checkNotNull(continentCode, "continentCode"); - Utils.checkNotNull(country, "country"); - Utils.checkNotNull(city, "city"); - Utils.checkNotNull(timeZone, "timeZone"); - Utils.checkNotNull(postalCode, "postalCode"); - Utils.checkNotNull(inPrivacyRestrictedCountry, "inPrivacyRestrictedCountry"); - Utils.checkNotNull(subdivisions, "subdivisions"); - Utils.checkNotNull(coordinates, "coordinates"); - 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; - } - - public Location() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional code() { - return (Optional) code; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional europeanUnionMember() { - return (Optional) europeanUnionMember; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional continentCode() { - return (Optional) continentCode; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional country() { - return (Optional) country; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional city() { - return (Optional) city; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional timeZone() { - return (Optional) timeZone; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional postalCode() { - return (Optional) postalCode; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional inPrivacyRestrictedCountry() { - return (Optional) inPrivacyRestrictedCountry; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional subdivisions() { - return (Optional) subdivisions; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional coordinates() { - return (Optional) coordinates; - } - - public final static Builder builder() { - return new Builder(); - } - - public Location withCode(String code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Location withCode(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Location withEuropeanUnionMember(boolean europeanUnionMember) { - Utils.checkNotNull(europeanUnionMember, "europeanUnionMember"); - this.europeanUnionMember = Optional.ofNullable(europeanUnionMember); - return this; - } - - public Location withEuropeanUnionMember(Optional europeanUnionMember) { - Utils.checkNotNull(europeanUnionMember, "europeanUnionMember"); - this.europeanUnionMember = europeanUnionMember; - return this; - } - - public Location withContinentCode(String continentCode) { - Utils.checkNotNull(continentCode, "continentCode"); - this.continentCode = Optional.ofNullable(continentCode); - return this; - } - - public Location withContinentCode(Optional continentCode) { - Utils.checkNotNull(continentCode, "continentCode"); - this.continentCode = continentCode; - return this; - } - - public Location withCountry(String country) { - Utils.checkNotNull(country, "country"); - this.country = Optional.ofNullable(country); - return this; - } - - public Location withCountry(Optional country) { - Utils.checkNotNull(country, "country"); - this.country = country; - return this; - } - - public Location withCity(String city) { - Utils.checkNotNull(city, "city"); - this.city = Optional.ofNullable(city); - return this; - } - - public Location withCity(Optional city) { - Utils.checkNotNull(city, "city"); - this.city = city; - return this; - } - - public Location withTimeZone(String timeZone) { - Utils.checkNotNull(timeZone, "timeZone"); - this.timeZone = Optional.ofNullable(timeZone); - return this; - } - - public Location withTimeZone(Optional timeZone) { - Utils.checkNotNull(timeZone, "timeZone"); - this.timeZone = timeZone; - return this; - } - - public Location withPostalCode(String postalCode) { - Utils.checkNotNull(postalCode, "postalCode"); - this.postalCode = Optional.ofNullable(postalCode); - return this; - } - - public Location withPostalCode(Optional postalCode) { - Utils.checkNotNull(postalCode, "postalCode"); - this.postalCode = postalCode; - return this; - } - - public Location withInPrivacyRestrictedCountry(boolean inPrivacyRestrictedCountry) { - Utils.checkNotNull(inPrivacyRestrictedCountry, "inPrivacyRestrictedCountry"); - this.inPrivacyRestrictedCountry = Optional.ofNullable(inPrivacyRestrictedCountry); - return this; - } - - public Location withInPrivacyRestrictedCountry(Optional inPrivacyRestrictedCountry) { - Utils.checkNotNull(inPrivacyRestrictedCountry, "inPrivacyRestrictedCountry"); - this.inPrivacyRestrictedCountry = inPrivacyRestrictedCountry; - return this; - } - - public Location withSubdivisions(String subdivisions) { - Utils.checkNotNull(subdivisions, "subdivisions"); - this.subdivisions = Optional.ofNullable(subdivisions); - return this; - } - - public Location withSubdivisions(Optional subdivisions) { - Utils.checkNotNull(subdivisions, "subdivisions"); - this.subdivisions = subdivisions; - return this; - } - - public Location withCoordinates(String coordinates) { - Utils.checkNotNull(coordinates, "coordinates"); - this.coordinates = Optional.ofNullable(coordinates); - return this; - } - - public Location withCoordinates(Optional coordinates) { - Utils.checkNotNull(coordinates, "coordinates"); - this.coordinates = coordinates; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Location other = (Location) o; - return - java.util.Objects.deepEquals(this.code, other.code) && - java.util.Objects.deepEquals(this.europeanUnionMember, other.europeanUnionMember) && - java.util.Objects.deepEquals(this.continentCode, other.continentCode) && - java.util.Objects.deepEquals(this.country, other.country) && - java.util.Objects.deepEquals(this.city, other.city) && - java.util.Objects.deepEquals(this.timeZone, other.timeZone) && - java.util.Objects.deepEquals(this.postalCode, other.postalCode) && - java.util.Objects.deepEquals(this.inPrivacyRestrictedCountry, other.inPrivacyRestrictedCountry) && - java.util.Objects.deepEquals(this.subdivisions, other.subdivisions) && - java.util.Objects.deepEquals(this.coordinates, other.coordinates); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - code, - europeanUnionMember, - continentCode, - country, - city, - timeZone, - postalCode, - inPrivacyRestrictedCountry, - subdivisions, - coordinates); - } - - @Override - public String toString() { - return Utils.toString(Location.class, - "code", code, - "europeanUnionMember", europeanUnionMember, - "continentCode", continentCode, - "country", country, - "city", city, - "timeZone", timeZone, - "postalCode", postalCode, - "inPrivacyRestrictedCountry", inPrivacyRestrictedCountry, - "subdivisions", subdivisions, - "coordinates", coordinates); - } - - public final static class Builder { - - private Optional code = Optional.empty(); - - private Optional europeanUnionMember = Optional.empty(); - - private Optional continentCode = Optional.empty(); - - private Optional country = Optional.empty(); - - private Optional city = Optional.empty(); - - private Optional timeZone = Optional.empty(); - - private Optional postalCode = Optional.empty(); - - private Optional inPrivacyRestrictedCountry = Optional.empty(); - - private Optional subdivisions = Optional.empty(); - - private Optional coordinates = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder code(String code) { - Utils.checkNotNull(code, "code"); - this.code = Optional.ofNullable(code); - return this; - } - - public Builder code(Optional code) { - Utils.checkNotNull(code, "code"); - this.code = code; - return this; - } - - public Builder europeanUnionMember(boolean europeanUnionMember) { - Utils.checkNotNull(europeanUnionMember, "europeanUnionMember"); - this.europeanUnionMember = Optional.ofNullable(europeanUnionMember); - return this; - } - - public Builder europeanUnionMember(Optional europeanUnionMember) { - Utils.checkNotNull(europeanUnionMember, "europeanUnionMember"); - this.europeanUnionMember = europeanUnionMember; - return this; - } - - public Builder continentCode(String continentCode) { - Utils.checkNotNull(continentCode, "continentCode"); - this.continentCode = Optional.ofNullable(continentCode); - return this; - } - - public Builder continentCode(Optional continentCode) { - Utils.checkNotNull(continentCode, "continentCode"); - this.continentCode = continentCode; - return this; - } - - public Builder country(String country) { - Utils.checkNotNull(country, "country"); - this.country = Optional.ofNullable(country); - return this; - } - - public Builder country(Optional country) { - Utils.checkNotNull(country, "country"); - this.country = country; - return this; - } - - public Builder city(String city) { - Utils.checkNotNull(city, "city"); - this.city = Optional.ofNullable(city); - return this; - } - - public Builder city(Optional city) { - Utils.checkNotNull(city, "city"); - this.city = city; - return this; - } - - public Builder timeZone(String timeZone) { - Utils.checkNotNull(timeZone, "timeZone"); - this.timeZone = Optional.ofNullable(timeZone); - return this; - } - - public Builder timeZone(Optional timeZone) { - Utils.checkNotNull(timeZone, "timeZone"); - this.timeZone = timeZone; - return this; - } - - public Builder postalCode(String postalCode) { - Utils.checkNotNull(postalCode, "postalCode"); - this.postalCode = Optional.ofNullable(postalCode); - return this; - } - - public Builder postalCode(Optional postalCode) { - Utils.checkNotNull(postalCode, "postalCode"); - this.postalCode = postalCode; - return this; - } - - public Builder inPrivacyRestrictedCountry(boolean inPrivacyRestrictedCountry) { - Utils.checkNotNull(inPrivacyRestrictedCountry, "inPrivacyRestrictedCountry"); - this.inPrivacyRestrictedCountry = Optional.ofNullable(inPrivacyRestrictedCountry); - return this; - } - - public Builder inPrivacyRestrictedCountry(Optional inPrivacyRestrictedCountry) { - Utils.checkNotNull(inPrivacyRestrictedCountry, "inPrivacyRestrictedCountry"); - this.inPrivacyRestrictedCountry = inPrivacyRestrictedCountry; - return this; - } - - public Builder subdivisions(String subdivisions) { - Utils.checkNotNull(subdivisions, "subdivisions"); - this.subdivisions = Optional.ofNullable(subdivisions); - return this; - } - - public Builder subdivisions(Optional subdivisions) { - Utils.checkNotNull(subdivisions, "subdivisions"); - this.subdivisions = subdivisions; - return this; - } - - public Builder coordinates(String coordinates) { - Utils.checkNotNull(coordinates, "coordinates"); - this.coordinates = Optional.ofNullable(coordinates); - return this; - } - - public Builder coordinates(Optional coordinates) { - Utils.checkNotNull(coordinates, "coordinates"); - this.coordinates = coordinates; - return this; - } - - public Location build() { - return new Location( - code, - europeanUnionMember, - continentCode, - country, - city, - timeZone, - postalCode, - inPrivacyRestrictedCountry, - subdivisions, - coordinates); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/LogLineRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/LogLineRequest.java deleted file mode 100644 index 91181265..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/LogLineRequest.java +++ /dev/null @@ -1,208 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class LogLineRequest { - - /** - * An integer log level to write to the PMS log with. - * 0: Error - * 1: Warning - * 2: Info - * 3: Debug - * 4: Verbose - * - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=level") - private Level level; - - /** - * The text of the message to write to the log. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=message") - private String message; - - /** - * a string indicating the source of the message. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=source") - private String source; - - @JsonCreator - public LogLineRequest( - Level level, - String message, - String source) { - Utils.checkNotNull(level, "level"); - Utils.checkNotNull(message, "message"); - Utils.checkNotNull(source, "source"); - this.level = level; - this.message = message; - this.source = source; - } - - /** - * An integer log level to write to the PMS log with. - * 0: Error - * 1: Warning - * 2: Info - * 3: Debug - * 4: Verbose - * - */ - @JsonIgnore - public Level level() { - return level; - } - - /** - * The text of the message to write to the log. - */ - @JsonIgnore - public String message() { - return message; - } - - /** - * a string indicating the source of the message. - */ - @JsonIgnore - public String source() { - return source; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * An integer log level to write to the PMS log with. - * 0: Error - * 1: Warning - * 2: Info - * 3: Debug - * 4: Verbose - * - */ - public LogLineRequest withLevel(Level level) { - Utils.checkNotNull(level, "level"); - this.level = level; - return this; - } - - /** - * The text of the message to write to the log. - */ - public LogLineRequest withMessage(String message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - /** - * a string indicating the source of the message. - */ - public LogLineRequest withSource(String source) { - Utils.checkNotNull(source, "source"); - this.source = source; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LogLineRequest other = (LogLineRequest) o; - return - java.util.Objects.deepEquals(this.level, other.level) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.source, other.source); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - level, - message, - source); - } - - @Override - public String toString() { - return Utils.toString(LogLineRequest.class, - "level", level, - "message", message, - "source", source); - } - - public final static class Builder { - - private Level level; - - private String message; - - private String source; - - private Builder() { - // force use of static builder() method - } - - /** - * An integer log level to write to the PMS log with. - * 0: Error - * 1: Warning - * 2: Info - * 3: Debug - * 4: Verbose - * - */ - public Builder level(Level level) { - Utils.checkNotNull(level, "level"); - this.level = level; - return this; - } - - /** - * The text of the message to write to the log. - */ - public Builder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - /** - * a string indicating the source of the message. - */ - public Builder source(String source) { - Utils.checkNotNull(source, "source"); - this.source = source; - return this; - } - - public LogLineRequest build() { - return new LogLineRequest( - level, - message, - source); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/LogLineRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/LogLineRequestBuilder.java deleted file mode 100644 index 16198538..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/LogLineRequestBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class LogLineRequestBuilder { - - private Level level; - private String message; - private String source; - private final SDKMethodInterfaces.MethodCallLogLine sdk; - - public LogLineRequestBuilder(SDKMethodInterfaces.MethodCallLogLine sdk) { - this.sdk = sdk; - } - - public LogLineRequestBuilder level(Level level) { - Utils.checkNotNull(level, "level"); - this.level = level; - return this; - } - - public LogLineRequestBuilder message(String message) { - Utils.checkNotNull(message, "message"); - this.message = message; - return this; - } - - public LogLineRequestBuilder source(String source) { - Utils.checkNotNull(source, "source"); - this.source = source; - return this; - } - - public LogLineResponse call() throws Exception { - - return sdk.logLine( - level, - message, - source); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/LogLineResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/LogLineResponse.java deleted file mode 100644 index 8bd6e905..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/LogLineResponse.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class LogLineResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - @JsonCreator - public LogLineResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public LogLineResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public LogLineResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public LogLineResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LogLineResponse other = (LogLineResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(LogLineResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public LogLineResponse build() { - return new LogLineResponse( - contentType, - statusCode, - rawResponse); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/LogMultiLineRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/LogMultiLineRequestBuilder.java deleted file mode 100644 index 7cfec9d1..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/LogMultiLineRequestBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class LogMultiLineRequestBuilder { - - private String request; - private final SDKMethodInterfaces.MethodCallLogMultiLine sdk; - - public LogMultiLineRequestBuilder(SDKMethodInterfaces.MethodCallLogMultiLine sdk) { - this.sdk = sdk; - } - - public LogMultiLineRequestBuilder request(String request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public LogMultiLineResponse call() throws Exception { - - return sdk.logMultiLine( - request); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/LogMultiLineResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/LogMultiLineResponse.java deleted file mode 100644 index 20e1f4a4..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/LogMultiLineResponse.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class LogMultiLineResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - @JsonCreator - public LogMultiLineResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public LogMultiLineResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public LogMultiLineResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public LogMultiLineResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LogMultiLineResponse other = (LogMultiLineResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(LogMultiLineResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public LogMultiLineResponse build() { - return new LogMultiLineResponse( - contentType, - statusCode, - rawResponse); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkPlayedRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkPlayedRequest.java deleted file mode 100644 index bf067da8..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkPlayedRequest.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class MarkPlayedRequest { - - /** - * The media key to mark as played - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=key") - private double key; - - @JsonCreator - public MarkPlayedRequest( - double key) { - Utils.checkNotNull(key, "key"); - this.key = key; - } - - /** - * The media key to mark as played - */ - @JsonIgnore - public double key() { - return key; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * The media key to mark as played - */ - public MarkPlayedRequest withKey(double key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarkPlayedRequest other = (MarkPlayedRequest) o; - return - java.util.Objects.deepEquals(this.key, other.key); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - key); - } - - @Override - public String toString() { - return Utils.toString(MarkPlayedRequest.class, - "key", key); - } - - public final static class Builder { - - private Double key; - - private Builder() { - // force use of static builder() method - } - - /** - * The media key to mark as played - */ - public Builder key(double key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public MarkPlayedRequest build() { - return new MarkPlayedRequest( - key); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkPlayedRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkPlayedRequestBuilder.java deleted file mode 100644 index c5655263..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkPlayedRequestBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class MarkPlayedRequestBuilder { - - private Double key; - private final SDKMethodInterfaces.MethodCallMarkPlayed sdk; - - public MarkPlayedRequestBuilder(SDKMethodInterfaces.MethodCallMarkPlayed sdk) { - this.sdk = sdk; - } - - public MarkPlayedRequestBuilder key(double key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public MarkPlayedResponse call() throws Exception { - - return sdk.markPlayed( - key); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkPlayedResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkPlayedResponse.java deleted file mode 100644 index ad8963b0..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkPlayedResponse.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class MarkPlayedResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - @JsonCreator - public MarkPlayedResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public MarkPlayedResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public MarkPlayedResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public MarkPlayedResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarkPlayedResponse other = (MarkPlayedResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(MarkPlayedResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public MarkPlayedResponse build() { - return new MarkPlayedResponse( - contentType, - statusCode, - rawResponse); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkUnplayedRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkUnplayedRequest.java deleted file mode 100644 index d8afa1ea..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkUnplayedRequest.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class MarkUnplayedRequest { - - /** - * The media key to mark as Unplayed - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=key") - private double key; - - @JsonCreator - public MarkUnplayedRequest( - double key) { - Utils.checkNotNull(key, "key"); - this.key = key; - } - - /** - * The media key to mark as Unplayed - */ - @JsonIgnore - public double key() { - return key; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * The media key to mark as Unplayed - */ - public MarkUnplayedRequest withKey(double key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarkUnplayedRequest other = (MarkUnplayedRequest) o; - return - java.util.Objects.deepEquals(this.key, other.key); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - key); - } - - @Override - public String toString() { - return Utils.toString(MarkUnplayedRequest.class, - "key", key); - } - - public final static class Builder { - - private Double key; - - private Builder() { - // force use of static builder() method - } - - /** - * The media key to mark as Unplayed - */ - public Builder key(double key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public MarkUnplayedRequest build() { - return new MarkUnplayedRequest( - key); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkUnplayedRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkUnplayedRequestBuilder.java deleted file mode 100644 index 73546c0b..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkUnplayedRequestBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class MarkUnplayedRequestBuilder { - - private Double key; - private final SDKMethodInterfaces.MethodCallMarkUnplayed sdk; - - public MarkUnplayedRequestBuilder(SDKMethodInterfaces.MethodCallMarkUnplayed sdk) { - this.sdk = sdk; - } - - public MarkUnplayedRequestBuilder key(double key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public MarkUnplayedResponse call() throws Exception { - - return sdk.markUnplayed( - key); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkUnplayedResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkUnplayedResponse.java deleted file mode 100644 index 0ebba90e..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/MarkUnplayedResponse.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class MarkUnplayedResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - @JsonCreator - public MarkUnplayedResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public MarkUnplayedResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public MarkUnplayedResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public MarkUnplayedResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarkUnplayedResponse other = (MarkUnplayedResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(MarkUnplayedResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public MarkUnplayedResponse build() { - return new MarkUnplayedResponse( - contentType, - statusCode, - rawResponse); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Media.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Media.java deleted file mode 100644 index 8a68ca98..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Media.java +++ /dev/null @@ -1,756 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class Media { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("duration") - private Optional duration; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("bitrate") - private Optional bitrate; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("width") - private Optional width; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("height") - private Optional height; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("aspectRatio") - private Optional aspectRatio; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audioChannels") - private Optional audioChannels; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audioCodec") - private Optional audioCodec; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("videoCodec") - private Optional videoCodec; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("videoResolution") - private Optional videoResolution; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("container") - private Optional container; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("videoFrameRate") - private Optional videoFrameRate; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("optimizedForStreaming") - private Optional optimizedForStreaming; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("has64bitOffsets") - private Optional has64bitOffsets; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("videoProfile") - private Optional videoProfile; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Part") - private Optional> part; - - @JsonCreator - public Media( - @JsonProperty("id") Optional id, - @JsonProperty("duration") Optional duration, - @JsonProperty("bitrate") Optional bitrate, - @JsonProperty("width") Optional width, - @JsonProperty("height") Optional height, - @JsonProperty("aspectRatio") Optional aspectRatio, - @JsonProperty("audioChannels") Optional audioChannels, - @JsonProperty("audioCodec") Optional audioCodec, - @JsonProperty("videoCodec") Optional videoCodec, - @JsonProperty("videoResolution") Optional videoResolution, - @JsonProperty("container") Optional container, - @JsonProperty("videoFrameRate") Optional videoFrameRate, - @JsonProperty("optimizedForStreaming") Optional optimizedForStreaming, - @JsonProperty("has64bitOffsets") Optional has64bitOffsets, - @JsonProperty("videoProfile") Optional videoProfile, - @JsonProperty("Part") Optional> part) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(duration, "duration"); - Utils.checkNotNull(bitrate, "bitrate"); - Utils.checkNotNull(width, "width"); - Utils.checkNotNull(height, "height"); - Utils.checkNotNull(aspectRatio, "aspectRatio"); - Utils.checkNotNull(audioChannels, "audioChannels"); - Utils.checkNotNull(audioCodec, "audioCodec"); - Utils.checkNotNull(videoCodec, "videoCodec"); - Utils.checkNotNull(videoResolution, "videoResolution"); - Utils.checkNotNull(container, "container"); - Utils.checkNotNull(videoFrameRate, "videoFrameRate"); - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - Utils.checkNotNull(videoProfile, "videoProfile"); - Utils.checkNotNull(part, "part"); - 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; - } - - public Media() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional duration() { - return (Optional) duration; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional bitrate() { - return (Optional) bitrate; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional width() { - return (Optional) width; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional height() { - return (Optional) height; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional aspectRatio() { - return (Optional) aspectRatio; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audioChannels() { - return (Optional) audioChannels; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audioCodec() { - return (Optional) audioCodec; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional videoCodec() { - return (Optional) videoCodec; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional videoResolution() { - return (Optional) videoResolution; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional container() { - return (Optional) container; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional videoFrameRate() { - return (Optional) videoFrameRate; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional optimizedForStreaming() { - return (Optional) optimizedForStreaming; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional has64bitOffsets() { - return (Optional) has64bitOffsets; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional videoProfile() { - return (Optional) videoProfile; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> part() { - return (Optional>) part; - } - - public final static Builder builder() { - return new Builder(); - } - - public Media withId(double id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Media withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Media withDuration(double duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public Media withDuration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public Media withBitrate(double bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = Optional.ofNullable(bitrate); - return this; - } - - public Media withBitrate(Optional bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = bitrate; - return this; - } - - public Media withWidth(double width) { - Utils.checkNotNull(width, "width"); - this.width = Optional.ofNullable(width); - return this; - } - - public Media withWidth(Optional width) { - Utils.checkNotNull(width, "width"); - this.width = width; - return this; - } - - public Media withHeight(double height) { - Utils.checkNotNull(height, "height"); - this.height = Optional.ofNullable(height); - return this; - } - - public Media withHeight(Optional height) { - Utils.checkNotNull(height, "height"); - this.height = height; - return this; - } - - public Media withAspectRatio(double aspectRatio) { - Utils.checkNotNull(aspectRatio, "aspectRatio"); - this.aspectRatio = Optional.ofNullable(aspectRatio); - return this; - } - - public Media withAspectRatio(Optional aspectRatio) { - Utils.checkNotNull(aspectRatio, "aspectRatio"); - this.aspectRatio = aspectRatio; - return this; - } - - public Media withAudioChannels(double audioChannels) { - Utils.checkNotNull(audioChannels, "audioChannels"); - this.audioChannels = Optional.ofNullable(audioChannels); - return this; - } - - public Media withAudioChannels(Optional audioChannels) { - Utils.checkNotNull(audioChannels, "audioChannels"); - this.audioChannels = audioChannels; - return this; - } - - public Media withAudioCodec(String audioCodec) { - Utils.checkNotNull(audioCodec, "audioCodec"); - this.audioCodec = Optional.ofNullable(audioCodec); - return this; - } - - public Media withAudioCodec(Optional audioCodec) { - Utils.checkNotNull(audioCodec, "audioCodec"); - this.audioCodec = audioCodec; - return this; - } - - public Media withVideoCodec(String videoCodec) { - Utils.checkNotNull(videoCodec, "videoCodec"); - this.videoCodec = Optional.ofNullable(videoCodec); - return this; - } - - public Media withVideoCodec(Optional videoCodec) { - Utils.checkNotNull(videoCodec, "videoCodec"); - this.videoCodec = videoCodec; - return this; - } - - public Media withVideoResolution(double videoResolution) { - Utils.checkNotNull(videoResolution, "videoResolution"); - this.videoResolution = Optional.ofNullable(videoResolution); - return this; - } - - public Media withVideoResolution(Optional videoResolution) { - Utils.checkNotNull(videoResolution, "videoResolution"); - this.videoResolution = videoResolution; - return this; - } - - public Media withContainer(String container) { - Utils.checkNotNull(container, "container"); - this.container = Optional.ofNullable(container); - return this; - } - - public Media withContainer(Optional container) { - Utils.checkNotNull(container, "container"); - this.container = container; - return this; - } - - public Media withVideoFrameRate(String videoFrameRate) { - Utils.checkNotNull(videoFrameRate, "videoFrameRate"); - this.videoFrameRate = Optional.ofNullable(videoFrameRate); - return this; - } - - public Media withVideoFrameRate(Optional videoFrameRate) { - Utils.checkNotNull(videoFrameRate, "videoFrameRate"); - this.videoFrameRate = videoFrameRate; - return this; - } - - public Media withOptimizedForStreaming(double optimizedForStreaming) { - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - this.optimizedForStreaming = Optional.ofNullable(optimizedForStreaming); - return this; - } - - public Media withOptimizedForStreaming(Optional optimizedForStreaming) { - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - this.optimizedForStreaming = optimizedForStreaming; - return this; - } - - public Media withHas64bitOffsets(boolean has64bitOffsets) { - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - this.has64bitOffsets = Optional.ofNullable(has64bitOffsets); - return this; - } - - public Media withHas64bitOffsets(Optional has64bitOffsets) { - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - this.has64bitOffsets = has64bitOffsets; - return this; - } - - public Media withVideoProfile(String videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = Optional.ofNullable(videoProfile); - return this; - } - - public Media withVideoProfile(Optional videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = videoProfile; - return this; - } - - public Media withPart(java.util.List part) { - Utils.checkNotNull(part, "part"); - this.part = Optional.ofNullable(part); - return this; - } - - public Media withPart(Optional> part) { - Utils.checkNotNull(part, "part"); - this.part = part; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Media other = (Media) o; - return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.duration, other.duration) && - java.util.Objects.deepEquals(this.bitrate, other.bitrate) && - java.util.Objects.deepEquals(this.width, other.width) && - java.util.Objects.deepEquals(this.height, other.height) && - java.util.Objects.deepEquals(this.aspectRatio, other.aspectRatio) && - java.util.Objects.deepEquals(this.audioChannels, other.audioChannels) && - java.util.Objects.deepEquals(this.audioCodec, other.audioCodec) && - java.util.Objects.deepEquals(this.videoCodec, other.videoCodec) && - java.util.Objects.deepEquals(this.videoResolution, other.videoResolution) && - java.util.Objects.deepEquals(this.container, other.container) && - java.util.Objects.deepEquals(this.videoFrameRate, other.videoFrameRate) && - java.util.Objects.deepEquals(this.optimizedForStreaming, other.optimizedForStreaming) && - java.util.Objects.deepEquals(this.has64bitOffsets, other.has64bitOffsets) && - java.util.Objects.deepEquals(this.videoProfile, other.videoProfile) && - java.util.Objects.deepEquals(this.part, other.part); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id, - duration, - bitrate, - width, - height, - aspectRatio, - audioChannels, - audioCodec, - videoCodec, - videoResolution, - container, - videoFrameRate, - optimizedForStreaming, - has64bitOffsets, - videoProfile, - part); - } - - @Override - public String toString() { - return Utils.toString(Media.class, - "id", id, - "duration", duration, - "bitrate", bitrate, - "width", width, - "height", height, - "aspectRatio", aspectRatio, - "audioChannels", audioChannels, - "audioCodec", audioCodec, - "videoCodec", videoCodec, - "videoResolution", videoResolution, - "container", container, - "videoFrameRate", videoFrameRate, - "optimizedForStreaming", optimizedForStreaming, - "has64bitOffsets", has64bitOffsets, - "videoProfile", videoProfile, - "part", part); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional duration = Optional.empty(); - - private Optional bitrate = Optional.empty(); - - private Optional width = Optional.empty(); - - private Optional height = Optional.empty(); - - private Optional aspectRatio = Optional.empty(); - - private Optional audioChannels = Optional.empty(); - - private Optional audioCodec = Optional.empty(); - - private Optional videoCodec = Optional.empty(); - - private Optional videoResolution = Optional.empty(); - - private Optional container = Optional.empty(); - - private Optional videoFrameRate = Optional.empty(); - - private Optional optimizedForStreaming = Optional.empty(); - - private Optional has64bitOffsets = Optional.empty(); - - private Optional videoProfile = Optional.empty(); - - private Optional> part = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(double id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder duration(double duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public Builder duration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public Builder bitrate(double bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = Optional.ofNullable(bitrate); - return this; - } - - public Builder bitrate(Optional bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = bitrate; - return this; - } - - public Builder width(double width) { - Utils.checkNotNull(width, "width"); - this.width = Optional.ofNullable(width); - return this; - } - - public Builder width(Optional width) { - Utils.checkNotNull(width, "width"); - this.width = width; - return this; - } - - public Builder height(double height) { - Utils.checkNotNull(height, "height"); - this.height = Optional.ofNullable(height); - return this; - } - - public Builder height(Optional height) { - Utils.checkNotNull(height, "height"); - this.height = height; - return this; - } - - public Builder aspectRatio(double aspectRatio) { - Utils.checkNotNull(aspectRatio, "aspectRatio"); - this.aspectRatio = Optional.ofNullable(aspectRatio); - return this; - } - - public Builder aspectRatio(Optional aspectRatio) { - Utils.checkNotNull(aspectRatio, "aspectRatio"); - this.aspectRatio = aspectRatio; - return this; - } - - public Builder audioChannels(double audioChannels) { - Utils.checkNotNull(audioChannels, "audioChannels"); - this.audioChannels = Optional.ofNullable(audioChannels); - return this; - } - - public Builder audioChannels(Optional audioChannels) { - Utils.checkNotNull(audioChannels, "audioChannels"); - this.audioChannels = audioChannels; - return this; - } - - public Builder audioCodec(String audioCodec) { - Utils.checkNotNull(audioCodec, "audioCodec"); - this.audioCodec = Optional.ofNullable(audioCodec); - return this; - } - - public Builder audioCodec(Optional audioCodec) { - Utils.checkNotNull(audioCodec, "audioCodec"); - this.audioCodec = audioCodec; - return this; - } - - public Builder videoCodec(String videoCodec) { - Utils.checkNotNull(videoCodec, "videoCodec"); - this.videoCodec = Optional.ofNullable(videoCodec); - return this; - } - - public Builder videoCodec(Optional videoCodec) { - Utils.checkNotNull(videoCodec, "videoCodec"); - this.videoCodec = videoCodec; - return this; - } - - public Builder videoResolution(double videoResolution) { - Utils.checkNotNull(videoResolution, "videoResolution"); - this.videoResolution = Optional.ofNullable(videoResolution); - return this; - } - - public Builder videoResolution(Optional videoResolution) { - Utils.checkNotNull(videoResolution, "videoResolution"); - this.videoResolution = videoResolution; - return this; - } - - public Builder container(String container) { - Utils.checkNotNull(container, "container"); - this.container = Optional.ofNullable(container); - return this; - } - - public Builder container(Optional container) { - Utils.checkNotNull(container, "container"); - this.container = container; - return this; - } - - public Builder videoFrameRate(String videoFrameRate) { - Utils.checkNotNull(videoFrameRate, "videoFrameRate"); - this.videoFrameRate = Optional.ofNullable(videoFrameRate); - return this; - } - - public Builder videoFrameRate(Optional videoFrameRate) { - Utils.checkNotNull(videoFrameRate, "videoFrameRate"); - this.videoFrameRate = videoFrameRate; - return this; - } - - public Builder optimizedForStreaming(double optimizedForStreaming) { - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - this.optimizedForStreaming = Optional.ofNullable(optimizedForStreaming); - return this; - } - - public Builder optimizedForStreaming(Optional optimizedForStreaming) { - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - this.optimizedForStreaming = optimizedForStreaming; - return this; - } - - public Builder has64bitOffsets(boolean has64bitOffsets) { - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - this.has64bitOffsets = Optional.ofNullable(has64bitOffsets); - return this; - } - - public Builder has64bitOffsets(Optional has64bitOffsets) { - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - this.has64bitOffsets = has64bitOffsets; - return this; - } - - public Builder videoProfile(String videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = Optional.ofNullable(videoProfile); - return this; - } - - public Builder videoProfile(Optional videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = videoProfile; - return this; - } - - public Builder part(java.util.List part) { - Utils.checkNotNull(part, "part"); - this.part = Optional.ofNullable(part); - return this; - } - - public Builder part(Optional> part) { - Utils.checkNotNull(part, "part"); - this.part = part; - return this; - } - - public Media build() { - return new Media( - id, - duration, - bitrate, - width, - height, - aspectRatio, - audioChannels, - audioCodec, - videoCodec, - videoResolution, - container, - videoFrameRate, - optimizedForStreaming, - has64bitOffsets, - videoProfile, - part); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/MediaContainer.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/MediaContainer.java deleted file mode 100644 index e7921668..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/MediaContainer.java +++ /dev/null @@ -1,2261 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class MediaContainer { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("allowCameraUpload") - private Optional allowCameraUpload; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("allowChannelAccess") - private Optional allowChannelAccess; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("allowMediaDeletion") - private Optional allowMediaDeletion; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("allowSharing") - private Optional allowSharing; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("allowSync") - private Optional allowSync; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("allowTuners") - private Optional allowTuners; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("backgroundProcessing") - private Optional backgroundProcessing; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("certificate") - private Optional certificate; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("companionProxy") - private Optional companionProxy; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("countryCode") - private Optional countryCode; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("diagnostics") - private Optional diagnostics; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("eventStream") - private Optional eventStream; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("friendlyName") - private Optional friendlyName; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("hubSearch") - private Optional hubSearch; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("itemClusters") - private Optional itemClusters; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("livetv") - private Optional livetv; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("machineIdentifier") - private Optional machineIdentifier; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("mediaProviders") - private Optional mediaProviders; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("multiuser") - private Optional multiuser; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("musicAnalysis") - private Optional musicAnalysis; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("myPlex") - private Optional myPlex; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("myPlexMappingState") - private Optional myPlexMappingState; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("myPlexSigninState") - private Optional myPlexSigninState; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("myPlexSubscription") - private Optional myPlexSubscription; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("myPlexUsername") - private Optional myPlexUsername; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("offlineTranscode") - private Optional offlineTranscode; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ownerFeatures") - private Optional ownerFeatures; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("photoAutoTag") - private Optional photoAutoTag; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("platform") - private Optional platform; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("platformVersion") - private Optional platformVersion; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("pluginHost") - private Optional pluginHost; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("pushNotifications") - private Optional pushNotifications; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("readOnlyLibraries") - private Optional readOnlyLibraries; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("streamingBrainABRVersion") - private Optional streamingBrainABRVersion; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("streamingBrainVersion") - private Optional streamingBrainVersion; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("sync") - private Optional sync; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("transcoderActiveVideoSessions") - private Optional transcoderActiveVideoSessions; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("transcoderAudio") - private Optional transcoderAudio; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("transcoderLyrics") - private Optional transcoderLyrics; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("transcoderPhoto") - private Optional transcoderPhoto; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("transcoderSubtitles") - private Optional transcoderSubtitles; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("transcoderVideo") - private Optional transcoderVideo; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("transcoderVideoBitrates") - private Optional transcoderVideoBitrates; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("transcoderVideoQualities") - private Optional transcoderVideoQualities; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("transcoderVideoResolutions") - private Optional transcoderVideoResolutions; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updatedAt") - private Optional updatedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updater") - private Optional updater; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("version") - private Optional version; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("voiceSearch") - private Optional voiceSearch; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Directory") - private Optional> directory; - - @JsonCreator - public MediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("allowCameraUpload") Optional allowCameraUpload, - @JsonProperty("allowChannelAccess") Optional allowChannelAccess, - @JsonProperty("allowMediaDeletion") Optional allowMediaDeletion, - @JsonProperty("allowSharing") Optional allowSharing, - @JsonProperty("allowSync") Optional allowSync, - @JsonProperty("allowTuners") Optional allowTuners, - @JsonProperty("backgroundProcessing") Optional backgroundProcessing, - @JsonProperty("certificate") Optional certificate, - @JsonProperty("companionProxy") Optional companionProxy, - @JsonProperty("countryCode") Optional countryCode, - @JsonProperty("diagnostics") Optional diagnostics, - @JsonProperty("eventStream") Optional eventStream, - @JsonProperty("friendlyName") Optional friendlyName, - @JsonProperty("hubSearch") Optional hubSearch, - @JsonProperty("itemClusters") Optional itemClusters, - @JsonProperty("livetv") Optional livetv, - @JsonProperty("machineIdentifier") Optional machineIdentifier, - @JsonProperty("mediaProviders") Optional mediaProviders, - @JsonProperty("multiuser") Optional multiuser, - @JsonProperty("musicAnalysis") Optional musicAnalysis, - @JsonProperty("myPlex") Optional myPlex, - @JsonProperty("myPlexMappingState") Optional myPlexMappingState, - @JsonProperty("myPlexSigninState") Optional myPlexSigninState, - @JsonProperty("myPlexSubscription") Optional myPlexSubscription, - @JsonProperty("myPlexUsername") Optional myPlexUsername, - @JsonProperty("offlineTranscode") Optional offlineTranscode, - @JsonProperty("ownerFeatures") Optional ownerFeatures, - @JsonProperty("photoAutoTag") Optional photoAutoTag, - @JsonProperty("platform") Optional platform, - @JsonProperty("platformVersion") Optional platformVersion, - @JsonProperty("pluginHost") Optional pluginHost, - @JsonProperty("pushNotifications") Optional pushNotifications, - @JsonProperty("readOnlyLibraries") Optional readOnlyLibraries, - @JsonProperty("streamingBrainABRVersion") Optional streamingBrainABRVersion, - @JsonProperty("streamingBrainVersion") Optional streamingBrainVersion, - @JsonProperty("sync") Optional sync, - @JsonProperty("transcoderActiveVideoSessions") Optional transcoderActiveVideoSessions, - @JsonProperty("transcoderAudio") Optional transcoderAudio, - @JsonProperty("transcoderLyrics") Optional transcoderLyrics, - @JsonProperty("transcoderPhoto") Optional transcoderPhoto, - @JsonProperty("transcoderSubtitles") Optional transcoderSubtitles, - @JsonProperty("transcoderVideo") Optional transcoderVideo, - @JsonProperty("transcoderVideoBitrates") Optional transcoderVideoBitrates, - @JsonProperty("transcoderVideoQualities") Optional transcoderVideoQualities, - @JsonProperty("transcoderVideoResolutions") Optional transcoderVideoResolutions, - @JsonProperty("updatedAt") Optional updatedAt, - @JsonProperty("updater") Optional updater, - @JsonProperty("version") Optional version, - @JsonProperty("voiceSearch") Optional voiceSearch, - @JsonProperty("Directory") Optional> directory) { - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(allowCameraUpload, "allowCameraUpload"); - Utils.checkNotNull(allowChannelAccess, "allowChannelAccess"); - Utils.checkNotNull(allowMediaDeletion, "allowMediaDeletion"); - Utils.checkNotNull(allowSharing, "allowSharing"); - Utils.checkNotNull(allowSync, "allowSync"); - Utils.checkNotNull(allowTuners, "allowTuners"); - Utils.checkNotNull(backgroundProcessing, "backgroundProcessing"); - Utils.checkNotNull(certificate, "certificate"); - Utils.checkNotNull(companionProxy, "companionProxy"); - Utils.checkNotNull(countryCode, "countryCode"); - Utils.checkNotNull(diagnostics, "diagnostics"); - Utils.checkNotNull(eventStream, "eventStream"); - Utils.checkNotNull(friendlyName, "friendlyName"); - Utils.checkNotNull(hubSearch, "hubSearch"); - Utils.checkNotNull(itemClusters, "itemClusters"); - Utils.checkNotNull(livetv, "livetv"); - Utils.checkNotNull(machineIdentifier, "machineIdentifier"); - Utils.checkNotNull(mediaProviders, "mediaProviders"); - Utils.checkNotNull(multiuser, "multiuser"); - Utils.checkNotNull(musicAnalysis, "musicAnalysis"); - Utils.checkNotNull(myPlex, "myPlex"); - Utils.checkNotNull(myPlexMappingState, "myPlexMappingState"); - Utils.checkNotNull(myPlexSigninState, "myPlexSigninState"); - Utils.checkNotNull(myPlexSubscription, "myPlexSubscription"); - Utils.checkNotNull(myPlexUsername, "myPlexUsername"); - Utils.checkNotNull(offlineTranscode, "offlineTranscode"); - Utils.checkNotNull(ownerFeatures, "ownerFeatures"); - Utils.checkNotNull(photoAutoTag, "photoAutoTag"); - Utils.checkNotNull(platform, "platform"); - Utils.checkNotNull(platformVersion, "platformVersion"); - Utils.checkNotNull(pluginHost, "pluginHost"); - Utils.checkNotNull(pushNotifications, "pushNotifications"); - Utils.checkNotNull(readOnlyLibraries, "readOnlyLibraries"); - Utils.checkNotNull(streamingBrainABRVersion, "streamingBrainABRVersion"); - Utils.checkNotNull(streamingBrainVersion, "streamingBrainVersion"); - Utils.checkNotNull(sync, "sync"); - Utils.checkNotNull(transcoderActiveVideoSessions, "transcoderActiveVideoSessions"); - Utils.checkNotNull(transcoderAudio, "transcoderAudio"); - Utils.checkNotNull(transcoderLyrics, "transcoderLyrics"); - Utils.checkNotNull(transcoderPhoto, "transcoderPhoto"); - Utils.checkNotNull(transcoderSubtitles, "transcoderSubtitles"); - Utils.checkNotNull(transcoderVideo, "transcoderVideo"); - Utils.checkNotNull(transcoderVideoBitrates, "transcoderVideoBitrates"); - Utils.checkNotNull(transcoderVideoQualities, "transcoderVideoQualities"); - Utils.checkNotNull(transcoderVideoResolutions, "transcoderVideoResolutions"); - Utils.checkNotNull(updatedAt, "updatedAt"); - Utils.checkNotNull(updater, "updater"); - Utils.checkNotNull(version, "version"); - Utils.checkNotNull(voiceSearch, "voiceSearch"); - Utils.checkNotNull(directory, "directory"); - 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; - } - - public MediaContainer() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional allowCameraUpload() { - return (Optional) allowCameraUpload; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional allowChannelAccess() { - return (Optional) allowChannelAccess; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional allowMediaDeletion() { - return (Optional) allowMediaDeletion; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional allowSharing() { - return (Optional) allowSharing; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional allowSync() { - return (Optional) allowSync; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional allowTuners() { - return (Optional) allowTuners; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional backgroundProcessing() { - return (Optional) backgroundProcessing; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional certificate() { - return (Optional) certificate; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional companionProxy() { - return (Optional) companionProxy; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional countryCode() { - return (Optional) countryCode; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional diagnostics() { - return (Optional) diagnostics; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional eventStream() { - return (Optional) eventStream; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional friendlyName() { - return (Optional) friendlyName; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional hubSearch() { - return (Optional) hubSearch; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional itemClusters() { - return (Optional) itemClusters; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional livetv() { - return (Optional) livetv; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional machineIdentifier() { - return (Optional) machineIdentifier; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaProviders() { - return (Optional) mediaProviders; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional multiuser() { - return (Optional) multiuser; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional musicAnalysis() { - return (Optional) musicAnalysis; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional myPlex() { - return (Optional) myPlex; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional myPlexMappingState() { - return (Optional) myPlexMappingState; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional myPlexSigninState() { - return (Optional) myPlexSigninState; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional myPlexSubscription() { - return (Optional) myPlexSubscription; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional myPlexUsername() { - return (Optional) myPlexUsername; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional offlineTranscode() { - return (Optional) offlineTranscode; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional ownerFeatures() { - return (Optional) ownerFeatures; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional photoAutoTag() { - return (Optional) photoAutoTag; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional platform() { - return (Optional) platform; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional platformVersion() { - return (Optional) platformVersion; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional pluginHost() { - return (Optional) pluginHost; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional pushNotifications() { - return (Optional) pushNotifications; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional readOnlyLibraries() { - return (Optional) readOnlyLibraries; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional streamingBrainABRVersion() { - return (Optional) streamingBrainABRVersion; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional streamingBrainVersion() { - return (Optional) streamingBrainVersion; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional sync() { - return (Optional) sync; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional transcoderActiveVideoSessions() { - return (Optional) transcoderActiveVideoSessions; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional transcoderAudio() { - return (Optional) transcoderAudio; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional transcoderLyrics() { - return (Optional) transcoderLyrics; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional transcoderPhoto() { - return (Optional) transcoderPhoto; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional transcoderSubtitles() { - return (Optional) transcoderSubtitles; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional transcoderVideo() { - return (Optional) transcoderVideo; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional transcoderVideoBitrates() { - return (Optional) transcoderVideoBitrates; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional transcoderVideoQualities() { - return (Optional) transcoderVideoQualities; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional transcoderVideoResolutions() { - return (Optional) transcoderVideoResolutions; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional updatedAt() { - return (Optional) updatedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional updater() { - return (Optional) updater; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional version() { - return (Optional) version; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional voiceSearch() { - return (Optional) voiceSearch; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> directory() { - return (Optional>) directory; - } - - public final static Builder builder() { - return new Builder(); - } - - public MediaContainer withSize(double size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public MediaContainer withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public MediaContainer withAllowCameraUpload(boolean allowCameraUpload) { - Utils.checkNotNull(allowCameraUpload, "allowCameraUpload"); - this.allowCameraUpload = Optional.ofNullable(allowCameraUpload); - return this; - } - - public MediaContainer withAllowCameraUpload(Optional allowCameraUpload) { - Utils.checkNotNull(allowCameraUpload, "allowCameraUpload"); - this.allowCameraUpload = allowCameraUpload; - return this; - } - - public MediaContainer withAllowChannelAccess(boolean allowChannelAccess) { - Utils.checkNotNull(allowChannelAccess, "allowChannelAccess"); - this.allowChannelAccess = Optional.ofNullable(allowChannelAccess); - return this; - } - - public MediaContainer withAllowChannelAccess(Optional allowChannelAccess) { - Utils.checkNotNull(allowChannelAccess, "allowChannelAccess"); - this.allowChannelAccess = allowChannelAccess; - return this; - } - - public MediaContainer withAllowMediaDeletion(boolean allowMediaDeletion) { - Utils.checkNotNull(allowMediaDeletion, "allowMediaDeletion"); - this.allowMediaDeletion = Optional.ofNullable(allowMediaDeletion); - return this; - } - - public MediaContainer withAllowMediaDeletion(Optional allowMediaDeletion) { - Utils.checkNotNull(allowMediaDeletion, "allowMediaDeletion"); - this.allowMediaDeletion = allowMediaDeletion; - return this; - } - - public MediaContainer withAllowSharing(boolean allowSharing) { - Utils.checkNotNull(allowSharing, "allowSharing"); - this.allowSharing = Optional.ofNullable(allowSharing); - return this; - } - - public MediaContainer withAllowSharing(Optional allowSharing) { - Utils.checkNotNull(allowSharing, "allowSharing"); - this.allowSharing = allowSharing; - return this; - } - - public MediaContainer withAllowSync(boolean allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = Optional.ofNullable(allowSync); - return this; - } - - public MediaContainer withAllowSync(Optional allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = allowSync; - return this; - } - - public MediaContainer withAllowTuners(boolean allowTuners) { - Utils.checkNotNull(allowTuners, "allowTuners"); - this.allowTuners = Optional.ofNullable(allowTuners); - return this; - } - - public MediaContainer withAllowTuners(Optional allowTuners) { - Utils.checkNotNull(allowTuners, "allowTuners"); - this.allowTuners = allowTuners; - return this; - } - - public MediaContainer withBackgroundProcessing(boolean backgroundProcessing) { - Utils.checkNotNull(backgroundProcessing, "backgroundProcessing"); - this.backgroundProcessing = Optional.ofNullable(backgroundProcessing); - return this; - } - - public MediaContainer withBackgroundProcessing(Optional backgroundProcessing) { - Utils.checkNotNull(backgroundProcessing, "backgroundProcessing"); - this.backgroundProcessing = backgroundProcessing; - return this; - } - - public MediaContainer withCertificate(boolean certificate) { - Utils.checkNotNull(certificate, "certificate"); - this.certificate = Optional.ofNullable(certificate); - return this; - } - - public MediaContainer withCertificate(Optional certificate) { - Utils.checkNotNull(certificate, "certificate"); - this.certificate = certificate; - return this; - } - - public MediaContainer withCompanionProxy(boolean companionProxy) { - Utils.checkNotNull(companionProxy, "companionProxy"); - this.companionProxy = Optional.ofNullable(companionProxy); - return this; - } - - public MediaContainer withCompanionProxy(Optional companionProxy) { - Utils.checkNotNull(companionProxy, "companionProxy"); - this.companionProxy = companionProxy; - return this; - } - - public MediaContainer withCountryCode(String countryCode) { - Utils.checkNotNull(countryCode, "countryCode"); - this.countryCode = Optional.ofNullable(countryCode); - return this; - } - - public MediaContainer withCountryCode(Optional countryCode) { - Utils.checkNotNull(countryCode, "countryCode"); - this.countryCode = countryCode; - return this; - } - - public MediaContainer withDiagnostics(String diagnostics) { - Utils.checkNotNull(diagnostics, "diagnostics"); - this.diagnostics = Optional.ofNullable(diagnostics); - return this; - } - - public MediaContainer withDiagnostics(Optional diagnostics) { - Utils.checkNotNull(diagnostics, "diagnostics"); - this.diagnostics = diagnostics; - return this; - } - - public MediaContainer withEventStream(boolean eventStream) { - Utils.checkNotNull(eventStream, "eventStream"); - this.eventStream = Optional.ofNullable(eventStream); - return this; - } - - public MediaContainer withEventStream(Optional eventStream) { - Utils.checkNotNull(eventStream, "eventStream"); - this.eventStream = eventStream; - return this; - } - - public MediaContainer withFriendlyName(String friendlyName) { - Utils.checkNotNull(friendlyName, "friendlyName"); - this.friendlyName = Optional.ofNullable(friendlyName); - return this; - } - - public MediaContainer withFriendlyName(Optional friendlyName) { - Utils.checkNotNull(friendlyName, "friendlyName"); - this.friendlyName = friendlyName; - return this; - } - - public MediaContainer withHubSearch(boolean hubSearch) { - Utils.checkNotNull(hubSearch, "hubSearch"); - this.hubSearch = Optional.ofNullable(hubSearch); - return this; - } - - public MediaContainer withHubSearch(Optional hubSearch) { - Utils.checkNotNull(hubSearch, "hubSearch"); - this.hubSearch = hubSearch; - return this; - } - - public MediaContainer withItemClusters(boolean itemClusters) { - Utils.checkNotNull(itemClusters, "itemClusters"); - this.itemClusters = Optional.ofNullable(itemClusters); - return this; - } - - public MediaContainer withItemClusters(Optional itemClusters) { - Utils.checkNotNull(itemClusters, "itemClusters"); - this.itemClusters = itemClusters; - return this; - } - - public MediaContainer withLivetv(double livetv) { - Utils.checkNotNull(livetv, "livetv"); - this.livetv = Optional.ofNullable(livetv); - return this; - } - - public MediaContainer withLivetv(Optional livetv) { - Utils.checkNotNull(livetv, "livetv"); - this.livetv = livetv; - return this; - } - - public MediaContainer withMachineIdentifier(String machineIdentifier) { - Utils.checkNotNull(machineIdentifier, "machineIdentifier"); - this.machineIdentifier = Optional.ofNullable(machineIdentifier); - return this; - } - - public MediaContainer withMachineIdentifier(Optional machineIdentifier) { - Utils.checkNotNull(machineIdentifier, "machineIdentifier"); - this.machineIdentifier = machineIdentifier; - return this; - } - - public MediaContainer withMediaProviders(boolean mediaProviders) { - Utils.checkNotNull(mediaProviders, "mediaProviders"); - this.mediaProviders = Optional.ofNullable(mediaProviders); - return this; - } - - public MediaContainer withMediaProviders(Optional mediaProviders) { - Utils.checkNotNull(mediaProviders, "mediaProviders"); - this.mediaProviders = mediaProviders; - return this; - } - - public MediaContainer withMultiuser(boolean multiuser) { - Utils.checkNotNull(multiuser, "multiuser"); - this.multiuser = Optional.ofNullable(multiuser); - return this; - } - - public MediaContainer withMultiuser(Optional multiuser) { - Utils.checkNotNull(multiuser, "multiuser"); - this.multiuser = multiuser; - return this; - } - - public MediaContainer withMusicAnalysis(double musicAnalysis) { - Utils.checkNotNull(musicAnalysis, "musicAnalysis"); - this.musicAnalysis = Optional.ofNullable(musicAnalysis); - return this; - } - - public MediaContainer withMusicAnalysis(Optional musicAnalysis) { - Utils.checkNotNull(musicAnalysis, "musicAnalysis"); - this.musicAnalysis = musicAnalysis; - return this; - } - - public MediaContainer withMyPlex(boolean myPlex) { - Utils.checkNotNull(myPlex, "myPlex"); - this.myPlex = Optional.ofNullable(myPlex); - return this; - } - - public MediaContainer withMyPlex(Optional myPlex) { - Utils.checkNotNull(myPlex, "myPlex"); - this.myPlex = myPlex; - return this; - } - - public MediaContainer withMyPlexMappingState(String myPlexMappingState) { - Utils.checkNotNull(myPlexMappingState, "myPlexMappingState"); - this.myPlexMappingState = Optional.ofNullable(myPlexMappingState); - return this; - } - - public MediaContainer withMyPlexMappingState(Optional myPlexMappingState) { - Utils.checkNotNull(myPlexMappingState, "myPlexMappingState"); - this.myPlexMappingState = myPlexMappingState; - return this; - } - - public MediaContainer withMyPlexSigninState(String myPlexSigninState) { - Utils.checkNotNull(myPlexSigninState, "myPlexSigninState"); - this.myPlexSigninState = Optional.ofNullable(myPlexSigninState); - return this; - } - - public MediaContainer withMyPlexSigninState(Optional myPlexSigninState) { - Utils.checkNotNull(myPlexSigninState, "myPlexSigninState"); - this.myPlexSigninState = myPlexSigninState; - return this; - } - - public MediaContainer withMyPlexSubscription(boolean myPlexSubscription) { - Utils.checkNotNull(myPlexSubscription, "myPlexSubscription"); - this.myPlexSubscription = Optional.ofNullable(myPlexSubscription); - return this; - } - - public MediaContainer withMyPlexSubscription(Optional myPlexSubscription) { - Utils.checkNotNull(myPlexSubscription, "myPlexSubscription"); - this.myPlexSubscription = myPlexSubscription; - return this; - } - - public MediaContainer withMyPlexUsername(String myPlexUsername) { - Utils.checkNotNull(myPlexUsername, "myPlexUsername"); - this.myPlexUsername = Optional.ofNullable(myPlexUsername); - return this; - } - - public MediaContainer withMyPlexUsername(Optional myPlexUsername) { - Utils.checkNotNull(myPlexUsername, "myPlexUsername"); - this.myPlexUsername = myPlexUsername; - return this; - } - - public MediaContainer withOfflineTranscode(double offlineTranscode) { - Utils.checkNotNull(offlineTranscode, "offlineTranscode"); - this.offlineTranscode = Optional.ofNullable(offlineTranscode); - return this; - } - - public MediaContainer withOfflineTranscode(Optional offlineTranscode) { - Utils.checkNotNull(offlineTranscode, "offlineTranscode"); - this.offlineTranscode = offlineTranscode; - return this; - } - - public MediaContainer withOwnerFeatures(String ownerFeatures) { - Utils.checkNotNull(ownerFeatures, "ownerFeatures"); - this.ownerFeatures = Optional.ofNullable(ownerFeatures); - return this; - } - - public MediaContainer withOwnerFeatures(Optional ownerFeatures) { - Utils.checkNotNull(ownerFeatures, "ownerFeatures"); - this.ownerFeatures = ownerFeatures; - return this; - } - - public MediaContainer withPhotoAutoTag(boolean photoAutoTag) { - Utils.checkNotNull(photoAutoTag, "photoAutoTag"); - this.photoAutoTag = Optional.ofNullable(photoAutoTag); - return this; - } - - public MediaContainer withPhotoAutoTag(Optional photoAutoTag) { - Utils.checkNotNull(photoAutoTag, "photoAutoTag"); - this.photoAutoTag = photoAutoTag; - return this; - } - - public MediaContainer withPlatform(String platform) { - Utils.checkNotNull(platform, "platform"); - this.platform = Optional.ofNullable(platform); - return this; - } - - public MediaContainer withPlatform(Optional platform) { - Utils.checkNotNull(platform, "platform"); - this.platform = platform; - return this; - } - - public MediaContainer withPlatformVersion(String platformVersion) { - Utils.checkNotNull(platformVersion, "platformVersion"); - this.platformVersion = Optional.ofNullable(platformVersion); - return this; - } - - public MediaContainer withPlatformVersion(Optional platformVersion) { - Utils.checkNotNull(platformVersion, "platformVersion"); - this.platformVersion = platformVersion; - return this; - } - - public MediaContainer withPluginHost(boolean pluginHost) { - Utils.checkNotNull(pluginHost, "pluginHost"); - this.pluginHost = Optional.ofNullable(pluginHost); - return this; - } - - public MediaContainer withPluginHost(Optional pluginHost) { - Utils.checkNotNull(pluginHost, "pluginHost"); - this.pluginHost = pluginHost; - return this; - } - - public MediaContainer withPushNotifications(boolean pushNotifications) { - Utils.checkNotNull(pushNotifications, "pushNotifications"); - this.pushNotifications = Optional.ofNullable(pushNotifications); - return this; - } - - public MediaContainer withPushNotifications(Optional pushNotifications) { - Utils.checkNotNull(pushNotifications, "pushNotifications"); - this.pushNotifications = pushNotifications; - return this; - } - - public MediaContainer withReadOnlyLibraries(boolean readOnlyLibraries) { - Utils.checkNotNull(readOnlyLibraries, "readOnlyLibraries"); - this.readOnlyLibraries = Optional.ofNullable(readOnlyLibraries); - return this; - } - - public MediaContainer withReadOnlyLibraries(Optional readOnlyLibraries) { - Utils.checkNotNull(readOnlyLibraries, "readOnlyLibraries"); - this.readOnlyLibraries = readOnlyLibraries; - return this; - } - - public MediaContainer withStreamingBrainABRVersion(double streamingBrainABRVersion) { - Utils.checkNotNull(streamingBrainABRVersion, "streamingBrainABRVersion"); - this.streamingBrainABRVersion = Optional.ofNullable(streamingBrainABRVersion); - return this; - } - - public MediaContainer withStreamingBrainABRVersion(Optional streamingBrainABRVersion) { - Utils.checkNotNull(streamingBrainABRVersion, "streamingBrainABRVersion"); - this.streamingBrainABRVersion = streamingBrainABRVersion; - return this; - } - - public MediaContainer withStreamingBrainVersion(double streamingBrainVersion) { - Utils.checkNotNull(streamingBrainVersion, "streamingBrainVersion"); - this.streamingBrainVersion = Optional.ofNullable(streamingBrainVersion); - return this; - } - - public MediaContainer withStreamingBrainVersion(Optional streamingBrainVersion) { - Utils.checkNotNull(streamingBrainVersion, "streamingBrainVersion"); - this.streamingBrainVersion = streamingBrainVersion; - return this; - } - - public MediaContainer withSync(boolean sync) { - Utils.checkNotNull(sync, "sync"); - this.sync = Optional.ofNullable(sync); - return this; - } - - public MediaContainer withSync(Optional sync) { - Utils.checkNotNull(sync, "sync"); - this.sync = sync; - return this; - } - - public MediaContainer withTranscoderActiveVideoSessions(double transcoderActiveVideoSessions) { - Utils.checkNotNull(transcoderActiveVideoSessions, "transcoderActiveVideoSessions"); - this.transcoderActiveVideoSessions = Optional.ofNullable(transcoderActiveVideoSessions); - return this; - } - - public MediaContainer withTranscoderActiveVideoSessions(Optional transcoderActiveVideoSessions) { - Utils.checkNotNull(transcoderActiveVideoSessions, "transcoderActiveVideoSessions"); - this.transcoderActiveVideoSessions = transcoderActiveVideoSessions; - return this; - } - - public MediaContainer withTranscoderAudio(boolean transcoderAudio) { - Utils.checkNotNull(transcoderAudio, "transcoderAudio"); - this.transcoderAudio = Optional.ofNullable(transcoderAudio); - return this; - } - - public MediaContainer withTranscoderAudio(Optional transcoderAudio) { - Utils.checkNotNull(transcoderAudio, "transcoderAudio"); - this.transcoderAudio = transcoderAudio; - return this; - } - - public MediaContainer withTranscoderLyrics(boolean transcoderLyrics) { - Utils.checkNotNull(transcoderLyrics, "transcoderLyrics"); - this.transcoderLyrics = Optional.ofNullable(transcoderLyrics); - return this; - } - - public MediaContainer withTranscoderLyrics(Optional transcoderLyrics) { - Utils.checkNotNull(transcoderLyrics, "transcoderLyrics"); - this.transcoderLyrics = transcoderLyrics; - return this; - } - - public MediaContainer withTranscoderPhoto(boolean transcoderPhoto) { - Utils.checkNotNull(transcoderPhoto, "transcoderPhoto"); - this.transcoderPhoto = Optional.ofNullable(transcoderPhoto); - return this; - } - - public MediaContainer withTranscoderPhoto(Optional transcoderPhoto) { - Utils.checkNotNull(transcoderPhoto, "transcoderPhoto"); - this.transcoderPhoto = transcoderPhoto; - return this; - } - - public MediaContainer withTranscoderSubtitles(boolean transcoderSubtitles) { - Utils.checkNotNull(transcoderSubtitles, "transcoderSubtitles"); - this.transcoderSubtitles = Optional.ofNullable(transcoderSubtitles); - return this; - } - - public MediaContainer withTranscoderSubtitles(Optional transcoderSubtitles) { - Utils.checkNotNull(transcoderSubtitles, "transcoderSubtitles"); - this.transcoderSubtitles = transcoderSubtitles; - return this; - } - - public MediaContainer withTranscoderVideo(boolean transcoderVideo) { - Utils.checkNotNull(transcoderVideo, "transcoderVideo"); - this.transcoderVideo = Optional.ofNullable(transcoderVideo); - return this; - } - - public MediaContainer withTranscoderVideo(Optional transcoderVideo) { - Utils.checkNotNull(transcoderVideo, "transcoderVideo"); - this.transcoderVideo = transcoderVideo; - return this; - } - - public MediaContainer withTranscoderVideoBitrates(String transcoderVideoBitrates) { - Utils.checkNotNull(transcoderVideoBitrates, "transcoderVideoBitrates"); - this.transcoderVideoBitrates = Optional.ofNullable(transcoderVideoBitrates); - return this; - } - - public MediaContainer withTranscoderVideoBitrates(Optional transcoderVideoBitrates) { - Utils.checkNotNull(transcoderVideoBitrates, "transcoderVideoBitrates"); - this.transcoderVideoBitrates = transcoderVideoBitrates; - return this; - } - - public MediaContainer withTranscoderVideoQualities(String transcoderVideoQualities) { - Utils.checkNotNull(transcoderVideoQualities, "transcoderVideoQualities"); - this.transcoderVideoQualities = Optional.ofNullable(transcoderVideoQualities); - return this; - } - - public MediaContainer withTranscoderVideoQualities(Optional transcoderVideoQualities) { - Utils.checkNotNull(transcoderVideoQualities, "transcoderVideoQualities"); - this.transcoderVideoQualities = transcoderVideoQualities; - return this; - } - - public MediaContainer withTranscoderVideoResolutions(String transcoderVideoResolutions) { - Utils.checkNotNull(transcoderVideoResolutions, "transcoderVideoResolutions"); - this.transcoderVideoResolutions = Optional.ofNullable(transcoderVideoResolutions); - return this; - } - - public MediaContainer withTranscoderVideoResolutions(Optional transcoderVideoResolutions) { - Utils.checkNotNull(transcoderVideoResolutions, "transcoderVideoResolutions"); - this.transcoderVideoResolutions = transcoderVideoResolutions; - return this; - } - - public MediaContainer withUpdatedAt(double updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public MediaContainer withUpdatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public MediaContainer withUpdater(boolean updater) { - Utils.checkNotNull(updater, "updater"); - this.updater = Optional.ofNullable(updater); - return this; - } - - public MediaContainer withUpdater(Optional updater) { - Utils.checkNotNull(updater, "updater"); - this.updater = updater; - return this; - } - - public MediaContainer withVersion(String version) { - Utils.checkNotNull(version, "version"); - this.version = Optional.ofNullable(version); - return this; - } - - public MediaContainer withVersion(Optional version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - public MediaContainer withVoiceSearch(boolean voiceSearch) { - Utils.checkNotNull(voiceSearch, "voiceSearch"); - this.voiceSearch = Optional.ofNullable(voiceSearch); - return this; - } - - public MediaContainer withVoiceSearch(Optional voiceSearch) { - Utils.checkNotNull(voiceSearch, "voiceSearch"); - this.voiceSearch = voiceSearch; - return this; - } - - public MediaContainer withDirectory(java.util.List directory) { - Utils.checkNotNull(directory, "directory"); - this.directory = Optional.ofNullable(directory); - return this; - } - - public MediaContainer withDirectory(Optional> directory) { - Utils.checkNotNull(directory, "directory"); - this.directory = directory; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MediaContainer other = (MediaContainer) o; - return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.allowCameraUpload, other.allowCameraUpload) && - java.util.Objects.deepEquals(this.allowChannelAccess, other.allowChannelAccess) && - java.util.Objects.deepEquals(this.allowMediaDeletion, other.allowMediaDeletion) && - java.util.Objects.deepEquals(this.allowSharing, other.allowSharing) && - java.util.Objects.deepEquals(this.allowSync, other.allowSync) && - java.util.Objects.deepEquals(this.allowTuners, other.allowTuners) && - java.util.Objects.deepEquals(this.backgroundProcessing, other.backgroundProcessing) && - java.util.Objects.deepEquals(this.certificate, other.certificate) && - java.util.Objects.deepEquals(this.companionProxy, other.companionProxy) && - java.util.Objects.deepEquals(this.countryCode, other.countryCode) && - java.util.Objects.deepEquals(this.diagnostics, other.diagnostics) && - java.util.Objects.deepEquals(this.eventStream, other.eventStream) && - java.util.Objects.deepEquals(this.friendlyName, other.friendlyName) && - java.util.Objects.deepEquals(this.hubSearch, other.hubSearch) && - java.util.Objects.deepEquals(this.itemClusters, other.itemClusters) && - java.util.Objects.deepEquals(this.livetv, other.livetv) && - java.util.Objects.deepEquals(this.machineIdentifier, other.machineIdentifier) && - java.util.Objects.deepEquals(this.mediaProviders, other.mediaProviders) && - java.util.Objects.deepEquals(this.multiuser, other.multiuser) && - java.util.Objects.deepEquals(this.musicAnalysis, other.musicAnalysis) && - java.util.Objects.deepEquals(this.myPlex, other.myPlex) && - java.util.Objects.deepEquals(this.myPlexMappingState, other.myPlexMappingState) && - java.util.Objects.deepEquals(this.myPlexSigninState, other.myPlexSigninState) && - java.util.Objects.deepEquals(this.myPlexSubscription, other.myPlexSubscription) && - java.util.Objects.deepEquals(this.myPlexUsername, other.myPlexUsername) && - java.util.Objects.deepEquals(this.offlineTranscode, other.offlineTranscode) && - java.util.Objects.deepEquals(this.ownerFeatures, other.ownerFeatures) && - java.util.Objects.deepEquals(this.photoAutoTag, other.photoAutoTag) && - java.util.Objects.deepEquals(this.platform, other.platform) && - java.util.Objects.deepEquals(this.platformVersion, other.platformVersion) && - java.util.Objects.deepEquals(this.pluginHost, other.pluginHost) && - java.util.Objects.deepEquals(this.pushNotifications, other.pushNotifications) && - java.util.Objects.deepEquals(this.readOnlyLibraries, other.readOnlyLibraries) && - java.util.Objects.deepEquals(this.streamingBrainABRVersion, other.streamingBrainABRVersion) && - java.util.Objects.deepEquals(this.streamingBrainVersion, other.streamingBrainVersion) && - java.util.Objects.deepEquals(this.sync, other.sync) && - java.util.Objects.deepEquals(this.transcoderActiveVideoSessions, other.transcoderActiveVideoSessions) && - java.util.Objects.deepEquals(this.transcoderAudio, other.transcoderAudio) && - java.util.Objects.deepEquals(this.transcoderLyrics, other.transcoderLyrics) && - java.util.Objects.deepEquals(this.transcoderPhoto, other.transcoderPhoto) && - java.util.Objects.deepEquals(this.transcoderSubtitles, other.transcoderSubtitles) && - java.util.Objects.deepEquals(this.transcoderVideo, other.transcoderVideo) && - java.util.Objects.deepEquals(this.transcoderVideoBitrates, other.transcoderVideoBitrates) && - java.util.Objects.deepEquals(this.transcoderVideoQualities, other.transcoderVideoQualities) && - java.util.Objects.deepEquals(this.transcoderVideoResolutions, other.transcoderVideoResolutions) && - java.util.Objects.deepEquals(this.updatedAt, other.updatedAt) && - java.util.Objects.deepEquals(this.updater, other.updater) && - java.util.Objects.deepEquals(this.version, other.version) && - java.util.Objects.deepEquals(this.voiceSearch, other.voiceSearch) && - java.util.Objects.deepEquals(this.directory, other.directory); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - size, - allowCameraUpload, - allowChannelAccess, - allowMediaDeletion, - allowSharing, - allowSync, - allowTuners, - backgroundProcessing, - certificate, - companionProxy, - countryCode, - diagnostics, - eventStream, - friendlyName, - hubSearch, - itemClusters, - livetv, - machineIdentifier, - mediaProviders, - multiuser, - musicAnalysis, - myPlex, - myPlexMappingState, - myPlexSigninState, - myPlexSubscription, - myPlexUsername, - offlineTranscode, - ownerFeatures, - photoAutoTag, - platform, - platformVersion, - pluginHost, - pushNotifications, - readOnlyLibraries, - streamingBrainABRVersion, - streamingBrainVersion, - sync, - transcoderActiveVideoSessions, - transcoderAudio, - transcoderLyrics, - transcoderPhoto, - transcoderSubtitles, - transcoderVideo, - transcoderVideoBitrates, - transcoderVideoQualities, - transcoderVideoResolutions, - updatedAt, - updater, - version, - voiceSearch, - directory); - } - - @Override - public String toString() { - return Utils.toString(MediaContainer.class, - "size", size, - "allowCameraUpload", allowCameraUpload, - "allowChannelAccess", allowChannelAccess, - "allowMediaDeletion", allowMediaDeletion, - "allowSharing", allowSharing, - "allowSync", allowSync, - "allowTuners", allowTuners, - "backgroundProcessing", backgroundProcessing, - "certificate", certificate, - "companionProxy", companionProxy, - "countryCode", countryCode, - "diagnostics", diagnostics, - "eventStream", eventStream, - "friendlyName", friendlyName, - "hubSearch", hubSearch, - "itemClusters", itemClusters, - "livetv", livetv, - "machineIdentifier", machineIdentifier, - "mediaProviders", mediaProviders, - "multiuser", multiuser, - "musicAnalysis", musicAnalysis, - "myPlex", myPlex, - "myPlexMappingState", myPlexMappingState, - "myPlexSigninState", myPlexSigninState, - "myPlexSubscription", myPlexSubscription, - "myPlexUsername", myPlexUsername, - "offlineTranscode", offlineTranscode, - "ownerFeatures", ownerFeatures, - "photoAutoTag", photoAutoTag, - "platform", platform, - "platformVersion", platformVersion, - "pluginHost", pluginHost, - "pushNotifications", pushNotifications, - "readOnlyLibraries", readOnlyLibraries, - "streamingBrainABRVersion", streamingBrainABRVersion, - "streamingBrainVersion", streamingBrainVersion, - "sync", sync, - "transcoderActiveVideoSessions", transcoderActiveVideoSessions, - "transcoderAudio", transcoderAudio, - "transcoderLyrics", transcoderLyrics, - "transcoderPhoto", transcoderPhoto, - "transcoderSubtitles", transcoderSubtitles, - "transcoderVideo", transcoderVideo, - "transcoderVideoBitrates", transcoderVideoBitrates, - "transcoderVideoQualities", transcoderVideoQualities, - "transcoderVideoResolutions", transcoderVideoResolutions, - "updatedAt", updatedAt, - "updater", updater, - "version", version, - "voiceSearch", voiceSearch, - "directory", directory); - } - - public final static class Builder { - - private Optional size = Optional.empty(); - - private Optional allowCameraUpload = Optional.empty(); - - private Optional allowChannelAccess = Optional.empty(); - - private Optional allowMediaDeletion = Optional.empty(); - - private Optional allowSharing = Optional.empty(); - - private Optional allowSync = Optional.empty(); - - private Optional allowTuners = Optional.empty(); - - private Optional backgroundProcessing = Optional.empty(); - - private Optional certificate = Optional.empty(); - - private Optional companionProxy = Optional.empty(); - - private Optional countryCode = Optional.empty(); - - private Optional diagnostics = Optional.empty(); - - private Optional eventStream = Optional.empty(); - - private Optional friendlyName = Optional.empty(); - - private Optional hubSearch = Optional.empty(); - - private Optional itemClusters = Optional.empty(); - - private Optional livetv = Optional.empty(); - - private Optional machineIdentifier = Optional.empty(); - - private Optional mediaProviders = Optional.empty(); - - private Optional multiuser = Optional.empty(); - - private Optional musicAnalysis = Optional.empty(); - - private Optional myPlex = Optional.empty(); - - private Optional myPlexMappingState = Optional.empty(); - - private Optional myPlexSigninState = Optional.empty(); - - private Optional myPlexSubscription = Optional.empty(); - - private Optional myPlexUsername = Optional.empty(); - - private Optional offlineTranscode = Optional.empty(); - - private Optional ownerFeatures = Optional.empty(); - - private Optional photoAutoTag = Optional.empty(); - - private Optional platform = Optional.empty(); - - private Optional platformVersion = Optional.empty(); - - private Optional pluginHost = Optional.empty(); - - private Optional pushNotifications = Optional.empty(); - - private Optional readOnlyLibraries = Optional.empty(); - - private Optional streamingBrainABRVersion = Optional.empty(); - - private Optional streamingBrainVersion = Optional.empty(); - - private Optional sync = Optional.empty(); - - private Optional transcoderActiveVideoSessions = Optional.empty(); - - private Optional transcoderAudio = Optional.empty(); - - private Optional transcoderLyrics = Optional.empty(); - - private Optional transcoderPhoto = Optional.empty(); - - private Optional transcoderSubtitles = Optional.empty(); - - private Optional transcoderVideo = Optional.empty(); - - private Optional transcoderVideoBitrates = Optional.empty(); - - private Optional transcoderVideoQualities = Optional.empty(); - - private Optional transcoderVideoResolutions = Optional.empty(); - - private Optional updatedAt = Optional.empty(); - - private Optional updater = Optional.empty(); - - private Optional version = Optional.empty(); - - private Optional voiceSearch = Optional.empty(); - - private Optional> directory = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder size(double size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder allowCameraUpload(boolean allowCameraUpload) { - Utils.checkNotNull(allowCameraUpload, "allowCameraUpload"); - this.allowCameraUpload = Optional.ofNullable(allowCameraUpload); - return this; - } - - public Builder allowCameraUpload(Optional allowCameraUpload) { - Utils.checkNotNull(allowCameraUpload, "allowCameraUpload"); - this.allowCameraUpload = allowCameraUpload; - return this; - } - - public Builder allowChannelAccess(boolean allowChannelAccess) { - Utils.checkNotNull(allowChannelAccess, "allowChannelAccess"); - this.allowChannelAccess = Optional.ofNullable(allowChannelAccess); - return this; - } - - public Builder allowChannelAccess(Optional allowChannelAccess) { - Utils.checkNotNull(allowChannelAccess, "allowChannelAccess"); - this.allowChannelAccess = allowChannelAccess; - return this; - } - - public Builder allowMediaDeletion(boolean allowMediaDeletion) { - Utils.checkNotNull(allowMediaDeletion, "allowMediaDeletion"); - this.allowMediaDeletion = Optional.ofNullable(allowMediaDeletion); - return this; - } - - public Builder allowMediaDeletion(Optional allowMediaDeletion) { - Utils.checkNotNull(allowMediaDeletion, "allowMediaDeletion"); - this.allowMediaDeletion = allowMediaDeletion; - return this; - } - - public Builder allowSharing(boolean allowSharing) { - Utils.checkNotNull(allowSharing, "allowSharing"); - this.allowSharing = Optional.ofNullable(allowSharing); - return this; - } - - public Builder allowSharing(Optional allowSharing) { - Utils.checkNotNull(allowSharing, "allowSharing"); - this.allowSharing = allowSharing; - return this; - } - - public Builder allowSync(boolean allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = Optional.ofNullable(allowSync); - return this; - } - - public Builder allowSync(Optional allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = allowSync; - return this; - } - - public Builder allowTuners(boolean allowTuners) { - Utils.checkNotNull(allowTuners, "allowTuners"); - this.allowTuners = Optional.ofNullable(allowTuners); - return this; - } - - public Builder allowTuners(Optional allowTuners) { - Utils.checkNotNull(allowTuners, "allowTuners"); - this.allowTuners = allowTuners; - return this; - } - - public Builder backgroundProcessing(boolean backgroundProcessing) { - Utils.checkNotNull(backgroundProcessing, "backgroundProcessing"); - this.backgroundProcessing = Optional.ofNullable(backgroundProcessing); - return this; - } - - public Builder backgroundProcessing(Optional backgroundProcessing) { - Utils.checkNotNull(backgroundProcessing, "backgroundProcessing"); - this.backgroundProcessing = backgroundProcessing; - return this; - } - - public Builder certificate(boolean certificate) { - Utils.checkNotNull(certificate, "certificate"); - this.certificate = Optional.ofNullable(certificate); - return this; - } - - public Builder certificate(Optional certificate) { - Utils.checkNotNull(certificate, "certificate"); - this.certificate = certificate; - return this; - } - - public Builder companionProxy(boolean companionProxy) { - Utils.checkNotNull(companionProxy, "companionProxy"); - this.companionProxy = Optional.ofNullable(companionProxy); - return this; - } - - public Builder companionProxy(Optional companionProxy) { - Utils.checkNotNull(companionProxy, "companionProxy"); - this.companionProxy = companionProxy; - return this; - } - - public Builder countryCode(String countryCode) { - Utils.checkNotNull(countryCode, "countryCode"); - this.countryCode = Optional.ofNullable(countryCode); - return this; - } - - public Builder countryCode(Optional countryCode) { - Utils.checkNotNull(countryCode, "countryCode"); - this.countryCode = countryCode; - return this; - } - - public Builder diagnostics(String diagnostics) { - Utils.checkNotNull(diagnostics, "diagnostics"); - this.diagnostics = Optional.ofNullable(diagnostics); - return this; - } - - public Builder diagnostics(Optional diagnostics) { - Utils.checkNotNull(diagnostics, "diagnostics"); - this.diagnostics = diagnostics; - return this; - } - - public Builder eventStream(boolean eventStream) { - Utils.checkNotNull(eventStream, "eventStream"); - this.eventStream = Optional.ofNullable(eventStream); - return this; - } - - public Builder eventStream(Optional eventStream) { - Utils.checkNotNull(eventStream, "eventStream"); - this.eventStream = eventStream; - return this; - } - - public Builder friendlyName(String friendlyName) { - Utils.checkNotNull(friendlyName, "friendlyName"); - this.friendlyName = Optional.ofNullable(friendlyName); - return this; - } - - public Builder friendlyName(Optional friendlyName) { - Utils.checkNotNull(friendlyName, "friendlyName"); - this.friendlyName = friendlyName; - return this; - } - - public Builder hubSearch(boolean hubSearch) { - Utils.checkNotNull(hubSearch, "hubSearch"); - this.hubSearch = Optional.ofNullable(hubSearch); - return this; - } - - public Builder hubSearch(Optional hubSearch) { - Utils.checkNotNull(hubSearch, "hubSearch"); - this.hubSearch = hubSearch; - return this; - } - - public Builder itemClusters(boolean itemClusters) { - Utils.checkNotNull(itemClusters, "itemClusters"); - this.itemClusters = Optional.ofNullable(itemClusters); - return this; - } - - public Builder itemClusters(Optional itemClusters) { - Utils.checkNotNull(itemClusters, "itemClusters"); - this.itemClusters = itemClusters; - return this; - } - - public Builder livetv(double livetv) { - Utils.checkNotNull(livetv, "livetv"); - this.livetv = Optional.ofNullable(livetv); - return this; - } - - public Builder livetv(Optional livetv) { - Utils.checkNotNull(livetv, "livetv"); - this.livetv = livetv; - return this; - } - - public Builder machineIdentifier(String machineIdentifier) { - Utils.checkNotNull(machineIdentifier, "machineIdentifier"); - this.machineIdentifier = Optional.ofNullable(machineIdentifier); - return this; - } - - public Builder machineIdentifier(Optional machineIdentifier) { - Utils.checkNotNull(machineIdentifier, "machineIdentifier"); - this.machineIdentifier = machineIdentifier; - return this; - } - - public Builder mediaProviders(boolean mediaProviders) { - Utils.checkNotNull(mediaProviders, "mediaProviders"); - this.mediaProviders = Optional.ofNullable(mediaProviders); - return this; - } - - public Builder mediaProviders(Optional mediaProviders) { - Utils.checkNotNull(mediaProviders, "mediaProviders"); - this.mediaProviders = mediaProviders; - return this; - } - - public Builder multiuser(boolean multiuser) { - Utils.checkNotNull(multiuser, "multiuser"); - this.multiuser = Optional.ofNullable(multiuser); - return this; - } - - public Builder multiuser(Optional multiuser) { - Utils.checkNotNull(multiuser, "multiuser"); - this.multiuser = multiuser; - return this; - } - - public Builder musicAnalysis(double musicAnalysis) { - Utils.checkNotNull(musicAnalysis, "musicAnalysis"); - this.musicAnalysis = Optional.ofNullable(musicAnalysis); - return this; - } - - public Builder musicAnalysis(Optional musicAnalysis) { - Utils.checkNotNull(musicAnalysis, "musicAnalysis"); - this.musicAnalysis = musicAnalysis; - return this; - } - - public Builder myPlex(boolean myPlex) { - Utils.checkNotNull(myPlex, "myPlex"); - this.myPlex = Optional.ofNullable(myPlex); - return this; - } - - public Builder myPlex(Optional myPlex) { - Utils.checkNotNull(myPlex, "myPlex"); - this.myPlex = myPlex; - return this; - } - - public Builder myPlexMappingState(String myPlexMappingState) { - Utils.checkNotNull(myPlexMappingState, "myPlexMappingState"); - this.myPlexMappingState = Optional.ofNullable(myPlexMappingState); - return this; - } - - public Builder myPlexMappingState(Optional myPlexMappingState) { - Utils.checkNotNull(myPlexMappingState, "myPlexMappingState"); - this.myPlexMappingState = myPlexMappingState; - return this; - } - - public Builder myPlexSigninState(String myPlexSigninState) { - Utils.checkNotNull(myPlexSigninState, "myPlexSigninState"); - this.myPlexSigninState = Optional.ofNullable(myPlexSigninState); - return this; - } - - public Builder myPlexSigninState(Optional myPlexSigninState) { - Utils.checkNotNull(myPlexSigninState, "myPlexSigninState"); - this.myPlexSigninState = myPlexSigninState; - return this; - } - - public Builder myPlexSubscription(boolean myPlexSubscription) { - Utils.checkNotNull(myPlexSubscription, "myPlexSubscription"); - this.myPlexSubscription = Optional.ofNullable(myPlexSubscription); - return this; - } - - public Builder myPlexSubscription(Optional myPlexSubscription) { - Utils.checkNotNull(myPlexSubscription, "myPlexSubscription"); - this.myPlexSubscription = myPlexSubscription; - return this; - } - - public Builder myPlexUsername(String myPlexUsername) { - Utils.checkNotNull(myPlexUsername, "myPlexUsername"); - this.myPlexUsername = Optional.ofNullable(myPlexUsername); - return this; - } - - public Builder myPlexUsername(Optional myPlexUsername) { - Utils.checkNotNull(myPlexUsername, "myPlexUsername"); - this.myPlexUsername = myPlexUsername; - return this; - } - - public Builder offlineTranscode(double offlineTranscode) { - Utils.checkNotNull(offlineTranscode, "offlineTranscode"); - this.offlineTranscode = Optional.ofNullable(offlineTranscode); - return this; - } - - public Builder offlineTranscode(Optional offlineTranscode) { - Utils.checkNotNull(offlineTranscode, "offlineTranscode"); - this.offlineTranscode = offlineTranscode; - return this; - } - - public Builder ownerFeatures(String ownerFeatures) { - Utils.checkNotNull(ownerFeatures, "ownerFeatures"); - this.ownerFeatures = Optional.ofNullable(ownerFeatures); - return this; - } - - public Builder ownerFeatures(Optional ownerFeatures) { - Utils.checkNotNull(ownerFeatures, "ownerFeatures"); - this.ownerFeatures = ownerFeatures; - return this; - } - - public Builder photoAutoTag(boolean photoAutoTag) { - Utils.checkNotNull(photoAutoTag, "photoAutoTag"); - this.photoAutoTag = Optional.ofNullable(photoAutoTag); - return this; - } - - public Builder photoAutoTag(Optional photoAutoTag) { - Utils.checkNotNull(photoAutoTag, "photoAutoTag"); - this.photoAutoTag = photoAutoTag; - return this; - } - - public Builder platform(String platform) { - Utils.checkNotNull(platform, "platform"); - this.platform = Optional.ofNullable(platform); - return this; - } - - public Builder platform(Optional platform) { - Utils.checkNotNull(platform, "platform"); - this.platform = platform; - return this; - } - - public Builder platformVersion(String platformVersion) { - Utils.checkNotNull(platformVersion, "platformVersion"); - this.platformVersion = Optional.ofNullable(platformVersion); - return this; - } - - public Builder platformVersion(Optional platformVersion) { - Utils.checkNotNull(platformVersion, "platformVersion"); - this.platformVersion = platformVersion; - return this; - } - - public Builder pluginHost(boolean pluginHost) { - Utils.checkNotNull(pluginHost, "pluginHost"); - this.pluginHost = Optional.ofNullable(pluginHost); - return this; - } - - public Builder pluginHost(Optional pluginHost) { - Utils.checkNotNull(pluginHost, "pluginHost"); - this.pluginHost = pluginHost; - return this; - } - - public Builder pushNotifications(boolean pushNotifications) { - Utils.checkNotNull(pushNotifications, "pushNotifications"); - this.pushNotifications = Optional.ofNullable(pushNotifications); - return this; - } - - public Builder pushNotifications(Optional pushNotifications) { - Utils.checkNotNull(pushNotifications, "pushNotifications"); - this.pushNotifications = pushNotifications; - return this; - } - - public Builder readOnlyLibraries(boolean readOnlyLibraries) { - Utils.checkNotNull(readOnlyLibraries, "readOnlyLibraries"); - this.readOnlyLibraries = Optional.ofNullable(readOnlyLibraries); - return this; - } - - public Builder readOnlyLibraries(Optional readOnlyLibraries) { - Utils.checkNotNull(readOnlyLibraries, "readOnlyLibraries"); - this.readOnlyLibraries = readOnlyLibraries; - return this; - } - - public Builder streamingBrainABRVersion(double streamingBrainABRVersion) { - Utils.checkNotNull(streamingBrainABRVersion, "streamingBrainABRVersion"); - this.streamingBrainABRVersion = Optional.ofNullable(streamingBrainABRVersion); - return this; - } - - public Builder streamingBrainABRVersion(Optional streamingBrainABRVersion) { - Utils.checkNotNull(streamingBrainABRVersion, "streamingBrainABRVersion"); - this.streamingBrainABRVersion = streamingBrainABRVersion; - return this; - } - - public Builder streamingBrainVersion(double streamingBrainVersion) { - Utils.checkNotNull(streamingBrainVersion, "streamingBrainVersion"); - this.streamingBrainVersion = Optional.ofNullable(streamingBrainVersion); - return this; - } - - public Builder streamingBrainVersion(Optional streamingBrainVersion) { - Utils.checkNotNull(streamingBrainVersion, "streamingBrainVersion"); - this.streamingBrainVersion = streamingBrainVersion; - return this; - } - - public Builder sync(boolean sync) { - Utils.checkNotNull(sync, "sync"); - this.sync = Optional.ofNullable(sync); - return this; - } - - public Builder sync(Optional sync) { - Utils.checkNotNull(sync, "sync"); - this.sync = sync; - return this; - } - - public Builder transcoderActiveVideoSessions(double transcoderActiveVideoSessions) { - Utils.checkNotNull(transcoderActiveVideoSessions, "transcoderActiveVideoSessions"); - this.transcoderActiveVideoSessions = Optional.ofNullable(transcoderActiveVideoSessions); - return this; - } - - public Builder transcoderActiveVideoSessions(Optional transcoderActiveVideoSessions) { - Utils.checkNotNull(transcoderActiveVideoSessions, "transcoderActiveVideoSessions"); - this.transcoderActiveVideoSessions = transcoderActiveVideoSessions; - return this; - } - - public Builder transcoderAudio(boolean transcoderAudio) { - Utils.checkNotNull(transcoderAudio, "transcoderAudio"); - this.transcoderAudio = Optional.ofNullable(transcoderAudio); - return this; - } - - public Builder transcoderAudio(Optional transcoderAudio) { - Utils.checkNotNull(transcoderAudio, "transcoderAudio"); - this.transcoderAudio = transcoderAudio; - return this; - } - - public Builder transcoderLyrics(boolean transcoderLyrics) { - Utils.checkNotNull(transcoderLyrics, "transcoderLyrics"); - this.transcoderLyrics = Optional.ofNullable(transcoderLyrics); - return this; - } - - public Builder transcoderLyrics(Optional transcoderLyrics) { - Utils.checkNotNull(transcoderLyrics, "transcoderLyrics"); - this.transcoderLyrics = transcoderLyrics; - return this; - } - - public Builder transcoderPhoto(boolean transcoderPhoto) { - Utils.checkNotNull(transcoderPhoto, "transcoderPhoto"); - this.transcoderPhoto = Optional.ofNullable(transcoderPhoto); - return this; - } - - public Builder transcoderPhoto(Optional transcoderPhoto) { - Utils.checkNotNull(transcoderPhoto, "transcoderPhoto"); - this.transcoderPhoto = transcoderPhoto; - return this; - } - - public Builder transcoderSubtitles(boolean transcoderSubtitles) { - Utils.checkNotNull(transcoderSubtitles, "transcoderSubtitles"); - this.transcoderSubtitles = Optional.ofNullable(transcoderSubtitles); - return this; - } - - public Builder transcoderSubtitles(Optional transcoderSubtitles) { - Utils.checkNotNull(transcoderSubtitles, "transcoderSubtitles"); - this.transcoderSubtitles = transcoderSubtitles; - return this; - } - - public Builder transcoderVideo(boolean transcoderVideo) { - Utils.checkNotNull(transcoderVideo, "transcoderVideo"); - this.transcoderVideo = Optional.ofNullable(transcoderVideo); - return this; - } - - public Builder transcoderVideo(Optional transcoderVideo) { - Utils.checkNotNull(transcoderVideo, "transcoderVideo"); - this.transcoderVideo = transcoderVideo; - return this; - } - - public Builder transcoderVideoBitrates(String transcoderVideoBitrates) { - Utils.checkNotNull(transcoderVideoBitrates, "transcoderVideoBitrates"); - this.transcoderVideoBitrates = Optional.ofNullable(transcoderVideoBitrates); - return this; - } - - public Builder transcoderVideoBitrates(Optional transcoderVideoBitrates) { - Utils.checkNotNull(transcoderVideoBitrates, "transcoderVideoBitrates"); - this.transcoderVideoBitrates = transcoderVideoBitrates; - return this; - } - - public Builder transcoderVideoQualities(String transcoderVideoQualities) { - Utils.checkNotNull(transcoderVideoQualities, "transcoderVideoQualities"); - this.transcoderVideoQualities = Optional.ofNullable(transcoderVideoQualities); - return this; - } - - public Builder transcoderVideoQualities(Optional transcoderVideoQualities) { - Utils.checkNotNull(transcoderVideoQualities, "transcoderVideoQualities"); - this.transcoderVideoQualities = transcoderVideoQualities; - return this; - } - - public Builder transcoderVideoResolutions(String transcoderVideoResolutions) { - Utils.checkNotNull(transcoderVideoResolutions, "transcoderVideoResolutions"); - this.transcoderVideoResolutions = Optional.ofNullable(transcoderVideoResolutions); - return this; - } - - public Builder transcoderVideoResolutions(Optional transcoderVideoResolutions) { - Utils.checkNotNull(transcoderVideoResolutions, "transcoderVideoResolutions"); - this.transcoderVideoResolutions = transcoderVideoResolutions; - return this; - } - - public Builder updatedAt(double updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public Builder updatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public Builder updater(boolean updater) { - Utils.checkNotNull(updater, "updater"); - this.updater = Optional.ofNullable(updater); - return this; - } - - public Builder updater(Optional updater) { - Utils.checkNotNull(updater, "updater"); - this.updater = updater; - return this; - } - - public Builder version(String version) { - Utils.checkNotNull(version, "version"); - this.version = Optional.ofNullable(version); - return this; - } - - public Builder version(Optional version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - public Builder voiceSearch(boolean voiceSearch) { - Utils.checkNotNull(voiceSearch, "voiceSearch"); - this.voiceSearch = Optional.ofNullable(voiceSearch); - return this; - } - - public Builder voiceSearch(Optional voiceSearch) { - Utils.checkNotNull(voiceSearch, "voiceSearch"); - this.voiceSearch = voiceSearch; - return this; - } - - public Builder directory(java.util.List directory) { - Utils.checkNotNull(directory, "directory"); - this.directory = Optional.ofNullable(directory); - return this; - } - - public Builder directory(Optional> directory) { - Utils.checkNotNull(directory, "directory"); - this.directory = directory; - return this; - } - - public MediaContainer build() { - return new MediaContainer( - size, - allowCameraUpload, - allowChannelAccess, - allowMediaDeletion, - allowSharing, - allowSync, - allowTuners, - backgroundProcessing, - certificate, - companionProxy, - countryCode, - diagnostics, - eventStream, - friendlyName, - hubSearch, - itemClusters, - livetv, - machineIdentifier, - mediaProviders, - multiuser, - musicAnalysis, - myPlex, - myPlexMappingState, - myPlexSigninState, - myPlexSubscription, - myPlexUsername, - offlineTranscode, - ownerFeatures, - photoAutoTag, - platform, - platformVersion, - pluginHost, - pushNotifications, - readOnlyLibraries, - streamingBrainABRVersion, - streamingBrainVersion, - sync, - transcoderActiveVideoSessions, - transcoderAudio, - transcoderLyrics, - transcoderPhoto, - transcoderSubtitles, - transcoderVideo, - transcoderVideoBitrates, - transcoderVideoQualities, - transcoderVideoResolutions, - updatedAt, - updater, - version, - voiceSearch, - directory); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Metadata.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Metadata.java deleted file mode 100644 index a3de4cb4..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Metadata.java +++ /dev/null @@ -1,1574 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class Metadata { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("art") - private Optional art; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("guid") - private Optional guid; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ratingKey") - private Optional ratingKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("studio") - private Optional studio; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tagline") - private Optional tagline; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("thumb") - private Optional thumb; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("addedAt") - private Optional addedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("duration") - private Optional duration; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("publicPagesURL") - private Optional publicPagesURL; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("slug") - private Optional slug; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("userState") - private Optional userState; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title") - private Optional title; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("contentRating") - private Optional contentRating; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("originallyAvailableAt") - private Optional originallyAvailableAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("year") - private Optional year; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Image") - private Optional> image; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("banner") - private Optional banner; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("rating") - private Optional rating; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("expiresAt") - private Optional expiresAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("originalTitle") - private Optional originalTitle; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audienceRating") - private Optional audienceRating; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audienceRatingImage") - private Optional audienceRatingImage; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ratingImage") - private Optional ratingImage; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("imdbRatingCount") - private Optional imdbRatingCount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("subtype") - private Optional subtype; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("theme") - private Optional theme; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("leafCount") - private Optional leafCount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("childCount") - private Optional childCount; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("isContinuingSeries") - private Optional isContinuingSeries; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("skipChildren") - private Optional skipChildren; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("availabilityId") - private Optional availabilityId; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("streamingMediaId") - private Optional streamingMediaId; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("playableKey") - private Optional playableKey; - - @JsonCreator - public Metadata( - @JsonProperty("art") Optional art, - @JsonProperty("guid") Optional guid, - @JsonProperty("key") Optional key, - @JsonProperty("ratingKey") Optional ratingKey, - @JsonProperty("studio") Optional studio, - @JsonProperty("tagline") Optional tagline, - @JsonProperty("type") Optional type, - @JsonProperty("thumb") Optional thumb, - @JsonProperty("addedAt") Optional addedAt, - @JsonProperty("duration") Optional duration, - @JsonProperty("publicPagesURL") Optional publicPagesURL, - @JsonProperty("slug") Optional slug, - @JsonProperty("userState") Optional userState, - @JsonProperty("title") Optional title, - @JsonProperty("contentRating") Optional contentRating, - @JsonProperty("originallyAvailableAt") Optional originallyAvailableAt, - @JsonProperty("year") Optional year, - @JsonProperty("Image") Optional> image, - @JsonProperty("banner") Optional banner, - @JsonProperty("rating") Optional rating, - @JsonProperty("expiresAt") Optional expiresAt, - @JsonProperty("originalTitle") Optional originalTitle, - @JsonProperty("audienceRating") Optional audienceRating, - @JsonProperty("audienceRatingImage") Optional audienceRatingImage, - @JsonProperty("ratingImage") Optional ratingImage, - @JsonProperty("imdbRatingCount") Optional imdbRatingCount, - @JsonProperty("subtype") Optional subtype, - @JsonProperty("theme") Optional theme, - @JsonProperty("leafCount") Optional leafCount, - @JsonProperty("childCount") Optional childCount, - @JsonProperty("isContinuingSeries") Optional isContinuingSeries, - @JsonProperty("skipChildren") Optional skipChildren, - @JsonProperty("availabilityId") Optional availabilityId, - @JsonProperty("streamingMediaId") Optional streamingMediaId, - @JsonProperty("playableKey") Optional playableKey) { - Utils.checkNotNull(art, "art"); - Utils.checkNotNull(guid, "guid"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(ratingKey, "ratingKey"); - Utils.checkNotNull(studio, "studio"); - Utils.checkNotNull(tagline, "tagline"); - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(thumb, "thumb"); - Utils.checkNotNull(addedAt, "addedAt"); - Utils.checkNotNull(duration, "duration"); - Utils.checkNotNull(publicPagesURL, "publicPagesURL"); - Utils.checkNotNull(slug, "slug"); - Utils.checkNotNull(userState, "userState"); - Utils.checkNotNull(title, "title"); - Utils.checkNotNull(contentRating, "contentRating"); - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - Utils.checkNotNull(year, "year"); - Utils.checkNotNull(image, "image"); - Utils.checkNotNull(banner, "banner"); - Utils.checkNotNull(rating, "rating"); - Utils.checkNotNull(expiresAt, "expiresAt"); - Utils.checkNotNull(originalTitle, "originalTitle"); - Utils.checkNotNull(audienceRating, "audienceRating"); - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - Utils.checkNotNull(ratingImage, "ratingImage"); - Utils.checkNotNull(imdbRatingCount, "imdbRatingCount"); - Utils.checkNotNull(subtype, "subtype"); - Utils.checkNotNull(theme, "theme"); - Utils.checkNotNull(leafCount, "leafCount"); - Utils.checkNotNull(childCount, "childCount"); - Utils.checkNotNull(isContinuingSeries, "isContinuingSeries"); - Utils.checkNotNull(skipChildren, "skipChildren"); - Utils.checkNotNull(availabilityId, "availabilityId"); - Utils.checkNotNull(streamingMediaId, "streamingMediaId"); - Utils.checkNotNull(playableKey, "playableKey"); - 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; - } - - public Metadata() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional art() { - return (Optional) art; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional guid() { - return (Optional) guid; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional ratingKey() { - return (Optional) ratingKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional studio() { - return (Optional) studio; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tagline() { - return (Optional) tagline; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional thumb() { - return (Optional) thumb; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional addedAt() { - return (Optional) addedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional duration() { - return (Optional) duration; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional publicPagesURL() { - return (Optional) publicPagesURL; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional slug() { - return (Optional) slug; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional userState() { - return (Optional) userState; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title() { - return (Optional) title; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional contentRating() { - return (Optional) contentRating; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional originallyAvailableAt() { - return (Optional) originallyAvailableAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional year() { - return (Optional) year; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> image() { - return (Optional>) image; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional banner() { - return (Optional) banner; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional rating() { - return (Optional) rating; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional expiresAt() { - return (Optional) expiresAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional originalTitle() { - return (Optional) originalTitle; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audienceRating() { - return (Optional) audienceRating; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audienceRatingImage() { - return (Optional) audienceRatingImage; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional ratingImage() { - return (Optional) ratingImage; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional imdbRatingCount() { - return (Optional) imdbRatingCount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional subtype() { - return (Optional) subtype; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional theme() { - return (Optional) theme; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional leafCount() { - return (Optional) leafCount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional childCount() { - return (Optional) childCount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional isContinuingSeries() { - return (Optional) isContinuingSeries; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional skipChildren() { - return (Optional) skipChildren; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional availabilityId() { - return (Optional) availabilityId; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional streamingMediaId() { - return (Optional) streamingMediaId; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional playableKey() { - return (Optional) playableKey; - } - - public final static Builder builder() { - return new Builder(); - } - - public Metadata withArt(String art) { - Utils.checkNotNull(art, "art"); - this.art = Optional.ofNullable(art); - return this; - } - - public Metadata withArt(Optional art) { - Utils.checkNotNull(art, "art"); - this.art = art; - return this; - } - - public Metadata withGuid(String guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = Optional.ofNullable(guid); - return this; - } - - public Metadata withGuid(Optional guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = guid; - return this; - } - - public Metadata withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Metadata withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Metadata withRatingKey(String ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public Metadata withRatingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public Metadata withStudio(String studio) { - Utils.checkNotNull(studio, "studio"); - this.studio = Optional.ofNullable(studio); - return this; - } - - public Metadata withStudio(Optional studio) { - Utils.checkNotNull(studio, "studio"); - this.studio = studio; - return this; - } - - public Metadata withTagline(String tagline) { - Utils.checkNotNull(tagline, "tagline"); - this.tagline = Optional.ofNullable(tagline); - return this; - } - - public Metadata withTagline(Optional tagline) { - Utils.checkNotNull(tagline, "tagline"); - this.tagline = tagline; - return this; - } - - public Metadata withType(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Metadata withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Metadata withThumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public Metadata withThumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public Metadata withAddedAt(int addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = Optional.ofNullable(addedAt); - return this; - } - - public Metadata withAddedAt(Optional addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = addedAt; - return this; - } - - public Metadata withDuration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public Metadata withDuration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public Metadata withPublicPagesURL(String publicPagesURL) { - Utils.checkNotNull(publicPagesURL, "publicPagesURL"); - this.publicPagesURL = Optional.ofNullable(publicPagesURL); - return this; - } - - public Metadata withPublicPagesURL(Optional publicPagesURL) { - Utils.checkNotNull(publicPagesURL, "publicPagesURL"); - this.publicPagesURL = publicPagesURL; - return this; - } - - public Metadata withSlug(String slug) { - Utils.checkNotNull(slug, "slug"); - this.slug = Optional.ofNullable(slug); - return this; - } - - public Metadata withSlug(Optional slug) { - Utils.checkNotNull(slug, "slug"); - this.slug = slug; - return this; - } - - public Metadata withUserState(boolean userState) { - Utils.checkNotNull(userState, "userState"); - this.userState = Optional.ofNullable(userState); - return this; - } - - public Metadata withUserState(Optional userState) { - Utils.checkNotNull(userState, "userState"); - this.userState = userState; - return this; - } - - public Metadata withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Metadata withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Metadata withContentRating(String contentRating) { - Utils.checkNotNull(contentRating, "contentRating"); - this.contentRating = Optional.ofNullable(contentRating); - return this; - } - - public Metadata withContentRating(Optional contentRating) { - Utils.checkNotNull(contentRating, "contentRating"); - this.contentRating = contentRating; - return this; - } - - public Metadata withOriginallyAvailableAt(LocalDate originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = Optional.ofNullable(originallyAvailableAt); - return this; - } - - public Metadata withOriginallyAvailableAt(Optional originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = originallyAvailableAt; - return this; - } - - public Metadata withYear(int year) { - Utils.checkNotNull(year, "year"); - this.year = Optional.ofNullable(year); - return this; - } - - public Metadata withYear(Optional year) { - Utils.checkNotNull(year, "year"); - this.year = year; - return this; - } - - public Metadata withImage(java.util.List image) { - Utils.checkNotNull(image, "image"); - this.image = Optional.ofNullable(image); - return this; - } - - public Metadata withImage(Optional> image) { - Utils.checkNotNull(image, "image"); - this.image = image; - return this; - } - - public Metadata withBanner(String banner) { - Utils.checkNotNull(banner, "banner"); - this.banner = Optional.ofNullable(banner); - return this; - } - - public Metadata withBanner(Optional banner) { - Utils.checkNotNull(banner, "banner"); - this.banner = banner; - return this; - } - - public Metadata withRating(double rating) { - Utils.checkNotNull(rating, "rating"); - this.rating = Optional.ofNullable(rating); - return this; - } - - public Metadata withRating(Optional rating) { - Utils.checkNotNull(rating, "rating"); - this.rating = rating; - return this; - } - - public Metadata withExpiresAt(int expiresAt) { - Utils.checkNotNull(expiresAt, "expiresAt"); - this.expiresAt = Optional.ofNullable(expiresAt); - return this; - } - - public Metadata withExpiresAt(Optional expiresAt) { - Utils.checkNotNull(expiresAt, "expiresAt"); - this.expiresAt = expiresAt; - return this; - } - - public Metadata withOriginalTitle(String originalTitle) { - Utils.checkNotNull(originalTitle, "originalTitle"); - this.originalTitle = Optional.ofNullable(originalTitle); - return this; - } - - public Metadata withOriginalTitle(Optional originalTitle) { - Utils.checkNotNull(originalTitle, "originalTitle"); - this.originalTitle = originalTitle; - return this; - } - - public Metadata withAudienceRating(double audienceRating) { - Utils.checkNotNull(audienceRating, "audienceRating"); - this.audienceRating = Optional.ofNullable(audienceRating); - return this; - } - - public Metadata withAudienceRating(Optional audienceRating) { - Utils.checkNotNull(audienceRating, "audienceRating"); - this.audienceRating = audienceRating; - return this; - } - - public Metadata withAudienceRatingImage(String audienceRatingImage) { - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - this.audienceRatingImage = Optional.ofNullable(audienceRatingImage); - return this; - } - - public Metadata withAudienceRatingImage(Optional audienceRatingImage) { - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - this.audienceRatingImage = audienceRatingImage; - return this; - } - - public Metadata withRatingImage(String ratingImage) { - Utils.checkNotNull(ratingImage, "ratingImage"); - this.ratingImage = Optional.ofNullable(ratingImage); - return this; - } - - public Metadata withRatingImage(Optional ratingImage) { - Utils.checkNotNull(ratingImage, "ratingImage"); - this.ratingImage = ratingImage; - return this; - } - - public Metadata withImdbRatingCount(int imdbRatingCount) { - Utils.checkNotNull(imdbRatingCount, "imdbRatingCount"); - this.imdbRatingCount = Optional.ofNullable(imdbRatingCount); - return this; - } - - public Metadata withImdbRatingCount(Optional imdbRatingCount) { - Utils.checkNotNull(imdbRatingCount, "imdbRatingCount"); - this.imdbRatingCount = imdbRatingCount; - return this; - } - - public Metadata withSubtype(String subtype) { - Utils.checkNotNull(subtype, "subtype"); - this.subtype = Optional.ofNullable(subtype); - return this; - } - - public Metadata withSubtype(Optional subtype) { - Utils.checkNotNull(subtype, "subtype"); - this.subtype = subtype; - return this; - } - - public Metadata withTheme(String theme) { - Utils.checkNotNull(theme, "theme"); - this.theme = Optional.ofNullable(theme); - return this; - } - - public Metadata withTheme(Optional theme) { - Utils.checkNotNull(theme, "theme"); - this.theme = theme; - return this; - } - - public Metadata withLeafCount(int leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = Optional.ofNullable(leafCount); - return this; - } - - public Metadata withLeafCount(Optional leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = leafCount; - return this; - } - - public Metadata withChildCount(int childCount) { - Utils.checkNotNull(childCount, "childCount"); - this.childCount = Optional.ofNullable(childCount); - return this; - } - - public Metadata withChildCount(Optional childCount) { - Utils.checkNotNull(childCount, "childCount"); - this.childCount = childCount; - return this; - } - - public Metadata withIsContinuingSeries(boolean isContinuingSeries) { - Utils.checkNotNull(isContinuingSeries, "isContinuingSeries"); - this.isContinuingSeries = Optional.ofNullable(isContinuingSeries); - return this; - } - - public Metadata withIsContinuingSeries(Optional isContinuingSeries) { - Utils.checkNotNull(isContinuingSeries, "isContinuingSeries"); - this.isContinuingSeries = isContinuingSeries; - return this; - } - - public Metadata withSkipChildren(boolean skipChildren) { - Utils.checkNotNull(skipChildren, "skipChildren"); - this.skipChildren = Optional.ofNullable(skipChildren); - return this; - } - - public Metadata withSkipChildren(Optional skipChildren) { - Utils.checkNotNull(skipChildren, "skipChildren"); - this.skipChildren = skipChildren; - return this; - } - - public Metadata withAvailabilityId(String availabilityId) { - Utils.checkNotNull(availabilityId, "availabilityId"); - this.availabilityId = Optional.ofNullable(availabilityId); - return this; - } - - public Metadata withAvailabilityId(Optional availabilityId) { - Utils.checkNotNull(availabilityId, "availabilityId"); - this.availabilityId = availabilityId; - return this; - } - - public Metadata withStreamingMediaId(String streamingMediaId) { - Utils.checkNotNull(streamingMediaId, "streamingMediaId"); - this.streamingMediaId = Optional.ofNullable(streamingMediaId); - return this; - } - - public Metadata withStreamingMediaId(Optional streamingMediaId) { - Utils.checkNotNull(streamingMediaId, "streamingMediaId"); - this.streamingMediaId = streamingMediaId; - return this; - } - - public Metadata withPlayableKey(String playableKey) { - Utils.checkNotNull(playableKey, "playableKey"); - this.playableKey = Optional.ofNullable(playableKey); - return this; - } - - public Metadata withPlayableKey(Optional playableKey) { - Utils.checkNotNull(playableKey, "playableKey"); - this.playableKey = playableKey; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Metadata other = (Metadata) o; - return - java.util.Objects.deepEquals(this.art, other.art) && - java.util.Objects.deepEquals(this.guid, other.guid) && - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.ratingKey, other.ratingKey) && - java.util.Objects.deepEquals(this.studio, other.studio) && - java.util.Objects.deepEquals(this.tagline, other.tagline) && - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.thumb, other.thumb) && - java.util.Objects.deepEquals(this.addedAt, other.addedAt) && - java.util.Objects.deepEquals(this.duration, other.duration) && - java.util.Objects.deepEquals(this.publicPagesURL, other.publicPagesURL) && - java.util.Objects.deepEquals(this.slug, other.slug) && - java.util.Objects.deepEquals(this.userState, other.userState) && - java.util.Objects.deepEquals(this.title, other.title) && - java.util.Objects.deepEquals(this.contentRating, other.contentRating) && - java.util.Objects.deepEquals(this.originallyAvailableAt, other.originallyAvailableAt) && - java.util.Objects.deepEquals(this.year, other.year) && - java.util.Objects.deepEquals(this.image, other.image) && - java.util.Objects.deepEquals(this.banner, other.banner) && - java.util.Objects.deepEquals(this.rating, other.rating) && - java.util.Objects.deepEquals(this.expiresAt, other.expiresAt) && - java.util.Objects.deepEquals(this.originalTitle, other.originalTitle) && - java.util.Objects.deepEquals(this.audienceRating, other.audienceRating) && - java.util.Objects.deepEquals(this.audienceRatingImage, other.audienceRatingImage) && - java.util.Objects.deepEquals(this.ratingImage, other.ratingImage) && - java.util.Objects.deepEquals(this.imdbRatingCount, other.imdbRatingCount) && - java.util.Objects.deepEquals(this.subtype, other.subtype) && - java.util.Objects.deepEquals(this.theme, other.theme) && - java.util.Objects.deepEquals(this.leafCount, other.leafCount) && - java.util.Objects.deepEquals(this.childCount, other.childCount) && - java.util.Objects.deepEquals(this.isContinuingSeries, other.isContinuingSeries) && - java.util.Objects.deepEquals(this.skipChildren, other.skipChildren) && - java.util.Objects.deepEquals(this.availabilityId, other.availabilityId) && - java.util.Objects.deepEquals(this.streamingMediaId, other.streamingMediaId) && - java.util.Objects.deepEquals(this.playableKey, other.playableKey); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - art, - guid, - key, - ratingKey, - studio, - tagline, - type, - thumb, - addedAt, - duration, - publicPagesURL, - slug, - userState, - title, - contentRating, - originallyAvailableAt, - year, - image, - banner, - rating, - expiresAt, - originalTitle, - audienceRating, - audienceRatingImage, - ratingImage, - imdbRatingCount, - subtype, - theme, - leafCount, - childCount, - isContinuingSeries, - skipChildren, - availabilityId, - streamingMediaId, - playableKey); - } - - @Override - public String toString() { - return Utils.toString(Metadata.class, - "art", art, - "guid", guid, - "key", key, - "ratingKey", ratingKey, - "studio", studio, - "tagline", tagline, - "type", type, - "thumb", thumb, - "addedAt", addedAt, - "duration", duration, - "publicPagesURL", publicPagesURL, - "slug", slug, - "userState", userState, - "title", title, - "contentRating", contentRating, - "originallyAvailableAt", originallyAvailableAt, - "year", year, - "image", image, - "banner", banner, - "rating", rating, - "expiresAt", expiresAt, - "originalTitle", originalTitle, - "audienceRating", audienceRating, - "audienceRatingImage", audienceRatingImage, - "ratingImage", ratingImage, - "imdbRatingCount", imdbRatingCount, - "subtype", subtype, - "theme", theme, - "leafCount", leafCount, - "childCount", childCount, - "isContinuingSeries", isContinuingSeries, - "skipChildren", skipChildren, - "availabilityId", availabilityId, - "streamingMediaId", streamingMediaId, - "playableKey", playableKey); - } - - public final static class Builder { - - private Optional art = Optional.empty(); - - private Optional guid = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional ratingKey = Optional.empty(); - - private Optional studio = Optional.empty(); - - private Optional tagline = Optional.empty(); - - private Optional type = Optional.empty(); - - private Optional thumb = Optional.empty(); - - private Optional addedAt = Optional.empty(); - - private Optional duration = Optional.empty(); - - private Optional publicPagesURL = Optional.empty(); - - private Optional slug = Optional.empty(); - - private Optional userState = Optional.empty(); - - private Optional title = Optional.empty(); - - private Optional contentRating = Optional.empty(); - - private Optional originallyAvailableAt = Optional.empty(); - - private Optional year = Optional.empty(); - - private Optional> image = Optional.empty(); - - private Optional banner = Optional.empty(); - - private Optional rating = Optional.empty(); - - private Optional expiresAt = Optional.empty(); - - private Optional originalTitle = Optional.empty(); - - private Optional audienceRating = Optional.empty(); - - private Optional audienceRatingImage = Optional.empty(); - - private Optional ratingImage = Optional.empty(); - - private Optional imdbRatingCount = Optional.empty(); - - private Optional subtype = Optional.empty(); - - private Optional theme = Optional.empty(); - - private Optional leafCount = Optional.empty(); - - private Optional childCount = Optional.empty(); - - private Optional isContinuingSeries = Optional.empty(); - - private Optional skipChildren = Optional.empty(); - - private Optional availabilityId = Optional.empty(); - - private Optional streamingMediaId = Optional.empty(); - - private Optional playableKey = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder art(String art) { - Utils.checkNotNull(art, "art"); - this.art = Optional.ofNullable(art); - return this; - } - - public Builder art(Optional art) { - Utils.checkNotNull(art, "art"); - this.art = art; - return this; - } - - public Builder guid(String guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = Optional.ofNullable(guid); - return this; - } - - public Builder guid(Optional guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = guid; - return this; - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder ratingKey(String ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public Builder ratingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public Builder studio(String studio) { - Utils.checkNotNull(studio, "studio"); - this.studio = Optional.ofNullable(studio); - return this; - } - - public Builder studio(Optional studio) { - Utils.checkNotNull(studio, "studio"); - this.studio = studio; - return this; - } - - public Builder tagline(String tagline) { - Utils.checkNotNull(tagline, "tagline"); - this.tagline = Optional.ofNullable(tagline); - return this; - } - - public Builder tagline(Optional tagline) { - Utils.checkNotNull(tagline, "tagline"); - this.tagline = tagline; - return this; - } - - public Builder type(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Builder thumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public Builder thumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public Builder addedAt(int addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = Optional.ofNullable(addedAt); - return this; - } - - public Builder addedAt(Optional addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = addedAt; - return this; - } - - public Builder duration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public Builder duration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public Builder publicPagesURL(String publicPagesURL) { - Utils.checkNotNull(publicPagesURL, "publicPagesURL"); - this.publicPagesURL = Optional.ofNullable(publicPagesURL); - return this; - } - - public Builder publicPagesURL(Optional publicPagesURL) { - Utils.checkNotNull(publicPagesURL, "publicPagesURL"); - this.publicPagesURL = publicPagesURL; - return this; - } - - public Builder slug(String slug) { - Utils.checkNotNull(slug, "slug"); - this.slug = Optional.ofNullable(slug); - return this; - } - - public Builder slug(Optional slug) { - Utils.checkNotNull(slug, "slug"); - this.slug = slug; - return this; - } - - public Builder userState(boolean userState) { - Utils.checkNotNull(userState, "userState"); - this.userState = Optional.ofNullable(userState); - return this; - } - - public Builder userState(Optional userState) { - Utils.checkNotNull(userState, "userState"); - this.userState = userState; - return this; - } - - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Builder contentRating(String contentRating) { - Utils.checkNotNull(contentRating, "contentRating"); - this.contentRating = Optional.ofNullable(contentRating); - return this; - } - - public Builder contentRating(Optional contentRating) { - Utils.checkNotNull(contentRating, "contentRating"); - this.contentRating = contentRating; - return this; - } - - public Builder originallyAvailableAt(LocalDate originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = Optional.ofNullable(originallyAvailableAt); - return this; - } - - public Builder originallyAvailableAt(Optional originallyAvailableAt) { - Utils.checkNotNull(originallyAvailableAt, "originallyAvailableAt"); - this.originallyAvailableAt = originallyAvailableAt; - return this; - } - - public Builder year(int year) { - Utils.checkNotNull(year, "year"); - this.year = Optional.ofNullable(year); - return this; - } - - public Builder year(Optional year) { - Utils.checkNotNull(year, "year"); - this.year = year; - return this; - } - - public Builder image(java.util.List image) { - Utils.checkNotNull(image, "image"); - this.image = Optional.ofNullable(image); - return this; - } - - public Builder image(Optional> image) { - Utils.checkNotNull(image, "image"); - this.image = image; - return this; - } - - public Builder banner(String banner) { - Utils.checkNotNull(banner, "banner"); - this.banner = Optional.ofNullable(banner); - return this; - } - - public Builder banner(Optional banner) { - Utils.checkNotNull(banner, "banner"); - this.banner = banner; - return this; - } - - public Builder rating(double rating) { - Utils.checkNotNull(rating, "rating"); - this.rating = Optional.ofNullable(rating); - return this; - } - - public Builder rating(Optional rating) { - Utils.checkNotNull(rating, "rating"); - this.rating = rating; - return this; - } - - public Builder expiresAt(int expiresAt) { - Utils.checkNotNull(expiresAt, "expiresAt"); - this.expiresAt = Optional.ofNullable(expiresAt); - return this; - } - - public Builder expiresAt(Optional expiresAt) { - Utils.checkNotNull(expiresAt, "expiresAt"); - this.expiresAt = expiresAt; - return this; - } - - public Builder originalTitle(String originalTitle) { - Utils.checkNotNull(originalTitle, "originalTitle"); - this.originalTitle = Optional.ofNullable(originalTitle); - return this; - } - - public Builder originalTitle(Optional originalTitle) { - Utils.checkNotNull(originalTitle, "originalTitle"); - this.originalTitle = originalTitle; - return this; - } - - public Builder audienceRating(double audienceRating) { - Utils.checkNotNull(audienceRating, "audienceRating"); - this.audienceRating = Optional.ofNullable(audienceRating); - return this; - } - - public Builder audienceRating(Optional audienceRating) { - Utils.checkNotNull(audienceRating, "audienceRating"); - this.audienceRating = audienceRating; - return this; - } - - public Builder audienceRatingImage(String audienceRatingImage) { - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - this.audienceRatingImage = Optional.ofNullable(audienceRatingImage); - return this; - } - - public Builder audienceRatingImage(Optional audienceRatingImage) { - Utils.checkNotNull(audienceRatingImage, "audienceRatingImage"); - this.audienceRatingImage = audienceRatingImage; - return this; - } - - public Builder ratingImage(String ratingImage) { - Utils.checkNotNull(ratingImage, "ratingImage"); - this.ratingImage = Optional.ofNullable(ratingImage); - return this; - } - - public Builder ratingImage(Optional ratingImage) { - Utils.checkNotNull(ratingImage, "ratingImage"); - this.ratingImage = ratingImage; - return this; - } - - public Builder imdbRatingCount(int imdbRatingCount) { - Utils.checkNotNull(imdbRatingCount, "imdbRatingCount"); - this.imdbRatingCount = Optional.ofNullable(imdbRatingCount); - return this; - } - - public Builder imdbRatingCount(Optional imdbRatingCount) { - Utils.checkNotNull(imdbRatingCount, "imdbRatingCount"); - this.imdbRatingCount = imdbRatingCount; - return this; - } - - public Builder subtype(String subtype) { - Utils.checkNotNull(subtype, "subtype"); - this.subtype = Optional.ofNullable(subtype); - return this; - } - - public Builder subtype(Optional subtype) { - Utils.checkNotNull(subtype, "subtype"); - this.subtype = subtype; - return this; - } - - public Builder theme(String theme) { - Utils.checkNotNull(theme, "theme"); - this.theme = Optional.ofNullable(theme); - return this; - } - - public Builder theme(Optional theme) { - Utils.checkNotNull(theme, "theme"); - this.theme = theme; - return this; - } - - public Builder leafCount(int leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = Optional.ofNullable(leafCount); - return this; - } - - public Builder leafCount(Optional leafCount) { - Utils.checkNotNull(leafCount, "leafCount"); - this.leafCount = leafCount; - return this; - } - - public Builder childCount(int childCount) { - Utils.checkNotNull(childCount, "childCount"); - this.childCount = Optional.ofNullable(childCount); - return this; - } - - public Builder childCount(Optional childCount) { - Utils.checkNotNull(childCount, "childCount"); - this.childCount = childCount; - return this; - } - - public Builder isContinuingSeries(boolean isContinuingSeries) { - Utils.checkNotNull(isContinuingSeries, "isContinuingSeries"); - this.isContinuingSeries = Optional.ofNullable(isContinuingSeries); - return this; - } - - public Builder isContinuingSeries(Optional isContinuingSeries) { - Utils.checkNotNull(isContinuingSeries, "isContinuingSeries"); - this.isContinuingSeries = isContinuingSeries; - return this; - } - - public Builder skipChildren(boolean skipChildren) { - Utils.checkNotNull(skipChildren, "skipChildren"); - this.skipChildren = Optional.ofNullable(skipChildren); - return this; - } - - public Builder skipChildren(Optional skipChildren) { - Utils.checkNotNull(skipChildren, "skipChildren"); - this.skipChildren = skipChildren; - return this; - } - - public Builder availabilityId(String availabilityId) { - Utils.checkNotNull(availabilityId, "availabilityId"); - this.availabilityId = Optional.ofNullable(availabilityId); - return this; - } - - public Builder availabilityId(Optional availabilityId) { - Utils.checkNotNull(availabilityId, "availabilityId"); - this.availabilityId = availabilityId; - return this; - } - - public Builder streamingMediaId(String streamingMediaId) { - Utils.checkNotNull(streamingMediaId, "streamingMediaId"); - this.streamingMediaId = Optional.ofNullable(streamingMediaId); - return this; - } - - public Builder streamingMediaId(Optional streamingMediaId) { - Utils.checkNotNull(streamingMediaId, "streamingMediaId"); - this.streamingMediaId = streamingMediaId; - return this; - } - - public Builder playableKey(String playableKey) { - Utils.checkNotNull(playableKey, "playableKey"); - this.playableKey = Optional.ofNullable(playableKey); - return this; - } - - public Builder playableKey(Optional playableKey) { - Utils.checkNotNull(playableKey, "playableKey"); - this.playableKey = playableKey; - return this; - } - - public Metadata build() { - return new Metadata( - art, - guid, - key, - ratingKey, - studio, - tagline, - type, - thumb, - addedAt, - duration, - publicPagesURL, - slug, - userState, - title, - contentRating, - originallyAvailableAt, - year, - image, - banner, - rating, - expiresAt, - originalTitle, - audienceRating, - audienceRatingImage, - ratingImage, - imdbRatingCount, - subtype, - theme, - leafCount, - childCount, - isContinuingSeries, - skipChildren, - availabilityId, - streamingMediaId, - playableKey); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/MinSize.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/MinSize.java deleted file mode 100644 index a0816795..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/MinSize.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * MinSize - images are always scaled proportionally. A value of '1' in minSize will make the smaller native dimension the dimension resized against. - */ -public enum MinSize { - ZERO(0L), - ONE(1L); - - @JsonValue - private final long value; - - private MinSize(long value) { - this.value = value; - } - - public long value() { - return value; - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/MyPlex.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/MyPlex.java deleted file mode 100644 index aa8ff65a..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/MyPlex.java +++ /dev/null @@ -1,584 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class MyPlex { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("authToken") - private Optional authToken; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("username") - private Optional username; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("mappingState") - private Optional mappingState; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("mappingError") - private Optional mappingError; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("signInState") - private Optional signInState; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("publicAddress") - private Optional publicAddress; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("publicPort") - private Optional publicPort; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("privateAddress") - private Optional privateAddress; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("privatePort") - private Optional privatePort; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("subscriptionFeatures") - private Optional subscriptionFeatures; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("subscriptionActive") - private Optional subscriptionActive; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("subscriptionState") - private Optional subscriptionState; - - @JsonCreator - public MyPlex( - @JsonProperty("authToken") Optional authToken, - @JsonProperty("username") Optional username, - @JsonProperty("mappingState") Optional mappingState, - @JsonProperty("mappingError") Optional mappingError, - @JsonProperty("signInState") Optional signInState, - @JsonProperty("publicAddress") Optional publicAddress, - @JsonProperty("publicPort") Optional publicPort, - @JsonProperty("privateAddress") Optional privateAddress, - @JsonProperty("privatePort") Optional privatePort, - @JsonProperty("subscriptionFeatures") Optional subscriptionFeatures, - @JsonProperty("subscriptionActive") Optional subscriptionActive, - @JsonProperty("subscriptionState") Optional subscriptionState) { - Utils.checkNotNull(authToken, "authToken"); - Utils.checkNotNull(username, "username"); - Utils.checkNotNull(mappingState, "mappingState"); - Utils.checkNotNull(mappingError, "mappingError"); - Utils.checkNotNull(signInState, "signInState"); - Utils.checkNotNull(publicAddress, "publicAddress"); - Utils.checkNotNull(publicPort, "publicPort"); - Utils.checkNotNull(privateAddress, "privateAddress"); - Utils.checkNotNull(privatePort, "privatePort"); - Utils.checkNotNull(subscriptionFeatures, "subscriptionFeatures"); - Utils.checkNotNull(subscriptionActive, "subscriptionActive"); - Utils.checkNotNull(subscriptionState, "subscriptionState"); - 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; - } - - public MyPlex() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional authToken() { - return (Optional) authToken; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional username() { - return (Optional) username; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mappingState() { - return (Optional) mappingState; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mappingError() { - return (Optional) mappingError; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional signInState() { - return (Optional) signInState; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional publicAddress() { - return (Optional) publicAddress; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional publicPort() { - return (Optional) publicPort; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional privateAddress() { - return (Optional) privateAddress; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional privatePort() { - return (Optional) privatePort; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional subscriptionFeatures() { - return (Optional) subscriptionFeatures; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional subscriptionActive() { - return (Optional) subscriptionActive; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional subscriptionState() { - return (Optional) subscriptionState; - } - - public final static Builder builder() { - return new Builder(); - } - - public MyPlex withAuthToken(String authToken) { - Utils.checkNotNull(authToken, "authToken"); - this.authToken = Optional.ofNullable(authToken); - return this; - } - - public MyPlex withAuthToken(Optional authToken) { - Utils.checkNotNull(authToken, "authToken"); - this.authToken = authToken; - return this; - } - - public MyPlex withUsername(String username) { - Utils.checkNotNull(username, "username"); - this.username = Optional.ofNullable(username); - return this; - } - - public MyPlex withUsername(Optional username) { - Utils.checkNotNull(username, "username"); - this.username = username; - return this; - } - - public MyPlex withMappingState(String mappingState) { - Utils.checkNotNull(mappingState, "mappingState"); - this.mappingState = Optional.ofNullable(mappingState); - return this; - } - - public MyPlex withMappingState(Optional mappingState) { - Utils.checkNotNull(mappingState, "mappingState"); - this.mappingState = mappingState; - return this; - } - - public MyPlex withMappingError(String mappingError) { - Utils.checkNotNull(mappingError, "mappingError"); - this.mappingError = Optional.ofNullable(mappingError); - return this; - } - - public MyPlex withMappingError(Optional mappingError) { - Utils.checkNotNull(mappingError, "mappingError"); - this.mappingError = mappingError; - return this; - } - - public MyPlex withSignInState(String signInState) { - Utils.checkNotNull(signInState, "signInState"); - this.signInState = Optional.ofNullable(signInState); - return this; - } - - public MyPlex withSignInState(Optional signInState) { - Utils.checkNotNull(signInState, "signInState"); - this.signInState = signInState; - return this; - } - - public MyPlex withPublicAddress(String publicAddress) { - Utils.checkNotNull(publicAddress, "publicAddress"); - this.publicAddress = Optional.ofNullable(publicAddress); - return this; - } - - public MyPlex withPublicAddress(Optional publicAddress) { - Utils.checkNotNull(publicAddress, "publicAddress"); - this.publicAddress = publicAddress; - return this; - } - - public MyPlex withPublicPort(double publicPort) { - Utils.checkNotNull(publicPort, "publicPort"); - this.publicPort = Optional.ofNullable(publicPort); - return this; - } - - public MyPlex withPublicPort(Optional publicPort) { - Utils.checkNotNull(publicPort, "publicPort"); - this.publicPort = publicPort; - return this; - } - - public MyPlex withPrivateAddress(String privateAddress) { - Utils.checkNotNull(privateAddress, "privateAddress"); - this.privateAddress = Optional.ofNullable(privateAddress); - return this; - } - - public MyPlex withPrivateAddress(Optional privateAddress) { - Utils.checkNotNull(privateAddress, "privateAddress"); - this.privateAddress = privateAddress; - return this; - } - - public MyPlex withPrivatePort(double privatePort) { - Utils.checkNotNull(privatePort, "privatePort"); - this.privatePort = Optional.ofNullable(privatePort); - return this; - } - - public MyPlex withPrivatePort(Optional privatePort) { - Utils.checkNotNull(privatePort, "privatePort"); - this.privatePort = privatePort; - return this; - } - - public MyPlex withSubscriptionFeatures(String subscriptionFeatures) { - Utils.checkNotNull(subscriptionFeatures, "subscriptionFeatures"); - this.subscriptionFeatures = Optional.ofNullable(subscriptionFeatures); - return this; - } - - public MyPlex withSubscriptionFeatures(Optional subscriptionFeatures) { - Utils.checkNotNull(subscriptionFeatures, "subscriptionFeatures"); - this.subscriptionFeatures = subscriptionFeatures; - return this; - } - - public MyPlex withSubscriptionActive(boolean subscriptionActive) { - Utils.checkNotNull(subscriptionActive, "subscriptionActive"); - this.subscriptionActive = Optional.ofNullable(subscriptionActive); - return this; - } - - public MyPlex withSubscriptionActive(Optional subscriptionActive) { - Utils.checkNotNull(subscriptionActive, "subscriptionActive"); - this.subscriptionActive = subscriptionActive; - return this; - } - - public MyPlex withSubscriptionState(String subscriptionState) { - Utils.checkNotNull(subscriptionState, "subscriptionState"); - this.subscriptionState = Optional.ofNullable(subscriptionState); - return this; - } - - public MyPlex withSubscriptionState(Optional subscriptionState) { - Utils.checkNotNull(subscriptionState, "subscriptionState"); - this.subscriptionState = subscriptionState; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MyPlex other = (MyPlex) o; - return - java.util.Objects.deepEquals(this.authToken, other.authToken) && - java.util.Objects.deepEquals(this.username, other.username) && - java.util.Objects.deepEquals(this.mappingState, other.mappingState) && - java.util.Objects.deepEquals(this.mappingError, other.mappingError) && - java.util.Objects.deepEquals(this.signInState, other.signInState) && - java.util.Objects.deepEquals(this.publicAddress, other.publicAddress) && - java.util.Objects.deepEquals(this.publicPort, other.publicPort) && - java.util.Objects.deepEquals(this.privateAddress, other.privateAddress) && - java.util.Objects.deepEquals(this.privatePort, other.privatePort) && - java.util.Objects.deepEquals(this.subscriptionFeatures, other.subscriptionFeatures) && - java.util.Objects.deepEquals(this.subscriptionActive, other.subscriptionActive) && - java.util.Objects.deepEquals(this.subscriptionState, other.subscriptionState); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - authToken, - username, - mappingState, - mappingError, - signInState, - publicAddress, - publicPort, - privateAddress, - privatePort, - subscriptionFeatures, - subscriptionActive, - subscriptionState); - } - - @Override - public String toString() { - return Utils.toString(MyPlex.class, - "authToken", authToken, - "username", username, - "mappingState", mappingState, - "mappingError", mappingError, - "signInState", signInState, - "publicAddress", publicAddress, - "publicPort", publicPort, - "privateAddress", privateAddress, - "privatePort", privatePort, - "subscriptionFeatures", subscriptionFeatures, - "subscriptionActive", subscriptionActive, - "subscriptionState", subscriptionState); - } - - public final static class Builder { - - private Optional authToken = Optional.empty(); - - private Optional username = Optional.empty(); - - private Optional mappingState = Optional.empty(); - - private Optional mappingError = Optional.empty(); - - private Optional signInState = Optional.empty(); - - private Optional publicAddress = Optional.empty(); - - private Optional publicPort = Optional.empty(); - - private Optional privateAddress = Optional.empty(); - - private Optional privatePort = Optional.empty(); - - private Optional subscriptionFeatures = Optional.empty(); - - private Optional subscriptionActive = Optional.empty(); - - private Optional subscriptionState = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder authToken(String authToken) { - Utils.checkNotNull(authToken, "authToken"); - this.authToken = Optional.ofNullable(authToken); - return this; - } - - public Builder authToken(Optional authToken) { - Utils.checkNotNull(authToken, "authToken"); - this.authToken = authToken; - return this; - } - - public Builder username(String username) { - Utils.checkNotNull(username, "username"); - this.username = Optional.ofNullable(username); - return this; - } - - public Builder username(Optional username) { - Utils.checkNotNull(username, "username"); - this.username = username; - return this; - } - - public Builder mappingState(String mappingState) { - Utils.checkNotNull(mappingState, "mappingState"); - this.mappingState = Optional.ofNullable(mappingState); - return this; - } - - public Builder mappingState(Optional mappingState) { - Utils.checkNotNull(mappingState, "mappingState"); - this.mappingState = mappingState; - return this; - } - - public Builder mappingError(String mappingError) { - Utils.checkNotNull(mappingError, "mappingError"); - this.mappingError = Optional.ofNullable(mappingError); - return this; - } - - public Builder mappingError(Optional mappingError) { - Utils.checkNotNull(mappingError, "mappingError"); - this.mappingError = mappingError; - return this; - } - - public Builder signInState(String signInState) { - Utils.checkNotNull(signInState, "signInState"); - this.signInState = Optional.ofNullable(signInState); - return this; - } - - public Builder signInState(Optional signInState) { - Utils.checkNotNull(signInState, "signInState"); - this.signInState = signInState; - return this; - } - - public Builder publicAddress(String publicAddress) { - Utils.checkNotNull(publicAddress, "publicAddress"); - this.publicAddress = Optional.ofNullable(publicAddress); - return this; - } - - public Builder publicAddress(Optional publicAddress) { - Utils.checkNotNull(publicAddress, "publicAddress"); - this.publicAddress = publicAddress; - return this; - } - - public Builder publicPort(double publicPort) { - Utils.checkNotNull(publicPort, "publicPort"); - this.publicPort = Optional.ofNullable(publicPort); - return this; - } - - public Builder publicPort(Optional publicPort) { - Utils.checkNotNull(publicPort, "publicPort"); - this.publicPort = publicPort; - return this; - } - - public Builder privateAddress(String privateAddress) { - Utils.checkNotNull(privateAddress, "privateAddress"); - this.privateAddress = Optional.ofNullable(privateAddress); - return this; - } - - public Builder privateAddress(Optional privateAddress) { - Utils.checkNotNull(privateAddress, "privateAddress"); - this.privateAddress = privateAddress; - return this; - } - - public Builder privatePort(double privatePort) { - Utils.checkNotNull(privatePort, "privatePort"); - this.privatePort = Optional.ofNullable(privatePort); - return this; - } - - public Builder privatePort(Optional privatePort) { - Utils.checkNotNull(privatePort, "privatePort"); - this.privatePort = privatePort; - return this; - } - - public Builder subscriptionFeatures(String subscriptionFeatures) { - Utils.checkNotNull(subscriptionFeatures, "subscriptionFeatures"); - this.subscriptionFeatures = Optional.ofNullable(subscriptionFeatures); - return this; - } - - public Builder subscriptionFeatures(Optional subscriptionFeatures) { - Utils.checkNotNull(subscriptionFeatures, "subscriptionFeatures"); - this.subscriptionFeatures = subscriptionFeatures; - return this; - } - - public Builder subscriptionActive(boolean subscriptionActive) { - Utils.checkNotNull(subscriptionActive, "subscriptionActive"); - this.subscriptionActive = Optional.ofNullable(subscriptionActive); - return this; - } - - public Builder subscriptionActive(Optional subscriptionActive) { - Utils.checkNotNull(subscriptionActive, "subscriptionActive"); - this.subscriptionActive = subscriptionActive; - return this; - } - - public Builder subscriptionState(String subscriptionState) { - Utils.checkNotNull(subscriptionState, "subscriptionState"); - this.subscriptionState = Optional.ofNullable(subscriptionState); - return this; - } - - public Builder subscriptionState(Optional subscriptionState) { - Utils.checkNotNull(subscriptionState, "subscriptionState"); - this.subscriptionState = subscriptionState; - return this; - } - - public MyPlex build() { - return new MyPlex( - authToken, - username, - mappingState, - mappingError, - signInState, - publicAddress, - publicPort, - privateAddress, - privatePort, - subscriptionFeatures, - subscriptionActive, - subscriptionState); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/OnlyTransient.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/OnlyTransient.java deleted file mode 100644 index b4d4cddf..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/OnlyTransient.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * OnlyTransient - 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). - */ -public enum OnlyTransient { - ZERO(0L), - ONE(1L); - - @JsonValue - private final long value; - - private OnlyTransient(long value) { - this.value = value; - } - - public long value() { - return value; - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Operator.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Operator.java deleted file mode 100644 index cdb5bded..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Operator.java +++ /dev/null @@ -1,154 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class Operator { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title") - private Optional title; - - @JsonCreator - public Operator( - @JsonProperty("key") Optional key, - @JsonProperty("title") Optional title) { - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(title, "title"); - this.key = key; - this.title = title; - } - - public Operator() { - this(Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title() { - return (Optional) title; - } - - public final static Builder builder() { - return new Builder(); - } - - public Operator withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Operator withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Operator withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Operator withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Operator other = (Operator) o; - return - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.title, other.title); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - key, - title); - } - - @Override - public String toString() { - return Utils.toString(Operator.class, - "key", key, - "title", title); - } - - public final static class Builder { - - private Optional key = Optional.empty(); - - private Optional title = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Operator build() { - return new Operator( - key, - title); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Part.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Part.java deleted file mode 100644 index f645d1e9..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Part.java +++ /dev/null @@ -1,498 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class Part { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("duration") - private Optional duration; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("file") - private Optional file; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("container") - private Optional container; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("has64bitOffsets") - private Optional has64bitOffsets; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("hasThumbnail") - private Optional hasThumbnail; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("optimizedForStreaming") - private Optional optimizedForStreaming; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("videoProfile") - private Optional videoProfile; - - @JsonCreator - public Part( - @JsonProperty("id") Optional id, - @JsonProperty("key") Optional key, - @JsonProperty("duration") Optional duration, - @JsonProperty("file") Optional file, - @JsonProperty("size") Optional size, - @JsonProperty("container") Optional container, - @JsonProperty("has64bitOffsets") Optional has64bitOffsets, - @JsonProperty("hasThumbnail") Optional hasThumbnail, - @JsonProperty("optimizedForStreaming") Optional optimizedForStreaming, - @JsonProperty("videoProfile") Optional videoProfile) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(duration, "duration"); - Utils.checkNotNull(file, "file"); - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(container, "container"); - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - Utils.checkNotNull(hasThumbnail, "hasThumbnail"); - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - Utils.checkNotNull(videoProfile, "videoProfile"); - 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; - } - - public Part() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional duration() { - return (Optional) duration; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional file() { - return (Optional) file; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional container() { - return (Optional) container; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional has64bitOffsets() { - return (Optional) has64bitOffsets; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional hasThumbnail() { - return (Optional) hasThumbnail; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional optimizedForStreaming() { - return (Optional) optimizedForStreaming; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional videoProfile() { - return (Optional) videoProfile; - } - - public final static Builder builder() { - return new Builder(); - } - - public Part withId(double id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Part withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Part withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Part withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Part withDuration(double duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public Part withDuration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public Part withFile(String file) { - Utils.checkNotNull(file, "file"); - this.file = Optional.ofNullable(file); - return this; - } - - public Part withFile(Optional file) { - Utils.checkNotNull(file, "file"); - this.file = file; - return this; - } - - public Part withSize(double size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Part withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Part withContainer(String container) { - Utils.checkNotNull(container, "container"); - this.container = Optional.ofNullable(container); - return this; - } - - public Part withContainer(Optional container) { - Utils.checkNotNull(container, "container"); - this.container = container; - return this; - } - - public Part withHas64bitOffsets(boolean has64bitOffsets) { - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - this.has64bitOffsets = Optional.ofNullable(has64bitOffsets); - return this; - } - - public Part withHas64bitOffsets(Optional has64bitOffsets) { - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - this.has64bitOffsets = has64bitOffsets; - return this; - } - - public Part withHasThumbnail(double hasThumbnail) { - Utils.checkNotNull(hasThumbnail, "hasThumbnail"); - this.hasThumbnail = Optional.ofNullable(hasThumbnail); - return this; - } - - public Part withHasThumbnail(Optional hasThumbnail) { - Utils.checkNotNull(hasThumbnail, "hasThumbnail"); - this.hasThumbnail = hasThumbnail; - return this; - } - - public Part withOptimizedForStreaming(boolean optimizedForStreaming) { - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - this.optimizedForStreaming = Optional.ofNullable(optimizedForStreaming); - return this; - } - - public Part withOptimizedForStreaming(Optional optimizedForStreaming) { - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - this.optimizedForStreaming = optimizedForStreaming; - return this; - } - - public Part withVideoProfile(String videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = Optional.ofNullable(videoProfile); - return this; - } - - public Part withVideoProfile(Optional videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = videoProfile; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Part other = (Part) o; - return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.duration, other.duration) && - java.util.Objects.deepEquals(this.file, other.file) && - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.container, other.container) && - java.util.Objects.deepEquals(this.has64bitOffsets, other.has64bitOffsets) && - java.util.Objects.deepEquals(this.hasThumbnail, other.hasThumbnail) && - java.util.Objects.deepEquals(this.optimizedForStreaming, other.optimizedForStreaming) && - java.util.Objects.deepEquals(this.videoProfile, other.videoProfile); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id, - key, - duration, - file, - size, - container, - has64bitOffsets, - hasThumbnail, - optimizedForStreaming, - videoProfile); - } - - @Override - public String toString() { - return Utils.toString(Part.class, - "id", id, - "key", key, - "duration", duration, - "file", file, - "size", size, - "container", container, - "has64bitOffsets", has64bitOffsets, - "hasThumbnail", hasThumbnail, - "optimizedForStreaming", optimizedForStreaming, - "videoProfile", videoProfile); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional duration = Optional.empty(); - - private Optional file = Optional.empty(); - - private Optional size = Optional.empty(); - - private Optional container = Optional.empty(); - - private Optional has64bitOffsets = Optional.empty(); - - private Optional hasThumbnail = Optional.empty(); - - private Optional optimizedForStreaming = Optional.empty(); - - private Optional videoProfile = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(double id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder duration(double duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public Builder duration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public Builder file(String file) { - Utils.checkNotNull(file, "file"); - this.file = Optional.ofNullable(file); - return this; - } - - public Builder file(Optional file) { - Utils.checkNotNull(file, "file"); - this.file = file; - return this; - } - - public Builder size(double size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder container(String container) { - Utils.checkNotNull(container, "container"); - this.container = Optional.ofNullable(container); - return this; - } - - public Builder container(Optional container) { - Utils.checkNotNull(container, "container"); - this.container = container; - return this; - } - - public Builder has64bitOffsets(boolean has64bitOffsets) { - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - this.has64bitOffsets = Optional.ofNullable(has64bitOffsets); - return this; - } - - public Builder has64bitOffsets(Optional has64bitOffsets) { - Utils.checkNotNull(has64bitOffsets, "has64bitOffsets"); - this.has64bitOffsets = has64bitOffsets; - return this; - } - - public Builder hasThumbnail(double hasThumbnail) { - Utils.checkNotNull(hasThumbnail, "hasThumbnail"); - this.hasThumbnail = Optional.ofNullable(hasThumbnail); - return this; - } - - public Builder hasThumbnail(Optional hasThumbnail) { - Utils.checkNotNull(hasThumbnail, "hasThumbnail"); - this.hasThumbnail = hasThumbnail; - return this; - } - - public Builder optimizedForStreaming(boolean optimizedForStreaming) { - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - this.optimizedForStreaming = Optional.ofNullable(optimizedForStreaming); - return this; - } - - public Builder optimizedForStreaming(Optional optimizedForStreaming) { - Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming"); - this.optimizedForStreaming = optimizedForStreaming; - return this; - } - - public Builder videoProfile(String videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = Optional.ofNullable(videoProfile); - return this; - } - - public Builder videoProfile(Optional videoProfile) { - Utils.checkNotNull(videoProfile, "videoProfile"); - this.videoProfile = videoProfile; - return this; - } - - public Part build() { - return new Part( - id, - key, - duration, - file, - size, - container, - has64bitOffsets, - hasThumbnail, - optimizedForStreaming, - videoProfile); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/PathParamFilter.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/PathParamFilter.java deleted file mode 100644 index 8dced670..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/PathParamFilter.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * PathParamFilter - Filter - */ -public enum PathParamFilter { - ALL("all"), - AVAILABLE("available"), - RELEASED("released"); - - @JsonValue - private final String value; - - private PathParamFilter(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/PathParamTaskName.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/PathParamTaskName.java deleted file mode 100644 index 1934aed9..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/PathParamTaskName.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * PathParamTaskName - The name of the task to be started. - */ -public enum PathParamTaskName { - BACKUP_DATABASE("BackupDatabase"), - BUILD_GRACENOTE_COLLECTIONS("BuildGracenoteCollections"), - CHECK_FOR_UPDATES("CheckForUpdates"), - CLEAN_OLD_BUNDLES("CleanOldBundles"), - CLEAN_OLD_CACHE_FILES("CleanOldCacheFiles"), - DEEP_MEDIA_ANALYSIS("DeepMediaAnalysis"), - GENERATE_AUTO_TAGS("GenerateAutoTags"), - GENERATE_CHAPTER_THUMBS("GenerateChapterThumbs"), - GENERATE_MEDIA_INDEX_FILES("GenerateMediaIndexFiles"), - OPTIMIZE_DATABASE("OptimizeDatabase"), - REFRESH_LIBRARIES("RefreshLibraries"), - REFRESH_LOCAL_MEDIA("RefreshLocalMedia"), - REFRESH_PERIODIC_METADATA("RefreshPeriodicMetadata"), - UPGRADE_MEDIA_ANALYSIS("UpgradeMediaAnalysis"); - - @JsonValue - private final String value; - - private PathParamTaskName(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformSearchRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformSearchRequest.java deleted file mode 100644 index d7332bdf..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformSearchRequest.java +++ /dev/null @@ -1,238 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class PerformSearchRequest { - - /** - * The query term - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=query") - private String query; - - /** - * This gives context to the search, and can result in re-ordering of search result hubs - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=sectionId") - private Optional sectionId; - - /** - * The number of items to return per hub - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=limit") - private Optional limit; - - @JsonCreator - public PerformSearchRequest( - String query, - Optional sectionId, - Optional limit) { - Utils.checkNotNull(query, "query"); - Utils.checkNotNull(sectionId, "sectionId"); - Utils.checkNotNull(limit, "limit"); - this.query = query; - this.sectionId = sectionId; - this.limit = limit; - } - - public PerformSearchRequest( - String query) { - this(query, Optional.empty(), Optional.empty()); - } - - /** - * The query term - */ - @JsonIgnore - public String query() { - return query; - } - - /** - * This gives context to the search, and can result in re-ordering of search result hubs - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional sectionId() { - return (Optional) sectionId; - } - - /** - * The number of items to return per hub - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional limit() { - return (Optional) limit; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * The query term - */ - public PerformSearchRequest withQuery(String query) { - Utils.checkNotNull(query, "query"); - this.query = query; - return this; - } - - /** - * This gives context to the search, and can result in re-ordering of search result hubs - */ - public PerformSearchRequest withSectionId(double sectionId) { - Utils.checkNotNull(sectionId, "sectionId"); - this.sectionId = Optional.ofNullable(sectionId); - return this; - } - - /** - * This gives context to the search, and can result in re-ordering of search result hubs - */ - public PerformSearchRequest withSectionId(Optional sectionId) { - Utils.checkNotNull(sectionId, "sectionId"); - this.sectionId = sectionId; - return this; - } - - /** - * The number of items to return per hub - */ - public PerformSearchRequest withLimit(double limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = Optional.ofNullable(limit); - return this; - } - - /** - * The number of items to return per hub - */ - public PerformSearchRequest withLimit(Optional limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = limit; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PerformSearchRequest other = (PerformSearchRequest) o; - return - java.util.Objects.deepEquals(this.query, other.query) && - java.util.Objects.deepEquals(this.sectionId, other.sectionId) && - java.util.Objects.deepEquals(this.limit, other.limit); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - query, - sectionId, - limit); - } - - @Override - public String toString() { - return Utils.toString(PerformSearchRequest.class, - "query", query, - "sectionId", sectionId, - "limit", limit); - } - - public final static class Builder { - - private String query; - - private Optional sectionId = Optional.empty(); - - private Optional limit; - - private Builder() { - // force use of static builder() method - } - - /** - * The query term - */ - public Builder query(String query) { - Utils.checkNotNull(query, "query"); - this.query = query; - return this; - } - - /** - * This gives context to the search, and can result in re-ordering of search result hubs - */ - public Builder sectionId(double sectionId) { - Utils.checkNotNull(sectionId, "sectionId"); - this.sectionId = Optional.ofNullable(sectionId); - return this; - } - - /** - * This gives context to the search, and can result in re-ordering of search result hubs - */ - public Builder sectionId(Optional sectionId) { - Utils.checkNotNull(sectionId, "sectionId"); - this.sectionId = sectionId; - return this; - } - - /** - * The number of items to return per hub - */ - public Builder limit(double limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = Optional.ofNullable(limit); - return this; - } - - /** - * The number of items to return per hub - */ - public Builder limit(Optional limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = limit; - return this; - } - - public PerformSearchRequest build() { - if (limit == null) { - limit = _SINGLETON_VALUE_Limit.value(); - } - return new PerformSearchRequest( - query, - sectionId, - limit); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Limit = - new LazySingletonValue<>( - "limit", - "3", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformSearchRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformSearchRequestBuilder.java deleted file mode 100644 index 451edb97..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformSearchRequestBuilder.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class PerformSearchRequestBuilder { - - private String query; - private Optional sectionId = Optional.empty(); - private Optional limit = Utils.readDefaultOrConstValue( - "limit", - "3", - new TypeReference>() {}); - private final SDKMethodInterfaces.MethodCallPerformSearch sdk; - - public PerformSearchRequestBuilder(SDKMethodInterfaces.MethodCallPerformSearch sdk) { - this.sdk = sdk; - } - - public PerformSearchRequestBuilder query(String query) { - Utils.checkNotNull(query, "query"); - this.query = query; - return this; - } - - public PerformSearchRequestBuilder sectionId(double sectionId) { - Utils.checkNotNull(sectionId, "sectionId"); - this.sectionId = Optional.of(sectionId); - return this; - } - - public PerformSearchRequestBuilder sectionId(Optional sectionId) { - Utils.checkNotNull(sectionId, "sectionId"); - this.sectionId = sectionId; - return this; - } - - public PerformSearchRequestBuilder limit(double limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = Optional.of(limit); - return this; - } - - public PerformSearchRequestBuilder limit(Optional limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = limit; - return this; - } - - public PerformSearchResponse call() throws Exception { - if (limit == null) { - limit = _SINGLETON_VALUE_Limit.value(); - } - - return sdk.performSearch( - query, - sectionId, - limit); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Limit = - new LazySingletonValue<>( - "limit", - "3", - new TypeReference>() {}); -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformSearchResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformSearchResponse.java deleted file mode 100644 index 69e1b79b..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformSearchResponse.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class PerformSearchResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - @JsonCreator - public PerformSearchResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PerformSearchResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PerformSearchResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PerformSearchResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PerformSearchResponse other = (PerformSearchResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(PerformSearchResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public PerformSearchResponse build() { - return new PerformSearchResponse( - contentType, - statusCode, - rawResponse); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformVoiceSearchRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformVoiceSearchRequest.java deleted file mode 100644 index 5288a5e5..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformVoiceSearchRequest.java +++ /dev/null @@ -1,238 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class PerformVoiceSearchRequest { - - /** - * The query term - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=query") - private String query; - - /** - * This gives context to the search, and can result in re-ordering of search result hubs - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=sectionId") - private Optional sectionId; - - /** - * The number of items to return per hub - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=limit") - private Optional limit; - - @JsonCreator - public PerformVoiceSearchRequest( - String query, - Optional sectionId, - Optional limit) { - Utils.checkNotNull(query, "query"); - Utils.checkNotNull(sectionId, "sectionId"); - Utils.checkNotNull(limit, "limit"); - this.query = query; - this.sectionId = sectionId; - this.limit = limit; - } - - public PerformVoiceSearchRequest( - String query) { - this(query, Optional.empty(), Optional.empty()); - } - - /** - * The query term - */ - @JsonIgnore - public String query() { - return query; - } - - /** - * This gives context to the search, and can result in re-ordering of search result hubs - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional sectionId() { - return (Optional) sectionId; - } - - /** - * The number of items to return per hub - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional limit() { - return (Optional) limit; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * The query term - */ - public PerformVoiceSearchRequest withQuery(String query) { - Utils.checkNotNull(query, "query"); - this.query = query; - return this; - } - - /** - * This gives context to the search, and can result in re-ordering of search result hubs - */ - public PerformVoiceSearchRequest withSectionId(double sectionId) { - Utils.checkNotNull(sectionId, "sectionId"); - this.sectionId = Optional.ofNullable(sectionId); - return this; - } - - /** - * This gives context to the search, and can result in re-ordering of search result hubs - */ - public PerformVoiceSearchRequest withSectionId(Optional sectionId) { - Utils.checkNotNull(sectionId, "sectionId"); - this.sectionId = sectionId; - return this; - } - - /** - * The number of items to return per hub - */ - public PerformVoiceSearchRequest withLimit(double limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = Optional.ofNullable(limit); - return this; - } - - /** - * The number of items to return per hub - */ - public PerformVoiceSearchRequest withLimit(Optional limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = limit; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PerformVoiceSearchRequest other = (PerformVoiceSearchRequest) o; - return - java.util.Objects.deepEquals(this.query, other.query) && - java.util.Objects.deepEquals(this.sectionId, other.sectionId) && - java.util.Objects.deepEquals(this.limit, other.limit); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - query, - sectionId, - limit); - } - - @Override - public String toString() { - return Utils.toString(PerformVoiceSearchRequest.class, - "query", query, - "sectionId", sectionId, - "limit", limit); - } - - public final static class Builder { - - private String query; - - private Optional sectionId = Optional.empty(); - - private Optional limit; - - private Builder() { - // force use of static builder() method - } - - /** - * The query term - */ - public Builder query(String query) { - Utils.checkNotNull(query, "query"); - this.query = query; - return this; - } - - /** - * This gives context to the search, and can result in re-ordering of search result hubs - */ - public Builder sectionId(double sectionId) { - Utils.checkNotNull(sectionId, "sectionId"); - this.sectionId = Optional.ofNullable(sectionId); - return this; - } - - /** - * This gives context to the search, and can result in re-ordering of search result hubs - */ - public Builder sectionId(Optional sectionId) { - Utils.checkNotNull(sectionId, "sectionId"); - this.sectionId = sectionId; - return this; - } - - /** - * The number of items to return per hub - */ - public Builder limit(double limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = Optional.ofNullable(limit); - return this; - } - - /** - * The number of items to return per hub - */ - public Builder limit(Optional limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = limit; - return this; - } - - public PerformVoiceSearchRequest build() { - if (limit == null) { - limit = _SINGLETON_VALUE_Limit.value(); - } - return new PerformVoiceSearchRequest( - query, - sectionId, - limit); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Limit = - new LazySingletonValue<>( - "limit", - "3", - new TypeReference>() {}); - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformVoiceSearchRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformVoiceSearchRequestBuilder.java deleted file mode 100644 index 2d77fb09..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformVoiceSearchRequestBuilder.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class PerformVoiceSearchRequestBuilder { - - private String query; - private Optional sectionId = Optional.empty(); - private Optional limit = Utils.readDefaultOrConstValue( - "limit", - "3", - new TypeReference>() {}); - private final SDKMethodInterfaces.MethodCallPerformVoiceSearch sdk; - - public PerformVoiceSearchRequestBuilder(SDKMethodInterfaces.MethodCallPerformVoiceSearch sdk) { - this.sdk = sdk; - } - - public PerformVoiceSearchRequestBuilder query(String query) { - Utils.checkNotNull(query, "query"); - this.query = query; - return this; - } - - public PerformVoiceSearchRequestBuilder sectionId(double sectionId) { - Utils.checkNotNull(sectionId, "sectionId"); - this.sectionId = Optional.of(sectionId); - return this; - } - - public PerformVoiceSearchRequestBuilder sectionId(Optional sectionId) { - Utils.checkNotNull(sectionId, "sectionId"); - this.sectionId = sectionId; - return this; - } - - public PerformVoiceSearchRequestBuilder limit(double limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = Optional.of(limit); - return this; - } - - public PerformVoiceSearchRequestBuilder limit(Optional limit) { - Utils.checkNotNull(limit, "limit"); - this.limit = limit; - return this; - } - - public PerformVoiceSearchResponse call() throws Exception { - if (limit == null) { - limit = _SINGLETON_VALUE_Limit.value(); - } - - return sdk.performVoiceSearch( - query, - sectionId, - limit); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_Limit = - new LazySingletonValue<>( - "limit", - "3", - new TypeReference>() {}); -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformVoiceSearchResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformVoiceSearchResponse.java deleted file mode 100644 index a66272b4..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/PerformVoiceSearchResponse.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class PerformVoiceSearchResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - @JsonCreator - public PerformVoiceSearchResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public PerformVoiceSearchResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PerformVoiceSearchResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PerformVoiceSearchResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PerformVoiceSearchResponse other = (PerformVoiceSearchResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(PerformVoiceSearchResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public PerformVoiceSearchResponse build() { - return new PerformVoiceSearchResponse( - contentType, - statusCode, - rawResponse); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Player.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Player.java deleted file mode 100644 index 3017b2fe..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Player.java +++ /dev/null @@ -1,713 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class Player { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("address") - private Optional address; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("machineIdentifier") - private Optional machineIdentifier; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("model") - private Optional model; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("platform") - private Optional platform; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("platformVersion") - private Optional platformVersion; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("product") - private Optional product; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("profile") - private Optional profile; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("remotePublicAddress") - private Optional remotePublicAddress; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("state") - private Optional state; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title") - private Optional title; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("version") - private Optional version; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("local") - private Optional local; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("relayed") - private Optional relayed; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("secure") - private Optional secure; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("userID") - private Optional userID; - - @JsonCreator - public Player( - @JsonProperty("address") Optional address, - @JsonProperty("machineIdentifier") Optional machineIdentifier, - @JsonProperty("model") Optional model, - @JsonProperty("platform") Optional platform, - @JsonProperty("platformVersion") Optional platformVersion, - @JsonProperty("product") Optional product, - @JsonProperty("profile") Optional profile, - @JsonProperty("remotePublicAddress") Optional remotePublicAddress, - @JsonProperty("state") Optional state, - @JsonProperty("title") Optional title, - @JsonProperty("version") Optional version, - @JsonProperty("local") Optional local, - @JsonProperty("relayed") Optional relayed, - @JsonProperty("secure") Optional secure, - @JsonProperty("userID") Optional userID) { - Utils.checkNotNull(address, "address"); - Utils.checkNotNull(machineIdentifier, "machineIdentifier"); - Utils.checkNotNull(model, "model"); - Utils.checkNotNull(platform, "platform"); - Utils.checkNotNull(platformVersion, "platformVersion"); - Utils.checkNotNull(product, "product"); - Utils.checkNotNull(profile, "profile"); - Utils.checkNotNull(remotePublicAddress, "remotePublicAddress"); - Utils.checkNotNull(state, "state"); - Utils.checkNotNull(title, "title"); - Utils.checkNotNull(version, "version"); - Utils.checkNotNull(local, "local"); - Utils.checkNotNull(relayed, "relayed"); - Utils.checkNotNull(secure, "secure"); - Utils.checkNotNull(userID, "userID"); - 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; - } - - public Player() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional address() { - return (Optional) address; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional machineIdentifier() { - return (Optional) machineIdentifier; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional model() { - return (Optional) model; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional platform() { - return (Optional) platform; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional platformVersion() { - return (Optional) platformVersion; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional product() { - return (Optional) product; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional profile() { - return (Optional) profile; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional remotePublicAddress() { - return (Optional) remotePublicAddress; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional state() { - return (Optional) state; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title() { - return (Optional) title; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional version() { - return (Optional) version; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional local() { - return (Optional) local; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional relayed() { - return (Optional) relayed; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional secure() { - return (Optional) secure; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional userID() { - return (Optional) userID; - } - - public final static Builder builder() { - return new Builder(); - } - - public Player withAddress(String address) { - Utils.checkNotNull(address, "address"); - this.address = Optional.ofNullable(address); - return this; - } - - public Player withAddress(Optional address) { - Utils.checkNotNull(address, "address"); - this.address = address; - return this; - } - - public Player withMachineIdentifier(String machineIdentifier) { - Utils.checkNotNull(machineIdentifier, "machineIdentifier"); - this.machineIdentifier = Optional.ofNullable(machineIdentifier); - return this; - } - - public Player withMachineIdentifier(Optional machineIdentifier) { - Utils.checkNotNull(machineIdentifier, "machineIdentifier"); - this.machineIdentifier = machineIdentifier; - return this; - } - - public Player withModel(String model) { - Utils.checkNotNull(model, "model"); - this.model = Optional.ofNullable(model); - return this; - } - - public Player withModel(Optional model) { - Utils.checkNotNull(model, "model"); - this.model = model; - return this; - } - - public Player withPlatform(String platform) { - Utils.checkNotNull(platform, "platform"); - this.platform = Optional.ofNullable(platform); - return this; - } - - public Player withPlatform(Optional platform) { - Utils.checkNotNull(platform, "platform"); - this.platform = platform; - return this; - } - - public Player withPlatformVersion(String platformVersion) { - Utils.checkNotNull(platformVersion, "platformVersion"); - this.platformVersion = Optional.ofNullable(platformVersion); - return this; - } - - public Player withPlatformVersion(Optional platformVersion) { - Utils.checkNotNull(platformVersion, "platformVersion"); - this.platformVersion = platformVersion; - return this; - } - - public Player withProduct(String product) { - Utils.checkNotNull(product, "product"); - this.product = Optional.ofNullable(product); - return this; - } - - public Player withProduct(Optional product) { - Utils.checkNotNull(product, "product"); - this.product = product; - return this; - } - - public Player withProfile(String profile) { - Utils.checkNotNull(profile, "profile"); - this.profile = Optional.ofNullable(profile); - return this; - } - - public Player withProfile(Optional profile) { - Utils.checkNotNull(profile, "profile"); - this.profile = profile; - return this; - } - - public Player withRemotePublicAddress(String remotePublicAddress) { - Utils.checkNotNull(remotePublicAddress, "remotePublicAddress"); - this.remotePublicAddress = Optional.ofNullable(remotePublicAddress); - return this; - } - - public Player withRemotePublicAddress(Optional remotePublicAddress) { - Utils.checkNotNull(remotePublicAddress, "remotePublicAddress"); - this.remotePublicAddress = remotePublicAddress; - return this; - } - - public Player withState(String state) { - Utils.checkNotNull(state, "state"); - this.state = Optional.ofNullable(state); - return this; - } - - public Player withState(Optional state) { - Utils.checkNotNull(state, "state"); - this.state = state; - return this; - } - - public Player withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Player withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Player withVersion(String version) { - Utils.checkNotNull(version, "version"); - this.version = Optional.ofNullable(version); - return this; - } - - public Player withVersion(Optional version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - public Player withLocal(boolean local) { - Utils.checkNotNull(local, "local"); - this.local = Optional.ofNullable(local); - return this; - } - - public Player withLocal(Optional local) { - Utils.checkNotNull(local, "local"); - this.local = local; - return this; - } - - public Player withRelayed(boolean relayed) { - Utils.checkNotNull(relayed, "relayed"); - this.relayed = Optional.ofNullable(relayed); - return this; - } - - public Player withRelayed(Optional relayed) { - Utils.checkNotNull(relayed, "relayed"); - this.relayed = relayed; - return this; - } - - public Player withSecure(boolean secure) { - Utils.checkNotNull(secure, "secure"); - this.secure = Optional.ofNullable(secure); - return this; - } - - public Player withSecure(Optional secure) { - Utils.checkNotNull(secure, "secure"); - this.secure = secure; - return this; - } - - public Player withUserID(int userID) { - Utils.checkNotNull(userID, "userID"); - this.userID = Optional.ofNullable(userID); - return this; - } - - public Player withUserID(Optional userID) { - Utils.checkNotNull(userID, "userID"); - this.userID = userID; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Player other = (Player) o; - return - java.util.Objects.deepEquals(this.address, other.address) && - java.util.Objects.deepEquals(this.machineIdentifier, other.machineIdentifier) && - java.util.Objects.deepEquals(this.model, other.model) && - java.util.Objects.deepEquals(this.platform, other.platform) && - java.util.Objects.deepEquals(this.platformVersion, other.platformVersion) && - java.util.Objects.deepEquals(this.product, other.product) && - java.util.Objects.deepEquals(this.profile, other.profile) && - java.util.Objects.deepEquals(this.remotePublicAddress, other.remotePublicAddress) && - java.util.Objects.deepEquals(this.state, other.state) && - java.util.Objects.deepEquals(this.title, other.title) && - java.util.Objects.deepEquals(this.version, other.version) && - java.util.Objects.deepEquals(this.local, other.local) && - java.util.Objects.deepEquals(this.relayed, other.relayed) && - java.util.Objects.deepEquals(this.secure, other.secure) && - java.util.Objects.deepEquals(this.userID, other.userID); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - address, - machineIdentifier, - model, - platform, - platformVersion, - product, - profile, - remotePublicAddress, - state, - title, - version, - local, - relayed, - secure, - userID); - } - - @Override - public String toString() { - return Utils.toString(Player.class, - "address", address, - "machineIdentifier", machineIdentifier, - "model", model, - "platform", platform, - "platformVersion", platformVersion, - "product", product, - "profile", profile, - "remotePublicAddress", remotePublicAddress, - "state", state, - "title", title, - "version", version, - "local", local, - "relayed", relayed, - "secure", secure, - "userID", userID); - } - - public final static class Builder { - - private Optional address = Optional.empty(); - - private Optional machineIdentifier = Optional.empty(); - - private Optional model = Optional.empty(); - - private Optional platform = Optional.empty(); - - private Optional platformVersion = Optional.empty(); - - private Optional product = Optional.empty(); - - private Optional profile = Optional.empty(); - - private Optional remotePublicAddress = Optional.empty(); - - private Optional state = Optional.empty(); - - private Optional title = Optional.empty(); - - private Optional version = Optional.empty(); - - private Optional local = Optional.empty(); - - private Optional relayed = Optional.empty(); - - private Optional secure = Optional.empty(); - - private Optional userID = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder address(String address) { - Utils.checkNotNull(address, "address"); - this.address = Optional.ofNullable(address); - return this; - } - - public Builder address(Optional address) { - Utils.checkNotNull(address, "address"); - this.address = address; - return this; - } - - public Builder machineIdentifier(String machineIdentifier) { - Utils.checkNotNull(machineIdentifier, "machineIdentifier"); - this.machineIdentifier = Optional.ofNullable(machineIdentifier); - return this; - } - - public Builder machineIdentifier(Optional machineIdentifier) { - Utils.checkNotNull(machineIdentifier, "machineIdentifier"); - this.machineIdentifier = machineIdentifier; - return this; - } - - public Builder model(String model) { - Utils.checkNotNull(model, "model"); - this.model = Optional.ofNullable(model); - return this; - } - - public Builder model(Optional model) { - Utils.checkNotNull(model, "model"); - this.model = model; - return this; - } - - public Builder platform(String platform) { - Utils.checkNotNull(platform, "platform"); - this.platform = Optional.ofNullable(platform); - return this; - } - - public Builder platform(Optional platform) { - Utils.checkNotNull(platform, "platform"); - this.platform = platform; - return this; - } - - public Builder platformVersion(String platformVersion) { - Utils.checkNotNull(platformVersion, "platformVersion"); - this.platformVersion = Optional.ofNullable(platformVersion); - return this; - } - - public Builder platformVersion(Optional platformVersion) { - Utils.checkNotNull(platformVersion, "platformVersion"); - this.platformVersion = platformVersion; - return this; - } - - public Builder product(String product) { - Utils.checkNotNull(product, "product"); - this.product = Optional.ofNullable(product); - return this; - } - - public Builder product(Optional product) { - Utils.checkNotNull(product, "product"); - this.product = product; - return this; - } - - public Builder profile(String profile) { - Utils.checkNotNull(profile, "profile"); - this.profile = Optional.ofNullable(profile); - return this; - } - - public Builder profile(Optional profile) { - Utils.checkNotNull(profile, "profile"); - this.profile = profile; - return this; - } - - public Builder remotePublicAddress(String remotePublicAddress) { - Utils.checkNotNull(remotePublicAddress, "remotePublicAddress"); - this.remotePublicAddress = Optional.ofNullable(remotePublicAddress); - return this; - } - - public Builder remotePublicAddress(Optional remotePublicAddress) { - Utils.checkNotNull(remotePublicAddress, "remotePublicAddress"); - this.remotePublicAddress = remotePublicAddress; - return this; - } - - public Builder state(String state) { - Utils.checkNotNull(state, "state"); - this.state = Optional.ofNullable(state); - return this; - } - - public Builder state(Optional state) { - Utils.checkNotNull(state, "state"); - this.state = state; - return this; - } - - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Builder version(String version) { - Utils.checkNotNull(version, "version"); - this.version = Optional.ofNullable(version); - return this; - } - - public Builder version(Optional version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - public Builder local(boolean local) { - Utils.checkNotNull(local, "local"); - this.local = Optional.ofNullable(local); - return this; - } - - public Builder local(Optional local) { - Utils.checkNotNull(local, "local"); - this.local = local; - return this; - } - - public Builder relayed(boolean relayed) { - Utils.checkNotNull(relayed, "relayed"); - this.relayed = Optional.ofNullable(relayed); - return this; - } - - public Builder relayed(Optional relayed) { - Utils.checkNotNull(relayed, "relayed"); - this.relayed = relayed; - return this; - } - - public Builder secure(boolean secure) { - Utils.checkNotNull(secure, "secure"); - this.secure = Optional.ofNullable(secure); - return this; - } - - public Builder secure(Optional secure) { - Utils.checkNotNull(secure, "secure"); - this.secure = secure; - return this; - } - - public Builder userID(int userID) { - Utils.checkNotNull(userID, "userID"); - this.userID = Optional.ofNullable(userID); - return this; - } - - public Builder userID(Optional userID) { - Utils.checkNotNull(userID, "userID"); - this.userID = userID; - return this; - } - - public Player build() { - return new Player( - address, - machineIdentifier, - model, - platform, - platformVersion, - product, - profile, - remotePublicAddress, - state, - title, - version, - local, - relayed, - secure, - userID); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/PlaylistType.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/PlaylistType.java deleted file mode 100644 index fdee5f5c..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/PlaylistType.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * PlaylistType - limit to a type of playlist. - */ -public enum PlaylistType { - AUDIO("audio"), - VIDEO("video"), - PHOTO("photo"); - - @JsonValue - private final String value; - - private PlaylistType(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Producer.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Producer.java deleted file mode 100644 index a934a760..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Producer.java +++ /dev/null @@ -1,283 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class Producer { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("filter") - private Optional filter; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tag") - private Optional tag; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tagKey") - private Optional tagKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("thumb") - private Optional thumb; - - @JsonCreator - public Producer( - @JsonProperty("id") Optional id, - @JsonProperty("filter") Optional filter, - @JsonProperty("tag") Optional tag, - @JsonProperty("tagKey") Optional tagKey, - @JsonProperty("thumb") Optional thumb) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(filter, "filter"); - Utils.checkNotNull(tag, "tag"); - Utils.checkNotNull(tagKey, "tagKey"); - Utils.checkNotNull(thumb, "thumb"); - this.id = id; - this.filter = filter; - this.tag = tag; - this.tagKey = tagKey; - this.thumb = thumb; - } - - public Producer() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional filter() { - return (Optional) filter; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tag() { - return (Optional) tag; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tagKey() { - return (Optional) tagKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional thumb() { - return (Optional) thumb; - } - - public final static Builder builder() { - return new Builder(); - } - - public Producer withId(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Producer withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Producer withFilter(String filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - public Producer withFilter(Optional filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - public Producer withTag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Producer withTag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public Producer withTagKey(String tagKey) { - Utils.checkNotNull(tagKey, "tagKey"); - this.tagKey = Optional.ofNullable(tagKey); - return this; - } - - public Producer withTagKey(Optional tagKey) { - Utils.checkNotNull(tagKey, "tagKey"); - this.tagKey = tagKey; - return this; - } - - public Producer withThumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public Producer withThumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Producer other = (Producer) o; - return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.filter, other.filter) && - java.util.Objects.deepEquals(this.tag, other.tag) && - java.util.Objects.deepEquals(this.tagKey, other.tagKey) && - java.util.Objects.deepEquals(this.thumb, other.thumb); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id, - filter, - tag, - tagKey, - thumb); - } - - @Override - public String toString() { - return Utils.toString(Producer.class, - "id", id, - "filter", filter, - "tag", tag, - "tagKey", tagKey, - "thumb", thumb); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional filter = Optional.empty(); - - private Optional tag = Optional.empty(); - - private Optional tagKey = Optional.empty(); - - private Optional thumb = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder filter(String filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - public Builder filter(Optional filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - public Builder tag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Builder tag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public Builder tagKey(String tagKey) { - Utils.checkNotNull(tagKey, "tagKey"); - this.tagKey = Optional.ofNullable(tagKey); - return this; - } - - public Builder tagKey(Optional tagKey) { - Utils.checkNotNull(tagKey, "tagKey"); - this.tagKey = tagKey; - return this; - } - - public Builder thumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public Builder thumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public Producer build() { - return new Producer( - id, - filter, - tag, - tagKey, - thumb); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Provider.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Provider.java deleted file mode 100644 index 57c223c0..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Provider.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class Provider { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title") - private Optional title; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - @JsonCreator - public Provider( - @JsonProperty("key") Optional key, - @JsonProperty("title") Optional title, - @JsonProperty("type") Optional type) { - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(title, "title"); - Utils.checkNotNull(type, "type"); - this.key = key; - this.title = title; - this.type = type; - } - - public Provider() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title() { - return (Optional) title; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - public final static Builder builder() { - return new Builder(); - } - - public Provider withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Provider withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Provider withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Provider withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Provider withType(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Provider withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Provider other = (Provider) o; - return - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.title, other.title) && - java.util.Objects.deepEquals(this.type, other.type); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - key, - title, - type); - } - - @Override - public String toString() { - return Utils.toString(Provider.class, - "key", key, - "title", title, - "type", type); - } - - public final static class Builder { - - private Optional key = Optional.empty(); - - private Optional title = Optional.empty(); - - private Optional type = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Builder type(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Provider build() { - return new Provider( - key, - title, - type); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/QueryParamOnlyTransient.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/QueryParamOnlyTransient.java deleted file mode 100644 index f8eabcb4..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/QueryParamOnlyTransient.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * QueryParamOnlyTransient - 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). - */ -public enum QueryParamOnlyTransient { - ZERO(0L), - ONE(1L); - - @JsonValue - private final long value; - - private QueryParamOnlyTransient(long value) { - this.value = value; - } - - public long value() { - return value; - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/QueryParamSmart.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/QueryParamSmart.java deleted file mode 100644 index 42710996..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/QueryParamSmart.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * QueryParamSmart - type of playlists to return (default is all). - */ -public enum QueryParamSmart { - ZERO(0L), - ONE(1L); - - @JsonValue - private final long value; - - private QueryParamSmart(long value) { - this.value = value; - } - - public long value() { - return value; - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/QueryParamType.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/QueryParamType.java deleted file mode 100644 index 33e7d3d8..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/QueryParamType.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * QueryParamType - type of playlist to create - */ -public enum QueryParamType { - AUDIO("audio"), - VIDEO("video"), - PHOTO("photo"); - - @JsonValue - private final String value; - - private QueryParamType(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Ratings.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Ratings.java deleted file mode 100644 index c66f43a5..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Ratings.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class Ratings { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("image") - private Optional image; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("value") - private Optional value; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - @JsonCreator - public Ratings( - @JsonProperty("image") Optional image, - @JsonProperty("value") Optional value, - @JsonProperty("type") Optional type) { - Utils.checkNotNull(image, "image"); - Utils.checkNotNull(value, "value"); - Utils.checkNotNull(type, "type"); - this.image = image; - this.value = value; - this.type = type; - } - - public Ratings() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional image() { - return (Optional) image; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional value() { - return (Optional) value; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - public final static Builder builder() { - return new Builder(); - } - - public Ratings withImage(String image) { - Utils.checkNotNull(image, "image"); - this.image = Optional.ofNullable(image); - return this; - } - - public Ratings withImage(Optional image) { - Utils.checkNotNull(image, "image"); - this.image = image; - return this; - } - - public Ratings withValue(double value) { - Utils.checkNotNull(value, "value"); - this.value = Optional.ofNullable(value); - return this; - } - - public Ratings withValue(Optional value) { - Utils.checkNotNull(value, "value"); - this.value = value; - return this; - } - - public Ratings withType(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Ratings withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Ratings other = (Ratings) o; - return - java.util.Objects.deepEquals(this.image, other.image) && - java.util.Objects.deepEquals(this.value, other.value) && - java.util.Objects.deepEquals(this.type, other.type); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - image, - value, - type); - } - - @Override - public String toString() { - return Utils.toString(Ratings.class, - "image", image, - "value", value, - "type", type); - } - - public final static class Builder { - - private Optional image = Optional.empty(); - - private Optional value = Optional.empty(); - - private Optional type = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder image(String image) { - Utils.checkNotNull(image, "image"); - this.image = Optional.ofNullable(image); - return this; - } - - public Builder image(Optional image) { - Utils.checkNotNull(image, "image"); - this.image = image; - return this; - } - - public Builder value(double value) { - Utils.checkNotNull(value, "value"); - this.value = Optional.ofNullable(value); - return this; - } - - public Builder value(Optional value) { - Utils.checkNotNull(value, "value"); - this.value = value; - return this; - } - - public Builder type(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Ratings build() { - return new Ratings( - image, - value, - type); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/RefreshLibraryRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/RefreshLibraryRequest.java deleted file mode 100644 index ac96230d..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/RefreshLibraryRequest.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class RefreshLibraryRequest { - - /** - * the Id of the library to refresh - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionId") - private double sectionId; - - @JsonCreator - public RefreshLibraryRequest( - double sectionId) { - Utils.checkNotNull(sectionId, "sectionId"); - this.sectionId = sectionId; - } - - /** - * the Id of the library to refresh - */ - @JsonIgnore - public double sectionId() { - return sectionId; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * the Id of the library to refresh - */ - public RefreshLibraryRequest withSectionId(double sectionId) { - Utils.checkNotNull(sectionId, "sectionId"); - this.sectionId = sectionId; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RefreshLibraryRequest other = (RefreshLibraryRequest) o; - return - java.util.Objects.deepEquals(this.sectionId, other.sectionId); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - sectionId); - } - - @Override - public String toString() { - return Utils.toString(RefreshLibraryRequest.class, - "sectionId", sectionId); - } - - public final static class Builder { - - private Double sectionId; - - private Builder() { - // force use of static builder() method - } - - /** - * the Id of the library to refresh - */ - public Builder sectionId(double sectionId) { - Utils.checkNotNull(sectionId, "sectionId"); - this.sectionId = sectionId; - return this; - } - - public RefreshLibraryRequest build() { - return new RefreshLibraryRequest( - sectionId); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/RefreshLibraryRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/RefreshLibraryRequestBuilder.java deleted file mode 100644 index e1761209..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/RefreshLibraryRequestBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class RefreshLibraryRequestBuilder { - - private Double sectionId; - private final SDKMethodInterfaces.MethodCallRefreshLibrary sdk; - - public RefreshLibraryRequestBuilder(SDKMethodInterfaces.MethodCallRefreshLibrary sdk) { - this.sdk = sdk; - } - - public RefreshLibraryRequestBuilder sectionId(double sectionId) { - Utils.checkNotNull(sectionId, "sectionId"); - this.sectionId = sectionId; - return this; - } - - public RefreshLibraryResponse call() throws Exception { - - return sdk.refreshLibrary( - sectionId); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/RefreshLibraryResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/RefreshLibraryResponse.java deleted file mode 100644 index 68c58056..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/RefreshLibraryResponse.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class RefreshLibraryResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - @JsonCreator - public RefreshLibraryResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public RefreshLibraryResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public RefreshLibraryResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public RefreshLibraryResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RefreshLibraryResponse other = (RefreshLibraryResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(RefreshLibraryResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public RefreshLibraryResponse build() { - return new RefreshLibraryResponse( - contentType, - statusCode, - rawResponse); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Release.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Release.java deleted file mode 100644 index 922c8fba..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Release.java +++ /dev/null @@ -1,326 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class Release { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("version") - private Optional version; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("added") - private Optional added; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("fixed") - private Optional fixed; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("downloadURL") - private Optional downloadURL; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("state") - private Optional state; - - @JsonCreator - public Release( - @JsonProperty("key") Optional key, - @JsonProperty("version") Optional version, - @JsonProperty("added") Optional added, - @JsonProperty("fixed") Optional fixed, - @JsonProperty("downloadURL") Optional downloadURL, - @JsonProperty("state") Optional state) { - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(version, "version"); - Utils.checkNotNull(added, "added"); - Utils.checkNotNull(fixed, "fixed"); - Utils.checkNotNull(downloadURL, "downloadURL"); - Utils.checkNotNull(state, "state"); - this.key = key; - this.version = version; - this.added = added; - this.fixed = fixed; - this.downloadURL = downloadURL; - this.state = state; - } - - public Release() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional version() { - return (Optional) version; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional added() { - return (Optional) added; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional fixed() { - return (Optional) fixed; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional downloadURL() { - return (Optional) downloadURL; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional state() { - return (Optional) state; - } - - public final static Builder builder() { - return new Builder(); - } - - public Release withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Release withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Release withVersion(String version) { - Utils.checkNotNull(version, "version"); - this.version = Optional.ofNullable(version); - return this; - } - - public Release withVersion(Optional version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - public Release withAdded(String added) { - Utils.checkNotNull(added, "added"); - this.added = Optional.ofNullable(added); - return this; - } - - public Release withAdded(Optional added) { - Utils.checkNotNull(added, "added"); - this.added = added; - return this; - } - - public Release withFixed(String fixed) { - Utils.checkNotNull(fixed, "fixed"); - this.fixed = Optional.ofNullable(fixed); - return this; - } - - public Release withFixed(Optional fixed) { - Utils.checkNotNull(fixed, "fixed"); - this.fixed = fixed; - return this; - } - - public Release withDownloadURL(String downloadURL) { - Utils.checkNotNull(downloadURL, "downloadURL"); - this.downloadURL = Optional.ofNullable(downloadURL); - return this; - } - - public Release withDownloadURL(Optional downloadURL) { - Utils.checkNotNull(downloadURL, "downloadURL"); - this.downloadURL = downloadURL; - return this; - } - - public Release withState(String state) { - Utils.checkNotNull(state, "state"); - this.state = Optional.ofNullable(state); - return this; - } - - public Release withState(Optional state) { - Utils.checkNotNull(state, "state"); - this.state = state; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Release other = (Release) o; - return - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.version, other.version) && - java.util.Objects.deepEquals(this.added, other.added) && - java.util.Objects.deepEquals(this.fixed, other.fixed) && - java.util.Objects.deepEquals(this.downloadURL, other.downloadURL) && - java.util.Objects.deepEquals(this.state, other.state); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - key, - version, - added, - fixed, - downloadURL, - state); - } - - @Override - public String toString() { - return Utils.toString(Release.class, - "key", key, - "version", version, - "added", added, - "fixed", fixed, - "downloadURL", downloadURL, - "state", state); - } - - public final static class Builder { - - private Optional key = Optional.empty(); - - private Optional version = Optional.empty(); - - private Optional added = Optional.empty(); - - private Optional fixed = Optional.empty(); - - private Optional downloadURL = Optional.empty(); - - private Optional state = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder version(String version) { - Utils.checkNotNull(version, "version"); - this.version = Optional.ofNullable(version); - return this; - } - - public Builder version(Optional version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - public Builder added(String added) { - Utils.checkNotNull(added, "added"); - this.added = Optional.ofNullable(added); - return this; - } - - public Builder added(Optional added) { - Utils.checkNotNull(added, "added"); - this.added = added; - return this; - } - - public Builder fixed(String fixed) { - Utils.checkNotNull(fixed, "fixed"); - this.fixed = Optional.ofNullable(fixed); - return this; - } - - public Builder fixed(Optional fixed) { - Utils.checkNotNull(fixed, "fixed"); - this.fixed = fixed; - return this; - } - - public Builder downloadURL(String downloadURL) { - Utils.checkNotNull(downloadURL, "downloadURL"); - this.downloadURL = Optional.ofNullable(downloadURL); - return this; - } - - public Builder downloadURL(Optional downloadURL) { - Utils.checkNotNull(downloadURL, "downloadURL"); - this.downloadURL = downloadURL; - return this; - } - - public Builder state(String state) { - Utils.checkNotNull(state, "state"); - this.state = Optional.ofNullable(state); - return this; - } - - public Builder state(Optional state) { - Utils.checkNotNull(state, "state"); - this.state = state; - return this; - } - - public Release build() { - return new Release( - key, - version, - added, - fixed, - downloadURL, - state); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Role.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Role.java deleted file mode 100644 index 5b80d2c6..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Role.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class Role { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tag") - private Optional tag; - - @JsonCreator - public Role( - @JsonProperty("tag") Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - } - - public Role() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tag() { - return (Optional) tag; - } - - public final static Builder builder() { - return new Builder(); - } - - public Role withTag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Role withTag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Role other = (Role) o; - return - java.util.Objects.deepEquals(this.tag, other.tag); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - tag); - } - - @Override - public String toString() { - return Utils.toString(Role.class, - "tag", tag); - } - - public final static class Builder { - - private Optional tag = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder tag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Builder tag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public Role build() { - return new Role( - tag); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/SDKMethodInterfaces.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/SDKMethodInterfaces.java deleted file mode 100644 index 55007093..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/SDKMethodInterfaces.java +++ /dev/null @@ -1,423 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class SDKMethodInterfaces { - - public interface MethodCallGetServerCapabilities { - lukehagar.plexapi.plexapi.models.operations.GetServerCapabilitiesResponse getServerCapabilitiesDirect() throws Exception; - } - - - public interface MethodCallGetServerPreferences { - lukehagar.plexapi.plexapi.models.operations.GetServerPreferencesResponse getServerPreferencesDirect() throws Exception; - } - - - public interface MethodCallGetAvailableClients { - lukehagar.plexapi.plexapi.models.operations.GetAvailableClientsResponse getAvailableClientsDirect() throws Exception; - } - - - public interface MethodCallGetDevices { - lukehagar.plexapi.plexapi.models.operations.GetDevicesResponse getDevicesDirect() throws Exception; - } - - - public interface MethodCallGetServerIdentity { - lukehagar.plexapi.plexapi.models.operations.GetServerIdentityResponse getServerIdentityDirect() throws Exception; - } - - - public interface MethodCallGetMyPlexAccount { - lukehagar.plexapi.plexapi.models.operations.GetMyPlexAccountResponse getMyPlexAccountDirect() throws Exception; - } - - - public interface MethodCallGetResizedPhoto { - lukehagar.plexapi.plexapi.models.operations.GetResizedPhotoResponse getResizedPhoto( - lukehagar.plexapi.plexapi.models.operations.GetResizedPhotoRequest request) throws Exception; - } - - - public interface MethodCallGetServerList { - lukehagar.plexapi.plexapi.models.operations.GetServerListResponse getServerListDirect() throws Exception; - } - - - public interface MethodCallMarkPlayed { - lukehagar.plexapi.plexapi.models.operations.MarkPlayedResponse markPlayed( - double key) throws Exception; - } - - - public interface MethodCallMarkUnplayed { - lukehagar.plexapi.plexapi.models.operations.MarkUnplayedResponse markUnplayed( - double key) throws Exception; - } - - - public interface MethodCallUpdatePlayProgress { - lukehagar.plexapi.plexapi.models.operations.UpdatePlayProgressResponse updatePlayProgress( - String key, - double time, - String state) throws Exception; - } - - - public interface MethodCallGetTimeline { - lukehagar.plexapi.plexapi.models.operations.GetTimelineResponse getTimeline( - lukehagar.plexapi.plexapi.models.operations.GetTimelineRequest request) throws Exception; - } - - - public interface MethodCallStartUniversalTranscode { - lukehagar.plexapi.plexapi.models.operations.StartUniversalTranscodeResponse startUniversalTranscode( - lukehagar.plexapi.plexapi.models.operations.StartUniversalTranscodeRequest request) throws Exception; - } - - - public interface MethodCallGetServerActivities { - lukehagar.plexapi.plexapi.models.operations.GetServerActivitiesResponse getServerActivitiesDirect() throws Exception; - } - - - public interface MethodCallCancelServerActivities { - lukehagar.plexapi.plexapi.models.operations.CancelServerActivitiesResponse cancelServerActivities( - String activityUUID) throws Exception; - } - - - public interface MethodCallGetButlerTasks { - lukehagar.plexapi.plexapi.models.operations.GetButlerTasksResponse getButlerTasksDirect() throws Exception; - } - - - public interface MethodCallStartAllTasks { - lukehagar.plexapi.plexapi.models.operations.StartAllTasksResponse startAllTasksDirect() throws Exception; - } - - - public interface MethodCallStopAllTasks { - lukehagar.plexapi.plexapi.models.operations.StopAllTasksResponse stopAllTasksDirect() throws Exception; - } - - - public interface MethodCallStartTask { - lukehagar.plexapi.plexapi.models.operations.StartTaskResponse startTask( - lukehagar.plexapi.plexapi.models.operations.TaskName taskName) throws Exception; - } - - - public interface MethodCallStopTask { - lukehagar.plexapi.plexapi.models.operations.StopTaskResponse stopTask( - lukehagar.plexapi.plexapi.models.operations.PathParamTaskName taskName) throws Exception; - } - - - public interface MethodCallGetHomeData { - lukehagar.plexapi.plexapi.models.operations.GetHomeDataResponse getHomeDataDirect() throws Exception; - } - - - public interface MethodCallGetPin { - lukehagar.plexapi.plexapi.models.operations.GetPinResponse getPin( - Optional strong, - Optional xPlexClientIdentifier, - String xPlexProduct, - java.util.Optional serverURL) throws Exception; - } - - - public interface MethodCallGetToken { - lukehagar.plexapi.plexapi.models.operations.GetTokenResponse getToken( - String pinID, - Optional xPlexClientIdentifier, - java.util.Optional serverURL) throws Exception; - } - - - public interface MethodCallGetGlobalHubs { - lukehagar.plexapi.plexapi.models.operations.GetGlobalHubsResponse getGlobalHubs( - Optional count, - Optional onlyTransient) throws Exception; - } - - - public interface MethodCallGetLibraryHubs { - lukehagar.plexapi.plexapi.models.operations.GetLibraryHubsResponse getLibraryHubs( - double sectionId, - Optional count, - Optional onlyTransient) throws Exception; - } - - - public interface MethodCallPerformSearch { - lukehagar.plexapi.plexapi.models.operations.PerformSearchResponse performSearch( - String query, - Optional sectionId, - Optional limit) throws Exception; - } - - - public interface MethodCallPerformVoiceSearch { - lukehagar.plexapi.plexapi.models.operations.PerformVoiceSearchResponse performVoiceSearch( - String query, - Optional sectionId, - Optional limit) throws Exception; - } - - - public interface MethodCallGetSearchResults { - lukehagar.plexapi.plexapi.models.operations.GetSearchResultsResponse getSearchResults( - String query) throws Exception; - } - - - public interface MethodCallGetFileHash { - lukehagar.plexapi.plexapi.models.operations.GetFileHashResponse getFileHash( - String url, - Optional type) throws Exception; - } - - - public interface MethodCallGetRecentlyAdded { - lukehagar.plexapi.plexapi.models.operations.GetRecentlyAddedResponse getRecentlyAddedDirect() throws Exception; - } - - - public interface MethodCallGetLibraries { - lukehagar.plexapi.plexapi.models.operations.GetLibrariesResponse getLibrariesDirect() throws Exception; - } - - - public interface MethodCallGetLibrary { - lukehagar.plexapi.plexapi.models.operations.GetLibraryResponse getLibrary( - double sectionId, - Optional includeDetails) throws Exception; - } - - - public interface MethodCallDeleteLibrary { - lukehagar.plexapi.plexapi.models.operations.DeleteLibraryResponse deleteLibrary( - double sectionId) throws Exception; - } - - - public interface MethodCallGetLibraryItems { - lukehagar.plexapi.plexapi.models.operations.GetLibraryItemsResponse getLibraryItems( - java.lang.Object sectionId, - lukehagar.plexapi.plexapi.models.operations.Tag tag, - Optional includeGuids) throws Exception; - } - - - public interface MethodCallRefreshLibrary { - lukehagar.plexapi.plexapi.models.operations.RefreshLibraryResponse refreshLibrary( - double sectionId) throws Exception; - } - - - public interface MethodCallSearchLibrary { - lukehagar.plexapi.plexapi.models.operations.SearchLibraryResponse searchLibrary( - long sectionId, - lukehagar.plexapi.plexapi.models.operations.Type type) throws Exception; - } - - - public interface MethodCallGetMetadata { - lukehagar.plexapi.plexapi.models.operations.GetMetadataResponse getMetadata( - double ratingKey) throws Exception; - } - - - public interface MethodCallGetMetadataChildren { - lukehagar.plexapi.plexapi.models.operations.GetMetadataChildrenResponse getMetadataChildren( - double ratingKey, - Optional includeElements) throws Exception; - } - - - public interface MethodCallGetTopWatchedContent { - lukehagar.plexapi.plexapi.models.operations.GetTopWatchedContentResponse getTopWatchedContent( - long type, - Optional includeGuids) throws Exception; - } - - - public interface MethodCallGetOnDeck { - lukehagar.plexapi.plexapi.models.operations.GetOnDeckResponse getOnDeckDirect() throws Exception; - } - - - public interface MethodCallLogLine { - lukehagar.plexapi.plexapi.models.operations.LogLineResponse logLine( - lukehagar.plexapi.plexapi.models.operations.Level level, - String message, - String source) throws Exception; - } - - - public interface MethodCallLogMultiLine { - lukehagar.plexapi.plexapi.models.operations.LogMultiLineResponse logMultiLine( - String request) throws Exception; - } - - - public interface MethodCallEnablePaperTrail { - lukehagar.plexapi.plexapi.models.operations.EnablePaperTrailResponse enablePaperTrailDirect() throws Exception; - } - - - public interface MethodCallCreatePlaylist { - lukehagar.plexapi.plexapi.models.operations.CreatePlaylistResponse createPlaylist( - lukehagar.plexapi.plexapi.models.operations.CreatePlaylistRequest request) throws Exception; - } - - - public interface MethodCallGetPlaylists { - lukehagar.plexapi.plexapi.models.operations.GetPlaylistsResponse getPlaylists( - Optional playlistType, - Optional smart) throws Exception; - } - - - public interface MethodCallGetPlaylist { - lukehagar.plexapi.plexapi.models.operations.GetPlaylistResponse getPlaylist( - double playlistID) throws Exception; - } - - - public interface MethodCallDeletePlaylist { - lukehagar.plexapi.plexapi.models.operations.DeletePlaylistResponse deletePlaylist( - double playlistID) throws Exception; - } - - - public interface MethodCallUpdatePlaylist { - lukehagar.plexapi.plexapi.models.operations.UpdatePlaylistResponse updatePlaylist( - double playlistID, - Optional title, - Optional summary) throws Exception; - } - - - public interface MethodCallGetPlaylistContents { - lukehagar.plexapi.plexapi.models.operations.GetPlaylistContentsResponse getPlaylistContents( - double playlistID, - double type) throws Exception; - } - - - public interface MethodCallClearPlaylistContents { - lukehagar.plexapi.plexapi.models.operations.ClearPlaylistContentsResponse clearPlaylistContents( - double playlistID) throws Exception; - } - - - public interface MethodCallAddPlaylistContents { - lukehagar.plexapi.plexapi.models.operations.AddPlaylistContentsResponse addPlaylistContents( - double playlistID, - String uri, - Optional playQueueID) throws Exception; - } - - - public interface MethodCallUploadPlaylist { - lukehagar.plexapi.plexapi.models.operations.UploadPlaylistResponse uploadPlaylist( - String path, - lukehagar.plexapi.plexapi.models.operations.Force force) throws Exception; - } - - - public interface MethodCallGetTransientToken { - lukehagar.plexapi.plexapi.models.operations.GetTransientTokenResponse getTransientToken( - lukehagar.plexapi.plexapi.models.operations.GetTransientTokenQueryParamType type, - lukehagar.plexapi.plexapi.models.operations.Scope scope) throws Exception; - } - - - public interface MethodCallGetSourceConnectionInformation { - lukehagar.plexapi.plexapi.models.operations.GetSourceConnectionInformationResponse getSourceConnectionInformation( - String source) throws Exception; - } - - - public interface MethodCallGetStatistics { - lukehagar.plexapi.plexapi.models.operations.GetStatisticsResponse getStatistics( - Optional timespan) throws Exception; - } - - - public interface MethodCallGetResourcesStatistics { - lukehagar.plexapi.plexapi.models.operations.GetResourcesStatisticsResponse getResourcesStatistics( - Optional timespan) throws Exception; - } - - - public interface MethodCallGetBandwidthStatistics { - lukehagar.plexapi.plexapi.models.operations.GetBandwidthStatisticsResponse getBandwidthStatistics( - Optional timespan) throws Exception; - } - - - public interface MethodCallGetSessions { - lukehagar.plexapi.plexapi.models.operations.GetSessionsResponse getSessionsDirect() throws Exception; - } - - - public interface MethodCallGetSessionHistory { - lukehagar.plexapi.plexapi.models.operations.GetSessionHistoryResponse getSessionHistory( - Optional sort, - Optional accountId, - Optional filter, - Optional librarySectionID) throws Exception; - } - - - public interface MethodCallGetTranscodeSessions { - lukehagar.plexapi.plexapi.models.operations.GetTranscodeSessionsResponse getTranscodeSessionsDirect() throws Exception; - } - - - public interface MethodCallStopTranscodeSession { - lukehagar.plexapi.plexapi.models.operations.StopTranscodeSessionResponse stopTranscodeSession( - String sessionKey) throws Exception; - } - - - public interface MethodCallGetUpdateStatus { - lukehagar.plexapi.plexapi.models.operations.GetUpdateStatusResponse getUpdateStatusDirect() throws Exception; - } - - - public interface MethodCallCheckForUpdates { - lukehagar.plexapi.plexapi.models.operations.CheckForUpdatesResponse checkForUpdates( - Optional download) throws Exception; - } - - - public interface MethodCallApplyUpdates { - lukehagar.plexapi.plexapi.models.operations.ApplyUpdatesResponse applyUpdates( - Optional tonight, - Optional skip) throws Exception; - } - - - public interface MethodCallGetWatchlist { - lukehagar.plexapi.plexapi.models.operations.GetWatchlistResponse getWatchlist( - lukehagar.plexapi.plexapi.models.operations.GetWatchlistRequest request, - java.util.Optional serverURL) throws Exception; - } - -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Scope.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Scope.java deleted file mode 100644 index 9fbdadb4..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Scope.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * Scope - `all` - This is the only supported `scope` parameter. - */ -public enum Scope { - ALL("all"); - - @JsonValue - private final String value; - - private Scope(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryMediaContainer.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryMediaContainer.java deleted file mode 100644 index 32c146b1..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryMediaContainer.java +++ /dev/null @@ -1,627 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class SearchLibraryMediaContainer { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("allowSync") - private Optional allowSync; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("art") - private Optional art; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("identifier") - private Optional identifier; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("mediaTagPrefix") - private Optional mediaTagPrefix; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("mediaTagVersion") - private Optional mediaTagVersion; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("nocache") - private Optional nocache; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("thumb") - private Optional thumb; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title1") - private Optional title1; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title2") - private Optional title2; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("viewGroup") - private Optional viewGroup; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("viewMode") - private Optional viewMode; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("Metadata") - private Optional> metadata; - - @JsonCreator - public SearchLibraryMediaContainer( - @JsonProperty("size") Optional size, - @JsonProperty("allowSync") Optional allowSync, - @JsonProperty("art") Optional art, - @JsonProperty("identifier") Optional identifier, - @JsonProperty("mediaTagPrefix") Optional mediaTagPrefix, - @JsonProperty("mediaTagVersion") Optional mediaTagVersion, - @JsonProperty("nocache") Optional nocache, - @JsonProperty("thumb") Optional thumb, - @JsonProperty("title1") Optional title1, - @JsonProperty("title2") Optional title2, - @JsonProperty("viewGroup") Optional viewGroup, - @JsonProperty("viewMode") Optional viewMode, - @JsonProperty("Metadata") Optional> metadata) { - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(allowSync, "allowSync"); - Utils.checkNotNull(art, "art"); - Utils.checkNotNull(identifier, "identifier"); - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - Utils.checkNotNull(nocache, "nocache"); - Utils.checkNotNull(thumb, "thumb"); - Utils.checkNotNull(title1, "title1"); - Utils.checkNotNull(title2, "title2"); - Utils.checkNotNull(viewGroup, "viewGroup"); - Utils.checkNotNull(viewMode, "viewMode"); - Utils.checkNotNull(metadata, "metadata"); - 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; - } - - public SearchLibraryMediaContainer() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional allowSync() { - return (Optional) allowSync; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional art() { - return (Optional) art; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional identifier() { - return (Optional) identifier; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaTagPrefix() { - return (Optional) mediaTagPrefix; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaTagVersion() { - return (Optional) mediaTagVersion; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional nocache() { - return (Optional) nocache; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional thumb() { - return (Optional) thumb; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title1() { - return (Optional) title1; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title2() { - return (Optional) title2; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional viewGroup() { - return (Optional) viewGroup; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional viewMode() { - return (Optional) viewMode; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; - } - - public final static Builder builder() { - return new Builder(); - } - - public SearchLibraryMediaContainer withSize(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public SearchLibraryMediaContainer withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public SearchLibraryMediaContainer withAllowSync(boolean allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = Optional.ofNullable(allowSync); - return this; - } - - public SearchLibraryMediaContainer withAllowSync(Optional allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = allowSync; - return this; - } - - public SearchLibraryMediaContainer withArt(String art) { - Utils.checkNotNull(art, "art"); - this.art = Optional.ofNullable(art); - return this; - } - - public SearchLibraryMediaContainer withArt(Optional art) { - Utils.checkNotNull(art, "art"); - this.art = art; - return this; - } - - public SearchLibraryMediaContainer withIdentifier(String identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = Optional.ofNullable(identifier); - return this; - } - - public SearchLibraryMediaContainer withIdentifier(Optional identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = identifier; - return this; - } - - public SearchLibraryMediaContainer withMediaTagPrefix(String mediaTagPrefix) { - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - this.mediaTagPrefix = Optional.ofNullable(mediaTagPrefix); - return this; - } - - public SearchLibraryMediaContainer withMediaTagPrefix(Optional mediaTagPrefix) { - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - this.mediaTagPrefix = mediaTagPrefix; - return this; - } - - public SearchLibraryMediaContainer withMediaTagVersion(int mediaTagVersion) { - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - this.mediaTagVersion = Optional.ofNullable(mediaTagVersion); - return this; - } - - public SearchLibraryMediaContainer withMediaTagVersion(Optional mediaTagVersion) { - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - this.mediaTagVersion = mediaTagVersion; - return this; - } - - public SearchLibraryMediaContainer withNocache(boolean nocache) { - Utils.checkNotNull(nocache, "nocache"); - this.nocache = Optional.ofNullable(nocache); - return this; - } - - public SearchLibraryMediaContainer withNocache(Optional nocache) { - Utils.checkNotNull(nocache, "nocache"); - this.nocache = nocache; - return this; - } - - public SearchLibraryMediaContainer withThumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public SearchLibraryMediaContainer withThumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public SearchLibraryMediaContainer withTitle1(String title1) { - Utils.checkNotNull(title1, "title1"); - this.title1 = Optional.ofNullable(title1); - return this; - } - - public SearchLibraryMediaContainer withTitle1(Optional title1) { - Utils.checkNotNull(title1, "title1"); - this.title1 = title1; - return this; - } - - public SearchLibraryMediaContainer withTitle2(String title2) { - Utils.checkNotNull(title2, "title2"); - this.title2 = Optional.ofNullable(title2); - return this; - } - - public SearchLibraryMediaContainer withTitle2(Optional title2) { - Utils.checkNotNull(title2, "title2"); - this.title2 = title2; - return this; - } - - public SearchLibraryMediaContainer withViewGroup(String viewGroup) { - Utils.checkNotNull(viewGroup, "viewGroup"); - this.viewGroup = Optional.ofNullable(viewGroup); - return this; - } - - public SearchLibraryMediaContainer withViewGroup(Optional viewGroup) { - Utils.checkNotNull(viewGroup, "viewGroup"); - this.viewGroup = viewGroup; - return this; - } - - public SearchLibraryMediaContainer withViewMode(int viewMode) { - Utils.checkNotNull(viewMode, "viewMode"); - this.viewMode = Optional.ofNullable(viewMode); - return this; - } - - public SearchLibraryMediaContainer withViewMode(Optional viewMode) { - Utils.checkNotNull(viewMode, "viewMode"); - this.viewMode = viewMode; - return this; - } - - public SearchLibraryMediaContainer withMetadata(java.util.List metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public SearchLibraryMediaContainer withMetadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SearchLibraryMediaContainer other = (SearchLibraryMediaContainer) o; - return - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.allowSync, other.allowSync) && - java.util.Objects.deepEquals(this.art, other.art) && - java.util.Objects.deepEquals(this.identifier, other.identifier) && - java.util.Objects.deepEquals(this.mediaTagPrefix, other.mediaTagPrefix) && - java.util.Objects.deepEquals(this.mediaTagVersion, other.mediaTagVersion) && - java.util.Objects.deepEquals(this.nocache, other.nocache) && - java.util.Objects.deepEquals(this.thumb, other.thumb) && - java.util.Objects.deepEquals(this.title1, other.title1) && - java.util.Objects.deepEquals(this.title2, other.title2) && - java.util.Objects.deepEquals(this.viewGroup, other.viewGroup) && - java.util.Objects.deepEquals(this.viewMode, other.viewMode) && - java.util.Objects.deepEquals(this.metadata, other.metadata); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - size, - allowSync, - art, - identifier, - mediaTagPrefix, - mediaTagVersion, - nocache, - thumb, - title1, - title2, - viewGroup, - viewMode, - metadata); - } - - @Override - public String toString() { - return Utils.toString(SearchLibraryMediaContainer.class, - "size", size, - "allowSync", allowSync, - "art", art, - "identifier", identifier, - "mediaTagPrefix", mediaTagPrefix, - "mediaTagVersion", mediaTagVersion, - "nocache", nocache, - "thumb", thumb, - "title1", title1, - "title2", title2, - "viewGroup", viewGroup, - "viewMode", viewMode, - "metadata", metadata); - } - - public final static class Builder { - - private Optional size = Optional.empty(); - - private Optional allowSync = Optional.empty(); - - private Optional art = Optional.empty(); - - private Optional identifier = Optional.empty(); - - private Optional mediaTagPrefix = Optional.empty(); - - private Optional mediaTagVersion = Optional.empty(); - - private Optional nocache = Optional.empty(); - - private Optional thumb = Optional.empty(); - - private Optional title1 = Optional.empty(); - - private Optional title2 = Optional.empty(); - - private Optional viewGroup = Optional.empty(); - - private Optional viewMode = Optional.empty(); - - private Optional> metadata = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder size(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder allowSync(boolean allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = Optional.ofNullable(allowSync); - return this; - } - - public Builder allowSync(Optional allowSync) { - Utils.checkNotNull(allowSync, "allowSync"); - this.allowSync = allowSync; - return this; - } - - public Builder art(String art) { - Utils.checkNotNull(art, "art"); - this.art = Optional.ofNullable(art); - return this; - } - - public Builder art(Optional art) { - Utils.checkNotNull(art, "art"); - this.art = art; - return this; - } - - public Builder identifier(String identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = Optional.ofNullable(identifier); - return this; - } - - public Builder identifier(Optional identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = identifier; - return this; - } - - public Builder mediaTagPrefix(String mediaTagPrefix) { - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - this.mediaTagPrefix = Optional.ofNullable(mediaTagPrefix); - return this; - } - - public Builder mediaTagPrefix(Optional mediaTagPrefix) { - Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix"); - this.mediaTagPrefix = mediaTagPrefix; - return this; - } - - public Builder mediaTagVersion(int mediaTagVersion) { - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - this.mediaTagVersion = Optional.ofNullable(mediaTagVersion); - return this; - } - - public Builder mediaTagVersion(Optional mediaTagVersion) { - Utils.checkNotNull(mediaTagVersion, "mediaTagVersion"); - this.mediaTagVersion = mediaTagVersion; - return this; - } - - public Builder nocache(boolean nocache) { - Utils.checkNotNull(nocache, "nocache"); - this.nocache = Optional.ofNullable(nocache); - return this; - } - - public Builder nocache(Optional nocache) { - Utils.checkNotNull(nocache, "nocache"); - this.nocache = nocache; - return this; - } - - public Builder thumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public Builder thumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public Builder title1(String title1) { - Utils.checkNotNull(title1, "title1"); - this.title1 = Optional.ofNullable(title1); - return this; - } - - public Builder title1(Optional title1) { - Utils.checkNotNull(title1, "title1"); - this.title1 = title1; - return this; - } - - public Builder title2(String title2) { - Utils.checkNotNull(title2, "title2"); - this.title2 = Optional.ofNullable(title2); - return this; - } - - public Builder title2(Optional title2) { - Utils.checkNotNull(title2, "title2"); - this.title2 = title2; - return this; - } - - public Builder viewGroup(String viewGroup) { - Utils.checkNotNull(viewGroup, "viewGroup"); - this.viewGroup = Optional.ofNullable(viewGroup); - return this; - } - - public Builder viewGroup(Optional viewGroup) { - Utils.checkNotNull(viewGroup, "viewGroup"); - this.viewGroup = viewGroup; - return this; - } - - public Builder viewMode(int viewMode) { - Utils.checkNotNull(viewMode, "viewMode"); - this.viewMode = Optional.ofNullable(viewMode); - return this; - } - - public Builder viewMode(Optional viewMode) { - Utils.checkNotNull(viewMode, "viewMode"); - this.viewMode = viewMode; - return this; - } - - public Builder metadata(java.util.List metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public Builder metadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public SearchLibraryMediaContainer build() { - return new SearchLibraryMediaContainer( - size, - allowSync, - art, - identifier, - mediaTagPrefix, - mediaTagVersion, - nocache, - thumb, - title1, - title2, - viewGroup, - viewMode, - metadata); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryMetadata.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryMetadata.java deleted file mode 100644 index 9d746bd7..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryMetadata.java +++ /dev/null @@ -1,928 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class SearchLibraryMetadata { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ratingKey") - private Optional ratingKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentRatingKey") - private Optional parentRatingKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("guid") - private Optional guid; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentGuid") - private Optional parentGuid; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentStudio") - private Optional parentStudio; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title") - private Optional title; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentKey") - private Optional parentKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentTitle") - private Optional parentTitle; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("summary") - private Optional summary; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("index") - private Optional index; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentIndex") - private Optional parentIndex; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentYear") - private Optional parentYear; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("thumb") - private Optional thumb; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("art") - private Optional art; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentThumb") - private Optional parentThumb; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("parentTheme") - private Optional parentTheme; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("addedAt") - private Optional addedAt; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updatedAt") - private Optional updatedAt; - - @JsonCreator - public SearchLibraryMetadata( - @JsonProperty("ratingKey") Optional ratingKey, - @JsonProperty("key") Optional key, - @JsonProperty("parentRatingKey") Optional parentRatingKey, - @JsonProperty("guid") Optional guid, - @JsonProperty("parentGuid") Optional parentGuid, - @JsonProperty("parentStudio") Optional parentStudio, - @JsonProperty("type") Optional type, - @JsonProperty("title") Optional title, - @JsonProperty("parentKey") Optional parentKey, - @JsonProperty("parentTitle") Optional parentTitle, - @JsonProperty("summary") Optional summary, - @JsonProperty("index") Optional index, - @JsonProperty("parentIndex") Optional parentIndex, - @JsonProperty("parentYear") Optional parentYear, - @JsonProperty("thumb") Optional thumb, - @JsonProperty("art") Optional art, - @JsonProperty("parentThumb") Optional parentThumb, - @JsonProperty("parentTheme") Optional parentTheme, - @JsonProperty("addedAt") Optional addedAt, - @JsonProperty("updatedAt") Optional updatedAt) { - Utils.checkNotNull(ratingKey, "ratingKey"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(parentRatingKey, "parentRatingKey"); - Utils.checkNotNull(guid, "guid"); - Utils.checkNotNull(parentGuid, "parentGuid"); - Utils.checkNotNull(parentStudio, "parentStudio"); - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(title, "title"); - Utils.checkNotNull(parentKey, "parentKey"); - Utils.checkNotNull(parentTitle, "parentTitle"); - Utils.checkNotNull(summary, "summary"); - Utils.checkNotNull(index, "index"); - Utils.checkNotNull(parentIndex, "parentIndex"); - Utils.checkNotNull(parentYear, "parentYear"); - Utils.checkNotNull(thumb, "thumb"); - Utils.checkNotNull(art, "art"); - Utils.checkNotNull(parentThumb, "parentThumb"); - Utils.checkNotNull(parentTheme, "parentTheme"); - Utils.checkNotNull(addedAt, "addedAt"); - Utils.checkNotNull(updatedAt, "updatedAt"); - 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; - } - - public SearchLibraryMetadata() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional ratingKey() { - return (Optional) ratingKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentRatingKey() { - return (Optional) parentRatingKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional guid() { - return (Optional) guid; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentGuid() { - return (Optional) parentGuid; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentStudio() { - return (Optional) parentStudio; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title() { - return (Optional) title; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentKey() { - return (Optional) parentKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentTitle() { - return (Optional) parentTitle; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional summary() { - return (Optional) summary; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional index() { - return (Optional) index; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentIndex() { - return (Optional) parentIndex; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentYear() { - return (Optional) parentYear; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional thumb() { - return (Optional) thumb; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional art() { - return (Optional) art; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentThumb() { - return (Optional) parentThumb; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional parentTheme() { - return (Optional) parentTheme; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional addedAt() { - return (Optional) addedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional updatedAt() { - return (Optional) updatedAt; - } - - public final static Builder builder() { - return new Builder(); - } - - public SearchLibraryMetadata withRatingKey(String ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public SearchLibraryMetadata withRatingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public SearchLibraryMetadata withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public SearchLibraryMetadata withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public SearchLibraryMetadata withParentRatingKey(String parentRatingKey) { - Utils.checkNotNull(parentRatingKey, "parentRatingKey"); - this.parentRatingKey = Optional.ofNullable(parentRatingKey); - return this; - } - - public SearchLibraryMetadata withParentRatingKey(Optional parentRatingKey) { - Utils.checkNotNull(parentRatingKey, "parentRatingKey"); - this.parentRatingKey = parentRatingKey; - return this; - } - - public SearchLibraryMetadata withGuid(String guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = Optional.ofNullable(guid); - return this; - } - - public SearchLibraryMetadata withGuid(Optional guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = guid; - return this; - } - - public SearchLibraryMetadata withParentGuid(String parentGuid) { - Utils.checkNotNull(parentGuid, "parentGuid"); - this.parentGuid = Optional.ofNullable(parentGuid); - return this; - } - - public SearchLibraryMetadata withParentGuid(Optional parentGuid) { - Utils.checkNotNull(parentGuid, "parentGuid"); - this.parentGuid = parentGuid; - return this; - } - - public SearchLibraryMetadata withParentStudio(String parentStudio) { - Utils.checkNotNull(parentStudio, "parentStudio"); - this.parentStudio = Optional.ofNullable(parentStudio); - return this; - } - - public SearchLibraryMetadata withParentStudio(Optional parentStudio) { - Utils.checkNotNull(parentStudio, "parentStudio"); - this.parentStudio = parentStudio; - return this; - } - - public SearchLibraryMetadata withType(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public SearchLibraryMetadata withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public SearchLibraryMetadata withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public SearchLibraryMetadata withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public SearchLibraryMetadata withParentKey(String parentKey) { - Utils.checkNotNull(parentKey, "parentKey"); - this.parentKey = Optional.ofNullable(parentKey); - return this; - } - - public SearchLibraryMetadata withParentKey(Optional parentKey) { - Utils.checkNotNull(parentKey, "parentKey"); - this.parentKey = parentKey; - return this; - } - - public SearchLibraryMetadata withParentTitle(String parentTitle) { - Utils.checkNotNull(parentTitle, "parentTitle"); - this.parentTitle = Optional.ofNullable(parentTitle); - return this; - } - - public SearchLibraryMetadata withParentTitle(Optional parentTitle) { - Utils.checkNotNull(parentTitle, "parentTitle"); - this.parentTitle = parentTitle; - return this; - } - - public SearchLibraryMetadata withSummary(String summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = Optional.ofNullable(summary); - return this; - } - - public SearchLibraryMetadata withSummary(Optional summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = summary; - return this; - } - - public SearchLibraryMetadata withIndex(int index) { - Utils.checkNotNull(index, "index"); - this.index = Optional.ofNullable(index); - return this; - } - - public SearchLibraryMetadata withIndex(Optional index) { - Utils.checkNotNull(index, "index"); - this.index = index; - return this; - } - - public SearchLibraryMetadata withParentIndex(int parentIndex) { - Utils.checkNotNull(parentIndex, "parentIndex"); - this.parentIndex = Optional.ofNullable(parentIndex); - return this; - } - - public SearchLibraryMetadata withParentIndex(Optional parentIndex) { - Utils.checkNotNull(parentIndex, "parentIndex"); - this.parentIndex = parentIndex; - return this; - } - - public SearchLibraryMetadata withParentYear(int parentYear) { - Utils.checkNotNull(parentYear, "parentYear"); - this.parentYear = Optional.ofNullable(parentYear); - return this; - } - - public SearchLibraryMetadata withParentYear(Optional parentYear) { - Utils.checkNotNull(parentYear, "parentYear"); - this.parentYear = parentYear; - return this; - } - - public SearchLibraryMetadata withThumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public SearchLibraryMetadata withThumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public SearchLibraryMetadata withArt(String art) { - Utils.checkNotNull(art, "art"); - this.art = Optional.ofNullable(art); - return this; - } - - public SearchLibraryMetadata withArt(Optional art) { - Utils.checkNotNull(art, "art"); - this.art = art; - return this; - } - - public SearchLibraryMetadata withParentThumb(String parentThumb) { - Utils.checkNotNull(parentThumb, "parentThumb"); - this.parentThumb = Optional.ofNullable(parentThumb); - return this; - } - - public SearchLibraryMetadata withParentThumb(Optional parentThumb) { - Utils.checkNotNull(parentThumb, "parentThumb"); - this.parentThumb = parentThumb; - return this; - } - - public SearchLibraryMetadata withParentTheme(String parentTheme) { - Utils.checkNotNull(parentTheme, "parentTheme"); - this.parentTheme = Optional.ofNullable(parentTheme); - return this; - } - - public SearchLibraryMetadata withParentTheme(Optional parentTheme) { - Utils.checkNotNull(parentTheme, "parentTheme"); - this.parentTheme = parentTheme; - return this; - } - - public SearchLibraryMetadata withAddedAt(int addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = Optional.ofNullable(addedAt); - return this; - } - - public SearchLibraryMetadata withAddedAt(Optional addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = addedAt; - return this; - } - - public SearchLibraryMetadata withUpdatedAt(int updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public SearchLibraryMetadata withUpdatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SearchLibraryMetadata other = (SearchLibraryMetadata) o; - return - java.util.Objects.deepEquals(this.ratingKey, other.ratingKey) && - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.parentRatingKey, other.parentRatingKey) && - java.util.Objects.deepEquals(this.guid, other.guid) && - java.util.Objects.deepEquals(this.parentGuid, other.parentGuid) && - java.util.Objects.deepEquals(this.parentStudio, other.parentStudio) && - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.title, other.title) && - java.util.Objects.deepEquals(this.parentKey, other.parentKey) && - java.util.Objects.deepEquals(this.parentTitle, other.parentTitle) && - java.util.Objects.deepEquals(this.summary, other.summary) && - java.util.Objects.deepEquals(this.index, other.index) && - java.util.Objects.deepEquals(this.parentIndex, other.parentIndex) && - java.util.Objects.deepEquals(this.parentYear, other.parentYear) && - java.util.Objects.deepEquals(this.thumb, other.thumb) && - java.util.Objects.deepEquals(this.art, other.art) && - java.util.Objects.deepEquals(this.parentThumb, other.parentThumb) && - java.util.Objects.deepEquals(this.parentTheme, other.parentTheme) && - java.util.Objects.deepEquals(this.addedAt, other.addedAt) && - java.util.Objects.deepEquals(this.updatedAt, other.updatedAt); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - ratingKey, - key, - parentRatingKey, - guid, - parentGuid, - parentStudio, - type, - title, - parentKey, - parentTitle, - summary, - index, - parentIndex, - parentYear, - thumb, - art, - parentThumb, - parentTheme, - addedAt, - updatedAt); - } - - @Override - public String toString() { - return Utils.toString(SearchLibraryMetadata.class, - "ratingKey", ratingKey, - "key", key, - "parentRatingKey", parentRatingKey, - "guid", guid, - "parentGuid", parentGuid, - "parentStudio", parentStudio, - "type", type, - "title", title, - "parentKey", parentKey, - "parentTitle", parentTitle, - "summary", summary, - "index", index, - "parentIndex", parentIndex, - "parentYear", parentYear, - "thumb", thumb, - "art", art, - "parentThumb", parentThumb, - "parentTheme", parentTheme, - "addedAt", addedAt, - "updatedAt", updatedAt); - } - - public final static class Builder { - - private Optional ratingKey = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional parentRatingKey = Optional.empty(); - - private Optional guid = Optional.empty(); - - private Optional parentGuid = Optional.empty(); - - private Optional parentStudio = Optional.empty(); - - private Optional type = Optional.empty(); - - private Optional title = Optional.empty(); - - private Optional parentKey = Optional.empty(); - - private Optional parentTitle = Optional.empty(); - - private Optional summary = Optional.empty(); - - private Optional index = Optional.empty(); - - private Optional parentIndex = Optional.empty(); - - private Optional parentYear = Optional.empty(); - - private Optional thumb = Optional.empty(); - - private Optional art = Optional.empty(); - - private Optional parentThumb = Optional.empty(); - - private Optional parentTheme = Optional.empty(); - - private Optional addedAt = Optional.empty(); - - private Optional updatedAt = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder ratingKey(String ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = Optional.ofNullable(ratingKey); - return this; - } - - public Builder ratingKey(Optional ratingKey) { - Utils.checkNotNull(ratingKey, "ratingKey"); - this.ratingKey = ratingKey; - return this; - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder parentRatingKey(String parentRatingKey) { - Utils.checkNotNull(parentRatingKey, "parentRatingKey"); - this.parentRatingKey = Optional.ofNullable(parentRatingKey); - return this; - } - - public Builder parentRatingKey(Optional parentRatingKey) { - Utils.checkNotNull(parentRatingKey, "parentRatingKey"); - this.parentRatingKey = parentRatingKey; - return this; - } - - public Builder guid(String guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = Optional.ofNullable(guid); - return this; - } - - public Builder guid(Optional guid) { - Utils.checkNotNull(guid, "guid"); - this.guid = guid; - return this; - } - - public Builder parentGuid(String parentGuid) { - Utils.checkNotNull(parentGuid, "parentGuid"); - this.parentGuid = Optional.ofNullable(parentGuid); - return this; - } - - public Builder parentGuid(Optional parentGuid) { - Utils.checkNotNull(parentGuid, "parentGuid"); - this.parentGuid = parentGuid; - return this; - } - - public Builder parentStudio(String parentStudio) { - Utils.checkNotNull(parentStudio, "parentStudio"); - this.parentStudio = Optional.ofNullable(parentStudio); - return this; - } - - public Builder parentStudio(Optional parentStudio) { - Utils.checkNotNull(parentStudio, "parentStudio"); - this.parentStudio = parentStudio; - return this; - } - - public Builder type(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Builder parentKey(String parentKey) { - Utils.checkNotNull(parentKey, "parentKey"); - this.parentKey = Optional.ofNullable(parentKey); - return this; - } - - public Builder parentKey(Optional parentKey) { - Utils.checkNotNull(parentKey, "parentKey"); - this.parentKey = parentKey; - return this; - } - - public Builder parentTitle(String parentTitle) { - Utils.checkNotNull(parentTitle, "parentTitle"); - this.parentTitle = Optional.ofNullable(parentTitle); - return this; - } - - public Builder parentTitle(Optional parentTitle) { - Utils.checkNotNull(parentTitle, "parentTitle"); - this.parentTitle = parentTitle; - return this; - } - - public Builder summary(String summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = Optional.ofNullable(summary); - return this; - } - - public Builder summary(Optional summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = summary; - return this; - } - - public Builder index(int index) { - Utils.checkNotNull(index, "index"); - this.index = Optional.ofNullable(index); - return this; - } - - public Builder index(Optional index) { - Utils.checkNotNull(index, "index"); - this.index = index; - return this; - } - - public Builder parentIndex(int parentIndex) { - Utils.checkNotNull(parentIndex, "parentIndex"); - this.parentIndex = Optional.ofNullable(parentIndex); - return this; - } - - public Builder parentIndex(Optional parentIndex) { - Utils.checkNotNull(parentIndex, "parentIndex"); - this.parentIndex = parentIndex; - return this; - } - - public Builder parentYear(int parentYear) { - Utils.checkNotNull(parentYear, "parentYear"); - this.parentYear = Optional.ofNullable(parentYear); - return this; - } - - public Builder parentYear(Optional parentYear) { - Utils.checkNotNull(parentYear, "parentYear"); - this.parentYear = parentYear; - return this; - } - - public Builder thumb(String thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = Optional.ofNullable(thumb); - return this; - } - - public Builder thumb(Optional thumb) { - Utils.checkNotNull(thumb, "thumb"); - this.thumb = thumb; - return this; - } - - public Builder art(String art) { - Utils.checkNotNull(art, "art"); - this.art = Optional.ofNullable(art); - return this; - } - - public Builder art(Optional art) { - Utils.checkNotNull(art, "art"); - this.art = art; - return this; - } - - public Builder parentThumb(String parentThumb) { - Utils.checkNotNull(parentThumb, "parentThumb"); - this.parentThumb = Optional.ofNullable(parentThumb); - return this; - } - - public Builder parentThumb(Optional parentThumb) { - Utils.checkNotNull(parentThumb, "parentThumb"); - this.parentThumb = parentThumb; - return this; - } - - public Builder parentTheme(String parentTheme) { - Utils.checkNotNull(parentTheme, "parentTheme"); - this.parentTheme = Optional.ofNullable(parentTheme); - return this; - } - - public Builder parentTheme(Optional parentTheme) { - Utils.checkNotNull(parentTheme, "parentTheme"); - this.parentTheme = parentTheme; - return this; - } - - public Builder addedAt(int addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = Optional.ofNullable(addedAt); - return this; - } - - public Builder addedAt(Optional addedAt) { - Utils.checkNotNull(addedAt, "addedAt"); - this.addedAt = addedAt; - return this; - } - - public Builder updatedAt(int updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public Builder updatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public SearchLibraryMetadata build() { - return new SearchLibraryMetadata( - ratingKey, - key, - parentRatingKey, - guid, - parentGuid, - parentStudio, - type, - title, - parentKey, - parentTitle, - summary, - index, - parentIndex, - parentYear, - thumb, - art, - parentThumb, - parentTheme, - addedAt, - updatedAt); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryRequest.java deleted file mode 100644 index 819538b8..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryRequest.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class SearchLibraryRequest { - - /** - * the Id of the library to query - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionId") - private long sectionId; - - /** - * Plex content type to search for - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=type") - private Type type; - - @JsonCreator - public SearchLibraryRequest( - long sectionId, - Type type) { - Utils.checkNotNull(sectionId, "sectionId"); - Utils.checkNotNull(type, "type"); - this.sectionId = sectionId; - this.type = type; - } - - /** - * the Id of the library to query - */ - @JsonIgnore - public long sectionId() { - return sectionId; - } - - /** - * Plex content type to search for - */ - @JsonIgnore - public Type type() { - return type; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * the Id of the library to query - */ - public SearchLibraryRequest withSectionId(long sectionId) { - Utils.checkNotNull(sectionId, "sectionId"); - this.sectionId = sectionId; - return this; - } - - /** - * Plex content type to search for - */ - public SearchLibraryRequest withType(Type type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SearchLibraryRequest other = (SearchLibraryRequest) o; - return - java.util.Objects.deepEquals(this.sectionId, other.sectionId) && - java.util.Objects.deepEquals(this.type, other.type); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - sectionId, - type); - } - - @Override - public String toString() { - return Utils.toString(SearchLibraryRequest.class, - "sectionId", sectionId, - "type", type); - } - - public final static class Builder { - - private Long sectionId; - - private Type type; - - private Builder() { - // force use of static builder() method - } - - /** - * the Id of the library to query - */ - public Builder sectionId(long sectionId) { - Utils.checkNotNull(sectionId, "sectionId"); - this.sectionId = sectionId; - return this; - } - - /** - * Plex content type to search for - */ - public Builder type(Type type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public SearchLibraryRequest build() { - return new SearchLibraryRequest( - sectionId, - type); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryRequestBuilder.java deleted file mode 100644 index 2d250350..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class SearchLibraryRequestBuilder { - - private Long sectionId; - private Type type; - private final SDKMethodInterfaces.MethodCallSearchLibrary sdk; - - public SearchLibraryRequestBuilder(SDKMethodInterfaces.MethodCallSearchLibrary sdk) { - this.sdk = sdk; - } - - public SearchLibraryRequestBuilder sectionId(long sectionId) { - Utils.checkNotNull(sectionId, "sectionId"); - this.sectionId = sectionId; - return this; - } - - public SearchLibraryRequestBuilder type(Type type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public SearchLibraryResponse call() throws Exception { - - return sdk.searchLibrary( - sectionId, - type); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryResponse.java deleted file mode 100644 index 6ab2afd7..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryResponse.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class SearchLibraryResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * The contents of the library by section and type - */ - private Optional object; - - @JsonCreator - public SearchLibraryResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional object) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.object = object; - } - - public SearchLibraryResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * The contents of the library by section and type - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional object() { - return (Optional) object; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public SearchLibraryResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public SearchLibraryResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public SearchLibraryResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * The contents of the library by section and type - */ - public SearchLibraryResponse withObject(SearchLibraryResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * The contents of the library by section and type - */ - public SearchLibraryResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SearchLibraryResponse other = (SearchLibraryResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.object, other.object); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse, - object); - } - - @Override - public String toString() { - return Utils.toString(SearchLibraryResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "object", object); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional object = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * The contents of the library by section and type - */ - public Builder object(SearchLibraryResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); - return this; - } - - /** - * The contents of the library by section and type - */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; - return this; - } - - public SearchLibraryResponse build() { - return new SearchLibraryResponse( - contentType, - statusCode, - rawResponse, - object); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryResponseBody.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryResponseBody.java deleted file mode 100644 index 93b684a4..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/SearchLibraryResponseBody.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; -/** - * SearchLibraryResponseBody - The contents of the library by section and type - */ - -public class SearchLibraryResponseBody { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("MediaContainer") - private Optional mediaContainer; - - @JsonCreator - public SearchLibraryResponseBody( - @JsonProperty("MediaContainer") Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - } - - public SearchLibraryResponseBody() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaContainer() { - return (Optional) mediaContainer; - } - - public final static Builder builder() { - return new Builder(); - } - - public SearchLibraryResponseBody withMediaContainer(SearchLibraryMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public SearchLibraryResponseBody withMediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SearchLibraryResponseBody other = (SearchLibraryResponseBody) o; - return - java.util.Objects.deepEquals(this.mediaContainer, other.mediaContainer); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - mediaContainer); - } - - @Override - public String toString() { - return Utils.toString(SearchLibraryResponseBody.class, - "mediaContainer", mediaContainer); - } - - public final static class Builder { - - private Optional mediaContainer = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder mediaContainer(SearchLibraryMediaContainer mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = Optional.ofNullable(mediaContainer); - return this; - } - - public Builder mediaContainer(Optional mediaContainer) { - Utils.checkNotNull(mediaContainer, "mediaContainer"); - this.mediaContainer = mediaContainer; - return this; - } - - public SearchLibraryResponseBody build() { - return new SearchLibraryResponseBody( - mediaContainer); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Server.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Server.java deleted file mode 100644 index 979c779b..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Server.java +++ /dev/null @@ -1,541 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class Server { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("host") - private Optional host; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("address") - private Optional address; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("port") - private Optional port; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("machineIdentifier") - private Optional machineIdentifier; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("version") - private Optional version; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("protocol") - private Optional protocol; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("product") - private Optional product; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("deviceClass") - private Optional deviceClass; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("protocolVersion") - private Optional protocolVersion; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("protocolCapabilities") - private Optional protocolCapabilities; - - @JsonCreator - public Server( - @JsonProperty("name") Optional name, - @JsonProperty("host") Optional host, - @JsonProperty("address") Optional address, - @JsonProperty("port") Optional port, - @JsonProperty("machineIdentifier") Optional machineIdentifier, - @JsonProperty("version") Optional version, - @JsonProperty("protocol") Optional protocol, - @JsonProperty("product") Optional product, - @JsonProperty("deviceClass") Optional deviceClass, - @JsonProperty("protocolVersion") Optional protocolVersion, - @JsonProperty("protocolCapabilities") Optional protocolCapabilities) { - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(host, "host"); - Utils.checkNotNull(address, "address"); - Utils.checkNotNull(port, "port"); - Utils.checkNotNull(machineIdentifier, "machineIdentifier"); - Utils.checkNotNull(version, "version"); - Utils.checkNotNull(protocol, "protocol"); - Utils.checkNotNull(product, "product"); - Utils.checkNotNull(deviceClass, "deviceClass"); - Utils.checkNotNull(protocolVersion, "protocolVersion"); - Utils.checkNotNull(protocolCapabilities, "protocolCapabilities"); - 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; - } - - public Server() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional name() { - return (Optional) name; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional host() { - return (Optional) host; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional address() { - return (Optional) address; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional port() { - return (Optional) port; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional machineIdentifier() { - return (Optional) machineIdentifier; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional version() { - return (Optional) version; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional protocol() { - return (Optional) protocol; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional product() { - return (Optional) product; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional deviceClass() { - return (Optional) deviceClass; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional protocolVersion() { - return (Optional) protocolVersion; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional protocolCapabilities() { - return (Optional) protocolCapabilities; - } - - public final static Builder builder() { - return new Builder(); - } - - public Server withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Server withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Server withHost(String host) { - Utils.checkNotNull(host, "host"); - this.host = Optional.ofNullable(host); - return this; - } - - public Server withHost(Optional host) { - Utils.checkNotNull(host, "host"); - this.host = host; - return this; - } - - public Server withAddress(String address) { - Utils.checkNotNull(address, "address"); - this.address = Optional.ofNullable(address); - return this; - } - - public Server withAddress(Optional address) { - Utils.checkNotNull(address, "address"); - this.address = address; - return this; - } - - public Server withPort(double port) { - Utils.checkNotNull(port, "port"); - this.port = Optional.ofNullable(port); - return this; - } - - public Server withPort(Optional port) { - Utils.checkNotNull(port, "port"); - this.port = port; - return this; - } - - public Server withMachineIdentifier(String machineIdentifier) { - Utils.checkNotNull(machineIdentifier, "machineIdentifier"); - this.machineIdentifier = Optional.ofNullable(machineIdentifier); - return this; - } - - public Server withMachineIdentifier(Optional machineIdentifier) { - Utils.checkNotNull(machineIdentifier, "machineIdentifier"); - this.machineIdentifier = machineIdentifier; - return this; - } - - public Server withVersion(String version) { - Utils.checkNotNull(version, "version"); - this.version = Optional.ofNullable(version); - return this; - } - - public Server withVersion(Optional version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - public Server withProtocol(String protocol) { - Utils.checkNotNull(protocol, "protocol"); - this.protocol = Optional.ofNullable(protocol); - return this; - } - - public Server withProtocol(Optional protocol) { - Utils.checkNotNull(protocol, "protocol"); - this.protocol = protocol; - return this; - } - - public Server withProduct(String product) { - Utils.checkNotNull(product, "product"); - this.product = Optional.ofNullable(product); - return this; - } - - public Server withProduct(Optional product) { - Utils.checkNotNull(product, "product"); - this.product = product; - return this; - } - - public Server withDeviceClass(String deviceClass) { - Utils.checkNotNull(deviceClass, "deviceClass"); - this.deviceClass = Optional.ofNullable(deviceClass); - return this; - } - - public Server withDeviceClass(Optional deviceClass) { - Utils.checkNotNull(deviceClass, "deviceClass"); - this.deviceClass = deviceClass; - return this; - } - - public Server withProtocolVersion(double protocolVersion) { - Utils.checkNotNull(protocolVersion, "protocolVersion"); - this.protocolVersion = Optional.ofNullable(protocolVersion); - return this; - } - - public Server withProtocolVersion(Optional protocolVersion) { - Utils.checkNotNull(protocolVersion, "protocolVersion"); - this.protocolVersion = protocolVersion; - return this; - } - - public Server withProtocolCapabilities(String protocolCapabilities) { - Utils.checkNotNull(protocolCapabilities, "protocolCapabilities"); - this.protocolCapabilities = Optional.ofNullable(protocolCapabilities); - return this; - } - - public Server withProtocolCapabilities(Optional protocolCapabilities) { - Utils.checkNotNull(protocolCapabilities, "protocolCapabilities"); - this.protocolCapabilities = protocolCapabilities; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Server other = (Server) o; - return - java.util.Objects.deepEquals(this.name, other.name) && - java.util.Objects.deepEquals(this.host, other.host) && - java.util.Objects.deepEquals(this.address, other.address) && - java.util.Objects.deepEquals(this.port, other.port) && - java.util.Objects.deepEquals(this.machineIdentifier, other.machineIdentifier) && - java.util.Objects.deepEquals(this.version, other.version) && - java.util.Objects.deepEquals(this.protocol, other.protocol) && - java.util.Objects.deepEquals(this.product, other.product) && - java.util.Objects.deepEquals(this.deviceClass, other.deviceClass) && - java.util.Objects.deepEquals(this.protocolVersion, other.protocolVersion) && - java.util.Objects.deepEquals(this.protocolCapabilities, other.protocolCapabilities); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - name, - host, - address, - port, - machineIdentifier, - version, - protocol, - product, - deviceClass, - protocolVersion, - protocolCapabilities); - } - - @Override - public String toString() { - return Utils.toString(Server.class, - "name", name, - "host", host, - "address", address, - "port", port, - "machineIdentifier", machineIdentifier, - "version", version, - "protocol", protocol, - "product", product, - "deviceClass", deviceClass, - "protocolVersion", protocolVersion, - "protocolCapabilities", protocolCapabilities); - } - - public final static class Builder { - - private Optional name = Optional.empty(); - - private Optional host = Optional.empty(); - - private Optional address = Optional.empty(); - - private Optional port = Optional.empty(); - - private Optional machineIdentifier = Optional.empty(); - - private Optional version = Optional.empty(); - - private Optional protocol = Optional.empty(); - - private Optional product = Optional.empty(); - - private Optional deviceClass = Optional.empty(); - - private Optional protocolVersion = Optional.empty(); - - private Optional protocolCapabilities = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Builder host(String host) { - Utils.checkNotNull(host, "host"); - this.host = Optional.ofNullable(host); - return this; - } - - public Builder host(Optional host) { - Utils.checkNotNull(host, "host"); - this.host = host; - return this; - } - - public Builder address(String address) { - Utils.checkNotNull(address, "address"); - this.address = Optional.ofNullable(address); - return this; - } - - public Builder address(Optional address) { - Utils.checkNotNull(address, "address"); - this.address = address; - return this; - } - - public Builder port(double port) { - Utils.checkNotNull(port, "port"); - this.port = Optional.ofNullable(port); - return this; - } - - public Builder port(Optional port) { - Utils.checkNotNull(port, "port"); - this.port = port; - return this; - } - - public Builder machineIdentifier(String machineIdentifier) { - Utils.checkNotNull(machineIdentifier, "machineIdentifier"); - this.machineIdentifier = Optional.ofNullable(machineIdentifier); - return this; - } - - public Builder machineIdentifier(Optional machineIdentifier) { - Utils.checkNotNull(machineIdentifier, "machineIdentifier"); - this.machineIdentifier = machineIdentifier; - return this; - } - - public Builder version(String version) { - Utils.checkNotNull(version, "version"); - this.version = Optional.ofNullable(version); - return this; - } - - public Builder version(Optional version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - public Builder protocol(String protocol) { - Utils.checkNotNull(protocol, "protocol"); - this.protocol = Optional.ofNullable(protocol); - return this; - } - - public Builder protocol(Optional protocol) { - Utils.checkNotNull(protocol, "protocol"); - this.protocol = protocol; - return this; - } - - public Builder product(String product) { - Utils.checkNotNull(product, "product"); - this.product = Optional.ofNullable(product); - return this; - } - - public Builder product(Optional product) { - Utils.checkNotNull(product, "product"); - this.product = product; - return this; - } - - public Builder deviceClass(String deviceClass) { - Utils.checkNotNull(deviceClass, "deviceClass"); - this.deviceClass = Optional.ofNullable(deviceClass); - return this; - } - - public Builder deviceClass(Optional deviceClass) { - Utils.checkNotNull(deviceClass, "deviceClass"); - this.deviceClass = deviceClass; - return this; - } - - public Builder protocolVersion(double protocolVersion) { - Utils.checkNotNull(protocolVersion, "protocolVersion"); - this.protocolVersion = Optional.ofNullable(protocolVersion); - return this; - } - - public Builder protocolVersion(Optional protocolVersion) { - Utils.checkNotNull(protocolVersion, "protocolVersion"); - this.protocolVersion = protocolVersion; - return this; - } - - public Builder protocolCapabilities(String protocolCapabilities) { - Utils.checkNotNull(protocolCapabilities, "protocolCapabilities"); - this.protocolCapabilities = Optional.ofNullable(protocolCapabilities); - return this; - } - - public Builder protocolCapabilities(Optional protocolCapabilities) { - Utils.checkNotNull(protocolCapabilities, "protocolCapabilities"); - this.protocolCapabilities = protocolCapabilities; - return this; - } - - public Server build() { - return new Server( - name, - host, - address, - port, - machineIdentifier, - version, - protocol, - product, - deviceClass, - protocolVersion, - protocolCapabilities); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Session.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Session.java deleted file mode 100644 index e4f828b6..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Session.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class Session { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("bandwidth") - private Optional bandwidth; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("location") - private Optional location; - - @JsonCreator - public Session( - @JsonProperty("id") Optional id, - @JsonProperty("bandwidth") Optional bandwidth, - @JsonProperty("location") Optional location) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(bandwidth, "bandwidth"); - Utils.checkNotNull(location, "location"); - this.id = id; - this.bandwidth = bandwidth; - this.location = location; - } - - public Session() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional bandwidth() { - return (Optional) bandwidth; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional location() { - return (Optional) location; - } - - public final static Builder builder() { - return new Builder(); - } - - public Session withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Session withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Session withBandwidth(int bandwidth) { - Utils.checkNotNull(bandwidth, "bandwidth"); - this.bandwidth = Optional.ofNullable(bandwidth); - return this; - } - - public Session withBandwidth(Optional bandwidth) { - Utils.checkNotNull(bandwidth, "bandwidth"); - this.bandwidth = bandwidth; - return this; - } - - public Session withLocation(String location) { - Utils.checkNotNull(location, "location"); - this.location = Optional.ofNullable(location); - return this; - } - - public Session withLocation(Optional location) { - Utils.checkNotNull(location, "location"); - this.location = location; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Session other = (Session) o; - return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.bandwidth, other.bandwidth) && - java.util.Objects.deepEquals(this.location, other.location); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id, - bandwidth, - location); - } - - @Override - public String toString() { - return Utils.toString(Session.class, - "id", id, - "bandwidth", bandwidth, - "location", location); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional bandwidth = Optional.empty(); - - private Optional location = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder bandwidth(int bandwidth) { - Utils.checkNotNull(bandwidth, "bandwidth"); - this.bandwidth = Optional.ofNullable(bandwidth); - return this; - } - - public Builder bandwidth(Optional bandwidth) { - Utils.checkNotNull(bandwidth, "bandwidth"); - this.bandwidth = bandwidth; - return this; - } - - public Builder location(String location) { - Utils.checkNotNull(location, "location"); - this.location = Optional.ofNullable(location); - return this; - } - - public Builder location(Optional location) { - Utils.checkNotNull(location, "location"); - this.location = location; - return this; - } - - public Session build() { - return new Session( - id, - bandwidth, - location); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Setting.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Setting.java deleted file mode 100644 index b71116f4..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Setting.java +++ /dev/null @@ -1,498 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class Setting { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("label") - private Optional label; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("summary") - private Optional summary; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("default") - private Optional default_; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("value") - private Optional value; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("hidden") - private Optional hidden; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("advanced") - private Optional advanced; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("group") - private Optional group; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("enumValues") - private Optional enumValues; - - @JsonCreator - public Setting( - @JsonProperty("id") Optional id, - @JsonProperty("label") Optional label, - @JsonProperty("summary") Optional summary, - @JsonProperty("type") Optional type, - @JsonProperty("default") Optional default_, - @JsonProperty("value") Optional value, - @JsonProperty("hidden") Optional hidden, - @JsonProperty("advanced") Optional advanced, - @JsonProperty("group") Optional group, - @JsonProperty("enumValues") Optional enumValues) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(label, "label"); - Utils.checkNotNull(summary, "summary"); - Utils.checkNotNull(type, "type"); - Utils.checkNotNull(default_, "default_"); - Utils.checkNotNull(value, "value"); - Utils.checkNotNull(hidden, "hidden"); - Utils.checkNotNull(advanced, "advanced"); - Utils.checkNotNull(group, "group"); - Utils.checkNotNull(enumValues, "enumValues"); - 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; - } - - public Setting() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional label() { - return (Optional) label; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional summary() { - return (Optional) summary; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional default_() { - return (Optional) default_; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional value() { - return (Optional) value; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional hidden() { - return (Optional) hidden; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional advanced() { - return (Optional) advanced; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional group() { - return (Optional) group; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional enumValues() { - return (Optional) enumValues; - } - - public final static Builder builder() { - return new Builder(); - } - - public Setting withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Setting withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Setting withLabel(String label) { - Utils.checkNotNull(label, "label"); - this.label = Optional.ofNullable(label); - return this; - } - - public Setting withLabel(Optional label) { - Utils.checkNotNull(label, "label"); - this.label = label; - return this; - } - - public Setting withSummary(String summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = Optional.ofNullable(summary); - return this; - } - - public Setting withSummary(Optional summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = summary; - return this; - } - - public Setting withType(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Setting withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Setting withDefault(boolean default_) { - Utils.checkNotNull(default_, "default_"); - this.default_ = Optional.ofNullable(default_); - return this; - } - - public Setting withDefault(Optional default_) { - Utils.checkNotNull(default_, "default_"); - this.default_ = default_; - return this; - } - - public Setting withValue(boolean value) { - Utils.checkNotNull(value, "value"); - this.value = Optional.ofNullable(value); - return this; - } - - public Setting withValue(Optional value) { - Utils.checkNotNull(value, "value"); - this.value = value; - return this; - } - - public Setting withHidden(boolean hidden) { - Utils.checkNotNull(hidden, "hidden"); - this.hidden = Optional.ofNullable(hidden); - return this; - } - - public Setting withHidden(Optional hidden) { - Utils.checkNotNull(hidden, "hidden"); - this.hidden = hidden; - return this; - } - - public Setting withAdvanced(boolean advanced) { - Utils.checkNotNull(advanced, "advanced"); - this.advanced = Optional.ofNullable(advanced); - return this; - } - - public Setting withAdvanced(Optional advanced) { - Utils.checkNotNull(advanced, "advanced"); - this.advanced = advanced; - return this; - } - - public Setting withGroup(String group) { - Utils.checkNotNull(group, "group"); - this.group = Optional.ofNullable(group); - return this; - } - - public Setting withGroup(Optional group) { - Utils.checkNotNull(group, "group"); - this.group = group; - return this; - } - - public Setting withEnumValues(String enumValues) { - Utils.checkNotNull(enumValues, "enumValues"); - this.enumValues = Optional.ofNullable(enumValues); - return this; - } - - public Setting withEnumValues(Optional enumValues) { - Utils.checkNotNull(enumValues, "enumValues"); - this.enumValues = enumValues; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Setting other = (Setting) o; - return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.label, other.label) && - java.util.Objects.deepEquals(this.summary, other.summary) && - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.default_, other.default_) && - java.util.Objects.deepEquals(this.value, other.value) && - java.util.Objects.deepEquals(this.hidden, other.hidden) && - java.util.Objects.deepEquals(this.advanced, other.advanced) && - java.util.Objects.deepEquals(this.group, other.group) && - java.util.Objects.deepEquals(this.enumValues, other.enumValues); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id, - label, - summary, - type, - default_, - value, - hidden, - advanced, - group, - enumValues); - } - - @Override - public String toString() { - return Utils.toString(Setting.class, - "id", id, - "label", label, - "summary", summary, - "type", type, - "default_", default_, - "value", value, - "hidden", hidden, - "advanced", advanced, - "group", group, - "enumValues", enumValues); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional label = Optional.empty(); - - private Optional summary = Optional.empty(); - - private Optional type = Optional.empty(); - - private Optional default_ = Optional.empty(); - - private Optional value = Optional.empty(); - - private Optional hidden = Optional.empty(); - - private Optional advanced = Optional.empty(); - - private Optional group = Optional.empty(); - - private Optional enumValues = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder label(String label) { - Utils.checkNotNull(label, "label"); - this.label = Optional.ofNullable(label); - return this; - } - - public Builder label(Optional label) { - Utils.checkNotNull(label, "label"); - this.label = label; - return this; - } - - public Builder summary(String summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = Optional.ofNullable(summary); - return this; - } - - public Builder summary(Optional summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = summary; - return this; - } - - public Builder type(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Builder default_(boolean default_) { - Utils.checkNotNull(default_, "default_"); - this.default_ = Optional.ofNullable(default_); - return this; - } - - public Builder default_(Optional default_) { - Utils.checkNotNull(default_, "default_"); - this.default_ = default_; - return this; - } - - public Builder value(boolean value) { - Utils.checkNotNull(value, "value"); - this.value = Optional.ofNullable(value); - return this; - } - - public Builder value(Optional value) { - Utils.checkNotNull(value, "value"); - this.value = value; - return this; - } - - public Builder hidden(boolean hidden) { - Utils.checkNotNull(hidden, "hidden"); - this.hidden = Optional.ofNullable(hidden); - return this; - } - - public Builder hidden(Optional hidden) { - Utils.checkNotNull(hidden, "hidden"); - this.hidden = hidden; - return this; - } - - public Builder advanced(boolean advanced) { - Utils.checkNotNull(advanced, "advanced"); - this.advanced = Optional.ofNullable(advanced); - return this; - } - - public Builder advanced(Optional advanced) { - Utils.checkNotNull(advanced, "advanced"); - this.advanced = advanced; - return this; - } - - public Builder group(String group) { - Utils.checkNotNull(group, "group"); - this.group = Optional.ofNullable(group); - return this; - } - - public Builder group(Optional group) { - Utils.checkNotNull(group, "group"); - this.group = group; - return this; - } - - public Builder enumValues(String enumValues) { - Utils.checkNotNull(enumValues, "enumValues"); - this.enumValues = Optional.ofNullable(enumValues); - return this; - } - - public Builder enumValues(Optional enumValues) { - Utils.checkNotNull(enumValues, "enumValues"); - this.enumValues = enumValues; - return this; - } - - public Setting build() { - return new Setting( - id, - label, - summary, - type, - default_, - value, - hidden, - advanced, - group, - enumValues); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Skip.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Skip.java deleted file mode 100644 index 0be98c01..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Skip.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * Skip - Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`. - */ -public enum Skip { - ZERO(0L), - ONE(1L); - - @JsonValue - private final long value; - - private Skip(long value) { - this.value = value; - } - - public long value() { - return value; - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Smart.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Smart.java deleted file mode 100644 index 49a9ae18..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Smart.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * Smart - whether the playlist is smart or not - */ -public enum Smart { - ZERO(0L), - ONE(1L); - - @JsonValue - private final long value; - - private Smart(long value) { - this.value = value; - } - - public long value() { - return value; - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Sort.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Sort.java deleted file mode 100644 index c157fc15..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Sort.java +++ /dev/null @@ -1,326 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class Sort { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("default") - private Optional default_; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("defaultDirection") - private Optional defaultDirection; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("descKey") - private Optional descKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("firstCharacterKey") - private Optional firstCharacterKey; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("title") - private Optional title; - - @JsonCreator - public Sort( - @JsonProperty("default") Optional default_, - @JsonProperty("defaultDirection") Optional defaultDirection, - @JsonProperty("descKey") Optional descKey, - @JsonProperty("firstCharacterKey") Optional firstCharacterKey, - @JsonProperty("key") Optional key, - @JsonProperty("title") Optional title) { - Utils.checkNotNull(default_, "default_"); - Utils.checkNotNull(defaultDirection, "defaultDirection"); - Utils.checkNotNull(descKey, "descKey"); - Utils.checkNotNull(firstCharacterKey, "firstCharacterKey"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(title, "title"); - this.default_ = default_; - this.defaultDirection = defaultDirection; - this.descKey = descKey; - this.firstCharacterKey = firstCharacterKey; - this.key = key; - this.title = title; - } - - public Sort() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional default_() { - return (Optional) default_; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional defaultDirection() { - return (Optional) defaultDirection; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional descKey() { - return (Optional) descKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional firstCharacterKey() { - return (Optional) firstCharacterKey; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title() { - return (Optional) title; - } - - public final static Builder builder() { - return new Builder(); - } - - public Sort withDefault(String default_) { - Utils.checkNotNull(default_, "default_"); - this.default_ = Optional.ofNullable(default_); - return this; - } - - public Sort withDefault(Optional default_) { - Utils.checkNotNull(default_, "default_"); - this.default_ = default_; - return this; - } - - public Sort withDefaultDirection(String defaultDirection) { - Utils.checkNotNull(defaultDirection, "defaultDirection"); - this.defaultDirection = Optional.ofNullable(defaultDirection); - return this; - } - - public Sort withDefaultDirection(Optional defaultDirection) { - Utils.checkNotNull(defaultDirection, "defaultDirection"); - this.defaultDirection = defaultDirection; - return this; - } - - public Sort withDescKey(String descKey) { - Utils.checkNotNull(descKey, "descKey"); - this.descKey = Optional.ofNullable(descKey); - return this; - } - - public Sort withDescKey(Optional descKey) { - Utils.checkNotNull(descKey, "descKey"); - this.descKey = descKey; - return this; - } - - public Sort withFirstCharacterKey(String firstCharacterKey) { - Utils.checkNotNull(firstCharacterKey, "firstCharacterKey"); - this.firstCharacterKey = Optional.ofNullable(firstCharacterKey); - return this; - } - - public Sort withFirstCharacterKey(Optional firstCharacterKey) { - Utils.checkNotNull(firstCharacterKey, "firstCharacterKey"); - this.firstCharacterKey = firstCharacterKey; - return this; - } - - public Sort withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Sort withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Sort withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Sort withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Sort other = (Sort) o; - return - java.util.Objects.deepEquals(this.default_, other.default_) && - java.util.Objects.deepEquals(this.defaultDirection, other.defaultDirection) && - java.util.Objects.deepEquals(this.descKey, other.descKey) && - java.util.Objects.deepEquals(this.firstCharacterKey, other.firstCharacterKey) && - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.title, other.title); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - default_, - defaultDirection, - descKey, - firstCharacterKey, - key, - title); - } - - @Override - public String toString() { - return Utils.toString(Sort.class, - "default_", default_, - "defaultDirection", defaultDirection, - "descKey", descKey, - "firstCharacterKey", firstCharacterKey, - "key", key, - "title", title); - } - - public final static class Builder { - - private Optional default_ = Optional.empty(); - - private Optional defaultDirection = Optional.empty(); - - private Optional descKey = Optional.empty(); - - private Optional firstCharacterKey = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional title = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder default_(String default_) { - Utils.checkNotNull(default_, "default_"); - this.default_ = Optional.ofNullable(default_); - return this; - } - - public Builder default_(Optional default_) { - Utils.checkNotNull(default_, "default_"); - this.default_ = default_; - return this; - } - - public Builder defaultDirection(String defaultDirection) { - Utils.checkNotNull(defaultDirection, "defaultDirection"); - this.defaultDirection = Optional.ofNullable(defaultDirection); - return this; - } - - public Builder defaultDirection(Optional defaultDirection) { - Utils.checkNotNull(defaultDirection, "defaultDirection"); - this.defaultDirection = defaultDirection; - return this; - } - - public Builder descKey(String descKey) { - Utils.checkNotNull(descKey, "descKey"); - this.descKey = Optional.ofNullable(descKey); - return this; - } - - public Builder descKey(Optional descKey) { - Utils.checkNotNull(descKey, "descKey"); - this.descKey = descKey; - return this; - } - - public Builder firstCharacterKey(String firstCharacterKey) { - Utils.checkNotNull(firstCharacterKey, "firstCharacterKey"); - this.firstCharacterKey = Optional.ofNullable(firstCharacterKey); - return this; - } - - public Builder firstCharacterKey(Optional firstCharacterKey) { - Utils.checkNotNull(firstCharacterKey, "firstCharacterKey"); - this.firstCharacterKey = firstCharacterKey; - return this; - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public Sort build() { - return new Sort( - default_, - defaultDirection, - descKey, - firstCharacterKey, - key, - title); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StartAllTasksRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/StartAllTasksRequestBuilder.java deleted file mode 100644 index 9e43f360..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StartAllTasksRequestBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class StartAllTasksRequestBuilder { - - private final SDKMethodInterfaces.MethodCallStartAllTasks sdk; - - public StartAllTasksRequestBuilder(SDKMethodInterfaces.MethodCallStartAllTasks sdk) { - this.sdk = sdk; - } - - public StartAllTasksResponse call() throws Exception { - - return sdk.startAllTasksDirect(); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StartAllTasksResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/StartAllTasksResponse.java deleted file mode 100644 index 60af603d..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StartAllTasksResponse.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class StartAllTasksResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - @JsonCreator - public StartAllTasksResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public StartAllTasksResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public StartAllTasksResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public StartAllTasksResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - StartAllTasksResponse other = (StartAllTasksResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(StartAllTasksResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public StartAllTasksResponse build() { - return new StartAllTasksResponse( - contentType, - statusCode, - rawResponse); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StartTaskRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/StartTaskRequest.java deleted file mode 100644 index 0e43e7f6..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StartTaskRequest.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class StartTaskRequest { - - /** - * the name of the task to be started. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=taskName") - private TaskName taskName; - - @JsonCreator - public StartTaskRequest( - TaskName taskName) { - Utils.checkNotNull(taskName, "taskName"); - this.taskName = taskName; - } - - /** - * the name of the task to be started. - */ - @JsonIgnore - public TaskName taskName() { - return taskName; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * the name of the task to be started. - */ - public StartTaskRequest withTaskName(TaskName taskName) { - Utils.checkNotNull(taskName, "taskName"); - this.taskName = taskName; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - StartTaskRequest other = (StartTaskRequest) o; - return - java.util.Objects.deepEquals(this.taskName, other.taskName); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - taskName); - } - - @Override - public String toString() { - return Utils.toString(StartTaskRequest.class, - "taskName", taskName); - } - - public final static class Builder { - - private TaskName taskName; - - private Builder() { - // force use of static builder() method - } - - /** - * the name of the task to be started. - */ - public Builder taskName(TaskName taskName) { - Utils.checkNotNull(taskName, "taskName"); - this.taskName = taskName; - return this; - } - - public StartTaskRequest build() { - return new StartTaskRequest( - taskName); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StartTaskRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/StartTaskRequestBuilder.java deleted file mode 100644 index eac06aa7..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StartTaskRequestBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class StartTaskRequestBuilder { - - private TaskName taskName; - private final SDKMethodInterfaces.MethodCallStartTask sdk; - - public StartTaskRequestBuilder(SDKMethodInterfaces.MethodCallStartTask sdk) { - this.sdk = sdk; - } - - public StartTaskRequestBuilder taskName(TaskName taskName) { - Utils.checkNotNull(taskName, "taskName"); - this.taskName = taskName; - return this; - } - - public StartTaskResponse call() throws Exception { - - return sdk.startTask( - taskName); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StartTaskResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/StartTaskResponse.java deleted file mode 100644 index deaaefea..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StartTaskResponse.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class StartTaskResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - @JsonCreator - public StartTaskResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public StartTaskResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public StartTaskResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public StartTaskResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - StartTaskResponse other = (StartTaskResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(StartTaskResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public StartTaskResponse build() { - return new StartTaskResponse( - contentType, - statusCode, - rawResponse); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StartUniversalTranscodeRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/StartUniversalTranscodeRequest.java deleted file mode 100644 index 5eaa0060..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StartUniversalTranscodeRequest.java +++ /dev/null @@ -1,936 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class StartUniversalTranscodeRequest { - - /** - * Whether the media item has MDE - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=hasMDE") - private double hasMDE; - - /** - * The path to the media item to transcode - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=path") - private String path; - - /** - * The index of the media item to transcode - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=mediaIndex") - private double mediaIndex; - - /** - * The index of the part to transcode - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=partIndex") - private double partIndex; - - /** - * The protocol to use for the transcode session - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=protocol") - private String protocol; - - /** - * Whether to use fast seek or not - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=fastSeek") - private Optional fastSeek; - - /** - * Whether to use direct play or not - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=directPlay") - private Optional directPlay; - - /** - * Whether to use direct stream or not - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=directStream") - private Optional directStream; - - /** - * The size of the subtitles - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=subtitleSize") - private Optional subtitleSize; - - /** - * The subtitles - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=subtites") - private Optional subtites; - - /** - * The audio boost - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=audioBoost") - private Optional audioBoost; - - /** - * The location of the transcode session - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=location") - private Optional location; - - /** - * The size of the media buffer - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=mediaBufferSize") - private Optional mediaBufferSize; - - /** - * The session ID - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=session") - private Optional session; - - /** - * Whether to add a debug overlay or not - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=addDebugOverlay") - private Optional addDebugOverlay; - - /** - * Whether to auto adjust quality or not - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=autoAdjustQuality") - private Optional autoAdjustQuality; - - @JsonCreator - public StartUniversalTranscodeRequest( - double hasMDE, - String path, - double mediaIndex, - double partIndex, - String protocol, - Optional fastSeek, - Optional directPlay, - Optional directStream, - Optional subtitleSize, - Optional subtites, - Optional audioBoost, - Optional location, - Optional mediaBufferSize, - Optional session, - Optional addDebugOverlay, - Optional autoAdjustQuality) { - Utils.checkNotNull(hasMDE, "hasMDE"); - Utils.checkNotNull(path, "path"); - Utils.checkNotNull(mediaIndex, "mediaIndex"); - Utils.checkNotNull(partIndex, "partIndex"); - Utils.checkNotNull(protocol, "protocol"); - Utils.checkNotNull(fastSeek, "fastSeek"); - Utils.checkNotNull(directPlay, "directPlay"); - Utils.checkNotNull(directStream, "directStream"); - Utils.checkNotNull(subtitleSize, "subtitleSize"); - Utils.checkNotNull(subtites, "subtites"); - Utils.checkNotNull(audioBoost, "audioBoost"); - Utils.checkNotNull(location, "location"); - Utils.checkNotNull(mediaBufferSize, "mediaBufferSize"); - Utils.checkNotNull(session, "session"); - Utils.checkNotNull(addDebugOverlay, "addDebugOverlay"); - Utils.checkNotNull(autoAdjustQuality, "autoAdjustQuality"); - 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; - } - - public StartUniversalTranscodeRequest( - double hasMDE, - String path, - double mediaIndex, - double partIndex, - String protocol) { - this(hasMDE, path, mediaIndex, partIndex, protocol, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - /** - * Whether the media item has MDE - */ - @JsonIgnore - public double hasMDE() { - return hasMDE; - } - - /** - * The path to the media item to transcode - */ - @JsonIgnore - public String path() { - return path; - } - - /** - * The index of the media item to transcode - */ - @JsonIgnore - public double mediaIndex() { - return mediaIndex; - } - - /** - * The index of the part to transcode - */ - @JsonIgnore - public double partIndex() { - return partIndex; - } - - /** - * The protocol to use for the transcode session - */ - @JsonIgnore - public String protocol() { - return protocol; - } - - /** - * Whether to use fast seek or not - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional fastSeek() { - return (Optional) fastSeek; - } - - /** - * Whether to use direct play or not - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional directPlay() { - return (Optional) directPlay; - } - - /** - * Whether to use direct stream or not - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional directStream() { - return (Optional) directStream; - } - - /** - * The size of the subtitles - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional subtitleSize() { - return (Optional) subtitleSize; - } - - /** - * The subtitles - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional subtites() { - return (Optional) subtites; - } - - /** - * The audio boost - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audioBoost() { - return (Optional) audioBoost; - } - - /** - * The location of the transcode session - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional location() { - return (Optional) location; - } - - /** - * The size of the media buffer - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional mediaBufferSize() { - return (Optional) mediaBufferSize; - } - - /** - * The session ID - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional session() { - return (Optional) session; - } - - /** - * Whether to add a debug overlay or not - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional addDebugOverlay() { - return (Optional) addDebugOverlay; - } - - /** - * Whether to auto adjust quality or not - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional autoAdjustQuality() { - return (Optional) autoAdjustQuality; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * Whether the media item has MDE - */ - public StartUniversalTranscodeRequest withHasMDE(double hasMDE) { - Utils.checkNotNull(hasMDE, "hasMDE"); - this.hasMDE = hasMDE; - return this; - } - - /** - * The path to the media item to transcode - */ - public StartUniversalTranscodeRequest withPath(String path) { - Utils.checkNotNull(path, "path"); - this.path = path; - return this; - } - - /** - * The index of the media item to transcode - */ - public StartUniversalTranscodeRequest withMediaIndex(double mediaIndex) { - Utils.checkNotNull(mediaIndex, "mediaIndex"); - this.mediaIndex = mediaIndex; - return this; - } - - /** - * The index of the part to transcode - */ - public StartUniversalTranscodeRequest withPartIndex(double partIndex) { - Utils.checkNotNull(partIndex, "partIndex"); - this.partIndex = partIndex; - return this; - } - - /** - * The protocol to use for the transcode session - */ - public StartUniversalTranscodeRequest withProtocol(String protocol) { - Utils.checkNotNull(protocol, "protocol"); - this.protocol = protocol; - return this; - } - - /** - * Whether to use fast seek or not - */ - public StartUniversalTranscodeRequest withFastSeek(double fastSeek) { - Utils.checkNotNull(fastSeek, "fastSeek"); - this.fastSeek = Optional.ofNullable(fastSeek); - return this; - } - - /** - * Whether to use fast seek or not - */ - public StartUniversalTranscodeRequest withFastSeek(Optional fastSeek) { - Utils.checkNotNull(fastSeek, "fastSeek"); - this.fastSeek = fastSeek; - return this; - } - - /** - * Whether to use direct play or not - */ - public StartUniversalTranscodeRequest withDirectPlay(double directPlay) { - Utils.checkNotNull(directPlay, "directPlay"); - this.directPlay = Optional.ofNullable(directPlay); - return this; - } - - /** - * Whether to use direct play or not - */ - public StartUniversalTranscodeRequest withDirectPlay(Optional directPlay) { - Utils.checkNotNull(directPlay, "directPlay"); - this.directPlay = directPlay; - return this; - } - - /** - * Whether to use direct stream or not - */ - public StartUniversalTranscodeRequest withDirectStream(double directStream) { - Utils.checkNotNull(directStream, "directStream"); - this.directStream = Optional.ofNullable(directStream); - return this; - } - - /** - * Whether to use direct stream or not - */ - public StartUniversalTranscodeRequest withDirectStream(Optional directStream) { - Utils.checkNotNull(directStream, "directStream"); - this.directStream = directStream; - return this; - } - - /** - * The size of the subtitles - */ - public StartUniversalTranscodeRequest withSubtitleSize(double subtitleSize) { - Utils.checkNotNull(subtitleSize, "subtitleSize"); - this.subtitleSize = Optional.ofNullable(subtitleSize); - return this; - } - - /** - * The size of the subtitles - */ - public StartUniversalTranscodeRequest withSubtitleSize(Optional subtitleSize) { - Utils.checkNotNull(subtitleSize, "subtitleSize"); - this.subtitleSize = subtitleSize; - return this; - } - - /** - * The subtitles - */ - public StartUniversalTranscodeRequest withSubtites(String subtites) { - Utils.checkNotNull(subtites, "subtites"); - this.subtites = Optional.ofNullable(subtites); - return this; - } - - /** - * The subtitles - */ - public StartUniversalTranscodeRequest withSubtites(Optional subtites) { - Utils.checkNotNull(subtites, "subtites"); - this.subtites = subtites; - return this; - } - - /** - * The audio boost - */ - public StartUniversalTranscodeRequest withAudioBoost(double audioBoost) { - Utils.checkNotNull(audioBoost, "audioBoost"); - this.audioBoost = Optional.ofNullable(audioBoost); - return this; - } - - /** - * The audio boost - */ - public StartUniversalTranscodeRequest withAudioBoost(Optional audioBoost) { - Utils.checkNotNull(audioBoost, "audioBoost"); - this.audioBoost = audioBoost; - return this; - } - - /** - * The location of the transcode session - */ - public StartUniversalTranscodeRequest withLocation(String location) { - Utils.checkNotNull(location, "location"); - this.location = Optional.ofNullable(location); - return this; - } - - /** - * The location of the transcode session - */ - public StartUniversalTranscodeRequest withLocation(Optional location) { - Utils.checkNotNull(location, "location"); - this.location = location; - return this; - } - - /** - * The size of the media buffer - */ - public StartUniversalTranscodeRequest withMediaBufferSize(double mediaBufferSize) { - Utils.checkNotNull(mediaBufferSize, "mediaBufferSize"); - this.mediaBufferSize = Optional.ofNullable(mediaBufferSize); - return this; - } - - /** - * The size of the media buffer - */ - public StartUniversalTranscodeRequest withMediaBufferSize(Optional mediaBufferSize) { - Utils.checkNotNull(mediaBufferSize, "mediaBufferSize"); - this.mediaBufferSize = mediaBufferSize; - return this; - } - - /** - * The session ID - */ - public StartUniversalTranscodeRequest withSession(String session) { - Utils.checkNotNull(session, "session"); - this.session = Optional.ofNullable(session); - return this; - } - - /** - * The session ID - */ - public StartUniversalTranscodeRequest withSession(Optional session) { - Utils.checkNotNull(session, "session"); - this.session = session; - return this; - } - - /** - * Whether to add a debug overlay or not - */ - public StartUniversalTranscodeRequest withAddDebugOverlay(double addDebugOverlay) { - Utils.checkNotNull(addDebugOverlay, "addDebugOverlay"); - this.addDebugOverlay = Optional.ofNullable(addDebugOverlay); - return this; - } - - /** - * Whether to add a debug overlay or not - */ - public StartUniversalTranscodeRequest withAddDebugOverlay(Optional addDebugOverlay) { - Utils.checkNotNull(addDebugOverlay, "addDebugOverlay"); - this.addDebugOverlay = addDebugOverlay; - return this; - } - - /** - * Whether to auto adjust quality or not - */ - public StartUniversalTranscodeRequest withAutoAdjustQuality(double autoAdjustQuality) { - Utils.checkNotNull(autoAdjustQuality, "autoAdjustQuality"); - this.autoAdjustQuality = Optional.ofNullable(autoAdjustQuality); - return this; - } - - /** - * Whether to auto adjust quality or not - */ - public StartUniversalTranscodeRequest withAutoAdjustQuality(Optional autoAdjustQuality) { - Utils.checkNotNull(autoAdjustQuality, "autoAdjustQuality"); - this.autoAdjustQuality = autoAdjustQuality; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - StartUniversalTranscodeRequest other = (StartUniversalTranscodeRequest) o; - return - java.util.Objects.deepEquals(this.hasMDE, other.hasMDE) && - java.util.Objects.deepEquals(this.path, other.path) && - java.util.Objects.deepEquals(this.mediaIndex, other.mediaIndex) && - java.util.Objects.deepEquals(this.partIndex, other.partIndex) && - java.util.Objects.deepEquals(this.protocol, other.protocol) && - java.util.Objects.deepEquals(this.fastSeek, other.fastSeek) && - java.util.Objects.deepEquals(this.directPlay, other.directPlay) && - java.util.Objects.deepEquals(this.directStream, other.directStream) && - java.util.Objects.deepEquals(this.subtitleSize, other.subtitleSize) && - java.util.Objects.deepEquals(this.subtites, other.subtites) && - java.util.Objects.deepEquals(this.audioBoost, other.audioBoost) && - java.util.Objects.deepEquals(this.location, other.location) && - java.util.Objects.deepEquals(this.mediaBufferSize, other.mediaBufferSize) && - java.util.Objects.deepEquals(this.session, other.session) && - java.util.Objects.deepEquals(this.addDebugOverlay, other.addDebugOverlay) && - java.util.Objects.deepEquals(this.autoAdjustQuality, other.autoAdjustQuality); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - hasMDE, - path, - mediaIndex, - partIndex, - protocol, - fastSeek, - directPlay, - directStream, - subtitleSize, - subtites, - audioBoost, - location, - mediaBufferSize, - session, - addDebugOverlay, - autoAdjustQuality); - } - - @Override - public String toString() { - return Utils.toString(StartUniversalTranscodeRequest.class, - "hasMDE", hasMDE, - "path", path, - "mediaIndex", mediaIndex, - "partIndex", partIndex, - "protocol", protocol, - "fastSeek", fastSeek, - "directPlay", directPlay, - "directStream", directStream, - "subtitleSize", subtitleSize, - "subtites", subtites, - "audioBoost", audioBoost, - "location", location, - "mediaBufferSize", mediaBufferSize, - "session", session, - "addDebugOverlay", addDebugOverlay, - "autoAdjustQuality", autoAdjustQuality); - } - - public final static class Builder { - - private Double hasMDE; - - private String path; - - private Double mediaIndex; - - private Double partIndex; - - private String protocol; - - private Optional fastSeek = Optional.empty(); - - private Optional directPlay = Optional.empty(); - - private Optional directStream = Optional.empty(); - - private Optional subtitleSize = Optional.empty(); - - private Optional subtites = Optional.empty(); - - private Optional audioBoost = Optional.empty(); - - private Optional location = Optional.empty(); - - private Optional mediaBufferSize = Optional.empty(); - - private Optional session = Optional.empty(); - - private Optional addDebugOverlay = Optional.empty(); - - private Optional autoAdjustQuality = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * Whether the media item has MDE - */ - public Builder hasMDE(double hasMDE) { - Utils.checkNotNull(hasMDE, "hasMDE"); - this.hasMDE = hasMDE; - return this; - } - - /** - * The path to the media item to transcode - */ - public Builder path(String path) { - Utils.checkNotNull(path, "path"); - this.path = path; - return this; - } - - /** - * The index of the media item to transcode - */ - public Builder mediaIndex(double mediaIndex) { - Utils.checkNotNull(mediaIndex, "mediaIndex"); - this.mediaIndex = mediaIndex; - return this; - } - - /** - * The index of the part to transcode - */ - public Builder partIndex(double partIndex) { - Utils.checkNotNull(partIndex, "partIndex"); - this.partIndex = partIndex; - return this; - } - - /** - * The protocol to use for the transcode session - */ - public Builder protocol(String protocol) { - Utils.checkNotNull(protocol, "protocol"); - this.protocol = protocol; - return this; - } - - /** - * Whether to use fast seek or not - */ - public Builder fastSeek(double fastSeek) { - Utils.checkNotNull(fastSeek, "fastSeek"); - this.fastSeek = Optional.ofNullable(fastSeek); - return this; - } - - /** - * Whether to use fast seek or not - */ - public Builder fastSeek(Optional fastSeek) { - Utils.checkNotNull(fastSeek, "fastSeek"); - this.fastSeek = fastSeek; - return this; - } - - /** - * Whether to use direct play or not - */ - public Builder directPlay(double directPlay) { - Utils.checkNotNull(directPlay, "directPlay"); - this.directPlay = Optional.ofNullable(directPlay); - return this; - } - - /** - * Whether to use direct play or not - */ - public Builder directPlay(Optional directPlay) { - Utils.checkNotNull(directPlay, "directPlay"); - this.directPlay = directPlay; - return this; - } - - /** - * Whether to use direct stream or not - */ - public Builder directStream(double directStream) { - Utils.checkNotNull(directStream, "directStream"); - this.directStream = Optional.ofNullable(directStream); - return this; - } - - /** - * Whether to use direct stream or not - */ - public Builder directStream(Optional directStream) { - Utils.checkNotNull(directStream, "directStream"); - this.directStream = directStream; - return this; - } - - /** - * The size of the subtitles - */ - public Builder subtitleSize(double subtitleSize) { - Utils.checkNotNull(subtitleSize, "subtitleSize"); - this.subtitleSize = Optional.ofNullable(subtitleSize); - return this; - } - - /** - * The size of the subtitles - */ - public Builder subtitleSize(Optional subtitleSize) { - Utils.checkNotNull(subtitleSize, "subtitleSize"); - this.subtitleSize = subtitleSize; - return this; - } - - /** - * The subtitles - */ - public Builder subtites(String subtites) { - Utils.checkNotNull(subtites, "subtites"); - this.subtites = Optional.ofNullable(subtites); - return this; - } - - /** - * The subtitles - */ - public Builder subtites(Optional subtites) { - Utils.checkNotNull(subtites, "subtites"); - this.subtites = subtites; - return this; - } - - /** - * The audio boost - */ - public Builder audioBoost(double audioBoost) { - Utils.checkNotNull(audioBoost, "audioBoost"); - this.audioBoost = Optional.ofNullable(audioBoost); - return this; - } - - /** - * The audio boost - */ - public Builder audioBoost(Optional audioBoost) { - Utils.checkNotNull(audioBoost, "audioBoost"); - this.audioBoost = audioBoost; - return this; - } - - /** - * The location of the transcode session - */ - public Builder location(String location) { - Utils.checkNotNull(location, "location"); - this.location = Optional.ofNullable(location); - return this; - } - - /** - * The location of the transcode session - */ - public Builder location(Optional location) { - Utils.checkNotNull(location, "location"); - this.location = location; - return this; - } - - /** - * The size of the media buffer - */ - public Builder mediaBufferSize(double mediaBufferSize) { - Utils.checkNotNull(mediaBufferSize, "mediaBufferSize"); - this.mediaBufferSize = Optional.ofNullable(mediaBufferSize); - return this; - } - - /** - * The size of the media buffer - */ - public Builder mediaBufferSize(Optional mediaBufferSize) { - Utils.checkNotNull(mediaBufferSize, "mediaBufferSize"); - this.mediaBufferSize = mediaBufferSize; - return this; - } - - /** - * The session ID - */ - public Builder session(String session) { - Utils.checkNotNull(session, "session"); - this.session = Optional.ofNullable(session); - return this; - } - - /** - * The session ID - */ - public Builder session(Optional session) { - Utils.checkNotNull(session, "session"); - this.session = session; - return this; - } - - /** - * Whether to add a debug overlay or not - */ - public Builder addDebugOverlay(double addDebugOverlay) { - Utils.checkNotNull(addDebugOverlay, "addDebugOverlay"); - this.addDebugOverlay = Optional.ofNullable(addDebugOverlay); - return this; - } - - /** - * Whether to add a debug overlay or not - */ - public Builder addDebugOverlay(Optional addDebugOverlay) { - Utils.checkNotNull(addDebugOverlay, "addDebugOverlay"); - this.addDebugOverlay = addDebugOverlay; - return this; - } - - /** - * Whether to auto adjust quality or not - */ - public Builder autoAdjustQuality(double autoAdjustQuality) { - Utils.checkNotNull(autoAdjustQuality, "autoAdjustQuality"); - this.autoAdjustQuality = Optional.ofNullable(autoAdjustQuality); - return this; - } - - /** - * Whether to auto adjust quality or not - */ - public Builder autoAdjustQuality(Optional autoAdjustQuality) { - Utils.checkNotNull(autoAdjustQuality, "autoAdjustQuality"); - this.autoAdjustQuality = autoAdjustQuality; - return this; - } - - public StartUniversalTranscodeRequest build() { - return new StartUniversalTranscodeRequest( - hasMDE, - path, - mediaIndex, - partIndex, - protocol, - fastSeek, - directPlay, - directStream, - subtitleSize, - subtites, - audioBoost, - location, - mediaBufferSize, - session, - addDebugOverlay, - autoAdjustQuality); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StartUniversalTranscodeRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/StartUniversalTranscodeRequestBuilder.java deleted file mode 100644 index d35de5d3..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StartUniversalTranscodeRequestBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class StartUniversalTranscodeRequestBuilder { - - private StartUniversalTranscodeRequest request; - private final SDKMethodInterfaces.MethodCallStartUniversalTranscode sdk; - - public StartUniversalTranscodeRequestBuilder(SDKMethodInterfaces.MethodCallStartUniversalTranscode sdk) { - this.sdk = sdk; - } - - public StartUniversalTranscodeRequestBuilder request(StartUniversalTranscodeRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public StartUniversalTranscodeResponse call() throws Exception { - - return sdk.startUniversalTranscode( - request); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StartUniversalTranscodeResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/StartUniversalTranscodeResponse.java deleted file mode 100644 index e75bf7c5..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StartUniversalTranscodeResponse.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class StartUniversalTranscodeResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - @JsonCreator - public StartUniversalTranscodeResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public StartUniversalTranscodeResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public StartUniversalTranscodeResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public StartUniversalTranscodeResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - StartUniversalTranscodeResponse other = (StartUniversalTranscodeResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(StartUniversalTranscodeResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public StartUniversalTranscodeResponse build() { - return new StartUniversalTranscodeResponse( - contentType, - statusCode, - rawResponse); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/State.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/State.java deleted file mode 100644 index 488506bc..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/State.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * State - The state of the media item - */ -public enum State { - PLAYING("playing"), - PAUSED("paused"), - STOPPED("stopped"); - - @JsonValue - private final String value; - - private State(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StatisticsBandwidth.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/StatisticsBandwidth.java deleted file mode 100644 index 00c6a969..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StatisticsBandwidth.java +++ /dev/null @@ -1,326 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class StatisticsBandwidth { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("accountID") - private Optional accountID; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("deviceID") - private Optional deviceID; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("timespan") - private Optional timespan; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("at") - private Optional at; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("lan") - private Optional lan; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("bytes") - private Optional bytes; - - @JsonCreator - public StatisticsBandwidth( - @JsonProperty("accountID") Optional accountID, - @JsonProperty("deviceID") Optional deviceID, - @JsonProperty("timespan") Optional timespan, - @JsonProperty("at") Optional at, - @JsonProperty("lan") Optional lan, - @JsonProperty("bytes") Optional bytes) { - Utils.checkNotNull(accountID, "accountID"); - Utils.checkNotNull(deviceID, "deviceID"); - Utils.checkNotNull(timespan, "timespan"); - Utils.checkNotNull(at, "at"); - Utils.checkNotNull(lan, "lan"); - Utils.checkNotNull(bytes, "bytes"); - this.accountID = accountID; - this.deviceID = deviceID; - this.timespan = timespan; - this.at = at; - this.lan = lan; - this.bytes = bytes; - } - - public StatisticsBandwidth() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional accountID() { - return (Optional) accountID; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional deviceID() { - return (Optional) deviceID; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional timespan() { - return (Optional) timespan; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional at() { - return (Optional) at; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional lan() { - return (Optional) lan; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional bytes() { - return (Optional) bytes; - } - - public final static Builder builder() { - return new Builder(); - } - - public StatisticsBandwidth withAccountID(int accountID) { - Utils.checkNotNull(accountID, "accountID"); - this.accountID = Optional.ofNullable(accountID); - return this; - } - - public StatisticsBandwidth withAccountID(Optional accountID) { - Utils.checkNotNull(accountID, "accountID"); - this.accountID = accountID; - return this; - } - - public StatisticsBandwidth withDeviceID(int deviceID) { - Utils.checkNotNull(deviceID, "deviceID"); - this.deviceID = Optional.ofNullable(deviceID); - return this; - } - - public StatisticsBandwidth withDeviceID(Optional deviceID) { - Utils.checkNotNull(deviceID, "deviceID"); - this.deviceID = deviceID; - return this; - } - - public StatisticsBandwidth withTimespan(long timespan) { - Utils.checkNotNull(timespan, "timespan"); - this.timespan = Optional.ofNullable(timespan); - return this; - } - - public StatisticsBandwidth withTimespan(Optional timespan) { - Utils.checkNotNull(timespan, "timespan"); - this.timespan = timespan; - return this; - } - - public StatisticsBandwidth withAt(int at) { - Utils.checkNotNull(at, "at"); - this.at = Optional.ofNullable(at); - return this; - } - - public StatisticsBandwidth withAt(Optional at) { - Utils.checkNotNull(at, "at"); - this.at = at; - return this; - } - - public StatisticsBandwidth withLan(boolean lan) { - Utils.checkNotNull(lan, "lan"); - this.lan = Optional.ofNullable(lan); - return this; - } - - public StatisticsBandwidth withLan(Optional lan) { - Utils.checkNotNull(lan, "lan"); - this.lan = lan; - return this; - } - - public StatisticsBandwidth withBytes(long bytes) { - Utils.checkNotNull(bytes, "bytes"); - this.bytes = Optional.ofNullable(bytes); - return this; - } - - public StatisticsBandwidth withBytes(Optional bytes) { - Utils.checkNotNull(bytes, "bytes"); - this.bytes = bytes; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - StatisticsBandwidth other = (StatisticsBandwidth) o; - return - java.util.Objects.deepEquals(this.accountID, other.accountID) && - java.util.Objects.deepEquals(this.deviceID, other.deviceID) && - java.util.Objects.deepEquals(this.timespan, other.timespan) && - java.util.Objects.deepEquals(this.at, other.at) && - java.util.Objects.deepEquals(this.lan, other.lan) && - java.util.Objects.deepEquals(this.bytes, other.bytes); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - accountID, - deviceID, - timespan, - at, - lan, - bytes); - } - - @Override - public String toString() { - return Utils.toString(StatisticsBandwidth.class, - "accountID", accountID, - "deviceID", deviceID, - "timespan", timespan, - "at", at, - "lan", lan, - "bytes", bytes); - } - - public final static class Builder { - - private Optional accountID = Optional.empty(); - - private Optional deviceID = Optional.empty(); - - private Optional timespan = Optional.empty(); - - private Optional at = Optional.empty(); - - private Optional lan = Optional.empty(); - - private Optional bytes = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder accountID(int accountID) { - Utils.checkNotNull(accountID, "accountID"); - this.accountID = Optional.ofNullable(accountID); - return this; - } - - public Builder accountID(Optional accountID) { - Utils.checkNotNull(accountID, "accountID"); - this.accountID = accountID; - return this; - } - - public Builder deviceID(int deviceID) { - Utils.checkNotNull(deviceID, "deviceID"); - this.deviceID = Optional.ofNullable(deviceID); - return this; - } - - public Builder deviceID(Optional deviceID) { - Utils.checkNotNull(deviceID, "deviceID"); - this.deviceID = deviceID; - return this; - } - - public Builder timespan(long timespan) { - Utils.checkNotNull(timespan, "timespan"); - this.timespan = Optional.ofNullable(timespan); - return this; - } - - public Builder timespan(Optional timespan) { - Utils.checkNotNull(timespan, "timespan"); - this.timespan = timespan; - return this; - } - - public Builder at(int at) { - Utils.checkNotNull(at, "at"); - this.at = Optional.ofNullable(at); - return this; - } - - public Builder at(Optional at) { - Utils.checkNotNull(at, "at"); - this.at = at; - return this; - } - - public Builder lan(boolean lan) { - Utils.checkNotNull(lan, "lan"); - this.lan = Optional.ofNullable(lan); - return this; - } - - public Builder lan(Optional lan) { - Utils.checkNotNull(lan, "lan"); - this.lan = lan; - return this; - } - - public Builder bytes(long bytes) { - Utils.checkNotNull(bytes, "bytes"); - this.bytes = Optional.ofNullable(bytes); - return this; - } - - public Builder bytes(Optional bytes) { - Utils.checkNotNull(bytes, "bytes"); - this.bytes = bytes; - return this; - } - - public StatisticsBandwidth build() { - return new StatisticsBandwidth( - accountID, - deviceID, - timespan, - at, - lan, - bytes); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StatisticsMedia.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/StatisticsMedia.java deleted file mode 100644 index 46961bd7..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StatisticsMedia.java +++ /dev/null @@ -1,369 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class StatisticsMedia { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("accountID") - private Optional accountID; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("deviceID") - private Optional deviceID; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("timespan") - private Optional timespan; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("at") - private Optional at; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("metadataType") - private Optional metadataType; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("count") - private Optional count; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("duration") - private Optional duration; - - @JsonCreator - public StatisticsMedia( - @JsonProperty("accountID") Optional accountID, - @JsonProperty("deviceID") Optional deviceID, - @JsonProperty("timespan") Optional timespan, - @JsonProperty("at") Optional at, - @JsonProperty("metadataType") Optional metadataType, - @JsonProperty("count") Optional count, - @JsonProperty("duration") Optional duration) { - Utils.checkNotNull(accountID, "accountID"); - Utils.checkNotNull(deviceID, "deviceID"); - Utils.checkNotNull(timespan, "timespan"); - Utils.checkNotNull(at, "at"); - Utils.checkNotNull(metadataType, "metadataType"); - Utils.checkNotNull(count, "count"); - Utils.checkNotNull(duration, "duration"); - this.accountID = accountID; - this.deviceID = deviceID; - this.timespan = timespan; - this.at = at; - this.metadataType = metadataType; - this.count = count; - this.duration = duration; - } - - public StatisticsMedia() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional accountID() { - return (Optional) accountID; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional deviceID() { - return (Optional) deviceID; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional timespan() { - return (Optional) timespan; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional at() { - return (Optional) at; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional metadataType() { - return (Optional) metadataType; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional count() { - return (Optional) count; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional duration() { - return (Optional) duration; - } - - public final static Builder builder() { - return new Builder(); - } - - public StatisticsMedia withAccountID(int accountID) { - Utils.checkNotNull(accountID, "accountID"); - this.accountID = Optional.ofNullable(accountID); - return this; - } - - public StatisticsMedia withAccountID(Optional accountID) { - Utils.checkNotNull(accountID, "accountID"); - this.accountID = accountID; - return this; - } - - public StatisticsMedia withDeviceID(int deviceID) { - Utils.checkNotNull(deviceID, "deviceID"); - this.deviceID = Optional.ofNullable(deviceID); - return this; - } - - public StatisticsMedia withDeviceID(Optional deviceID) { - Utils.checkNotNull(deviceID, "deviceID"); - this.deviceID = deviceID; - return this; - } - - public StatisticsMedia withTimespan(int timespan) { - Utils.checkNotNull(timespan, "timespan"); - this.timespan = Optional.ofNullable(timespan); - return this; - } - - public StatisticsMedia withTimespan(Optional timespan) { - Utils.checkNotNull(timespan, "timespan"); - this.timespan = timespan; - return this; - } - - public StatisticsMedia withAt(int at) { - Utils.checkNotNull(at, "at"); - this.at = Optional.ofNullable(at); - return this; - } - - public StatisticsMedia withAt(Optional at) { - Utils.checkNotNull(at, "at"); - this.at = at; - return this; - } - - public StatisticsMedia withMetadataType(int metadataType) { - Utils.checkNotNull(metadataType, "metadataType"); - this.metadataType = Optional.ofNullable(metadataType); - return this; - } - - public StatisticsMedia withMetadataType(Optional metadataType) { - Utils.checkNotNull(metadataType, "metadataType"); - this.metadataType = metadataType; - return this; - } - - public StatisticsMedia withCount(int count) { - Utils.checkNotNull(count, "count"); - this.count = Optional.ofNullable(count); - return this; - } - - public StatisticsMedia withCount(Optional count) { - Utils.checkNotNull(count, "count"); - this.count = count; - return this; - } - - public StatisticsMedia withDuration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public StatisticsMedia withDuration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - StatisticsMedia other = (StatisticsMedia) o; - return - java.util.Objects.deepEquals(this.accountID, other.accountID) && - java.util.Objects.deepEquals(this.deviceID, other.deviceID) && - java.util.Objects.deepEquals(this.timespan, other.timespan) && - java.util.Objects.deepEquals(this.at, other.at) && - java.util.Objects.deepEquals(this.metadataType, other.metadataType) && - java.util.Objects.deepEquals(this.count, other.count) && - java.util.Objects.deepEquals(this.duration, other.duration); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - accountID, - deviceID, - timespan, - at, - metadataType, - count, - duration); - } - - @Override - public String toString() { - return Utils.toString(StatisticsMedia.class, - "accountID", accountID, - "deviceID", deviceID, - "timespan", timespan, - "at", at, - "metadataType", metadataType, - "count", count, - "duration", duration); - } - - public final static class Builder { - - private Optional accountID = Optional.empty(); - - private Optional deviceID = Optional.empty(); - - private Optional timespan = Optional.empty(); - - private Optional at = Optional.empty(); - - private Optional metadataType = Optional.empty(); - - private Optional count = Optional.empty(); - - private Optional duration = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder accountID(int accountID) { - Utils.checkNotNull(accountID, "accountID"); - this.accountID = Optional.ofNullable(accountID); - return this; - } - - public Builder accountID(Optional accountID) { - Utils.checkNotNull(accountID, "accountID"); - this.accountID = accountID; - return this; - } - - public Builder deviceID(int deviceID) { - Utils.checkNotNull(deviceID, "deviceID"); - this.deviceID = Optional.ofNullable(deviceID); - return this; - } - - public Builder deviceID(Optional deviceID) { - Utils.checkNotNull(deviceID, "deviceID"); - this.deviceID = deviceID; - return this; - } - - public Builder timespan(int timespan) { - Utils.checkNotNull(timespan, "timespan"); - this.timespan = Optional.ofNullable(timespan); - return this; - } - - public Builder timespan(Optional timespan) { - Utils.checkNotNull(timespan, "timespan"); - this.timespan = timespan; - return this; - } - - public Builder at(int at) { - Utils.checkNotNull(at, "at"); - this.at = Optional.ofNullable(at); - return this; - } - - public Builder at(Optional at) { - Utils.checkNotNull(at, "at"); - this.at = at; - return this; - } - - public Builder metadataType(int metadataType) { - Utils.checkNotNull(metadataType, "metadataType"); - this.metadataType = Optional.ofNullable(metadataType); - return this; - } - - public Builder metadataType(Optional metadataType) { - Utils.checkNotNull(metadataType, "metadataType"); - this.metadataType = metadataType; - return this; - } - - public Builder count(int count) { - Utils.checkNotNull(count, "count"); - this.count = Optional.ofNullable(count); - return this; - } - - public Builder count(Optional count) { - Utils.checkNotNull(count, "count"); - this.count = count; - return this; - } - - public Builder duration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public Builder duration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public StatisticsMedia build() { - return new StatisticsMedia( - accountID, - deviceID, - timespan, - at, - metadataType, - count, - duration); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StatisticsResources.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/StatisticsResources.java deleted file mode 100644 index 9c0a015f..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StatisticsResources.java +++ /dev/null @@ -1,326 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class StatisticsResources { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("timespan") - private Optional timespan; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("at") - private Optional at; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("hostCpuUtilization") - private Optional hostCpuUtilization; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("processCpuUtilization") - private Optional processCpuUtilization; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("hostMemoryUtilization") - private Optional hostMemoryUtilization; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("processMemoryUtilization") - private Optional processMemoryUtilization; - - @JsonCreator - public StatisticsResources( - @JsonProperty("timespan") Optional timespan, - @JsonProperty("at") Optional at, - @JsonProperty("hostCpuUtilization") Optional hostCpuUtilization, - @JsonProperty("processCpuUtilization") Optional processCpuUtilization, - @JsonProperty("hostMemoryUtilization") Optional hostMemoryUtilization, - @JsonProperty("processMemoryUtilization") Optional processMemoryUtilization) { - Utils.checkNotNull(timespan, "timespan"); - Utils.checkNotNull(at, "at"); - Utils.checkNotNull(hostCpuUtilization, "hostCpuUtilization"); - Utils.checkNotNull(processCpuUtilization, "processCpuUtilization"); - Utils.checkNotNull(hostMemoryUtilization, "hostMemoryUtilization"); - Utils.checkNotNull(processMemoryUtilization, "processMemoryUtilization"); - this.timespan = timespan; - this.at = at; - this.hostCpuUtilization = hostCpuUtilization; - this.processCpuUtilization = processCpuUtilization; - this.hostMemoryUtilization = hostMemoryUtilization; - this.processMemoryUtilization = processMemoryUtilization; - } - - public StatisticsResources() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional timespan() { - return (Optional) timespan; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional at() { - return (Optional) at; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional hostCpuUtilization() { - return (Optional) hostCpuUtilization; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional processCpuUtilization() { - return (Optional) processCpuUtilization; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional hostMemoryUtilization() { - return (Optional) hostMemoryUtilization; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional processMemoryUtilization() { - return (Optional) processMemoryUtilization; - } - - public final static Builder builder() { - return new Builder(); - } - - public StatisticsResources withTimespan(long timespan) { - Utils.checkNotNull(timespan, "timespan"); - this.timespan = Optional.ofNullable(timespan); - return this; - } - - public StatisticsResources withTimespan(Optional timespan) { - Utils.checkNotNull(timespan, "timespan"); - this.timespan = timespan; - return this; - } - - public StatisticsResources withAt(long at) { - Utils.checkNotNull(at, "at"); - this.at = Optional.ofNullable(at); - return this; - } - - public StatisticsResources withAt(Optional at) { - Utils.checkNotNull(at, "at"); - this.at = at; - return this; - } - - public StatisticsResources withHostCpuUtilization(float hostCpuUtilization) { - Utils.checkNotNull(hostCpuUtilization, "hostCpuUtilization"); - this.hostCpuUtilization = Optional.ofNullable(hostCpuUtilization); - return this; - } - - public StatisticsResources withHostCpuUtilization(Optional hostCpuUtilization) { - Utils.checkNotNull(hostCpuUtilization, "hostCpuUtilization"); - this.hostCpuUtilization = hostCpuUtilization; - return this; - } - - public StatisticsResources withProcessCpuUtilization(float processCpuUtilization) { - Utils.checkNotNull(processCpuUtilization, "processCpuUtilization"); - this.processCpuUtilization = Optional.ofNullable(processCpuUtilization); - return this; - } - - public StatisticsResources withProcessCpuUtilization(Optional processCpuUtilization) { - Utils.checkNotNull(processCpuUtilization, "processCpuUtilization"); - this.processCpuUtilization = processCpuUtilization; - return this; - } - - public StatisticsResources withHostMemoryUtilization(float hostMemoryUtilization) { - Utils.checkNotNull(hostMemoryUtilization, "hostMemoryUtilization"); - this.hostMemoryUtilization = Optional.ofNullable(hostMemoryUtilization); - return this; - } - - public StatisticsResources withHostMemoryUtilization(Optional hostMemoryUtilization) { - Utils.checkNotNull(hostMemoryUtilization, "hostMemoryUtilization"); - this.hostMemoryUtilization = hostMemoryUtilization; - return this; - } - - public StatisticsResources withProcessMemoryUtilization(float processMemoryUtilization) { - Utils.checkNotNull(processMemoryUtilization, "processMemoryUtilization"); - this.processMemoryUtilization = Optional.ofNullable(processMemoryUtilization); - return this; - } - - public StatisticsResources withProcessMemoryUtilization(Optional processMemoryUtilization) { - Utils.checkNotNull(processMemoryUtilization, "processMemoryUtilization"); - this.processMemoryUtilization = processMemoryUtilization; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - StatisticsResources other = (StatisticsResources) o; - return - java.util.Objects.deepEquals(this.timespan, other.timespan) && - java.util.Objects.deepEquals(this.at, other.at) && - java.util.Objects.deepEquals(this.hostCpuUtilization, other.hostCpuUtilization) && - java.util.Objects.deepEquals(this.processCpuUtilization, other.processCpuUtilization) && - java.util.Objects.deepEquals(this.hostMemoryUtilization, other.hostMemoryUtilization) && - java.util.Objects.deepEquals(this.processMemoryUtilization, other.processMemoryUtilization); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - timespan, - at, - hostCpuUtilization, - processCpuUtilization, - hostMemoryUtilization, - processMemoryUtilization); - } - - @Override - public String toString() { - return Utils.toString(StatisticsResources.class, - "timespan", timespan, - "at", at, - "hostCpuUtilization", hostCpuUtilization, - "processCpuUtilization", processCpuUtilization, - "hostMemoryUtilization", hostMemoryUtilization, - "processMemoryUtilization", processMemoryUtilization); - } - - public final static class Builder { - - private Optional timespan = Optional.empty(); - - private Optional at = Optional.empty(); - - private Optional hostCpuUtilization = Optional.empty(); - - private Optional processCpuUtilization = Optional.empty(); - - private Optional hostMemoryUtilization = Optional.empty(); - - private Optional processMemoryUtilization = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder timespan(long timespan) { - Utils.checkNotNull(timespan, "timespan"); - this.timespan = Optional.ofNullable(timespan); - return this; - } - - public Builder timespan(Optional timespan) { - Utils.checkNotNull(timespan, "timespan"); - this.timespan = timespan; - return this; - } - - public Builder at(long at) { - Utils.checkNotNull(at, "at"); - this.at = Optional.ofNullable(at); - return this; - } - - public Builder at(Optional at) { - Utils.checkNotNull(at, "at"); - this.at = at; - return this; - } - - public Builder hostCpuUtilization(float hostCpuUtilization) { - Utils.checkNotNull(hostCpuUtilization, "hostCpuUtilization"); - this.hostCpuUtilization = Optional.ofNullable(hostCpuUtilization); - return this; - } - - public Builder hostCpuUtilization(Optional hostCpuUtilization) { - Utils.checkNotNull(hostCpuUtilization, "hostCpuUtilization"); - this.hostCpuUtilization = hostCpuUtilization; - return this; - } - - public Builder processCpuUtilization(float processCpuUtilization) { - Utils.checkNotNull(processCpuUtilization, "processCpuUtilization"); - this.processCpuUtilization = Optional.ofNullable(processCpuUtilization); - return this; - } - - public Builder processCpuUtilization(Optional processCpuUtilization) { - Utils.checkNotNull(processCpuUtilization, "processCpuUtilization"); - this.processCpuUtilization = processCpuUtilization; - return this; - } - - public Builder hostMemoryUtilization(float hostMemoryUtilization) { - Utils.checkNotNull(hostMemoryUtilization, "hostMemoryUtilization"); - this.hostMemoryUtilization = Optional.ofNullable(hostMemoryUtilization); - return this; - } - - public Builder hostMemoryUtilization(Optional hostMemoryUtilization) { - Utils.checkNotNull(hostMemoryUtilization, "hostMemoryUtilization"); - this.hostMemoryUtilization = hostMemoryUtilization; - return this; - } - - public Builder processMemoryUtilization(float processMemoryUtilization) { - Utils.checkNotNull(processMemoryUtilization, "processMemoryUtilization"); - this.processMemoryUtilization = Optional.ofNullable(processMemoryUtilization); - return this; - } - - public Builder processMemoryUtilization(Optional processMemoryUtilization) { - Utils.checkNotNull(processMemoryUtilization, "processMemoryUtilization"); - this.processMemoryUtilization = processMemoryUtilization; - return this; - } - - public StatisticsResources build() { - return new StatisticsResources( - timespan, - at, - hostCpuUtilization, - processCpuUtilization, - hostMemoryUtilization, - processMemoryUtilization); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StopAllTasksRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/StopAllTasksRequestBuilder.java deleted file mode 100644 index 40bef1a0..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StopAllTasksRequestBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class StopAllTasksRequestBuilder { - - private final SDKMethodInterfaces.MethodCallStopAllTasks sdk; - - public StopAllTasksRequestBuilder(SDKMethodInterfaces.MethodCallStopAllTasks sdk) { - this.sdk = sdk; - } - - public StopAllTasksResponse call() throws Exception { - - return sdk.stopAllTasksDirect(); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StopAllTasksResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/StopAllTasksResponse.java deleted file mode 100644 index d0c0a32c..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StopAllTasksResponse.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class StopAllTasksResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - @JsonCreator - public StopAllTasksResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public StopAllTasksResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public StopAllTasksResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public StopAllTasksResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - StopAllTasksResponse other = (StopAllTasksResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(StopAllTasksResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public StopAllTasksResponse build() { - return new StopAllTasksResponse( - contentType, - statusCode, - rawResponse); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTaskRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTaskRequest.java deleted file mode 100644 index db0e9b44..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTaskRequest.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class StopTaskRequest { - - /** - * The name of the task to be started. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=taskName") - private PathParamTaskName taskName; - - @JsonCreator - public StopTaskRequest( - PathParamTaskName taskName) { - Utils.checkNotNull(taskName, "taskName"); - this.taskName = taskName; - } - - /** - * The name of the task to be started. - */ - @JsonIgnore - public PathParamTaskName taskName() { - return taskName; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * The name of the task to be started. - */ - public StopTaskRequest withTaskName(PathParamTaskName taskName) { - Utils.checkNotNull(taskName, "taskName"); - this.taskName = taskName; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - StopTaskRequest other = (StopTaskRequest) o; - return - java.util.Objects.deepEquals(this.taskName, other.taskName); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - taskName); - } - - @Override - public String toString() { - return Utils.toString(StopTaskRequest.class, - "taskName", taskName); - } - - public final static class Builder { - - private PathParamTaskName taskName; - - private Builder() { - // force use of static builder() method - } - - /** - * The name of the task to be started. - */ - public Builder taskName(PathParamTaskName taskName) { - Utils.checkNotNull(taskName, "taskName"); - this.taskName = taskName; - return this; - } - - public StopTaskRequest build() { - return new StopTaskRequest( - taskName); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTaskRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTaskRequestBuilder.java deleted file mode 100644 index eb99c49c..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTaskRequestBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class StopTaskRequestBuilder { - - private PathParamTaskName taskName; - private final SDKMethodInterfaces.MethodCallStopTask sdk; - - public StopTaskRequestBuilder(SDKMethodInterfaces.MethodCallStopTask sdk) { - this.sdk = sdk; - } - - public StopTaskRequestBuilder taskName(PathParamTaskName taskName) { - Utils.checkNotNull(taskName, "taskName"); - this.taskName = taskName; - return this; - } - - public StopTaskResponse call() throws Exception { - - return sdk.stopTask( - taskName); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTaskResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTaskResponse.java deleted file mode 100644 index 67727705..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTaskResponse.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class StopTaskResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - @JsonCreator - public StopTaskResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public StopTaskResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public StopTaskResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public StopTaskResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - StopTaskResponse other = (StopTaskResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(StopTaskResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public StopTaskResponse build() { - return new StopTaskResponse( - contentType, - statusCode, - rawResponse); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTranscodeSessionRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTranscodeSessionRequest.java deleted file mode 100644 index 91c111ad..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTranscodeSessionRequest.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class StopTranscodeSessionRequest { - - /** - * the Key of the transcode session to stop - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sessionKey") - private String sessionKey; - - @JsonCreator - public StopTranscodeSessionRequest( - String sessionKey) { - Utils.checkNotNull(sessionKey, "sessionKey"); - this.sessionKey = sessionKey; - } - - /** - * the Key of the transcode session to stop - */ - @JsonIgnore - public String sessionKey() { - return sessionKey; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * the Key of the transcode session to stop - */ - public StopTranscodeSessionRequest withSessionKey(String sessionKey) { - Utils.checkNotNull(sessionKey, "sessionKey"); - this.sessionKey = sessionKey; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - StopTranscodeSessionRequest other = (StopTranscodeSessionRequest) o; - return - java.util.Objects.deepEquals(this.sessionKey, other.sessionKey); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - sessionKey); - } - - @Override - public String toString() { - return Utils.toString(StopTranscodeSessionRequest.class, - "sessionKey", sessionKey); - } - - public final static class Builder { - - private String sessionKey; - - private Builder() { - // force use of static builder() method - } - - /** - * the Key of the transcode session to stop - */ - public Builder sessionKey(String sessionKey) { - Utils.checkNotNull(sessionKey, "sessionKey"); - this.sessionKey = sessionKey; - return this; - } - - public StopTranscodeSessionRequest build() { - return new StopTranscodeSessionRequest( - sessionKey); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTranscodeSessionRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTranscodeSessionRequestBuilder.java deleted file mode 100644 index e1c65faf..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTranscodeSessionRequestBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class StopTranscodeSessionRequestBuilder { - - private String sessionKey; - private final SDKMethodInterfaces.MethodCallStopTranscodeSession sdk; - - public StopTranscodeSessionRequestBuilder(SDKMethodInterfaces.MethodCallStopTranscodeSession sdk) { - this.sdk = sdk; - } - - public StopTranscodeSessionRequestBuilder sessionKey(String sessionKey) { - Utils.checkNotNull(sessionKey, "sessionKey"); - this.sessionKey = sessionKey; - return this; - } - - public StopTranscodeSessionResponse call() throws Exception { - - return sdk.stopTranscodeSession( - sessionKey); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTranscodeSessionResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTranscodeSessionResponse.java deleted file mode 100644 index fe8bf984..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/StopTranscodeSessionResponse.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class StopTranscodeSessionResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - @JsonCreator - public StopTranscodeSessionResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public StopTranscodeSessionResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public StopTranscodeSessionResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public StopTranscodeSessionResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - StopTranscodeSessionResponse other = (StopTranscodeSessionResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(StopTranscodeSessionResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public StopTranscodeSessionResponse build() { - return new StopTranscodeSessionResponse( - contentType, - statusCode, - rawResponse); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Stream.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Stream.java deleted file mode 100644 index 6b470728..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Stream.java +++ /dev/null @@ -1,1444 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class Stream { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("streamType") - private Optional streamType; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("default") - private Optional default_; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("codec") - private Optional codec; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("index") - private Optional index; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("bitrate") - private Optional bitrate; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("bitDepth") - private Optional bitDepth; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("chromaLocation") - private Optional chromaLocation; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("chromaSubsampling") - private Optional chromaSubsampling; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("codedHeight") - private Optional codedHeight; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("codedWidth") - private Optional codedWidth; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("colorPrimaries") - private Optional colorPrimaries; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("colorRange") - private Optional colorRange; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("colorSpace") - private Optional colorSpace; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("colorTrc") - private Optional colorTrc; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("frameRate") - private Optional frameRate; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("hasScalingMatrix") - private Optional hasScalingMatrix; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("height") - private Optional height; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("level") - private Optional level; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("profile") - private Optional profile; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("refFrames") - private Optional refFrames; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("scanType") - private Optional scanType; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("streamIdentifier") - private Optional streamIdentifier; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("width") - private Optional width; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("displayTitle") - private Optional displayTitle; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("extendedDisplayTitle") - private Optional extendedDisplayTitle; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("selected") - private Optional selected; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("channels") - private Optional channels; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("language") - private Optional language; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("languageTag") - private Optional languageTag; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("languageCode") - private Optional languageCode; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("samplingRate") - private Optional samplingRate; - - @JsonCreator - public Stream( - @JsonProperty("id") Optional id, - @JsonProperty("streamType") Optional streamType, - @JsonProperty("default") Optional default_, - @JsonProperty("codec") Optional codec, - @JsonProperty("index") Optional index, - @JsonProperty("bitrate") Optional bitrate, - @JsonProperty("bitDepth") Optional bitDepth, - @JsonProperty("chromaLocation") Optional chromaLocation, - @JsonProperty("chromaSubsampling") Optional chromaSubsampling, - @JsonProperty("codedHeight") Optional codedHeight, - @JsonProperty("codedWidth") Optional codedWidth, - @JsonProperty("colorPrimaries") Optional colorPrimaries, - @JsonProperty("colorRange") Optional colorRange, - @JsonProperty("colorSpace") Optional colorSpace, - @JsonProperty("colorTrc") Optional colorTrc, - @JsonProperty("frameRate") Optional frameRate, - @JsonProperty("hasScalingMatrix") Optional hasScalingMatrix, - @JsonProperty("height") Optional height, - @JsonProperty("level") Optional level, - @JsonProperty("profile") Optional profile, - @JsonProperty("refFrames") Optional refFrames, - @JsonProperty("scanType") Optional scanType, - @JsonProperty("streamIdentifier") Optional streamIdentifier, - @JsonProperty("width") Optional width, - @JsonProperty("displayTitle") Optional displayTitle, - @JsonProperty("extendedDisplayTitle") Optional extendedDisplayTitle, - @JsonProperty("selected") Optional selected, - @JsonProperty("channels") Optional channels, - @JsonProperty("language") Optional language, - @JsonProperty("languageTag") Optional languageTag, - @JsonProperty("languageCode") Optional languageCode, - @JsonProperty("samplingRate") Optional samplingRate) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(streamType, "streamType"); - Utils.checkNotNull(default_, "default_"); - Utils.checkNotNull(codec, "codec"); - Utils.checkNotNull(index, "index"); - Utils.checkNotNull(bitrate, "bitrate"); - Utils.checkNotNull(bitDepth, "bitDepth"); - Utils.checkNotNull(chromaLocation, "chromaLocation"); - Utils.checkNotNull(chromaSubsampling, "chromaSubsampling"); - Utils.checkNotNull(codedHeight, "codedHeight"); - Utils.checkNotNull(codedWidth, "codedWidth"); - Utils.checkNotNull(colorPrimaries, "colorPrimaries"); - Utils.checkNotNull(colorRange, "colorRange"); - Utils.checkNotNull(colorSpace, "colorSpace"); - Utils.checkNotNull(colorTrc, "colorTrc"); - Utils.checkNotNull(frameRate, "frameRate"); - Utils.checkNotNull(hasScalingMatrix, "hasScalingMatrix"); - Utils.checkNotNull(height, "height"); - Utils.checkNotNull(level, "level"); - Utils.checkNotNull(profile, "profile"); - Utils.checkNotNull(refFrames, "refFrames"); - Utils.checkNotNull(scanType, "scanType"); - Utils.checkNotNull(streamIdentifier, "streamIdentifier"); - Utils.checkNotNull(width, "width"); - Utils.checkNotNull(displayTitle, "displayTitle"); - Utils.checkNotNull(extendedDisplayTitle, "extendedDisplayTitle"); - Utils.checkNotNull(selected, "selected"); - Utils.checkNotNull(channels, "channels"); - Utils.checkNotNull(language, "language"); - Utils.checkNotNull(languageTag, "languageTag"); - Utils.checkNotNull(languageCode, "languageCode"); - Utils.checkNotNull(samplingRate, "samplingRate"); - 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; - } - - public Stream() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional streamType() { - return (Optional) streamType; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional default_() { - return (Optional) default_; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional codec() { - return (Optional) codec; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional index() { - return (Optional) index; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional bitrate() { - return (Optional) bitrate; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional bitDepth() { - return (Optional) bitDepth; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional chromaLocation() { - return (Optional) chromaLocation; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional chromaSubsampling() { - return (Optional) chromaSubsampling; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional codedHeight() { - return (Optional) codedHeight; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional codedWidth() { - return (Optional) codedWidth; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional colorPrimaries() { - return (Optional) colorPrimaries; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional colorRange() { - return (Optional) colorRange; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional colorSpace() { - return (Optional) colorSpace; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional colorTrc() { - return (Optional) colorTrc; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional frameRate() { - return (Optional) frameRate; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional hasScalingMatrix() { - return (Optional) hasScalingMatrix; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional height() { - return (Optional) height; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional level() { - return (Optional) level; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional profile() { - return (Optional) profile; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional refFrames() { - return (Optional) refFrames; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional scanType() { - return (Optional) scanType; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional streamIdentifier() { - return (Optional) streamIdentifier; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional width() { - return (Optional) width; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional displayTitle() { - return (Optional) displayTitle; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional extendedDisplayTitle() { - return (Optional) extendedDisplayTitle; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional selected() { - return (Optional) selected; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional channels() { - return (Optional) channels; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional language() { - return (Optional) language; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional languageTag() { - return (Optional) languageTag; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional languageCode() { - return (Optional) languageCode; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional samplingRate() { - return (Optional) samplingRate; - } - - public final static Builder builder() { - return new Builder(); - } - - public Stream withId(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Stream withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Stream withStreamType(int streamType) { - Utils.checkNotNull(streamType, "streamType"); - this.streamType = Optional.ofNullable(streamType); - return this; - } - - public Stream withStreamType(Optional streamType) { - Utils.checkNotNull(streamType, "streamType"); - this.streamType = streamType; - return this; - } - - public Stream withDefault(boolean default_) { - Utils.checkNotNull(default_, "default_"); - this.default_ = Optional.ofNullable(default_); - return this; - } - - public Stream withDefault(Optional default_) { - Utils.checkNotNull(default_, "default_"); - this.default_ = default_; - return this; - } - - public Stream withCodec(String codec) { - Utils.checkNotNull(codec, "codec"); - this.codec = Optional.ofNullable(codec); - return this; - } - - public Stream withCodec(Optional codec) { - Utils.checkNotNull(codec, "codec"); - this.codec = codec; - return this; - } - - public Stream withIndex(int index) { - Utils.checkNotNull(index, "index"); - this.index = Optional.ofNullable(index); - return this; - } - - public Stream withIndex(Optional index) { - Utils.checkNotNull(index, "index"); - this.index = index; - return this; - } - - public Stream withBitrate(int bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = Optional.ofNullable(bitrate); - return this; - } - - public Stream withBitrate(Optional bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = bitrate; - return this; - } - - public Stream withBitDepth(int bitDepth) { - Utils.checkNotNull(bitDepth, "bitDepth"); - this.bitDepth = Optional.ofNullable(bitDepth); - return this; - } - - public Stream withBitDepth(Optional bitDepth) { - Utils.checkNotNull(bitDepth, "bitDepth"); - this.bitDepth = bitDepth; - return this; - } - - public Stream withChromaLocation(String chromaLocation) { - Utils.checkNotNull(chromaLocation, "chromaLocation"); - this.chromaLocation = Optional.ofNullable(chromaLocation); - return this; - } - - public Stream withChromaLocation(Optional chromaLocation) { - Utils.checkNotNull(chromaLocation, "chromaLocation"); - this.chromaLocation = chromaLocation; - return this; - } - - public Stream withChromaSubsampling(String chromaSubsampling) { - Utils.checkNotNull(chromaSubsampling, "chromaSubsampling"); - this.chromaSubsampling = Optional.ofNullable(chromaSubsampling); - return this; - } - - public Stream withChromaSubsampling(Optional chromaSubsampling) { - Utils.checkNotNull(chromaSubsampling, "chromaSubsampling"); - this.chromaSubsampling = chromaSubsampling; - return this; - } - - public Stream withCodedHeight(int codedHeight) { - Utils.checkNotNull(codedHeight, "codedHeight"); - this.codedHeight = Optional.ofNullable(codedHeight); - return this; - } - - public Stream withCodedHeight(Optional codedHeight) { - Utils.checkNotNull(codedHeight, "codedHeight"); - this.codedHeight = codedHeight; - return this; - } - - public Stream withCodedWidth(int codedWidth) { - Utils.checkNotNull(codedWidth, "codedWidth"); - this.codedWidth = Optional.ofNullable(codedWidth); - return this; - } - - public Stream withCodedWidth(Optional codedWidth) { - Utils.checkNotNull(codedWidth, "codedWidth"); - this.codedWidth = codedWidth; - return this; - } - - public Stream withColorPrimaries(String colorPrimaries) { - Utils.checkNotNull(colorPrimaries, "colorPrimaries"); - this.colorPrimaries = Optional.ofNullable(colorPrimaries); - return this; - } - - public Stream withColorPrimaries(Optional colorPrimaries) { - Utils.checkNotNull(colorPrimaries, "colorPrimaries"); - this.colorPrimaries = colorPrimaries; - return this; - } - - public Stream withColorRange(String colorRange) { - Utils.checkNotNull(colorRange, "colorRange"); - this.colorRange = Optional.ofNullable(colorRange); - return this; - } - - public Stream withColorRange(Optional colorRange) { - Utils.checkNotNull(colorRange, "colorRange"); - this.colorRange = colorRange; - return this; - } - - public Stream withColorSpace(String colorSpace) { - Utils.checkNotNull(colorSpace, "colorSpace"); - this.colorSpace = Optional.ofNullable(colorSpace); - return this; - } - - public Stream withColorSpace(Optional colorSpace) { - Utils.checkNotNull(colorSpace, "colorSpace"); - this.colorSpace = colorSpace; - return this; - } - - public Stream withColorTrc(String colorTrc) { - Utils.checkNotNull(colorTrc, "colorTrc"); - this.colorTrc = Optional.ofNullable(colorTrc); - return this; - } - - public Stream withColorTrc(Optional colorTrc) { - Utils.checkNotNull(colorTrc, "colorTrc"); - this.colorTrc = colorTrc; - return this; - } - - public Stream withFrameRate(int frameRate) { - Utils.checkNotNull(frameRate, "frameRate"); - this.frameRate = Optional.ofNullable(frameRate); - return this; - } - - public Stream withFrameRate(Optional frameRate) { - Utils.checkNotNull(frameRate, "frameRate"); - this.frameRate = frameRate; - return this; - } - - public Stream withHasScalingMatrix(boolean hasScalingMatrix) { - Utils.checkNotNull(hasScalingMatrix, "hasScalingMatrix"); - this.hasScalingMatrix = Optional.ofNullable(hasScalingMatrix); - return this; - } - - public Stream withHasScalingMatrix(Optional hasScalingMatrix) { - Utils.checkNotNull(hasScalingMatrix, "hasScalingMatrix"); - this.hasScalingMatrix = hasScalingMatrix; - return this; - } - - public Stream withHeight(int height) { - Utils.checkNotNull(height, "height"); - this.height = Optional.ofNullable(height); - return this; - } - - public Stream withHeight(Optional height) { - Utils.checkNotNull(height, "height"); - this.height = height; - return this; - } - - public Stream withLevel(int level) { - Utils.checkNotNull(level, "level"); - this.level = Optional.ofNullable(level); - return this; - } - - public Stream withLevel(Optional level) { - Utils.checkNotNull(level, "level"); - this.level = level; - return this; - } - - public Stream withProfile(String profile) { - Utils.checkNotNull(profile, "profile"); - this.profile = Optional.ofNullable(profile); - return this; - } - - public Stream withProfile(Optional profile) { - Utils.checkNotNull(profile, "profile"); - this.profile = profile; - return this; - } - - public Stream withRefFrames(int refFrames) { - Utils.checkNotNull(refFrames, "refFrames"); - this.refFrames = Optional.ofNullable(refFrames); - return this; - } - - public Stream withRefFrames(Optional refFrames) { - Utils.checkNotNull(refFrames, "refFrames"); - this.refFrames = refFrames; - return this; - } - - public Stream withScanType(String scanType) { - Utils.checkNotNull(scanType, "scanType"); - this.scanType = Optional.ofNullable(scanType); - return this; - } - - public Stream withScanType(Optional scanType) { - Utils.checkNotNull(scanType, "scanType"); - this.scanType = scanType; - return this; - } - - public Stream withStreamIdentifier(String streamIdentifier) { - Utils.checkNotNull(streamIdentifier, "streamIdentifier"); - this.streamIdentifier = Optional.ofNullable(streamIdentifier); - return this; - } - - public Stream withStreamIdentifier(Optional streamIdentifier) { - Utils.checkNotNull(streamIdentifier, "streamIdentifier"); - this.streamIdentifier = streamIdentifier; - return this; - } - - public Stream withWidth(int width) { - Utils.checkNotNull(width, "width"); - this.width = Optional.ofNullable(width); - return this; - } - - public Stream withWidth(Optional width) { - Utils.checkNotNull(width, "width"); - this.width = width; - return this; - } - - public Stream withDisplayTitle(String displayTitle) { - Utils.checkNotNull(displayTitle, "displayTitle"); - this.displayTitle = Optional.ofNullable(displayTitle); - return this; - } - - public Stream withDisplayTitle(Optional displayTitle) { - Utils.checkNotNull(displayTitle, "displayTitle"); - this.displayTitle = displayTitle; - return this; - } - - public Stream withExtendedDisplayTitle(String extendedDisplayTitle) { - Utils.checkNotNull(extendedDisplayTitle, "extendedDisplayTitle"); - this.extendedDisplayTitle = Optional.ofNullable(extendedDisplayTitle); - return this; - } - - public Stream withExtendedDisplayTitle(Optional extendedDisplayTitle) { - Utils.checkNotNull(extendedDisplayTitle, "extendedDisplayTitle"); - this.extendedDisplayTitle = extendedDisplayTitle; - return this; - } - - public Stream withSelected(boolean selected) { - Utils.checkNotNull(selected, "selected"); - this.selected = Optional.ofNullable(selected); - return this; - } - - public Stream withSelected(Optional selected) { - Utils.checkNotNull(selected, "selected"); - this.selected = selected; - return this; - } - - public Stream withChannels(int channels) { - Utils.checkNotNull(channels, "channels"); - this.channels = Optional.ofNullable(channels); - return this; - } - - public Stream withChannels(Optional channels) { - Utils.checkNotNull(channels, "channels"); - this.channels = channels; - return this; - } - - public Stream withLanguage(String language) { - Utils.checkNotNull(language, "language"); - this.language = Optional.ofNullable(language); - return this; - } - - public Stream withLanguage(Optional language) { - Utils.checkNotNull(language, "language"); - this.language = language; - return this; - } - - public Stream withLanguageTag(String languageTag) { - Utils.checkNotNull(languageTag, "languageTag"); - this.languageTag = Optional.ofNullable(languageTag); - return this; - } - - public Stream withLanguageTag(Optional languageTag) { - Utils.checkNotNull(languageTag, "languageTag"); - this.languageTag = languageTag; - return this; - } - - public Stream withLanguageCode(String languageCode) { - Utils.checkNotNull(languageCode, "languageCode"); - this.languageCode = Optional.ofNullable(languageCode); - return this; - } - - public Stream withLanguageCode(Optional languageCode) { - Utils.checkNotNull(languageCode, "languageCode"); - this.languageCode = languageCode; - return this; - } - - public Stream withSamplingRate(int samplingRate) { - Utils.checkNotNull(samplingRate, "samplingRate"); - this.samplingRate = Optional.ofNullable(samplingRate); - return this; - } - - public Stream withSamplingRate(Optional samplingRate) { - Utils.checkNotNull(samplingRate, "samplingRate"); - this.samplingRate = samplingRate; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Stream other = (Stream) o; - return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.streamType, other.streamType) && - java.util.Objects.deepEquals(this.default_, other.default_) && - java.util.Objects.deepEquals(this.codec, other.codec) && - java.util.Objects.deepEquals(this.index, other.index) && - java.util.Objects.deepEquals(this.bitrate, other.bitrate) && - java.util.Objects.deepEquals(this.bitDepth, other.bitDepth) && - java.util.Objects.deepEquals(this.chromaLocation, other.chromaLocation) && - java.util.Objects.deepEquals(this.chromaSubsampling, other.chromaSubsampling) && - java.util.Objects.deepEquals(this.codedHeight, other.codedHeight) && - java.util.Objects.deepEquals(this.codedWidth, other.codedWidth) && - java.util.Objects.deepEquals(this.colorPrimaries, other.colorPrimaries) && - java.util.Objects.deepEquals(this.colorRange, other.colorRange) && - java.util.Objects.deepEquals(this.colorSpace, other.colorSpace) && - java.util.Objects.deepEquals(this.colorTrc, other.colorTrc) && - java.util.Objects.deepEquals(this.frameRate, other.frameRate) && - java.util.Objects.deepEquals(this.hasScalingMatrix, other.hasScalingMatrix) && - java.util.Objects.deepEquals(this.height, other.height) && - java.util.Objects.deepEquals(this.level, other.level) && - java.util.Objects.deepEquals(this.profile, other.profile) && - java.util.Objects.deepEquals(this.refFrames, other.refFrames) && - java.util.Objects.deepEquals(this.scanType, other.scanType) && - java.util.Objects.deepEquals(this.streamIdentifier, other.streamIdentifier) && - java.util.Objects.deepEquals(this.width, other.width) && - java.util.Objects.deepEquals(this.displayTitle, other.displayTitle) && - java.util.Objects.deepEquals(this.extendedDisplayTitle, other.extendedDisplayTitle) && - java.util.Objects.deepEquals(this.selected, other.selected) && - java.util.Objects.deepEquals(this.channels, other.channels) && - java.util.Objects.deepEquals(this.language, other.language) && - java.util.Objects.deepEquals(this.languageTag, other.languageTag) && - java.util.Objects.deepEquals(this.languageCode, other.languageCode) && - java.util.Objects.deepEquals(this.samplingRate, other.samplingRate); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id, - streamType, - default_, - codec, - index, - bitrate, - bitDepth, - chromaLocation, - chromaSubsampling, - codedHeight, - codedWidth, - colorPrimaries, - colorRange, - colorSpace, - colorTrc, - frameRate, - hasScalingMatrix, - height, - level, - profile, - refFrames, - scanType, - streamIdentifier, - width, - displayTitle, - extendedDisplayTitle, - selected, - channels, - language, - languageTag, - languageCode, - samplingRate); - } - - @Override - public String toString() { - return Utils.toString(Stream.class, - "id", id, - "streamType", streamType, - "default_", default_, - "codec", codec, - "index", index, - "bitrate", bitrate, - "bitDepth", bitDepth, - "chromaLocation", chromaLocation, - "chromaSubsampling", chromaSubsampling, - "codedHeight", codedHeight, - "codedWidth", codedWidth, - "colorPrimaries", colorPrimaries, - "colorRange", colorRange, - "colorSpace", colorSpace, - "colorTrc", colorTrc, - "frameRate", frameRate, - "hasScalingMatrix", hasScalingMatrix, - "height", height, - "level", level, - "profile", profile, - "refFrames", refFrames, - "scanType", scanType, - "streamIdentifier", streamIdentifier, - "width", width, - "displayTitle", displayTitle, - "extendedDisplayTitle", extendedDisplayTitle, - "selected", selected, - "channels", channels, - "language", language, - "languageTag", languageTag, - "languageCode", languageCode, - "samplingRate", samplingRate); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Optional streamType = Optional.empty(); - - private Optional default_ = Optional.empty(); - - private Optional codec = Optional.empty(); - - private Optional index = Optional.empty(); - - private Optional bitrate = Optional.empty(); - - private Optional bitDepth = Optional.empty(); - - private Optional chromaLocation = Optional.empty(); - - private Optional chromaSubsampling = Optional.empty(); - - private Optional codedHeight = Optional.empty(); - - private Optional codedWidth = Optional.empty(); - - private Optional colorPrimaries = Optional.empty(); - - private Optional colorRange = Optional.empty(); - - private Optional colorSpace = Optional.empty(); - - private Optional colorTrc = Optional.empty(); - - private Optional frameRate = Optional.empty(); - - private Optional hasScalingMatrix = Optional.empty(); - - private Optional height = Optional.empty(); - - private Optional level = Optional.empty(); - - private Optional profile = Optional.empty(); - - private Optional refFrames = Optional.empty(); - - private Optional scanType = Optional.empty(); - - private Optional streamIdentifier = Optional.empty(); - - private Optional width = Optional.empty(); - - private Optional displayTitle = Optional.empty(); - - private Optional extendedDisplayTitle = Optional.empty(); - - private Optional selected = Optional.empty(); - - private Optional channels = Optional.empty(); - - private Optional language = Optional.empty(); - - private Optional languageTag = Optional.empty(); - - private Optional languageCode = Optional.empty(); - - private Optional samplingRate = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Builder streamType(int streamType) { - Utils.checkNotNull(streamType, "streamType"); - this.streamType = Optional.ofNullable(streamType); - return this; - } - - public Builder streamType(Optional streamType) { - Utils.checkNotNull(streamType, "streamType"); - this.streamType = streamType; - return this; - } - - public Builder default_(boolean default_) { - Utils.checkNotNull(default_, "default_"); - this.default_ = Optional.ofNullable(default_); - return this; - } - - public Builder default_(Optional default_) { - Utils.checkNotNull(default_, "default_"); - this.default_ = default_; - return this; - } - - public Builder codec(String codec) { - Utils.checkNotNull(codec, "codec"); - this.codec = Optional.ofNullable(codec); - return this; - } - - public Builder codec(Optional codec) { - Utils.checkNotNull(codec, "codec"); - this.codec = codec; - return this; - } - - public Builder index(int index) { - Utils.checkNotNull(index, "index"); - this.index = Optional.ofNullable(index); - return this; - } - - public Builder index(Optional index) { - Utils.checkNotNull(index, "index"); - this.index = index; - return this; - } - - public Builder bitrate(int bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = Optional.ofNullable(bitrate); - return this; - } - - public Builder bitrate(Optional bitrate) { - Utils.checkNotNull(bitrate, "bitrate"); - this.bitrate = bitrate; - return this; - } - - public Builder bitDepth(int bitDepth) { - Utils.checkNotNull(bitDepth, "bitDepth"); - this.bitDepth = Optional.ofNullable(bitDepth); - return this; - } - - public Builder bitDepth(Optional bitDepth) { - Utils.checkNotNull(bitDepth, "bitDepth"); - this.bitDepth = bitDepth; - return this; - } - - public Builder chromaLocation(String chromaLocation) { - Utils.checkNotNull(chromaLocation, "chromaLocation"); - this.chromaLocation = Optional.ofNullable(chromaLocation); - return this; - } - - public Builder chromaLocation(Optional chromaLocation) { - Utils.checkNotNull(chromaLocation, "chromaLocation"); - this.chromaLocation = chromaLocation; - return this; - } - - public Builder chromaSubsampling(String chromaSubsampling) { - Utils.checkNotNull(chromaSubsampling, "chromaSubsampling"); - this.chromaSubsampling = Optional.ofNullable(chromaSubsampling); - return this; - } - - public Builder chromaSubsampling(Optional chromaSubsampling) { - Utils.checkNotNull(chromaSubsampling, "chromaSubsampling"); - this.chromaSubsampling = chromaSubsampling; - return this; - } - - public Builder codedHeight(int codedHeight) { - Utils.checkNotNull(codedHeight, "codedHeight"); - this.codedHeight = Optional.ofNullable(codedHeight); - return this; - } - - public Builder codedHeight(Optional codedHeight) { - Utils.checkNotNull(codedHeight, "codedHeight"); - this.codedHeight = codedHeight; - return this; - } - - public Builder codedWidth(int codedWidth) { - Utils.checkNotNull(codedWidth, "codedWidth"); - this.codedWidth = Optional.ofNullable(codedWidth); - return this; - } - - public Builder codedWidth(Optional codedWidth) { - Utils.checkNotNull(codedWidth, "codedWidth"); - this.codedWidth = codedWidth; - return this; - } - - public Builder colorPrimaries(String colorPrimaries) { - Utils.checkNotNull(colorPrimaries, "colorPrimaries"); - this.colorPrimaries = Optional.ofNullable(colorPrimaries); - return this; - } - - public Builder colorPrimaries(Optional colorPrimaries) { - Utils.checkNotNull(colorPrimaries, "colorPrimaries"); - this.colorPrimaries = colorPrimaries; - return this; - } - - public Builder colorRange(String colorRange) { - Utils.checkNotNull(colorRange, "colorRange"); - this.colorRange = Optional.ofNullable(colorRange); - return this; - } - - public Builder colorRange(Optional colorRange) { - Utils.checkNotNull(colorRange, "colorRange"); - this.colorRange = colorRange; - return this; - } - - public Builder colorSpace(String colorSpace) { - Utils.checkNotNull(colorSpace, "colorSpace"); - this.colorSpace = Optional.ofNullable(colorSpace); - return this; - } - - public Builder colorSpace(Optional colorSpace) { - Utils.checkNotNull(colorSpace, "colorSpace"); - this.colorSpace = colorSpace; - return this; - } - - public Builder colorTrc(String colorTrc) { - Utils.checkNotNull(colorTrc, "colorTrc"); - this.colorTrc = Optional.ofNullable(colorTrc); - return this; - } - - public Builder colorTrc(Optional colorTrc) { - Utils.checkNotNull(colorTrc, "colorTrc"); - this.colorTrc = colorTrc; - return this; - } - - public Builder frameRate(int frameRate) { - Utils.checkNotNull(frameRate, "frameRate"); - this.frameRate = Optional.ofNullable(frameRate); - return this; - } - - public Builder frameRate(Optional frameRate) { - Utils.checkNotNull(frameRate, "frameRate"); - this.frameRate = frameRate; - return this; - } - - public Builder hasScalingMatrix(boolean hasScalingMatrix) { - Utils.checkNotNull(hasScalingMatrix, "hasScalingMatrix"); - this.hasScalingMatrix = Optional.ofNullable(hasScalingMatrix); - return this; - } - - public Builder hasScalingMatrix(Optional hasScalingMatrix) { - Utils.checkNotNull(hasScalingMatrix, "hasScalingMatrix"); - this.hasScalingMatrix = hasScalingMatrix; - return this; - } - - public Builder height(int height) { - Utils.checkNotNull(height, "height"); - this.height = Optional.ofNullable(height); - return this; - } - - public Builder height(Optional height) { - Utils.checkNotNull(height, "height"); - this.height = height; - return this; - } - - public Builder level(int level) { - Utils.checkNotNull(level, "level"); - this.level = Optional.ofNullable(level); - return this; - } - - public Builder level(Optional level) { - Utils.checkNotNull(level, "level"); - this.level = level; - return this; - } - - public Builder profile(String profile) { - Utils.checkNotNull(profile, "profile"); - this.profile = Optional.ofNullable(profile); - return this; - } - - public Builder profile(Optional profile) { - Utils.checkNotNull(profile, "profile"); - this.profile = profile; - return this; - } - - public Builder refFrames(int refFrames) { - Utils.checkNotNull(refFrames, "refFrames"); - this.refFrames = Optional.ofNullable(refFrames); - return this; - } - - public Builder refFrames(Optional refFrames) { - Utils.checkNotNull(refFrames, "refFrames"); - this.refFrames = refFrames; - return this; - } - - public Builder scanType(String scanType) { - Utils.checkNotNull(scanType, "scanType"); - this.scanType = Optional.ofNullable(scanType); - return this; - } - - public Builder scanType(Optional scanType) { - Utils.checkNotNull(scanType, "scanType"); - this.scanType = scanType; - return this; - } - - public Builder streamIdentifier(String streamIdentifier) { - Utils.checkNotNull(streamIdentifier, "streamIdentifier"); - this.streamIdentifier = Optional.ofNullable(streamIdentifier); - return this; - } - - public Builder streamIdentifier(Optional streamIdentifier) { - Utils.checkNotNull(streamIdentifier, "streamIdentifier"); - this.streamIdentifier = streamIdentifier; - return this; - } - - public Builder width(int width) { - Utils.checkNotNull(width, "width"); - this.width = Optional.ofNullable(width); - return this; - } - - public Builder width(Optional width) { - Utils.checkNotNull(width, "width"); - this.width = width; - return this; - } - - public Builder displayTitle(String displayTitle) { - Utils.checkNotNull(displayTitle, "displayTitle"); - this.displayTitle = Optional.ofNullable(displayTitle); - return this; - } - - public Builder displayTitle(Optional displayTitle) { - Utils.checkNotNull(displayTitle, "displayTitle"); - this.displayTitle = displayTitle; - return this; - } - - public Builder extendedDisplayTitle(String extendedDisplayTitle) { - Utils.checkNotNull(extendedDisplayTitle, "extendedDisplayTitle"); - this.extendedDisplayTitle = Optional.ofNullable(extendedDisplayTitle); - return this; - } - - public Builder extendedDisplayTitle(Optional extendedDisplayTitle) { - Utils.checkNotNull(extendedDisplayTitle, "extendedDisplayTitle"); - this.extendedDisplayTitle = extendedDisplayTitle; - return this; - } - - public Builder selected(boolean selected) { - Utils.checkNotNull(selected, "selected"); - this.selected = Optional.ofNullable(selected); - return this; - } - - public Builder selected(Optional selected) { - Utils.checkNotNull(selected, "selected"); - this.selected = selected; - return this; - } - - public Builder channels(int channels) { - Utils.checkNotNull(channels, "channels"); - this.channels = Optional.ofNullable(channels); - return this; - } - - public Builder channels(Optional channels) { - Utils.checkNotNull(channels, "channels"); - this.channels = channels; - return this; - } - - public Builder language(String language) { - Utils.checkNotNull(language, "language"); - this.language = Optional.ofNullable(language); - return this; - } - - public Builder language(Optional language) { - Utils.checkNotNull(language, "language"); - this.language = language; - return this; - } - - public Builder languageTag(String languageTag) { - Utils.checkNotNull(languageTag, "languageTag"); - this.languageTag = Optional.ofNullable(languageTag); - return this; - } - - public Builder languageTag(Optional languageTag) { - Utils.checkNotNull(languageTag, "languageTag"); - this.languageTag = languageTag; - return this; - } - - public Builder languageCode(String languageCode) { - Utils.checkNotNull(languageCode, "languageCode"); - this.languageCode = Optional.ofNullable(languageCode); - return this; - } - - public Builder languageCode(Optional languageCode) { - Utils.checkNotNull(languageCode, "languageCode"); - this.languageCode = languageCode; - return this; - } - - public Builder samplingRate(int samplingRate) { - Utils.checkNotNull(samplingRate, "samplingRate"); - this.samplingRate = Optional.ofNullable(samplingRate); - return this; - } - - public Builder samplingRate(Optional samplingRate) { - Utils.checkNotNull(samplingRate, "samplingRate"); - this.samplingRate = samplingRate; - return this; - } - - public Stream build() { - return new Stream( - id, - streamType, - default_, - codec, - index, - bitrate, - bitDepth, - chromaLocation, - chromaSubsampling, - codedHeight, - codedWidth, - colorPrimaries, - colorRange, - colorSpace, - colorTrc, - frameRate, - hasScalingMatrix, - height, - level, - profile, - refFrames, - scanType, - streamIdentifier, - width, - displayTitle, - extendedDisplayTitle, - selected, - channels, - language, - languageTag, - languageCode, - samplingRate); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Tag.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Tag.java deleted file mode 100644 index a5d2f11b..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Tag.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * Tag - A key representing a specific tag within the section. - */ -public enum Tag { - ALL("all"), - UNWATCHED("unwatched"), - NEWEST("newest"), - RECENTLY_ADDED("recentlyAdded"), - RECENTLY_VIEWED("recentlyViewed"), - ON_DECK("onDeck"), - COLLECTION("collection"), - EDITION("edition"), - GENRE("genre"), - YEAR("year"), - DECADE("decade"), - DIRECTOR("director"), - ACTOR("actor"), - COUNTRY("country"), - CONTENT_RATING("contentRating"), - RATING("rating"), - RESOLUTION("resolution"), - FIRST_CHARACTER("firstCharacter"), - FOLDER("folder"); - - @JsonValue - private final String value; - - private Tag(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/TaskName.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/TaskName.java deleted file mode 100644 index 9327c577..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/TaskName.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * TaskName - the name of the task to be started. - */ -public enum TaskName { - BACKUP_DATABASE("BackupDatabase"), - BUILD_GRACENOTE_COLLECTIONS("BuildGracenoteCollections"), - CHECK_FOR_UPDATES("CheckForUpdates"), - CLEAN_OLD_BUNDLES("CleanOldBundles"), - CLEAN_OLD_CACHE_FILES("CleanOldCacheFiles"), - DEEP_MEDIA_ANALYSIS("DeepMediaAnalysis"), - GENERATE_AUTO_TAGS("GenerateAutoTags"), - GENERATE_CHAPTER_THUMBS("GenerateChapterThumbs"), - GENERATE_MEDIA_INDEX_FILES("GenerateMediaIndexFiles"), - OPTIMIZE_DATABASE("OptimizeDatabase"), - REFRESH_LIBRARIES("RefreshLibraries"), - REFRESH_LOCAL_MEDIA("RefreshLocalMedia"), - REFRESH_PERIODIC_METADATA("RefreshPeriodicMetadata"), - UPGRADE_MEDIA_ANALYSIS("UpgradeMediaAnalysis"); - - @JsonValue - private final String value; - - private TaskName(String value) { - this.value = value; - } - - public String value() { - return value; - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Tonight.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Tonight.java deleted file mode 100644 index fb21b3a9..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Tonight.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * Tonight - 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 - */ -public enum Tonight { - ZERO(0L), - ONE(1L); - - @JsonValue - private final long value; - - private Tonight(long value) { - this.value = value; - } - - public long value() { - return value; - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/TranscodeSession.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/TranscodeSession.java deleted file mode 100644 index 75a32b2b..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/TranscodeSession.java +++ /dev/null @@ -1,1100 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class TranscodeSession { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("throttled") - private Optional throttled; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("complete") - private Optional complete; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("progress") - private Optional progress; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("size") - private Optional size; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("speed") - private Optional speed; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("error") - private Optional error; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("duration") - private Optional duration; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("remaining") - private Optional remaining; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("context") - private Optional context; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("sourceVideoCodec") - private Optional sourceVideoCodec; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("sourceAudioCodec") - private Optional sourceAudioCodec; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("videoDecision") - private Optional videoDecision; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audioDecision") - private Optional audioDecision; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("subtitleDecision") - private Optional subtitleDecision; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("protocol") - private Optional protocol; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("container") - private Optional container; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("videoCodec") - private Optional videoCodec; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audioCodec") - private Optional audioCodec; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("audioChannels") - private Optional audioChannels; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("transcodeHwRequested") - private Optional transcodeHwRequested; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("timeStamp") - private Optional timeStamp; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("maxOffsetAvailable") - private Optional maxOffsetAvailable; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("minOffsetAvailable") - private Optional minOffsetAvailable; - - @JsonCreator - public TranscodeSession( - @JsonProperty("key") Optional key, - @JsonProperty("throttled") Optional throttled, - @JsonProperty("complete") Optional complete, - @JsonProperty("progress") Optional progress, - @JsonProperty("size") Optional size, - @JsonProperty("speed") Optional speed, - @JsonProperty("error") Optional error, - @JsonProperty("duration") Optional duration, - @JsonProperty("remaining") Optional remaining, - @JsonProperty("context") Optional context, - @JsonProperty("sourceVideoCodec") Optional sourceVideoCodec, - @JsonProperty("sourceAudioCodec") Optional sourceAudioCodec, - @JsonProperty("videoDecision") Optional videoDecision, - @JsonProperty("audioDecision") Optional audioDecision, - @JsonProperty("subtitleDecision") Optional subtitleDecision, - @JsonProperty("protocol") Optional protocol, - @JsonProperty("container") Optional container, - @JsonProperty("videoCodec") Optional videoCodec, - @JsonProperty("audioCodec") Optional audioCodec, - @JsonProperty("audioChannels") Optional audioChannels, - @JsonProperty("transcodeHwRequested") Optional transcodeHwRequested, - @JsonProperty("timeStamp") Optional timeStamp, - @JsonProperty("maxOffsetAvailable") Optional maxOffsetAvailable, - @JsonProperty("minOffsetAvailable") Optional minOffsetAvailable) { - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(throttled, "throttled"); - Utils.checkNotNull(complete, "complete"); - Utils.checkNotNull(progress, "progress"); - Utils.checkNotNull(size, "size"); - Utils.checkNotNull(speed, "speed"); - Utils.checkNotNull(error, "error"); - Utils.checkNotNull(duration, "duration"); - Utils.checkNotNull(remaining, "remaining"); - Utils.checkNotNull(context, "context"); - Utils.checkNotNull(sourceVideoCodec, "sourceVideoCodec"); - Utils.checkNotNull(sourceAudioCodec, "sourceAudioCodec"); - Utils.checkNotNull(videoDecision, "videoDecision"); - Utils.checkNotNull(audioDecision, "audioDecision"); - Utils.checkNotNull(subtitleDecision, "subtitleDecision"); - Utils.checkNotNull(protocol, "protocol"); - Utils.checkNotNull(container, "container"); - Utils.checkNotNull(videoCodec, "videoCodec"); - Utils.checkNotNull(audioCodec, "audioCodec"); - Utils.checkNotNull(audioChannels, "audioChannels"); - Utils.checkNotNull(transcodeHwRequested, "transcodeHwRequested"); - Utils.checkNotNull(timeStamp, "timeStamp"); - Utils.checkNotNull(maxOffsetAvailable, "maxOffsetAvailable"); - Utils.checkNotNull(minOffsetAvailable, "minOffsetAvailable"); - 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; - } - - public TranscodeSession() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional key() { - return (Optional) key; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional throttled() { - return (Optional) throttled; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional complete() { - return (Optional) complete; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional progress() { - return (Optional) progress; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional size() { - return (Optional) size; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional speed() { - return (Optional) speed; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional error() { - return (Optional) error; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional duration() { - return (Optional) duration; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional remaining() { - return (Optional) remaining; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional context() { - return (Optional) context; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional sourceVideoCodec() { - return (Optional) sourceVideoCodec; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional sourceAudioCodec() { - return (Optional) sourceAudioCodec; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional videoDecision() { - return (Optional) videoDecision; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audioDecision() { - return (Optional) audioDecision; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional subtitleDecision() { - return (Optional) subtitleDecision; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional protocol() { - return (Optional) protocol; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional container() { - return (Optional) container; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional videoCodec() { - return (Optional) videoCodec; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audioCodec() { - return (Optional) audioCodec; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional audioChannels() { - return (Optional) audioChannels; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional transcodeHwRequested() { - return (Optional) transcodeHwRequested; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional timeStamp() { - return (Optional) timeStamp; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional maxOffsetAvailable() { - return (Optional) maxOffsetAvailable; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional minOffsetAvailable() { - return (Optional) minOffsetAvailable; - } - - public final static Builder builder() { - return new Builder(); - } - - public TranscodeSession withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public TranscodeSession withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public TranscodeSession withThrottled(boolean throttled) { - Utils.checkNotNull(throttled, "throttled"); - this.throttled = Optional.ofNullable(throttled); - return this; - } - - public TranscodeSession withThrottled(Optional throttled) { - Utils.checkNotNull(throttled, "throttled"); - this.throttled = throttled; - return this; - } - - public TranscodeSession withComplete(boolean complete) { - Utils.checkNotNull(complete, "complete"); - this.complete = Optional.ofNullable(complete); - return this; - } - - public TranscodeSession withComplete(Optional complete) { - Utils.checkNotNull(complete, "complete"); - this.complete = complete; - return this; - } - - public TranscodeSession withProgress(double progress) { - Utils.checkNotNull(progress, "progress"); - this.progress = Optional.ofNullable(progress); - return this; - } - - public TranscodeSession withProgress(Optional progress) { - Utils.checkNotNull(progress, "progress"); - this.progress = progress; - return this; - } - - public TranscodeSession withSize(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public TranscodeSession withSize(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public TranscodeSession withSpeed(double speed) { - Utils.checkNotNull(speed, "speed"); - this.speed = Optional.ofNullable(speed); - return this; - } - - public TranscodeSession withSpeed(Optional speed) { - Utils.checkNotNull(speed, "speed"); - this.speed = speed; - return this; - } - - public TranscodeSession withError(boolean error) { - Utils.checkNotNull(error, "error"); - this.error = Optional.ofNullable(error); - return this; - } - - public TranscodeSession withError(Optional error) { - Utils.checkNotNull(error, "error"); - this.error = error; - return this; - } - - public TranscodeSession withDuration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public TranscodeSession withDuration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public TranscodeSession withRemaining(int remaining) { - Utils.checkNotNull(remaining, "remaining"); - this.remaining = Optional.ofNullable(remaining); - return this; - } - - public TranscodeSession withRemaining(Optional remaining) { - Utils.checkNotNull(remaining, "remaining"); - this.remaining = remaining; - return this; - } - - public TranscodeSession withContext(String context) { - Utils.checkNotNull(context, "context"); - this.context = Optional.ofNullable(context); - return this; - } - - public TranscodeSession withContext(Optional context) { - Utils.checkNotNull(context, "context"); - this.context = context; - return this; - } - - public TranscodeSession withSourceVideoCodec(String sourceVideoCodec) { - Utils.checkNotNull(sourceVideoCodec, "sourceVideoCodec"); - this.sourceVideoCodec = Optional.ofNullable(sourceVideoCodec); - return this; - } - - public TranscodeSession withSourceVideoCodec(Optional sourceVideoCodec) { - Utils.checkNotNull(sourceVideoCodec, "sourceVideoCodec"); - this.sourceVideoCodec = sourceVideoCodec; - return this; - } - - public TranscodeSession withSourceAudioCodec(String sourceAudioCodec) { - Utils.checkNotNull(sourceAudioCodec, "sourceAudioCodec"); - this.sourceAudioCodec = Optional.ofNullable(sourceAudioCodec); - return this; - } - - public TranscodeSession withSourceAudioCodec(Optional sourceAudioCodec) { - Utils.checkNotNull(sourceAudioCodec, "sourceAudioCodec"); - this.sourceAudioCodec = sourceAudioCodec; - return this; - } - - public TranscodeSession withVideoDecision(String videoDecision) { - Utils.checkNotNull(videoDecision, "videoDecision"); - this.videoDecision = Optional.ofNullable(videoDecision); - return this; - } - - public TranscodeSession withVideoDecision(Optional videoDecision) { - Utils.checkNotNull(videoDecision, "videoDecision"); - this.videoDecision = videoDecision; - return this; - } - - public TranscodeSession withAudioDecision(String audioDecision) { - Utils.checkNotNull(audioDecision, "audioDecision"); - this.audioDecision = Optional.ofNullable(audioDecision); - return this; - } - - public TranscodeSession withAudioDecision(Optional audioDecision) { - Utils.checkNotNull(audioDecision, "audioDecision"); - this.audioDecision = audioDecision; - return this; - } - - public TranscodeSession withSubtitleDecision(String subtitleDecision) { - Utils.checkNotNull(subtitleDecision, "subtitleDecision"); - this.subtitleDecision = Optional.ofNullable(subtitleDecision); - return this; - } - - public TranscodeSession withSubtitleDecision(Optional subtitleDecision) { - Utils.checkNotNull(subtitleDecision, "subtitleDecision"); - this.subtitleDecision = subtitleDecision; - return this; - } - - public TranscodeSession withProtocol(String protocol) { - Utils.checkNotNull(protocol, "protocol"); - this.protocol = Optional.ofNullable(protocol); - return this; - } - - public TranscodeSession withProtocol(Optional protocol) { - Utils.checkNotNull(protocol, "protocol"); - this.protocol = protocol; - return this; - } - - public TranscodeSession withContainer(String container) { - Utils.checkNotNull(container, "container"); - this.container = Optional.ofNullable(container); - return this; - } - - public TranscodeSession withContainer(Optional container) { - Utils.checkNotNull(container, "container"); - this.container = container; - return this; - } - - public TranscodeSession withVideoCodec(String videoCodec) { - Utils.checkNotNull(videoCodec, "videoCodec"); - this.videoCodec = Optional.ofNullable(videoCodec); - return this; - } - - public TranscodeSession withVideoCodec(Optional videoCodec) { - Utils.checkNotNull(videoCodec, "videoCodec"); - this.videoCodec = videoCodec; - return this; - } - - public TranscodeSession withAudioCodec(String audioCodec) { - Utils.checkNotNull(audioCodec, "audioCodec"); - this.audioCodec = Optional.ofNullable(audioCodec); - return this; - } - - public TranscodeSession withAudioCodec(Optional audioCodec) { - Utils.checkNotNull(audioCodec, "audioCodec"); - this.audioCodec = audioCodec; - return this; - } - - public TranscodeSession withAudioChannels(int audioChannels) { - Utils.checkNotNull(audioChannels, "audioChannels"); - this.audioChannels = Optional.ofNullable(audioChannels); - return this; - } - - public TranscodeSession withAudioChannels(Optional audioChannels) { - Utils.checkNotNull(audioChannels, "audioChannels"); - this.audioChannels = audioChannels; - return this; - } - - public TranscodeSession withTranscodeHwRequested(boolean transcodeHwRequested) { - Utils.checkNotNull(transcodeHwRequested, "transcodeHwRequested"); - this.transcodeHwRequested = Optional.ofNullable(transcodeHwRequested); - return this; - } - - public TranscodeSession withTranscodeHwRequested(Optional transcodeHwRequested) { - Utils.checkNotNull(transcodeHwRequested, "transcodeHwRequested"); - this.transcodeHwRequested = transcodeHwRequested; - return this; - } - - public TranscodeSession withTimeStamp(double timeStamp) { - Utils.checkNotNull(timeStamp, "timeStamp"); - this.timeStamp = Optional.ofNullable(timeStamp); - return this; - } - - public TranscodeSession withTimeStamp(Optional timeStamp) { - Utils.checkNotNull(timeStamp, "timeStamp"); - this.timeStamp = timeStamp; - return this; - } - - public TranscodeSession withMaxOffsetAvailable(double maxOffsetAvailable) { - Utils.checkNotNull(maxOffsetAvailable, "maxOffsetAvailable"); - this.maxOffsetAvailable = Optional.ofNullable(maxOffsetAvailable); - return this; - } - - public TranscodeSession withMaxOffsetAvailable(Optional maxOffsetAvailable) { - Utils.checkNotNull(maxOffsetAvailable, "maxOffsetAvailable"); - this.maxOffsetAvailable = maxOffsetAvailable; - return this; - } - - public TranscodeSession withMinOffsetAvailable(double minOffsetAvailable) { - Utils.checkNotNull(minOffsetAvailable, "minOffsetAvailable"); - this.minOffsetAvailable = Optional.ofNullable(minOffsetAvailable); - return this; - } - - public TranscodeSession withMinOffsetAvailable(Optional minOffsetAvailable) { - Utils.checkNotNull(minOffsetAvailable, "minOffsetAvailable"); - this.minOffsetAvailable = minOffsetAvailable; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TranscodeSession other = (TranscodeSession) o; - return - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.throttled, other.throttled) && - java.util.Objects.deepEquals(this.complete, other.complete) && - java.util.Objects.deepEquals(this.progress, other.progress) && - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.speed, other.speed) && - java.util.Objects.deepEquals(this.error, other.error) && - java.util.Objects.deepEquals(this.duration, other.duration) && - java.util.Objects.deepEquals(this.remaining, other.remaining) && - java.util.Objects.deepEquals(this.context, other.context) && - java.util.Objects.deepEquals(this.sourceVideoCodec, other.sourceVideoCodec) && - java.util.Objects.deepEquals(this.sourceAudioCodec, other.sourceAudioCodec) && - java.util.Objects.deepEquals(this.videoDecision, other.videoDecision) && - java.util.Objects.deepEquals(this.audioDecision, other.audioDecision) && - java.util.Objects.deepEquals(this.subtitleDecision, other.subtitleDecision) && - java.util.Objects.deepEquals(this.protocol, other.protocol) && - java.util.Objects.deepEquals(this.container, other.container) && - java.util.Objects.deepEquals(this.videoCodec, other.videoCodec) && - java.util.Objects.deepEquals(this.audioCodec, other.audioCodec) && - java.util.Objects.deepEquals(this.audioChannels, other.audioChannels) && - java.util.Objects.deepEquals(this.transcodeHwRequested, other.transcodeHwRequested) && - java.util.Objects.deepEquals(this.timeStamp, other.timeStamp) && - java.util.Objects.deepEquals(this.maxOffsetAvailable, other.maxOffsetAvailable) && - java.util.Objects.deepEquals(this.minOffsetAvailable, other.minOffsetAvailable); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - key, - throttled, - complete, - progress, - size, - speed, - error, - duration, - remaining, - context, - sourceVideoCodec, - sourceAudioCodec, - videoDecision, - audioDecision, - subtitleDecision, - protocol, - container, - videoCodec, - audioCodec, - audioChannels, - transcodeHwRequested, - timeStamp, - maxOffsetAvailable, - minOffsetAvailable); - } - - @Override - public String toString() { - return Utils.toString(TranscodeSession.class, - "key", key, - "throttled", throttled, - "complete", complete, - "progress", progress, - "size", size, - "speed", speed, - "error", error, - "duration", duration, - "remaining", remaining, - "context", context, - "sourceVideoCodec", sourceVideoCodec, - "sourceAudioCodec", sourceAudioCodec, - "videoDecision", videoDecision, - "audioDecision", audioDecision, - "subtitleDecision", subtitleDecision, - "protocol", protocol, - "container", container, - "videoCodec", videoCodec, - "audioCodec", audioCodec, - "audioChannels", audioChannels, - "transcodeHwRequested", transcodeHwRequested, - "timeStamp", timeStamp, - "maxOffsetAvailable", maxOffsetAvailable, - "minOffsetAvailable", minOffsetAvailable); - } - - public final static class Builder { - - private Optional key = Optional.empty(); - - private Optional throttled = Optional.empty(); - - private Optional complete = Optional.empty(); - - private Optional progress = Optional.empty(); - - private Optional size = Optional.empty(); - - private Optional speed = Optional.empty(); - - private Optional error = Optional.empty(); - - private Optional duration = Optional.empty(); - - private Optional remaining = Optional.empty(); - - private Optional context = Optional.empty(); - - private Optional sourceVideoCodec = Optional.empty(); - - private Optional sourceAudioCodec = Optional.empty(); - - private Optional videoDecision = Optional.empty(); - - private Optional audioDecision = Optional.empty(); - - private Optional subtitleDecision = Optional.empty(); - - private Optional protocol = Optional.empty(); - - private Optional container = Optional.empty(); - - private Optional videoCodec = Optional.empty(); - - private Optional audioCodec = Optional.empty(); - - private Optional audioChannels = Optional.empty(); - - private Optional transcodeHwRequested = Optional.empty(); - - private Optional timeStamp = Optional.empty(); - - private Optional maxOffsetAvailable = Optional.empty(); - - private Optional minOffsetAvailable = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public Builder throttled(boolean throttled) { - Utils.checkNotNull(throttled, "throttled"); - this.throttled = Optional.ofNullable(throttled); - return this; - } - - public Builder throttled(Optional throttled) { - Utils.checkNotNull(throttled, "throttled"); - this.throttled = throttled; - return this; - } - - public Builder complete(boolean complete) { - Utils.checkNotNull(complete, "complete"); - this.complete = Optional.ofNullable(complete); - return this; - } - - public Builder complete(Optional complete) { - Utils.checkNotNull(complete, "complete"); - this.complete = complete; - return this; - } - - public Builder progress(double progress) { - Utils.checkNotNull(progress, "progress"); - this.progress = Optional.ofNullable(progress); - return this; - } - - public Builder progress(Optional progress) { - Utils.checkNotNull(progress, "progress"); - this.progress = progress; - return this; - } - - public Builder size(int size) { - Utils.checkNotNull(size, "size"); - this.size = Optional.ofNullable(size); - return this; - } - - public Builder size(Optional size) { - Utils.checkNotNull(size, "size"); - this.size = size; - return this; - } - - public Builder speed(double speed) { - Utils.checkNotNull(speed, "speed"); - this.speed = Optional.ofNullable(speed); - return this; - } - - public Builder speed(Optional speed) { - Utils.checkNotNull(speed, "speed"); - this.speed = speed; - return this; - } - - public Builder error(boolean error) { - Utils.checkNotNull(error, "error"); - this.error = Optional.ofNullable(error); - return this; - } - - public Builder error(Optional error) { - Utils.checkNotNull(error, "error"); - this.error = error; - return this; - } - - public Builder duration(int duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = Optional.ofNullable(duration); - return this; - } - - public Builder duration(Optional duration) { - Utils.checkNotNull(duration, "duration"); - this.duration = duration; - return this; - } - - public Builder remaining(int remaining) { - Utils.checkNotNull(remaining, "remaining"); - this.remaining = Optional.ofNullable(remaining); - return this; - } - - public Builder remaining(Optional remaining) { - Utils.checkNotNull(remaining, "remaining"); - this.remaining = remaining; - return this; - } - - public Builder context(String context) { - Utils.checkNotNull(context, "context"); - this.context = Optional.ofNullable(context); - return this; - } - - public Builder context(Optional context) { - Utils.checkNotNull(context, "context"); - this.context = context; - return this; - } - - public Builder sourceVideoCodec(String sourceVideoCodec) { - Utils.checkNotNull(sourceVideoCodec, "sourceVideoCodec"); - this.sourceVideoCodec = Optional.ofNullable(sourceVideoCodec); - return this; - } - - public Builder sourceVideoCodec(Optional sourceVideoCodec) { - Utils.checkNotNull(sourceVideoCodec, "sourceVideoCodec"); - this.sourceVideoCodec = sourceVideoCodec; - return this; - } - - public Builder sourceAudioCodec(String sourceAudioCodec) { - Utils.checkNotNull(sourceAudioCodec, "sourceAudioCodec"); - this.sourceAudioCodec = Optional.ofNullable(sourceAudioCodec); - return this; - } - - public Builder sourceAudioCodec(Optional sourceAudioCodec) { - Utils.checkNotNull(sourceAudioCodec, "sourceAudioCodec"); - this.sourceAudioCodec = sourceAudioCodec; - return this; - } - - public Builder videoDecision(String videoDecision) { - Utils.checkNotNull(videoDecision, "videoDecision"); - this.videoDecision = Optional.ofNullable(videoDecision); - return this; - } - - public Builder videoDecision(Optional videoDecision) { - Utils.checkNotNull(videoDecision, "videoDecision"); - this.videoDecision = videoDecision; - return this; - } - - public Builder audioDecision(String audioDecision) { - Utils.checkNotNull(audioDecision, "audioDecision"); - this.audioDecision = Optional.ofNullable(audioDecision); - return this; - } - - public Builder audioDecision(Optional audioDecision) { - Utils.checkNotNull(audioDecision, "audioDecision"); - this.audioDecision = audioDecision; - return this; - } - - public Builder subtitleDecision(String subtitleDecision) { - Utils.checkNotNull(subtitleDecision, "subtitleDecision"); - this.subtitleDecision = Optional.ofNullable(subtitleDecision); - return this; - } - - public Builder subtitleDecision(Optional subtitleDecision) { - Utils.checkNotNull(subtitleDecision, "subtitleDecision"); - this.subtitleDecision = subtitleDecision; - return this; - } - - public Builder protocol(String protocol) { - Utils.checkNotNull(protocol, "protocol"); - this.protocol = Optional.ofNullable(protocol); - return this; - } - - public Builder protocol(Optional protocol) { - Utils.checkNotNull(protocol, "protocol"); - this.protocol = protocol; - return this; - } - - public Builder container(String container) { - Utils.checkNotNull(container, "container"); - this.container = Optional.ofNullable(container); - return this; - } - - public Builder container(Optional container) { - Utils.checkNotNull(container, "container"); - this.container = container; - return this; - } - - public Builder videoCodec(String videoCodec) { - Utils.checkNotNull(videoCodec, "videoCodec"); - this.videoCodec = Optional.ofNullable(videoCodec); - return this; - } - - public Builder videoCodec(Optional videoCodec) { - Utils.checkNotNull(videoCodec, "videoCodec"); - this.videoCodec = videoCodec; - return this; - } - - public Builder audioCodec(String audioCodec) { - Utils.checkNotNull(audioCodec, "audioCodec"); - this.audioCodec = Optional.ofNullable(audioCodec); - return this; - } - - public Builder audioCodec(Optional audioCodec) { - Utils.checkNotNull(audioCodec, "audioCodec"); - this.audioCodec = audioCodec; - return this; - } - - public Builder audioChannels(int audioChannels) { - Utils.checkNotNull(audioChannels, "audioChannels"); - this.audioChannels = Optional.ofNullable(audioChannels); - return this; - } - - public Builder audioChannels(Optional audioChannels) { - Utils.checkNotNull(audioChannels, "audioChannels"); - this.audioChannels = audioChannels; - return this; - } - - public Builder transcodeHwRequested(boolean transcodeHwRequested) { - Utils.checkNotNull(transcodeHwRequested, "transcodeHwRequested"); - this.transcodeHwRequested = Optional.ofNullable(transcodeHwRequested); - return this; - } - - public Builder transcodeHwRequested(Optional transcodeHwRequested) { - Utils.checkNotNull(transcodeHwRequested, "transcodeHwRequested"); - this.transcodeHwRequested = transcodeHwRequested; - return this; - } - - public Builder timeStamp(double timeStamp) { - Utils.checkNotNull(timeStamp, "timeStamp"); - this.timeStamp = Optional.ofNullable(timeStamp); - return this; - } - - public Builder timeStamp(Optional timeStamp) { - Utils.checkNotNull(timeStamp, "timeStamp"); - this.timeStamp = timeStamp; - return this; - } - - public Builder maxOffsetAvailable(double maxOffsetAvailable) { - Utils.checkNotNull(maxOffsetAvailable, "maxOffsetAvailable"); - this.maxOffsetAvailable = Optional.ofNullable(maxOffsetAvailable); - return this; - } - - public Builder maxOffsetAvailable(Optional maxOffsetAvailable) { - Utils.checkNotNull(maxOffsetAvailable, "maxOffsetAvailable"); - this.maxOffsetAvailable = maxOffsetAvailable; - return this; - } - - public Builder minOffsetAvailable(double minOffsetAvailable) { - Utils.checkNotNull(minOffsetAvailable, "minOffsetAvailable"); - this.minOffsetAvailable = Optional.ofNullable(minOffsetAvailable); - return this; - } - - public Builder minOffsetAvailable(Optional minOffsetAvailable) { - Utils.checkNotNull(minOffsetAvailable, "minOffsetAvailable"); - this.minOffsetAvailable = minOffsetAvailable; - return this; - } - - public TranscodeSession build() { - return new TranscodeSession( - key, - throttled, - complete, - progress, - size, - speed, - error, - duration, - remaining, - context, - sourceVideoCodec, - sourceAudioCodec, - videoDecision, - audioDecision, - subtitleDecision, - protocol, - container, - videoCodec, - audioCodec, - audioChannels, - transcodeHwRequested, - timeStamp, - maxOffsetAvailable, - minOffsetAvailable); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Type.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Type.java deleted file mode 100644 index af809a6b..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Type.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * Type - Plex content type to search for - */ -public enum Type { - ONE(1L), - TWO(2L), - THREE(3L), - FOUR(4L); - - @JsonValue - private final long value; - - private Type(long value) { - this.value = value; - } - - public long value() { - return value; - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlayProgressRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlayProgressRequest.java deleted file mode 100644 index f77c21ab..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlayProgressRequest.java +++ /dev/null @@ -1,184 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class UpdatePlayProgressRequest { - - /** - * the media key - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=key") - private String key; - - /** - * The time, in milliseconds, used to set the media playback progress. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=time") - private double time; - - /** - * The playback state of the media item. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=state") - private String state; - - @JsonCreator - public UpdatePlayProgressRequest( - String key, - double time, - String state) { - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(time, "time"); - Utils.checkNotNull(state, "state"); - this.key = key; - this.time = time; - this.state = state; - } - - /** - * the media key - */ - @JsonIgnore - public String key() { - return key; - } - - /** - * The time, in milliseconds, used to set the media playback progress. - */ - @JsonIgnore - public double time() { - return time; - } - - /** - * The playback state of the media item. - */ - @JsonIgnore - public String state() { - return state; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * the media key - */ - public UpdatePlayProgressRequest withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - /** - * The time, in milliseconds, used to set the media playback progress. - */ - public UpdatePlayProgressRequest withTime(double time) { - Utils.checkNotNull(time, "time"); - this.time = time; - return this; - } - - /** - * The playback state of the media item. - */ - public UpdatePlayProgressRequest withState(String state) { - Utils.checkNotNull(state, "state"); - this.state = state; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UpdatePlayProgressRequest other = (UpdatePlayProgressRequest) o; - return - java.util.Objects.deepEquals(this.key, other.key) && - java.util.Objects.deepEquals(this.time, other.time) && - java.util.Objects.deepEquals(this.state, other.state); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - key, - time, - state); - } - - @Override - public String toString() { - return Utils.toString(UpdatePlayProgressRequest.class, - "key", key, - "time", time, - "state", state); - } - - public final static class Builder { - - private String key; - - private Double time; - - private String state; - - private Builder() { - // force use of static builder() method - } - - /** - * the media key - */ - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - /** - * The time, in milliseconds, used to set the media playback progress. - */ - public Builder time(double time) { - Utils.checkNotNull(time, "time"); - this.time = time; - return this; - } - - /** - * The playback state of the media item. - */ - public Builder state(String state) { - Utils.checkNotNull(state, "state"); - this.state = state; - return this; - } - - public UpdatePlayProgressRequest build() { - return new UpdatePlayProgressRequest( - key, - time, - state); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlayProgressRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlayProgressRequestBuilder.java deleted file mode 100644 index e8b540f7..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlayProgressRequestBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class UpdatePlayProgressRequestBuilder { - - private String key; - private Double time; - private String state; - private final SDKMethodInterfaces.MethodCallUpdatePlayProgress sdk; - - public UpdatePlayProgressRequestBuilder(SDKMethodInterfaces.MethodCallUpdatePlayProgress sdk) { - this.sdk = sdk; - } - - public UpdatePlayProgressRequestBuilder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public UpdatePlayProgressRequestBuilder time(double time) { - Utils.checkNotNull(time, "time"); - this.time = time; - return this; - } - - public UpdatePlayProgressRequestBuilder state(String state) { - Utils.checkNotNull(state, "state"); - this.state = state; - return this; - } - - public UpdatePlayProgressResponse call() throws Exception { - - return sdk.updatePlayProgress( - key, - time, - state); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlayProgressResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlayProgressResponse.java deleted file mode 100644 index 4ed7815a..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlayProgressResponse.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class UpdatePlayProgressResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - @JsonCreator - public UpdatePlayProgressResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public UpdatePlayProgressResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public UpdatePlayProgressResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public UpdatePlayProgressResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UpdatePlayProgressResponse other = (UpdatePlayProgressResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(UpdatePlayProgressResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public UpdatePlayProgressResponse build() { - return new UpdatePlayProgressResponse( - contentType, - statusCode, - rawResponse); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlaylistRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlaylistRequest.java deleted file mode 100644 index 020e157d..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlaylistRequest.java +++ /dev/null @@ -1,228 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class UpdatePlaylistRequest { - - /** - * the ID of the playlist - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=playlistID") - private double playlistID; - - /** - * name of the playlist - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=title") - private Optional title; - - /** - * summary description of the playlist - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=summary") - private Optional summary; - - @JsonCreator - public UpdatePlaylistRequest( - double playlistID, - Optional title, - Optional summary) { - Utils.checkNotNull(playlistID, "playlistID"); - Utils.checkNotNull(title, "title"); - Utils.checkNotNull(summary, "summary"); - this.playlistID = playlistID; - this.title = title; - this.summary = summary; - } - - public UpdatePlaylistRequest( - double playlistID) { - this(playlistID, Optional.empty(), Optional.empty()); - } - - /** - * the ID of the playlist - */ - @JsonIgnore - public double playlistID() { - return playlistID; - } - - /** - * name of the playlist - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional title() { - return (Optional) title; - } - - /** - * summary description of the playlist - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional summary() { - return (Optional) summary; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * the ID of the playlist - */ - public UpdatePlaylistRequest withPlaylistID(double playlistID) { - Utils.checkNotNull(playlistID, "playlistID"); - this.playlistID = playlistID; - return this; - } - - /** - * name of the playlist - */ - public UpdatePlaylistRequest withTitle(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - /** - * name of the playlist - */ - public UpdatePlaylistRequest withTitle(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - /** - * summary description of the playlist - */ - public UpdatePlaylistRequest withSummary(String summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = Optional.ofNullable(summary); - return this; - } - - /** - * summary description of the playlist - */ - public UpdatePlaylistRequest withSummary(Optional summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = summary; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UpdatePlaylistRequest other = (UpdatePlaylistRequest) o; - return - java.util.Objects.deepEquals(this.playlistID, other.playlistID) && - java.util.Objects.deepEquals(this.title, other.title) && - java.util.Objects.deepEquals(this.summary, other.summary); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - playlistID, - title, - summary); - } - - @Override - public String toString() { - return Utils.toString(UpdatePlaylistRequest.class, - "playlistID", playlistID, - "title", title, - "summary", summary); - } - - public final static class Builder { - - private Double playlistID; - - private Optional title = Optional.empty(); - - private Optional summary = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * the ID of the playlist - */ - public Builder playlistID(double playlistID) { - Utils.checkNotNull(playlistID, "playlistID"); - this.playlistID = playlistID; - return this; - } - - /** - * name of the playlist - */ - public Builder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.ofNullable(title); - return this; - } - - /** - * name of the playlist - */ - public Builder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - /** - * summary description of the playlist - */ - public Builder summary(String summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = Optional.ofNullable(summary); - return this; - } - - /** - * summary description of the playlist - */ - public Builder summary(Optional summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = summary; - return this; - } - - public UpdatePlaylistRequest build() { - return new UpdatePlaylistRequest( - playlistID, - title, - summary); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlaylistRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlaylistRequestBuilder.java deleted file mode 100644 index fba32e3c..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlaylistRequestBuilder.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class UpdatePlaylistRequestBuilder { - - private Double playlistID; - private Optional title = Optional.empty(); - private Optional summary = Optional.empty(); - private final SDKMethodInterfaces.MethodCallUpdatePlaylist sdk; - - public UpdatePlaylistRequestBuilder(SDKMethodInterfaces.MethodCallUpdatePlaylist sdk) { - this.sdk = sdk; - } - - public UpdatePlaylistRequestBuilder playlistID(double playlistID) { - Utils.checkNotNull(playlistID, "playlistID"); - this.playlistID = playlistID; - return this; - } - - public UpdatePlaylistRequestBuilder title(String title) { - Utils.checkNotNull(title, "title"); - this.title = Optional.of(title); - return this; - } - - public UpdatePlaylistRequestBuilder title(Optional title) { - Utils.checkNotNull(title, "title"); - this.title = title; - return this; - } - - public UpdatePlaylistRequestBuilder summary(String summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = Optional.of(summary); - return this; - } - - public UpdatePlaylistRequestBuilder summary(Optional summary) { - Utils.checkNotNull(summary, "summary"); - this.summary = summary; - return this; - } - - public UpdatePlaylistResponse call() throws Exception { - - return sdk.updatePlaylist( - playlistID, - title, - summary); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlaylistResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlaylistResponse.java deleted file mode 100644 index 17594a74..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/UpdatePlaylistResponse.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class UpdatePlaylistResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - @JsonCreator - public UpdatePlaylistResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public UpdatePlaylistResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public UpdatePlaylistResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public UpdatePlaylistResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UpdatePlaylistResponse other = (UpdatePlaylistResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(UpdatePlaylistResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public UpdatePlaylistResponse build() { - return new UpdatePlaylistResponse( - contentType, - statusCode, - rawResponse); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/UploadPlaylistRequest.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/UploadPlaylistRequest.java deleted file mode 100644 index c0121b7a..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/UploadPlaylistRequest.java +++ /dev/null @@ -1,183 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class UploadPlaylistRequest { - - /** - * 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. - * - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=path") - private String path; - - /** - * 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. - * - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=force") - private Force force; - - @JsonCreator - public UploadPlaylistRequest( - String path, - Force force) { - Utils.checkNotNull(path, "path"); - Utils.checkNotNull(force, "force"); - this.path = path; - this.force = force; - } - - /** - * 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. - * - */ - @JsonIgnore - public String path() { - return path; - } - - /** - * 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. - * - */ - @JsonIgnore - public Force force() { - return force; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * 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. - * - */ - public UploadPlaylistRequest withPath(String path) { - Utils.checkNotNull(path, "path"); - this.path = path; - return this; - } - - /** - * 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. - * - */ - public UploadPlaylistRequest withForce(Force force) { - Utils.checkNotNull(force, "force"); - this.force = force; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UploadPlaylistRequest other = (UploadPlaylistRequest) o; - return - java.util.Objects.deepEquals(this.path, other.path) && - java.util.Objects.deepEquals(this.force, other.force); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - path, - force); - } - - @Override - public String toString() { - return Utils.toString(UploadPlaylistRequest.class, - "path", path, - "force", force); - } - - public final static class Builder { - - private String path; - - private Force force; - - private Builder() { - // force use of static builder() method - } - - /** - * 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. - * - */ - public Builder path(String path) { - Utils.checkNotNull(path, "path"); - this.path = path; - return this; - } - - /** - * 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. - * - */ - public Builder force(Force force) { - Utils.checkNotNull(force, "force"); - this.force = force; - return this; - } - - public UploadPlaylistRequest build() { - return new UploadPlaylistRequest( - path, - force); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/UploadPlaylistRequestBuilder.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/UploadPlaylistRequestBuilder.java deleted file mode 100644 index 49ed049d..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/UploadPlaylistRequestBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import lukehagar.plexapi.plexapi.models.errors.SDKError; -import lukehagar.plexapi.plexapi.utils.LazySingletonValue; -import lukehagar.plexapi.plexapi.utils.Utils; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class UploadPlaylistRequestBuilder { - - private String path; - private Force force; - private final SDKMethodInterfaces.MethodCallUploadPlaylist sdk; - - public UploadPlaylistRequestBuilder(SDKMethodInterfaces.MethodCallUploadPlaylist sdk) { - this.sdk = sdk; - } - - public UploadPlaylistRequestBuilder path(String path) { - Utils.checkNotNull(path, "path"); - this.path = path; - return this; - } - - public UploadPlaylistRequestBuilder force(Force force) { - Utils.checkNotNull(force, "force"); - this.force = force; - return this; - } - - public UploadPlaylistResponse call() throws Exception { - - return sdk.uploadPlaylist( - path, - force); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/UploadPlaylistResponse.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/UploadPlaylistResponse.java deleted file mode 100644 index e059feb4..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/UploadPlaylistResponse.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class UploadPlaylistResponse implements lukehagar.plexapi.plexapi.utils.Response { - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - @JsonCreator - public UploadPlaylistResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * HTTP response content type for this operation - */ - public UploadPlaylistResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public UploadPlaylistResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public UploadPlaylistResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UploadPlaylistResponse other = (UploadPlaylistResponse) o; - return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - contentType, - statusCode, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(UploadPlaylistResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse); - } - - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Builder() { - // force use of static builder() method - } - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public UploadPlaylistResponse build() { - return new UploadPlaylistResponse( - contentType, - statusCode, - rawResponse); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Upscale.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Upscale.java deleted file mode 100644 index b3acefe0..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Upscale.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.Utils; - -/** - * Upscale - allow images to be resized beyond native dimensions. - */ -public enum Upscale { - ZERO(0L), - ONE(1L); - - @JsonValue - private final long value; - - private Upscale(long value) { - this.value = value; - } - - public long value() { - return value; - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/User.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/User.java deleted file mode 100644 index c23f0362..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/User.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class User { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonCreator - public User( - @JsonProperty("id") Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - } - - public User() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional id() { - return (Optional) id; - } - - public final static Builder builder() { - return new Builder(); - } - - public User withId(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public User withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - User other = (User) o; - return - java.util.Objects.deepEquals(this.id, other.id); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - id); - } - - @Override - public String toString() { - return Utils.toString(User.class, - "id", id); - } - - public final static class Builder { - - private Optional id = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder id(int id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public User build() { - return new User( - id); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Writer.java b/src/main/java/lukehagar/plexapi/plexapi/models/operations/Writer.java deleted file mode 100644 index 77c8d0da..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/operations/Writer.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class Writer { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("tag") - private Optional tag; - - @JsonCreator - public Writer( - @JsonProperty("tag") Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - } - - public Writer() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional tag() { - return (Optional) tag; - } - - public final static Builder builder() { - return new Builder(); - } - - public Writer withTag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Writer withTag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Writer other = (Writer) o; - return - java.util.Objects.deepEquals(this.tag, other.tag); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - tag); - } - - @Override - public String toString() { - return Utils.toString(Writer.class, - "tag", tag); - } - - public final static class Builder { - - private Optional tag = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder tag(String tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = Optional.ofNullable(tag); - return this; - } - - public Builder tag(Optional tag) { - Utils.checkNotNull(tag, "tag"); - this.tag = tag; - return this; - } - - public Writer build() { - return new Writer( - tag); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/models/shared/Security.java b/src/main/java/lukehagar/plexapi/plexapi/models/shared/Security.java deleted file mode 100644 index 57d26724..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/models/shared/Security.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import lukehagar.plexapi.plexapi.utils.SpeakeasyMetadata; -import lukehagar.plexapi.plexapi.utils.Utils; - -public class Security { - - @SpeakeasyMetadata("security:scheme=true,type=apiKey,subtype=header,name=X-Plex-Token") - private String accessToken; - - @JsonCreator - public Security( - String accessToken) { - Utils.checkNotNull(accessToken, "accessToken"); - this.accessToken = accessToken; - } - - @JsonIgnore - public String accessToken() { - return accessToken; - } - - public final static Builder builder() { - return new Builder(); - } - - public Security withAccessToken(String accessToken) { - Utils.checkNotNull(accessToken, "accessToken"); - this.accessToken = accessToken; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Security other = (Security) o; - return - java.util.Objects.deepEquals(this.accessToken, other.accessToken); - } - - @Override - public int hashCode() { - return java.util.Objects.hash( - accessToken); - } - - @Override - public String toString() { - return Utils.toString(Security.class, - "accessToken", accessToken); - } - - public final static class Builder { - - private String accessToken; - - private Builder() { - // force use of static builder() method - } - - public Builder accessToken(String accessToken) { - Utils.checkNotNull(accessToken, "accessToken"); - this.accessToken = accessToken; - return this; - } - - public Security build() { - return new Security( - accessToken); - } - } -} - diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/BackoffStrategy.java b/src/main/java/lukehagar/plexapi/plexapi/utils/BackoffStrategy.java deleted file mode 100644 index 6c078a6e..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/BackoffStrategy.java +++ /dev/null @@ -1,250 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.utils; - -import java.util.concurrent.TimeUnit; - -/** - * Exponential Backoff Strategy with Jitter - * - * The duration between consecutive attempts is calculated as follows: - * intervalMs = min(maxIntervalMs, initialIntervalMs*(baseFactor^attempts) +/- r) - * where baseFactor is the base factor and r a random value between 0 and jitterFactor*intervalMs. - */ -public class BackoffStrategy { - - private static final long DEFAULT_INITIAL_INTERVAL_MS = 500L; - private static final long DEFAULT_MAX_INTERVAL_MS = 60000L; - private static final long DEFAULT_MAX_ELAPSED_TIME_MS = 3600000L; - private static final double DEFAULT_EXPONENT = 1.5; - private static final double DEFAULT_JITTER_FACTOR = 0.5; - private static final boolean DEFAULT_RETRY_CONNECT_ERROR = false; - private static final boolean DEFAULT_RETRY_READ_TIMEOUT_ERROR = false; - - private final long initialIntervalMs; - private final long maxIntervalMs; - private final long maxElapsedTimeMs; - private final double baseFactor; - private final double jitterFactor; - private final boolean retryConnectError; - private final boolean retryReadTimeoutError; - - private BackoffStrategy(long initialIntervalMs, - long maxIntervalMs, - long maxElapsedTimeMs, - double baseFactor, - double jitterFactor, - boolean retryConnectError, - boolean retryReadTimeoutError) { - this.initialIntervalMs = initialIntervalMs; - this.maxIntervalMs = maxIntervalMs; - this.maxElapsedTimeMs = maxElapsedTimeMs; - this.baseFactor = baseFactor; - this.jitterFactor = jitterFactor; - this.retryConnectError = retryConnectError; - this.retryReadTimeoutError = retryReadTimeoutError; - } - - public static BackoffStrategy withDefaults() { - return BackoffStrategy.builder().build(); - } - - public long initialIntervalMs() { - return initialIntervalMs; - } - - public long maxIntervalMs() { - return maxIntervalMs; - } - - public double baseFactor() { - return baseFactor; - } - - /** - * @deprecated use {@link #baseFactor()} instead. - */ - @Deprecated - public double exponent() { - return baseFactor; - } - - public long maxElapsedTimeMs() { - return maxElapsedTimeMs; - } - - public double jitterFactor() { - return jitterFactor; - } - - public boolean retryConnectError() { - return retryConnectError; - } - - public boolean retryReadTimeoutError() { - return retryReadTimeoutError; - } - - public final static Builder builder() { - return new Builder(); - } - - public final static class Builder { - - private long initialIntervalMs = DEFAULT_INITIAL_INTERVAL_MS; - private long maxIntervalMs = DEFAULT_MAX_INTERVAL_MS; - private long maxElapsedTimeMs = DEFAULT_MAX_ELAPSED_TIME_MS; - private double baseFactor = DEFAULT_EXPONENT; - private double jitterFactor = DEFAULT_JITTER_FACTOR; - private boolean retryConnectError = DEFAULT_RETRY_CONNECT_ERROR; - private boolean retryReadTimeoutError = DEFAULT_RETRY_READ_TIMEOUT_ERROR; - - private Builder() {} - - /** - * Sets the initial interval - * - * @param duration The initial interval. - * @param unit The time unit associated with duration. - * @return The builder instance. - */ - public Builder initialInterval(long duration, TimeUnit unit) { - Utils.checkNotNull(unit, "unit"); - if (duration < 0) { - throw new IllegalArgumentException("initialInterval must be positive"); - } - this.initialIntervalMs = unit.toMillis(duration); - return this; - } - - /** - * Sets the maximum interval - * - * @param duration The maximum interval. - * @param unit The time unit associated with duration. - * @return The builder instance. - */ - public Builder maxInterval(long duration, TimeUnit unit) { - Utils.checkNotNull(unit, "unit"); - if (duration <= 0) { - throw new IllegalArgumentException("maxInterval must be strictly positive"); - } - this.maxIntervalMs = unit.toMillis(duration); - return this; - } - - /** - * Sets the maximum elapsed time - * - * @param duration The maximum elapsed time. - * @param unit The time unit associated with duration. - * @return The builder instance. - */ - public Builder maxElapsedTime(long duration, TimeUnit unit) { - Utils.checkNotNull(unit, "unit"); - if (duration < 0) { - throw new IllegalArgumentException("maxElapsedTime must be positive"); - } - this.maxElapsedTimeMs = unit.toMillis(duration); - return this; - } - - /** - * Sets the backoff base factor. - * - * @param baseFactor The base factor to use. - * @return The builder instance. - */ - public Builder baseFactor(double baseFactor) { - if (baseFactor <= 0 ) { - throw new IllegalArgumentException("baseFactor must be strictly positive"); - } - this.baseFactor = baseFactor; - return this; - } - - /** - * Sets the backoff base factor. - * - * @deprecated use {@link #baseFactor(double)} instead. - * @param baseFactor The base factor to use. - * @return The builder instance. - */ - @Deprecated - public Builder exponent(double baseFactor) { - if (baseFactor <= 0 ) { - throw new IllegalArgumentException("baseFactor must be strictly positive"); - } - this.baseFactor = baseFactor; - return this; - } - - /** - * Sets the jitter factor used to randomize the backoff interval. - * - * @param jitterFactor The jitter factor to use (default is 0.5f). - * @return The builder instance. - */ - public Builder jitterFactor(double jitterFactor) { - if (jitterFactor < 0 || jitterFactor > 1) { - throw new IllegalArgumentException("jitterFactor must be between 0 and 1"); - } - this.jitterFactor = jitterFactor; - return this; - } - - /** - * Specifies whether connection errors should be retried. - * - * @param retry Whether to retry on connection error. - * @return The builder instance. - */ - public Builder retryConnectError(boolean retry) { - this.retryConnectError = retry; - return this; - } - - /** - * Do not retry on connection error. - * - * @return The builder instance. - */ - public Builder throwConnectError() { - this.retryConnectError = false; - return this; - } - - /** - * Specifies whether Read Timeout errors should be retried. - * - * @param retry Whether to retry on Read Timeout error. - * @return The builder instance. - */ - public Builder retryReadTimeoutError(boolean retry) { - this.retryReadTimeoutError = retry; - return this; - } - - /** - * Do not retry on Read Timeout error. - * - * @return The builder instance. - */ - public Builder throwReadTimeoutError() { - this.retryReadTimeoutError = false; - return this; - } - - public BackoffStrategy build() { - return new BackoffStrategy(initialIntervalMs, - maxIntervalMs, - maxElapsedTimeMs, - baseFactor, - jitterFactor, - retryConnectError, - retryReadTimeoutError); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/BigDecimalString.java b/src/main/java/lukehagar/plexapi/plexapi/utils/BigDecimalString.java deleted file mode 100644 index 745938bd..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/BigDecimalString.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.utils; - -import java.io.IOException; -import java.math.BigDecimal; -import java.util.Objects; - -import com.fasterxml.jackson.core.JacksonException; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; - -// Internal API only - -// Note that Jackson 2.16.1 does not support @JsonValue and @JsonFormat combined so we must use -// a custom serializer/deserializer - -@JsonSerialize(using = BigDecimalString.BigDecimalStringSerializer.class) -@JsonDeserialize(using = BigDecimalString.BigDecimalStringDeserializer.class) -public class BigDecimalString { - - private final BigDecimal value; - - public BigDecimalString(BigDecimal value) { - this.value = value; - } - - public BigDecimalString(String value) { - this(new BigDecimal(value)); - } - - public BigDecimal value() { - return value; - } - - @Override - public String toString() { - return value.toString(); - } - - @Override - public int hashCode() { - return Objects.hash(value); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - BigDecimalString other = (BigDecimalString) obj; - return Objects.equals(value, other.value); - } - - public static final class BigDecimalStringSerializer extends StdSerializer { - - private static final long serialVersionUID = -3828937716095008071L; - - public BigDecimalStringSerializer() { - this(null); - } - - public BigDecimalStringSerializer(Class t) { - super(t); - } - - @Override - public void serialize(BigDecimalString value, JsonGenerator g, SerializerProvider provider) - throws IOException, JsonProcessingException { - g.writeString(value.value.toString()); - } - } - - public static final class BigDecimalStringDeserializer extends StdDeserializer { - - private static final long serialVersionUID = -2474225842945673085L; - - public BigDecimalStringDeserializer() { - this(null); - } - - public BigDecimalStringDeserializer(Class t) { - super(t); - } - - @Override - public BigDecimalString deserialize(JsonParser p, DeserializationContext ctxt) - throws IOException, JacksonException { - String s = p.readValueAs(String.class); - return new BigDecimalString(new BigDecimal(s)); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/BigIntegerString.java b/src/main/java/lukehagar/plexapi/plexapi/utils/BigIntegerString.java deleted file mode 100644 index 6418958a..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/BigIntegerString.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.utils; - -import java.io.IOException; -import java.math.BigInteger; -import java.util.Objects; - -import com.fasterxml.jackson.core.JacksonException; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; - -// Internal API only - -// Note that Jackson 2.16.1 does not support @JsonValue and @JsonFormat combined so we must use -// a custom serializer/deserializer - -@JsonSerialize(using = BigIntegerString.BigIntegerStringSerializer.class) -@JsonDeserialize(using = BigIntegerString.BigIntegerStringDeserializer.class) -public class BigIntegerString { - - private final BigInteger value; - - public BigIntegerString(BigInteger value) { - this.value = value; - } - - public BigIntegerString(String value) { - this(new BigInteger(value)); - } - - public BigInteger value() { - return value; - } - - @Override - public String toString() { - return value.toString(); - } - - @Override - public int hashCode() { - return Objects.hash(value); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - BigIntegerString other = (BigIntegerString) obj; - return Objects.equals(value, other.value); - } - - public static final class BigIntegerStringSerializer extends StdSerializer { - - private static final long serialVersionUID = -2474225842945673085L; - - public BigIntegerStringSerializer() { - this(null); - } - - public BigIntegerStringSerializer(Class t) { - super(t); - } - - @Override - public void serialize(BigIntegerString value, JsonGenerator g, SerializerProvider provider) - throws IOException, JsonProcessingException { - g.writeString(value.value.toString()); - } - } - - public static final class BigIntegerStringDeserializer extends StdDeserializer { - - private static final long serialVersionUID = -2474225842945673085L; - - public BigIntegerStringDeserializer() { - this(null); - } - - public BigIntegerStringDeserializer(Class t) { - super(t); - } - - @Override - public BigIntegerString deserialize(JsonParser p, DeserializationContext ctxt) - throws IOException, JacksonException { - String s = p.readValueAs(String.class); - return new BigIntegerString(new BigInteger(s)); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/Deserializers.java b/src/main/java/lukehagar/plexapi/plexapi/utils/Deserializers.java deleted file mode 100644 index e9a53b00..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/Deserializers.java +++ /dev/null @@ -1,241 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.utils; - -import java.io.IOException; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.time.format.DateTimeFormatter; -import java.time.format.DateTimeParseException; - -import com.fasterxml.jackson.core.JacksonException; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonDeserializer; -import com.fasterxml.jackson.databind.Module; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.module.SimpleModule; - -public final class Deserializers { - - public static final JsonDeserializer BOOLEAN_STRICT = new StrictBooleanDeserializer(); - public static final JsonDeserializer INTEGER_STRICT = new StrictIntegerDeserializer(); - public static final JsonDeserializer LONG_STRICT = new StrictLongDeserializer(); - public static final JsonDeserializer SHORT_STRICT = new StrictShortDeserializer(); - public static final JsonDeserializer FLOAT_STRICT = new StrictFloatDeserializer(); - public static final JsonDeserializer DOUBLE_STRICT = new StrictDoubleDeserializer(); - public static final JsonDeserializer LOCAL_DATE_STRICT = new StrictLocalDateDeserializer(); - public static final JsonDeserializer OFFSET_DATE_TIME_STRICT = new StrictOffsetDateTimeDeserializer(); - public static final JsonDeserializer STRING_STRICT = new StrictStringDeserializer(); - - public static final Module STRICT_DESERIALIZERS = createStrictDeserializersModule(); - - private static Module createStrictDeserializersModule() { - SimpleModule m = new SimpleModule(); - m.addDeserializer(Boolean.class, Deserializers.BOOLEAN_STRICT); - m.addDeserializer(Short.class, Deserializers.SHORT_STRICT); - m.addDeserializer(Integer.class, Deserializers.INTEGER_STRICT); - m.addDeserializer(Long.class, Deserializers.LONG_STRICT); - m.addDeserializer(Float.class, Deserializers.FLOAT_STRICT); - m.addDeserializer(Double.class, Deserializers.DOUBLE_STRICT); - m.addDeserializer(OffsetDateTime.class, Deserializers.OFFSET_DATE_TIME_STRICT); - m.addDeserializer(LocalDate.class, Deserializers.LOCAL_DATE_STRICT); - m.addDeserializer(String.class, Deserializers.STRING_STRICT); - return m; - } - - private static final class StrictBooleanDeserializer extends StdDeserializer { - - private static final long serialVersionUID = 6014987192625841276L; - - StrictBooleanDeserializer() { - super(Boolean.class); - } - - @Override - public Boolean deserialize(JsonParser p, DeserializationContext ctxt) - throws IOException, JacksonException { - JsonToken t = p.currentToken(); - if (t == JsonToken.VALUE_TRUE) { - return true; - } else if (t == JsonToken.VALUE_FALSE) { - return false; - } else { - return (Boolean) ctxt.handleUnexpectedToken(Boolean.class, p); - } - } - } - - private static final class StrictDoubleDeserializer extends StdDeserializer { - - private static final long serialVersionUID = 5500822592284739392L; - - StrictDoubleDeserializer() { - super(Double.class); - } - - @Override - public Double deserialize(JsonParser p, DeserializationContext ctxt) - throws IOException, JacksonException { - JsonToken t = p.currentToken(); - if (t == JsonToken.VALUE_NUMBER_INT) { - return p.getDoubleValue(); - } else if (t == JsonToken.VALUE_NUMBER_FLOAT) { - return p.getDoubleValue(); - } else { - return (Double) ctxt.handleUnexpectedToken(Double.class, p); - } - } - } - - private static final class StrictFloatDeserializer extends StdDeserializer { - - private static final long serialVersionUID = 2207323065789635630L; - - StrictFloatDeserializer() { - super(Float.class); - } - - @Override - public Float deserialize(JsonParser p, DeserializationContext ctxt) - throws IOException, JacksonException { - JsonToken t = p.currentToken(); - if (t == JsonToken.VALUE_NUMBER_INT) { - return p.getFloatValue(); - } else if (t == JsonToken.VALUE_NUMBER_FLOAT) { - return p.getFloatValue(); - } else { - return (Float) ctxt.handleUnexpectedToken(Float.class, p); - } - } - } - - private static final class StrictIntegerDeserializer extends StdDeserializer { - - private static final long serialVersionUID = 6079282945607228350L; - - StrictIntegerDeserializer() { - super(Integer.class); - } - - @Override - public Integer deserialize(JsonParser p, DeserializationContext ctxt) - throws IOException, JacksonException { - JsonToken t = p.currentToken(); - if (t == JsonToken.VALUE_NUMBER_INT) { - return p.getIntValue(); - } else { - return (Integer) ctxt.handleUnexpectedToken(Integer.class, p); - } - } - } - - private static final class StrictLocalDateDeserializer extends StdDeserializer { - - private static final long serialVersionUID = 6014987192625841276L; - - StrictLocalDateDeserializer() { - super(LocalDate.class); - } - - @Override - public LocalDate deserialize(JsonParser p, DeserializationContext ctxt) throws IOException, JacksonException { - if (p.currentToken() == JsonToken.VALUE_STRING) { - String text = p.getText(); - try { - return LocalDate.parse(text, DateTimeFormatter.ISO_LOCAL_DATE); - } catch (DateTimeParseException e) { - return (LocalDate) ctxt.handleWeirdStringValue(LocalDate.class, text, e.getMessage()); - } - } else { - return (LocalDate) ctxt.handleUnexpectedToken(LocalDate.class, p); - } - } - } - - private static final class StrictLongDeserializer extends StdDeserializer { - - private static final long serialVersionUID = -2721538755854421632L; - - public StrictLongDeserializer() { - super(Long.class); - } - - @Override - public Long deserialize(JsonParser p, DeserializationContext ctxt) - throws IOException, JacksonException { - JsonToken t = p.currentToken(); - if (t == JsonToken.VALUE_NUMBER_INT) { - return p.getLongValue(); - } else { - return (Long) ctxt.handleUnexpectedToken(Long.class, p); - } - } - } - - private static final class StrictOffsetDateTimeDeserializer extends StdDeserializer { - - private static final long serialVersionUID = 6014987192625841276L; - - StrictOffsetDateTimeDeserializer() { - super(OffsetDateTime.class); - } - - @Override - public OffsetDateTime deserialize(JsonParser p, DeserializationContext ctxt) throws IOException, JacksonException { - if (p.currentToken() == JsonToken.VALUE_STRING) { - String text = p.getText(); - try { - return OffsetDateTime.parse(text, DateTimeFormatter.ISO_DATE_TIME); - } catch (DateTimeParseException e) { - return (OffsetDateTime) ctxt.handleWeirdStringValue(OffsetDateTime.class, text, e.getMessage()); - } - } else { - return (OffsetDateTime) ctxt.handleUnexpectedToken(OffsetDateTime.class, p); - } - } - } - - private static final class StrictShortDeserializer extends StdDeserializer { - - private static final long serialVersionUID = 2162877248512421L; - - StrictShortDeserializer() { - super(Short.class); - } - - @Override - public Short deserialize(JsonParser p, DeserializationContext ctxt) - throws IOException, JacksonException { - JsonToken t = p.currentToken(); - if (t == JsonToken.VALUE_NUMBER_INT) { - return p.getShortValue(); - } else { - return (Short) ctxt.handleUnexpectedToken(Short.class, p); - } - } - } - - private static final class StrictStringDeserializer extends StdDeserializer { - - private static final long serialVersionUID = 6014987192625841276L; - - StrictStringDeserializer() { - super(String.class); - } - - @Override - public String deserialize(JsonParser p, DeserializationContext ctxt) - throws IOException, JacksonException { - JsonToken t = p.currentToken(); - if (t == JsonToken.VALUE_STRING) { - return p.getText(); - } else { - return (String) ctxt.handleUnexpectedToken(String.class, p); - } - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/EventStream.java b/src/main/java/lukehagar/plexapi/plexapi/utils/EventStream.java deleted file mode 100644 index 0430e72e..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/EventStream.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.utils; - -import java.io.IOException; -import java.io.InputStream; -import java.io.UncheckedIOException; -import java.util.Iterator; -import java.util.List; -import java.util.NoSuchElementException; -import java.util.Optional; -import java.util.Spliterator; -import java.util.Spliterators; -import java.util.stream.Collectors; -import java.util.stream.Stream; -import java.util.stream.StreamSupport; - -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; - -/** - * Manages the parsing of an InputStream in SSE (Server Sent Events) format. - * - * @param the type that the SSE {@code data} field is deserialized into - */ -/** - * @param - */ -public final class EventStream implements AutoCloseable { - - private final EventStreamReader reader; - private final TypeReference typeReference; - private final ObjectMapper mapper; - - // Internal use only - public EventStream(InputStream in, TypeReference typeReference, ObjectMapper mapper) { - this.reader = new EventStreamReader(in); - this.typeReference = typeReference; - this.mapper = mapper; - } - - /** - * Returns the next message. If another message does not exist returns - * {@code Optional.empty()}. - * - * @return the next message or {@code Optional.empty()} if no more messages - * @throws IOException - */ - public Optional next() throws IOException { - return reader.readMessage() // - .map(x -> Utils.asType(x, mapper, typeReference)); - } - - /** - * Reads all events and returns them as a {@code List}. This method calls - * {@code close()}. - * - * @return list of events - */ - public List toList() { - try { - return stream().collect(Collectors.toList()); - } finally { - try { - close(); - } catch (IOException e) { - throw new UncheckedIOException(e); - } catch (Exception e) { - throw new RuntimeException(e); - } - } - } - - /** - * Returns a {@link Stream} of events. Must be closed after use! - * - * @return streamed events - */ - public Stream stream() { - return StreamSupport.stream(Spliterators.spliteratorUnknownSize(new Iterator() { - Optional next = null; - - public T next() { - load(); - if (!next.isPresent()) { - throw new NoSuchElementException(); - } - T v = next.get(); - next = null; - return v; - } - - public boolean hasNext() { - load(); - return next.isPresent(); - } - - private void load() { - if (next == null) { - try { - next = EventStream.this.next(); - } catch (IOException e) { - throw new UncheckedIOException(e); - } - } - } - - }, Spliterator.ORDERED), false).onClose(() -> { - try { - EventStream.this.close(); - } catch (IOException e) { - throw new UncheckedIOException(e); - } catch (Exception e) { - throw new RuntimeException(e); - } - }); - } - - @Override - public void close() throws Exception { - reader.close(); - } - -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/EventStreamLineReader.java b/src/main/java/lukehagar/plexapi/plexapi/utils/EventStreamLineReader.java deleted file mode 100644 index 50ca9601..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/EventStreamLineReader.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.utils; - -import java.io.IOException; -import java.io.Reader; - -/** - * Converts CR-LF, LF, CR to LF - */ -public class EventStreamLineReader extends Reader { - - private final Reader reader; - private int lastCh = -1; // not LF nor CR - - public EventStreamLineReader(Reader reader) { - this.reader = reader; - } - - @Override - public int read() throws IOException { - if (lastCh == -1) { - // load first character of stream - lastCh = reader.read(); - if (lastCh == -1 || lastCh == '\n') { - // force reload of buffered last ch - int v = lastCh; - lastCh = -1; - return v; - } - } - int ch = reader.read(); - if (ch == -1) { - if (lastCh == '\r') { - lastCh = -1; - return '\n'; - } else { - int v = lastCh; - lastCh = -1; - return v; - } - } else if (lastCh == '\n') { - lastCh = ch; - return '\n'; - } else if (lastCh == '\r' && ch == '\n') { - // force reload of buffered last ch - lastCh = -1; - return '\n'; - } else if (lastCh == '\r') { - lastCh = ch; - return '\n'; - } else { - int v = lastCh; - lastCh = ch; - return v; - } - } - - @Override - public int read(char[] cbuf, int off, int len) throws IOException { - throw new UnsupportedOperationException(); - } - - @Override - public void close() throws IOException { - reader.close(); - } - -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/EventStreamMessage.java b/src/main/java/lukehagar/plexapi/plexapi/utils/EventStreamMessage.java deleted file mode 100644 index c5a760b6..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/EventStreamMessage.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.utils; - -import java.util.Optional; - -public class EventStreamMessage { - - private final Optional event; - private final Optional id; - private final Optional retryMs; - private final String data; - - public EventStreamMessage(Optional event, Optional id, Optional retryMs, String data) { - if (data == null) { - throw new IllegalArgumentException("data cannot be null"); - } - this.event = event; - this.id = id; - this.retryMs = retryMs; - this.data = data; - } - - public Optional event() { - return event; - } - - public Optional id() { - return id; - } - - public Optional retryMs() { - return retryMs; - } - - public String data() { - return data; - } - - public boolean isEmpty() { - return !event.isPresent() && !id().isPresent() && !retryMs().isPresent() && data.isEmpty(); - } - - @Override - public String toString() { - StringBuilder b = new StringBuilder(); - event.ifPresent(value -> b.append("event: " + value + "\n")); - id.ifPresent(value -> b.append("id: " + value + "\n")); - retryMs.ifPresent(value -> b.append("retry: " + value + "\n")); - if (!data.isEmpty()) { - b.append("data: " + data); - } - return b.toString(); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/EventStreamReader.java b/src/main/java/lukehagar/plexapi/plexapi/utils/EventStreamReader.java deleted file mode 100644 index f1bcc6fa..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/EventStreamReader.java +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.utils; - -import java.io.BufferedReader; -import java.io.IOException; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.Reader; -import java.nio.charset.StandardCharsets; -import java.util.Optional; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -public final class EventStreamReader implements AutoCloseable { - - private static final int BUFFER_SIZE = 8192; - - private static final String BYTE_ORDER_MARK = "\uFEFF"; - - private final Reader reader; - - private boolean first = true; - - public EventStreamReader(InputStream in) { - reader = new EventStreamLineReader( - new BufferedReader(new InputStreamReader(in, StandardCharsets.UTF_8), BUFFER_SIZE)); - } - - /** - * Returns the event message (lines separated by \n) without the terminating - * \n\n. Returns null when end of stream reached (and may occur with a partially - * read event message that has not yet been terminated). Characters in comment - * lines are discarded as read (they are not buffered). - * - * @return the event message - * @throws IOException - */ - // VisibleForTesting - public String readRawMessage() throws IOException { - StringBuilder line = new StringBuilder(); - StringBuilder b = new StringBuilder(); - - char previousCh = 0; - boolean previousAvailable = false; - boolean isComment = false; - char ch; - while (true) { - int v = reader.read(); - if (v == -1) { - return null; - } - ch = (char) v; - if (previousAvailable) { - // note that incoming input stream converts sequences of \r and/or \n to \n - // characters so we only concern ourselves with \n (divide and conquer) - if (previousCh == '\n' && ch == '\n') { - b.append(line); - line.setLength(0); - isComment = false; - trimTrailingNewLines(b); - String msg = b.toString(); - if (first) { - // skip BOM if present in the first message only - if (msg.startsWith(BYTE_ORDER_MARK)) { - msg = msg.substring(BYTE_ORDER_MARK.length()); - } - first = false; - } - return msg; - } else { - if (line.length() == 0 && previousCh == ':') { - isComment = true; - } - if (!isComment) { - line.append(previousCh); - if (previousCh == '\n') { - b.append(line); - // reset line - line.setLength(0); - } - } else if (previousCh == '\n') { - isComment = false; - } - } - } else { - previousAvailable = true; - } - previousCh = ch; - } - } - - public Optional readMessage() throws IOException { - String m = readRawMessage(); - if (m == null) { - return Optional.empty(); - } else { - return Optional.of(parseMessage(m)); - } - } - - private static final Pattern LINE_PATTERN = Pattern.compile("^([a-zA-Z]+): ?(.*)$"); - private static final char LINEFEED = '\n'; - - // VisibleForTesting - public static EventStreamMessage parseMessage(String text) { - String[] lines = text.split("\n"); - Optional event = Optional.empty(); - Optional id = Optional.empty(); - Optional retryMs = Optional.empty(); - StringBuilder data = new StringBuilder(); - boolean firstData = true; - for (String line : lines) { - Matcher m = LINE_PATTERN.matcher(line); - if (m.find()) { - String key = m.group(1).toLowerCase(); - String value = m.group(2); - if ("event".equals(key)) { - event = Optional.of(value); - } else if ("id".equals(key)) { - id = Optional.of(value); - } else if ("retry".equals(key)) { - try { - retryMs = Optional.of(Integer.parseInt(value)); - } catch (NumberFormatException e) { - // ignore - } - } else if ("data".equals(key)) { - if (!firstData) { - data.append(LINEFEED); - } - firstData = false; - data.append(value); - } // else ignore the line - } - } - return new EventStreamMessage(event, id, retryMs, data.toString()); - } - - private static StringBuilder trimTrailingNewLines(StringBuilder b) { - int i = 0; - while (b.length() > i && b.charAt(b.length() - i - 1) == '\n') { - i++; - } - b.setLength(b.length() - i); - return b; - } - - @Override - public void close() throws Exception { - reader.close(); - } - -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/FormMetadata.java b/src/main/java/lukehagar/plexapi/plexapi/utils/FormMetadata.java deleted file mode 100644 index 2baef0d1..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/FormMetadata.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.utils; - -import java.lang.reflect.Field; - -class FormMetadata { - - String style = "form"; - boolean explode = true; - boolean json; - String name; - - private FormMetadata() { - } - - // form:name=propName,style=spaceDelimited,explode=true - static FormMetadata parse(Field field) throws IllegalArgumentException, IllegalAccessException { - return Metadata.parse("form", new FormMetadata(), field); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/HTTPClient.java b/src/main/java/lukehagar/plexapi/plexapi/utils/HTTPClient.java deleted file mode 100644 index c458ce3a..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/HTTPClient.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.utils; - -import java.io.IOException; -import java.io.InputStream; -import java.net.URISyntaxException; -import java.net.http.HttpResponse; -import java.net.http.HttpRequest; - -public interface HTTPClient { - - /** - * Sends an HTTP request and returns the response. - * - *

Note that {@link HttpRequest} is immutable. To modify the request you can use - * {@link HttpRequest#newBuilder(HttpRequest, BiPredicate)} with - * JDK 16 and later (which will copy the request for modification in a builder). - * If that method is not available then use {@link Helpers#copy} (which also returns - * a builder). - * - * @param request HTTP request - * @return HTTP response - * @throws IOException - * @throws InterruptedException - * @throws URISyntaxException - */ - HttpResponse send(HttpRequest request) - throws IOException, InterruptedException, URISyntaxException; -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/HTTPRequest.java b/src/main/java/lukehagar/plexapi/plexapi/utils/HTTPRequest.java deleted file mode 100644 index 7623f36a..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/HTTPRequest.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.utils; - -import java.net.URISyntaxException; -import java.net.http.HttpRequest; -import java.net.http.HttpRequest.BodyPublisher; -import java.net.http.HttpRequest.BodyPublishers; -import java.util.ArrayList; -import java.util.Collection; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Optional; - -import org.apache.http.NameValuePair; -import org.apache.http.client.utils.URIBuilder; -import org.apache.http.message.BasicNameValuePair; - -public class HTTPRequest { - - private final String baseURL; - private final String method; - private final List queryParams = new ArrayList<>(); - private final Map> headers = new HashMap<>(); - private Optional body = Optional.empty(); // mutable - - public HTTPRequest(String baseURL, String method) { - Utils.checkNotNull(baseURL, "baseURL"); - Utils.checkNotNull(method, "method"); - this.baseURL = baseURL; - this.method = method; - } - - public void setBody(Optional body) { - Utils.checkNotNull(body, "body"); - this.body = body; - } - - public HTTPRequest addHeader(String key, String value) { - List headerValues = headers.get(key); - if (headerValues == null) { - headerValues = new ArrayList<>(); - headers.put(key, headerValues); - } - headerValues.add(value); - return this; - } - - public HTTPRequest addHeaders(Map> map) { - map.forEach((key, list) -> list.forEach(v -> addHeader(key, v))); - return this; - } - - public HTTPRequest addQueryParam(String name, String value) { - addQueryParam(new BasicNameValuePair(name, value)); - return this; - } - - public HTTPRequest addQueryParam(NameValuePair param) { - this.queryParams.add(param); - return this; - } - - public HTTPRequest addQueryParams(Collection params) { - params.forEach(p -> addQueryParam(p)); - return this; - } - - public HttpRequest build() { - HttpRequest.Builder requestBuilder = HttpRequest.newBuilder(); - - final BodyPublisher bodyPublisher; - if (body.isPresent()) { - bodyPublisher = body.get().body(); - requestBuilder.header("Content-Type", body.get().contentType()); - } else { - bodyPublisher = BodyPublishers.noBody(); - } - requestBuilder.method(method, bodyPublisher); - try { - URIBuilder b = new URIBuilder(this.baseURL); - queryParams.forEach(pair -> b.addParameter(pair.getName(), pair.getValue())); - requestBuilder.uri(b.build()); - } catch (URISyntaxException e) { - throw new RuntimeException(e); - } - headers.forEach((k, list) -> list.forEach(v -> requestBuilder.header(k, v))); - return requestBuilder.build(); - } - -} \ No newline at end of file diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/HeaderMetadata.java b/src/main/java/lukehagar/plexapi/plexapi/utils/HeaderMetadata.java deleted file mode 100644 index fac187f0..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/HeaderMetadata.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.utils; - -import java.lang.reflect.Field; - -class HeaderMetadata { - - String style = "simple"; - boolean explode; - String name; - - private HeaderMetadata() { - } - - // headerParam:style=simple,explode=false,name=apiID - static HeaderMetadata parse(Field field) throws IllegalArgumentException, IllegalAccessException { - return Metadata.parse("header", new HeaderMetadata(), field); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/Helpers.java b/src/main/java/lukehagar/plexapi/plexapi/utils/Helpers.java deleted file mode 100644 index 93056b17..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/Helpers.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.utils; - -import java.net.http.HttpRequest; -import java.util.function.BiPredicate; - -/** - * Public helper methods for use by customers and end-users. - * - */ -public final class Helpers { - - /** - * Returns an {@link HttpRequest.Builder} which is initialized with the - * state of the given {@link HttpRequest}. - * - *

Note that headers can be added and modified but not removed. To - * remove headers use {@link #copy(HttpRequest, BiPredicate)} (which applies - * a filter to the headers while copying). - * - *

Note also that this method is redundant from JDK 16 because the - * method {@code HttpRequest.newBuilder(HttpRequest)} is available. - * - * @param request request to copy - * @return a builder initialized with values from {@code request} - */ - public static HttpRequest.Builder copy(HttpRequest request) { - return Utils.copy(request); - } - - /** - * Returns an {@link HttpRequest.Builder} which is initialized with the - * state of the given {@link HttpRequest}. - * - *

Note that this method is redundant from JDK 16 because the - * method {@code HttpRequest.newBuilder(HttpRequest, BiPredicate)} is available. - - * @param request request to copy - * @param filter selects which header key-values to include in the copied request - * @return a builder initialized with values from {@code request} - */ - public static HttpRequest.Builder copy(HttpRequest request, BiPredicate filter) { - return Utils.copy(request, filter); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/Hook.java b/src/main/java/lukehagar/plexapi/plexapi/utils/Hook.java deleted file mode 100644 index 433d2cee..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/Hook.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.utils; - -import java.io.InputStream; -import java.net.http.HttpResponse; -import java.net.http.HttpRequest; -import java.util.List; -import java.util.Optional; -import java.util.UUID; - -import lukehagar.plexapi.plexapi.SecuritySource; - -/** - * Holder class for hook-associated types. This class does not get - * instantiated. - */ -public final class Hook { - - private Hook() { - // prevent instantiation - } - - /** - * Context for a hook call. - */ - public interface HookContext { - String operationId(); - Optional> oauthScopes(); - Optional securitySource(); - } - - /** - * Context for a BeforeRequest hook call. - */ - public interface BeforeRequestContext extends HookContext { - } - - public static final class BeforeRequestContextImpl implements BeforeRequestContext { - - private final String operationId; - private final Optional> oauthScopes; - private final Optional securitySource; - - public BeforeRequestContextImpl(String operationId, Optional> oauthScopes, Optional securitySource) { - this.operationId = operationId; - this.oauthScopes = oauthScopes; - this.securitySource = securitySource; - } - - @Override - public String operationId() { - return operationId; - } - - @Override - public Optional securitySource() { - return securitySource; - } - - @Override - public Optional> oauthScopes() { - return oauthScopes; - } - } - - /** - * Context for an AfterSuccess hook call. - */ - public interface AfterSuccessContext extends HookContext { - } - - public static final class AfterSuccessContextImpl implements AfterSuccessContext { - - private final String operationId; - private final Optional> oauthScopes; - private final Optional securitySource; - - public AfterSuccessContextImpl(String operationId, Optional> oauthScopes, Optional securitySource) { - Utils.checkNotNull(securitySource, "securitySource"); - this.operationId = operationId; - this.oauthScopes = oauthScopes; - this.securitySource = securitySource; - } - - @Override - public String operationId() { - return operationId; - } - - @Override - public Optional securitySource() { - return securitySource; - } - - @Override - public Optional> oauthScopes() { - return oauthScopes; - } - } - - /** - * Context for an AfterError hook call. - */ - public interface AfterErrorContext extends HookContext { - } - - public static final class AfterErrorContextImpl implements AfterErrorContext { - - private final String operationId; - private final Optional> oauthScopes; - private final Optional securitySource; - - public AfterErrorContextImpl(String operationId, Optional> oauthScopes, Optional securitySource) { - Utils.checkNotNull(securitySource, "securitySource"); - this.operationId = operationId; - this.oauthScopes = oauthScopes; - this.securitySource = securitySource; - } - - @Override - public String operationId() { - return operationId; - } - - @Override - public Optional securitySource() { - return securitySource; - } - - @Override - public Optional> oauthScopes() { - return oauthScopes; - } - } - - /** - * Specifies how a request is transformed before sending. - */ - public interface BeforeRequest { - - /** - * Transforms the given {@link HttpRequest} before sending. - * - *

Note that {@link HttpRequest} is immutable. To modify the request you can use - * {@link HttpRequest#newBuilder(HttpRequest, BiPredicate)} with - * JDK 16 and later (which will copy the request for modification in a builder). - * If that method is not available then use {@link Helpers#copy} (which also returns - * a builder). - * - * @param context context for the hook call - * @param request request to be transformed - * @return transformed request - * @throws Exception on error - */ - HttpRequest beforeRequest(BeforeRequestContext context, HttpRequest request) throws Exception; - - /** - * The default action is to return the request untouched. - */ - static BeforeRequest DEFAULT = (context, request) -> request; - } - - /** - * Specifies how a response is transformed before response processing. - */ - public interface AfterSuccess { - - /** - * Transforms the given response before response processing occurs. - * - * @param context context for the hook call - * @param response response to be transformed - * @return transformed response - * @throws Exception on error - */ - HttpResponse afterSuccess(AfterSuccessContext context, HttpResponse response) - throws Exception; - - /** - * The default action is to return the response untouched. - */ - static AfterSuccess DEFAULT = (context, response) -> response; - } - - /** - * Specifies what happens if a request action throws an Exception. - */ - public interface AfterError { - - /** - * Either returns an HttpResponse or throws an Exception. Must be passed either - * a response or an error (both can't be absent). - * - * @param context context for the error - * @param response response information if available. - * @param error the optional exception. If response present then the error is for-info - * only, it was the last error in the chain of AfterError hook - * calls leading to this one - * @return HTTP response if method decides that an exception is not to be thrown - * @throws Exception if error to be propagated - */ - HttpResponse afterError( - AfterErrorContext context, - Optional> response, - Optional error) throws Exception; - - /** - * The default action is to rethrow the given error. - */ - static AfterError DEFAULT = (context, response, error) -> { - Utils.checkArgument( - response.isPresent() ^ error.isPresent(), - "one and only one of response or error must be present"); - if (error.isPresent()) { - throw error.get(); - } else { - return response.get(); - } - }; - } - - public static final class SdkInitData { - private final String baseUrl; - private final HTTPClient client; - - public SdkInitData(String baseUrl, HTTPClient client) { - this.baseUrl = baseUrl; - this.client = client; - } - - public String baseUrl() { - return baseUrl; - } - - public HTTPClient client() { - return client; - } - } - - /** - * Transforms the HTTPClient before use. - */ - public interface SdkInit { - - /** - * Returns a transformed {@link HTTPClient} and {@code baseUrl} for use in requests. - * - * @param data data to transform - * @return the transformed data - */ - SdkInitData sdkInit(SdkInitData data); - - /** - * The default action is to return the client untouched. - */ - static SdkInit DEFAULT = data -> data; - - } - - public static final class IdempotencyHook implements BeforeRequest { - - @Override - public HttpRequest beforeRequest(BeforeRequestContext context, HttpRequest request) throws Exception { - HttpRequest.Builder b = Helpers.copy(request); - b.header("Idempotency-Key", UUID.randomUUID().toString()); - return b.build(); - } - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/Hooks.java b/src/main/java/lukehagar/plexapi/plexapi/utils/Hooks.java deleted file mode 100644 index 40589935..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/Hooks.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.utils; - -import java.io.InputStream; -import java.net.http.HttpResponse; -import java.net.http.HttpRequest; -import java.util.List; -import java.util.Optional; -import java.util.concurrent.CopyOnWriteArrayList; - -import lukehagar.plexapi.plexapi.utils.Hook.AfterError; -import lukehagar.plexapi.plexapi.utils.Hook.AfterErrorContext; -import lukehagar.plexapi.plexapi.utils.Hook.AfterSuccess; -import lukehagar.plexapi.plexapi.utils.Hook.AfterSuccessContext; -import lukehagar.plexapi.plexapi.utils.Hook.BeforeRequest; -import lukehagar.plexapi.plexapi.utils.Hook.BeforeRequestContext; -import lukehagar.plexapi.plexapi.utils.Hook.SdkInit; -import lukehagar.plexapi.plexapi.utils.Hook.SdkInitData; - -/** - * Registers hooks for use at runtime by an end-user or for use by a customer - * that may edit the SDKHooks.java file. - * - *

- * For example, this code will add a transaction id header to every request: - * - *

- * hooks.registerBeforeRequest((context, request) -> {
- *     request.headers().map().put("acme-transaction-id", nextTransactionId());
- *     return request;
- * });
- * 
- */ -// ThreadSafe -public class Hooks implements BeforeRequest, AfterSuccess, AfterError, SdkInit { - - // we use CopyOnWriteArrayList for thread safety - private final List beforeRequestHooks = new CopyOnWriteArrayList<>(); - private final List afterSuccessHooks = new CopyOnWriteArrayList<>(); - private final List afterErrorHooks = new CopyOnWriteArrayList<>(); - private final List SdkInitHooks = new CopyOnWriteArrayList<>(); - - /** - * Constructor. - */ - public Hooks() { - } - - /** - * Registers a {@link BeforeRequest} hook to be applied in order of - * registration. The result of the first BeforeRequest hook will be passed to - * the second BeforeRequest hook and processed similarly for the rest of the - * registered hooks. If a BeforeRequest hook throws then that Exception will - * not be passed to the {@link AfterError} hooks. - * - * @param beforeRequest hook to be registered - * @return this - */ - public Hooks registerBeforeRequest(BeforeRequest beforeRequest) { - Utils.checkNotNull(beforeRequest, "beforeRequest"); - this.beforeRequestHooks.add(beforeRequest); - return this; - } - - /** - * Registers an {@link AfterSuccess} hook to be applied in order of registration - * (multiple can be registered). The result of the first AfterSuccess hook will - * be passed to the second AfterSuccess hook and processed similarly for the - * rest of the registered hooks. If an AfterSuccess hook throws then that - * Exception will not be passed to the {@link AfterError} hooks. - * - * @param afterSuccess hook to be registered - * @return this - */ - public Hooks registerAfterSuccess(AfterSuccess afterSuccess) { - Utils.checkNotNull(afterSuccess, "afterSuccess"); - this.afterSuccessHooks.add(afterSuccess); - return this; - } - - /** - * Registers an {@link AfterError} hook to be applied in order of registration - * (multiple can be registered). If the first AfterError hook throws then the - * second hook will be called with that exception (and no response object) and - * so on for the rest of the registered hooks. If an AfterError hook returns - * normally then its result will be passed through to the next AfterError hook - * with the latest thrown Exception. - * - * @param afterError hook to be registered - * @return this - */ - public Hooks registerAfterError(AfterError afterError) { - Utils.checkNotNull(afterError, "afterError"); - this.afterErrorHooks.add(afterError); - return this; - } - - /** - * Registers a {@link SdkInit} hook to be applied in order of registration - * (multiple can be registered). - * - * @param SdkInit hook to be registered - * @return this - */ - public Hooks registerSdkInit(SdkInit SdkInit) { - Utils.checkNotNull(SdkInit, "SdkInit"); - this.SdkInitHooks.add(SdkInit); - return this; - } - - @Override - public HttpRequest beforeRequest(BeforeRequestContext context, HttpRequest request) throws Exception { - Utils.checkNotNull(context, "context"); - Utils.checkNotNull(request, "request"); - for (BeforeRequest hook : beforeRequestHooks) { - request = hook.beforeRequest(context, request); - } - return request; - } - - @Override - public HttpResponse afterSuccess(AfterSuccessContext context, HttpResponse response) - throws Exception { - Utils.checkNotNull(context, "context"); - Utils.checkNotNull(response, "response"); - - for (AfterSuccess hook : afterSuccessHooks) { - response = hook.afterSuccess(context, response); - if (response == null) { - throw new IllegalStateException("afterSuccess cannot return null"); - } - } - return response; - } - - @Override - public HttpResponse afterError( - AfterErrorContext context, - Optional> response, - Optional error) throws Exception { - Utils.checkNotNull(context, "context"); - Utils.checkNotNull(response, "response"); - Utils.checkNotNull(error, "error"); - Utils.checkArgument( - response.isPresent() ^ error.isPresent(), - "one and only one of response or error must be present"); - - for (AfterError hook : afterErrorHooks) { - try { - response = Optional.ofNullable(hook.afterError(context, response, error)); - if (!response.isPresent()) { - throw new IllegalStateException( - "afterError must either throw an exception or return a non-null response"); - } - } catch (FailEarlyException e) { - Throwable cause = e.getCause(); - if (cause instanceof Exception) { - throw (Exception) cause; - } else { - // must be an Error - throw (Error) cause; - } - } catch (Exception e) { - error = Optional.of(e); - response = Optional.empty(); - } - } - if (response.isPresent()) { - return response.get(); - } else { - throw error.get(); - } - } - - @Override - public SdkInitData sdkInit(SdkInitData data) { - Utils.checkNotNull(data, "data"); - for (SdkInit hook : SdkInitHooks) { - data = hook.sdkInit(data); - if (data == null) { - throw new IllegalStateException("sdkInit cannot return null"); - } - } - return data; - } - - @SuppressWarnings("serial") - public static final class FailEarlyException extends RuntimeException { - public FailEarlyException(Exception e) { - super(e); - } - } - -} \ No newline at end of file diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/JSON.java b/src/main/java/lukehagar/plexapi/plexapi/utils/JSON.java deleted file mode 100644 index 610f355e..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/JSON.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.utils; - -import org.openapitools.jackson.nullable.JsonNullableModule; - -import com.fasterxml.jackson.databind.DeserializationFeature; -import com.fasterxml.jackson.databind.SerializationFeature; -import com.fasterxml.jackson.datatype.jdk8.Jdk8Module; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import com.fasterxml.jackson.databind.ObjectMapper; - -public class JSON { - public static ObjectMapper getMapper() { - return new ObjectMapper() - .registerModule(new JavaTimeModule()) - .registerModule(new Jdk8Module()) - .registerModule(new JsonNullableModule()) - .registerModule(Deserializers.STRICT_DESERIALIZERS) - .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false) - .configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false) - .disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS) - .enable(DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES); - } -} \ No newline at end of file diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/LazySingletonValue.java b/src/main/java/lukehagar/plexapi/plexapi/utils/LazySingletonValue.java deleted file mode 100644 index fbe54bb8..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/LazySingletonValue.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.utils; - -import com.fasterxml.jackson.core.type.TypeReference; - -public final class LazySingletonValue { - - private static final Object NOT_SET = new Object(); - - private final String name; - private final String json; - private final TypeReference typeReference; - private Object value = NOT_SET; - - public LazySingletonValue(String name, String json, TypeReference typeReference) { - this.name = name; - this.json = json; - this.typeReference = typeReference; - } - - @SuppressWarnings("unchecked") - public T value() { - if (value == NOT_SET) { - value = Utils.readDefaultOrConstValue(name, json, typeReference); - } - return (T) value; - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/Metadata.java b/src/main/java/lukehagar/plexapi/plexapi/utils/Metadata.java deleted file mode 100644 index 59aefbf8..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/Metadata.java +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.utils; - -import java.lang.reflect.Field; -import java.util.HashMap; -import java.util.Map; - -final class Metadata { - - private Metadata() { - // prevent instantiation - } - - static T parse(String name, T metadata, Field field) - throws IllegalArgumentException, IllegalAccessException { - SpeakeasyMetadata md = field.getAnnotation(SpeakeasyMetadata.class); - if (md == null) { - return null; - } - - String mdValue = md.value(); - - if (mdValue == null || mdValue.isBlank()) { - return null; - } - - String[] groups = mdValue.split(" "); - - boolean handled = false; - - for (String group : groups) { - String[] parts = group.split(":"); - if (parts.length != 2) { - return null; - } - - if (!parts[0].equals(name)) { - continue; - } - - Map values = new HashMap<>(); - - String[] pairs = parts[1].split(","); - for (String pair : pairs) { - String[] keyVal = pair.split("="); - String key = keyVal[0]; - - String val = ""; - if (keyVal.length > 1) { - val = keyVal[1]; - } - - values.put(key, val); - } - - Field[] fields = metadata.getClass().getDeclaredFields(); - - for (Field f : fields) { - f.setAccessible(true); - if (values.containsKey(f.getName())) { - String val = values.get(f.getName()); - - if (f.getType().equals(boolean.class) || f.getType().equals(Boolean.class)) { - f.set(metadata, val.equals("true") || val.isBlank()); - } else { - f.set(metadata, val); - } - } - } - - handled = true; - } - - if (!handled) { - return null; - } - - return (T) metadata; - } -} \ No newline at end of file diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/MultipartFormMetadata.java b/src/main/java/lukehagar/plexapi/plexapi/utils/MultipartFormMetadata.java deleted file mode 100644 index 73bb1c40..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/MultipartFormMetadata.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.utils; - -import java.lang.reflect.Field; - -class MultipartFormMetadata { - - boolean file; - boolean content; - boolean json; - String name; - - private MultipartFormMetadata() { - } - - // multipartForm:name=file - static MultipartFormMetadata parse(Field field) throws IllegalArgumentException, IllegalAccessException { - return Metadata.parse("multipartForm", new MultipartFormMetadata(), field); - } -} diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/OneOfDeserializer.java b/src/main/java/lukehagar/plexapi/plexapi/utils/OneOfDeserializer.java deleted file mode 100644 index 95c5af30..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/OneOfDeserializer.java +++ /dev/null @@ -1,251 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.utils; - -import java.io.IOException; -import java.lang.reflect.Constructor; -import java.lang.reflect.InvocationTargetException; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.Set; -import java.util.stream.Collectors; - -import lukehagar.plexapi.plexapi.utils.Utils.TypeReferenceWithShape; - -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.TreeNode; -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.DatabindException; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JavaType; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; - - -public class OneOfDeserializer extends StdDeserializer { - - private static final long serialVersionUID = -1; - - private final List typeReferences; // oneOf subschemas - private final Class cls; - private final ObjectMapper mapper; - - protected OneOfDeserializer(Class cls, TypeReferenceWithShape... typeReferences) { - super(cls); - this.typeReferences= Arrays.asList(typeReferences); - this.cls = cls; - this.mapper = JSON.getMapper(); - } - - @Override - public T deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { - return deserializeOneOf(mapper, p, ctxt, typeReferences, cls); - } - - private static T deserializeOneOf(ObjectMapper mapper, JsonParser p, DeserializationContext ctxt, - List typeReferences, Class cls) throws IOException { - TreeNode tree = p.getCodec().readTree(p); - // TODO don't have to generate json because can use tree.traverse to get a - // parser to read value, perf advantage and can stop plugging in ObjectMapper - String json = mapper.writeValueAsString(tree); - return deserializeOneOf(mapper, json, typeReferences, cls, ctxt); - } - - private static T deserializeOneOf(ObjectMapper mapper, String json, List typeReferences, Class cls, - DeserializationContext ctxt) throws JsonProcessingException { - List> matches = new ArrayList<>(); - for (TypeReferenceWithShape c : typeReferences) { - // try to deserialize with each of the member classes - // @formatter:off - try { - JavaType jt = Utils.convertToShape(mapper.getTypeFactory(), c.typeReference(), c.shape()); - // Jackson very permissive with readValue so we will tighten things up a bit - if (matchPossible(jt, json)) { - Object o = mapper.readValue(json, jt); - o = Utils.convertToShapeInverse(o, c.shape(), jt); - @SuppressWarnings("unchecked") - TypedObject typed = TypedObject.of(o, c.shape(), (TypeReference) c.typeReference()); - T v = newInstance(cls, typed); - matches.add(new Match<>(c, v)); - } - } catch (DatabindException e) {} // NOPMD - // @formatter:on - } - matches = applyMatchPreferences(matches, json); - if (matches.size() == 1) { - return matches.get(0).value; - } else if (matches.size() > 1) { - throw JsonMappingException.from(ctxt, - "json matched more than one of the possible type references, matches are: " + typeNames(matches) + " - json=\n" + json); - } else { - throw JsonMappingException.from(ctxt, - "json did not match any of the possible type references: " + typeReferenceNames(typeReferences) + ", json=\n" + json); - } - } - - private static final class Match { - final TypeReferenceWithShape typeReference; - final T value; - - Match(TypeReferenceWithShape typeReference, T value) { - this.typeReference = typeReference; - this.value = value; - } - } - - private static final Set NUMERIC_CLASSES = Set.of( - Integer.class.getCanonicalName(), - Long.class.getCanonicalName(), - BigInteger.class.getCanonicalName(), - Float.class.getCanonicalName(), - Double.class.getCanonicalName(), - BigDecimal.class.getCanonicalName()); - - private static final Set DECIMAL_CLASSES = Set.of( - Float.class.getCanonicalName(), - Double.class.getCanonicalName(), - BigDecimal.class.getCanonicalName()); - - private static final Set INTEGER_CLASSES = Set.of( - Integer.class.getCanonicalName(), - Long.class.getCanonicalName(), - BigInteger.class.getCanonicalName()); - - private static final Set DATE_TIME_CLASSES = Set.of( - OffsetDateTime.class.getCanonicalName(), - LocalDate.class.getCanonicalName()); - - // VisibleForTesting - public static boolean matchPossible(JavaType type, String json) { - // situations we want to AVOID that can happen with Jackson ObjectMapper: - // * json numeric considered as valid for deserialization to OffsetDateTime, LocalDate - // * non-double-quoted json string considered as valid string - // * json numeric can be parsed as a Boolean - // * double-quoted numerics can be parsed as numerics - - // We make important assumptions about matching json with types - if (typeIs(type, String.class) || typeIs(type, BigIntegerString.class) || typeIs(type, BigDecimalString.class)) { - // string must be double quoted - return isDoubleQuoted(json); - } else if (typeIs(type, Boolean.class)) { - // boolean can only have false or true values - return json.equals("true") || json.equals("false"); - } else if (NUMERIC_CLASSES.contains(type.getTypeName())) { - return !json.contains("\""); - } else if (typeIs(type, OffsetDateTime.class) || typeIs(type, LocalDate.class)) { - // only json schema datetime format accepted, not epoch ms/s etc. - return isDoubleQuoted(json) && !isNumeric(json.substring(1, json.length() - 1)); - } else { - return true; - } - } - - private static boolean isDoubleQuoted(String s) { - return s.length() >=2 && s.startsWith("\"") && s.endsWith("\""); - } - - // VisibleForTesting - public static List> applyMatchPreferences(List> matches, String json) { - if (matches.size() <= 1) { - return matches; - } else if (allNumeric(matches)) { - List> decimalMatches = decimalMatches(matches); - List> integerMatches = integerMatches(matches); - if (!decimalMatches.isEmpty() && !integerMatches.isEmpty()) { - if (json.contains("e")|| json.contains(".")) { - return decimalMatches; - } else { - return integerMatches; - } - } else if (!decimalMatches.isEmpty()) { - return decimalMatches; - } else { - return integerMatches; - } - } if (allDateTime(matches)) { - if (json.contains("T")) { - return filter(matches, OffsetDateTime.class); - } else { - return filter(matches, LocalDate.class); - } - } else { - return matches; - } - } - - private static List> filter(List> matches, Class filterByClass) { - return matches // - .stream() // - .filter(x -> x.typeReference.typeReference().getType().getTypeName().equals(filterByClass.getCanonicalName())) // - .collect(Collectors.toList()); - } - - private static boolean allDateTime(List> matches) { - return matches.stream().allMatch(x -> DATE_TIME_CLASSES.contains(x.typeReference.typeReference().getType().getTypeName())); - } - - private static boolean allNumeric(List> matches) { - return matches.stream().allMatch(x -> NUMERIC_CLASSES.contains(x.typeReference.typeReference().getType().getTypeName())); - } - - private static List> decimalMatches(List> matches) { - return matches // - .stream() // - .filter(x -> DECIMAL_CLASSES.contains(x.typeReference.typeReference().getType().getTypeName())) // - .collect(Collectors.toList()); - } - - private static List> integerMatches(List> matches) { - return matches // - .stream() // - .filter(x -> INTEGER_CLASSES.contains(x.typeReference.typeReference().getType().getTypeName())) // - .collect(Collectors.toList()); - } - - private static boolean isNumeric(String s) { - try { - Double.parseDouble(s); - return true; - } catch (NumberFormatException e) { - return false; - } - } - - private static boolean typeIs(JavaType type, Class cls) { - return type.getRawClass().equals(cls); - } - - private static String typeNames(List> matches) { - return "[" + matches - .stream() - .map(x -> x.typeReference.typeReference().getType().getTypeName()) - .collect(Collectors.joining(", ")) + "]"; - } - - private static String typeReferenceNames(List list) { - return "[" + list - .stream() - .map(x -> x.typeReference().getType().getTypeName()) - .collect(Collectors.joining(", ")) + "]"; - } - - private static T newInstance(Class cls, Object parameter) { - try { - Constructor con = cls.getDeclaredConstructor(TypedObject.class); - con.setAccessible(true); - return con.newInstance(parameter); - } catch (InstantiationException | IllegalAccessException | IllegalArgumentException | InvocationTargetException - | NoSuchMethodException | SecurityException e) { - throw new RuntimeException(e); - } - } -} \ No newline at end of file diff --git a/src/main/java/lukehagar/plexapi/plexapi/utils/Options.java b/src/main/java/lukehagar/plexapi/plexapi/utils/Options.java deleted file mode 100644 index 1d8d1f6c..00000000 --- a/src/main/java/lukehagar/plexapi/plexapi/utils/Options.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -package lukehagar.plexapi.plexapi.utils; - -import java.util.Optional; -import java.util.List; -import lukehagar.plexapi.plexapi.utils.Utils; - - -public class Options { - - public enum Option { - RETRY_CONFIG; - } - - private Optional retryConfig = Optional.empty(); - - private Options(Optional retryConfig) { - Utils.checkNotNull(retryConfig, "retryConfig"); - this.retryConfig = retryConfig; - } - - public Optional retryConfig() { - return retryConfig; - } - - public final void validate(List